3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-kanji multibyte character support (kanji, Korean etc.)"
17 --enable-modelock XKB keyboard language status support"
19 --with-nlsdir=PATH specify where the locale stuff should go "
21 --with-x use the X Window System"
23 --disable-shape disable shaped window extension support"
25 --disable-shm disable usage of MIT-SHM extension"
27 --with-gfx-libs pass compiler flags to look for gfx libraries"
29 --with-gfx-incs pass compiler flags to look for gfx header files"
31 --disable-xpm disable use of XPM pixmaps through libXpm"
33 --disable-png disable PNG support through libpng"
35 --disable-jpeg disable JPEG support through libjpeg"
37 --disable-gif disable GIF support through libgif or libungif"
39 --disable-tiff disable use of TIFF images through libtiff"
41 --enable-debug enable debugging "
43 --disable-sound disable sound support "
45 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
47 --with-appspath=PATH specify the path of the GNUstep applications
50 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file
=.
/config.cache
66 program_transform_name
=s
,x
,x
,
74 bindir
='${exec_prefix}/bin'
75 sbindir
='${exec_prefix}/sbin'
76 libexecdir
='${exec_prefix}/libexec'
77 datadir
='${prefix}/share'
78 sysconfdir
='${prefix}/etc'
79 sharedstatedir
='${prefix}/com'
80 localstatedir
='${prefix}/var'
81 libdir
='${exec_prefix}/lib'
82 includedir
='${prefix}/include'
83 oldincludedir
='/usr/include'
84 infodir
='${prefix}/info'
85 mandir
='${prefix}/man'
87 # Initialize some other variables.
90 # Maximum number of lines to put in a shell here document.
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
105 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 # Accept the important Cygnus configure options, so we can diagnose typos.
113 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
115 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
116 bindir
="$ac_optarg" ;;
118 -build |
--build |
--buil |
--bui |
--bu)
120 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
121 build
="$ac_optarg" ;;
123 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
124 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
125 ac_prev
=cache_file
;;
126 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
127 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
128 cache_file
="$ac_optarg" ;;
130 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
132 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
134 datadir
="$ac_optarg" ;;
136 -disable-* |
--disable-*)
137 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
145 -enable-* |
--enable-*)
146 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
158 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
159 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
160 |
--exec |
--exe |
--ex)
161 ac_prev
=exec_prefix
;;
162 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
163 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
164 |
--exec=* |
--exe=* |
--ex=*)
165 exec_prefix
="$ac_optarg" ;;
167 -gas |
--gas |
--ga |
--g)
168 # Obsolete; use --with-gas.
171 -help |
--help |
--hel |
--he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
175 Usage: configure [options] [host]
176 Options: [defaults in brackets after descriptions]
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
182 --version print the version of autoconf that created configure
183 Directory and file names:
184 --prefix=PREFIX install architecture-independent files in PREFIX
186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 --bindir=DIR user executables in DIR [EPREFIX/bin]
189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191 --datadir=DIR read-only architecture-independent data in DIR
193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198 --includedir=DIR C header files in DIR [PREFIX/include]
199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200 --infodir=DIR info documentation in DIR [PREFIX/info]
201 --mandir=DIR man documentation in DIR [PREFIX/man]
202 --srcdir=DIR find the sources in DIR [configure dir or ..]
203 --program-prefix=PREFIX prepend PREFIX to installed program names
204 --program-suffix=SUFFIX append SUFFIX to installed program names
205 --program-transform-name=PROGRAM
206 run sed PROGRAM on installed program names
210 --build=BUILD configure for building on BUILD [BUILD=HOST]
211 --host=HOST configure for HOST [guessed]
212 --target=TARGET configure for TARGET [TARGET=HOST]
213 Features and packages:
214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218 --x-includes=DIR X include files are in DIR
219 --x-libraries=DIR X library files are in DIR
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
226 -host |
--host |
--hos |
--ho)
228 -host=* |
--host=* |
--hos=* |
--ho=*)
231 -includedir |
--includedir |
--includedi |
--included |
--include \
232 |
--includ |
--inclu |
--incl |
--inc)
233 ac_prev
=includedir
;;
234 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
235 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
236 includedir
="$ac_optarg" ;;
238 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
240 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
241 infodir
="$ac_optarg" ;;
243 -libdir |
--libdir |
--libdi |
--libd)
245 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
246 libdir
="$ac_optarg" ;;
248 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
249 |
--libexe |
--libex |
--libe)
250 ac_prev
=libexecdir
;;
251 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
252 |
--libexe=* |
--libex=* |
--libe=*)
253 libexecdir
="$ac_optarg" ;;
255 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
256 |
--localstate |
--localstat |
--localsta |
--localst \
257 |
--locals |
--local |
--loca |
--loc |
--lo)
258 ac_prev
=localstatedir
;;
259 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
260 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
261 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
262 localstatedir
="$ac_optarg" ;;
264 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
266 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
267 mandir
="$ac_optarg" ;;
270 # Obsolete; use --without-fp.
273 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
277 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
278 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
281 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
282 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
283 |
--oldin |
--oldi |
--old |
--ol |
--o)
284 ac_prev
=oldincludedir
;;
285 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
286 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
287 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
288 oldincludedir
="$ac_optarg" ;;
290 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
292 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
293 prefix
="$ac_optarg" ;;
295 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
296 |
--program-pre |
--program-pr |
--program-p)
297 ac_prev
=program_prefix
;;
298 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
299 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
300 program_prefix
="$ac_optarg" ;;
302 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
303 |
--program-suf |
--program-su |
--program-s)
304 ac_prev
=program_suffix
;;
305 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
306 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
307 program_suffix
="$ac_optarg" ;;
309 -program-transform-name |
--program-transform-name \
310 |
--program-transform-nam |
--program-transform-na \
311 |
--program-transform-n |
--program-transform- \
312 |
--program-transform |
--program-transfor \
313 |
--program-transfo |
--program-transf \
314 |
--program-trans |
--program-tran \
315 |
--progr-tra |
--program-tr |
--program-t)
316 ac_prev
=program_transform_name
;;
317 -program-transform-name=* |
--program-transform-name=* \
318 |
--program-transform-nam=* |
--program-transform-na=* \
319 |
--program-transform-n=* |
--program-transform-=* \
320 |
--program-transform=* |
--program-transfor=* \
321 |
--program-transfo=* |
--program-transf=* \
322 |
--program-trans=* |
--program-tran=* \
323 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
324 program_transform_name
="$ac_optarg" ;;
326 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
327 |
-silent |
--silent |
--silen |
--sile |
--sil)
330 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
332 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
334 sbindir
="$ac_optarg" ;;
336 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
337 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
338 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
340 ac_prev
=sharedstatedir
;;
341 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
342 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
343 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
345 sharedstatedir
="$ac_optarg" ;;
347 -site |
--site |
--sit)
349 -site=* |
--site=* |
--sit=*)
352 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
354 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
355 srcdir
="$ac_optarg" ;;
357 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
358 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
359 ac_prev
=sysconfdir
;;
360 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
361 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
362 sysconfdir
="$ac_optarg" ;;
364 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
366 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
367 target
="$ac_optarg" ;;
369 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
372 -version |
--version |
--versio |
--versi |
--vers)
373 echo "configure generated by autoconf version 2.12"
377 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}='$ac_optarg'" ;;
389 -without-* |
--without-*)
390 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package
=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
399 # Obsolete; use --with-x.
402 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
403 |
--x-incl |
--x-inc |
--x-in |
--x-i)
404 ac_prev
=x_includes
;;
405 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
406 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
407 x_includes
="$ac_optarg" ;;
409 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
410 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
411 ac_prev
=x_libraries
;;
412 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
413 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
414 x_libraries
="$ac_optarg" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 if test "x$nonopt" != xNONE
; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438 # File descriptor usage:
441 # 2 errors and warnings
442 # 3 some systems may open it to /dev/tty
443 # 4 used on the Kubota Titan
444 # 6 checking for... messages and results
445 # 5 compiler messages saved in config.log
446 if test "$silent" = yes; then
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
464 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
465 |
--no-cr |
--no-c) ;;
466 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
467 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
468 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
475 # Only set these to C if already set. These must not be set unconditionally
476 # because not all systems understand e.g. LANG=C (notably SCO).
477 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478 # Non-C LC_CTYPE values break the ctype check.
479 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest
* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 # A filename unique to this package, relative to the directory that
490 # configure is in, which we can look for to find out if srcdir is correct.
491 ac_unique_file
=src
/WindowMaker.h
493 # Find the source files, if location was not specified.
494 if test -z "$srcdir"; then
495 ac_srcdir_defaulted
=yes
496 # Try the directory containing this script, then its parent.
498 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
501 if test ! -r $srcdir/$ac_unique_file; then
505 ac_srcdir_defaulted
=no
507 if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE
; then
519 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 for ac_site_file
in $CONFIG_SITE; do
525 if test -r "$ac_site_file"; then
526 echo "loading site script $ac_site_file"
531 if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
535 echo "creating cache $cache_file"
540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp
='$CPP $CPPFLAGS'
542 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling
=$ac_cv_prog_cc_cross
546 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
555 ac_n
= ac_c
='\c' ac_t
=
561 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
562 if test -f $ac_dir/install-sh
; then
564 ac_install_sh
="$ac_aux_dir/install-sh -c"
566 elif test -f $ac_dir/install.sh
; then
568 ac_install_sh
="$ac_aux_dir/install.sh -c"
572 if test -z "$ac_aux_dir"; then
573 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
575 ac_config_guess
=$ac_aux_dir/config.guess
576 ac_config_sub
=$ac_aux_dir/config.sub
577 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
579 # Find a good install program. We prefer a C program (faster),
580 # so one script is as good as another. But avoid the broken or
581 # incompatible versions:
582 # SysV /etc/install, /usr/sbin/install
583 # SunOS /usr/etc/install
586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
588 # ./install, which can be erroneously created by make from ./install.sh.
589 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
590 echo "configure:591: checking for a BSD compatible install" >&5
591 if test -z "$INSTALL"; then
592 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
595 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
596 for ac_dir
in $PATH; do
597 # Account for people who put trailing slashes in PATH elements.
599 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
601 # OSF1 and SCO ODT 3.0 have their own names for install.
602 for ac_prog
in ginstall installbsd scoinst
install; do
603 if test -f $ac_dir/$ac_prog; then
604 if test $ac_prog = install &&
605 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
606 # AIX install. It has an incompatible calling convention.
607 # OSF/1 installbsd also uses dspmsg, but is usable.
610 ac_cv_path_install
="$ac_dir/$ac_prog -c"
621 if test "${ac_cv_path_install+set}" = set; then
622 INSTALL
="$ac_cv_path_install"
624 # As a last resort, use the slow shell script. We don't cache a
625 # path for INSTALL within a source directory, because that will
626 # break other packages using the cache if that directory is
627 # removed, or if the path is relative.
628 INSTALL
="$ac_install_sh"
631 echo "$ac_t""$INSTALL" 1>&6
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
637 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
642 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
643 echo "configure:644: checking whether build environment is sane" >&5
646 echo timestamp
> conftestfile
647 # Do `set' in a subshell so we don't clobber the current shell's
648 # arguments. Must try -L first in case configure is actually a
649 # symlink; some systems play weird games with the mod time of symlinks
650 # (eg FreeBSD returns the mod time of the symlink's containing
653 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
654 if test "$*" = "X"; then
656 set X
`ls -t $srcdir/configure conftestfile`
658 if test "$*" != "X $srcdir/configure conftestfile" \
659 && test "$*" != "X conftestfile $srcdir/configure"; then
661 # If neither matched, then we have a broken ls. This can happen
662 # if, for instance, CONFIG_SHELL is bash and it inherits a
663 # broken ls alias from the environment. This has actually
664 # happened. Such a system could not be considered "sane".
665 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
666 alias in your environment" 1>&2; exit 1; }
669 test "$2" = conftestfile
675 { echo "configure: error: newly created file is older than distributed files!
676 Check your system clock" 1>&2; exit 1; }
679 echo "$ac_t""yes" 1>&6
680 if test "$program_transform_name" = s
,x
,x
,; then
681 program_transform_name
=
683 # Double any \ or $. echo might interpret backslashes.
684 cat <<\EOF_SED
> conftestsed
685 s
,\\,\\\\,g
; s
,\$
,$$
,g
687 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
690 test "$program_prefix" != NONE
&&
691 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
692 # Use a double $ so make ignores it.
693 test "$program_suffix" != NONE
&&
694 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
696 # sed with no file args requires a program.
697 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
699 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
700 echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5
701 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
702 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 cat > conftestmake
<<\EOF
707 @
echo 'ac_maketemp="${MAKE}"'
709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
710 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
711 if test -n "$ac_maketemp"; then
712 eval ac_cv_prog_make_
${ac_make}_set
=yes
714 eval ac_cv_prog_make_
${ac_make}_set
=no
718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
719 echo "$ac_t""yes" 1>&6
722 echo "$ac_t""no" 1>&6
723 SET_MAKE
="MAKE=${MAKE-make}"
731 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
732 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
734 cat >> confdefs.h
<<EOF
735 #define PACKAGE "$PACKAGE"
738 cat >> confdefs.h
<<EOF
739 #define VERSION "$VERSION"
744 missing_dir
=`cd $ac_aux_dir && pwd`
745 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
746 echo "configure:747: checking for working aclocal" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
752 echo "$ac_t""found" 1>&6
754 ACLOCAL
="$missing_dir/missing aclocal"
755 echo "$ac_t""missing" 1>&6
758 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoconf" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
765 echo "$ac_t""found" 1>&6
767 AUTOCONF
="$missing_dir/missing autoconf"
768 echo "$ac_t""missing" 1>&6
771 echo $ac_n "checking for working automake""... $ac_c" 1>&6
772 echo "configure:773: checking for working automake" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
778 echo "$ac_t""found" 1>&6
780 AUTOMAKE
="$missing_dir/missing automake"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoheader" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
790 AUTOHEADER
=autoheader
791 echo "$ac_t""found" 1>&6
793 AUTOHEADER
="$missing_dir/missing autoheader"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
798 echo "configure:799: checking for working makeinfo" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
804 echo "$ac_t""found" 1>&6
806 MAKEINFO
="$missing_dir/missing makeinfo"
807 echo "$ac_t""missing" 1>&6
818 subdirs
="libPropList"
828 # Make sure we can run config.sub.
829 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
830 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
833 echo $ac_n "checking host system type""... $ac_c" 1>&6
834 echo "configure:835: checking host system type" >&5
837 case "$host_alias" in
841 if host_alias
=`$ac_config_guess`; then :
842 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
844 *) host_alias
=$nonopt ;;
848 host=`$ac_config_sub $host_alias`
849 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
850 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
851 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
852 echo "$ac_t""$host" 1>&6
856 # Extract the first word of "gcc", so it can be a program name with args.
857 set dummy gcc
; ac_word
=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$CC"; then
864 ac_cv_prog_CC
="$CC" # Let the user override the test.
866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
867 for ac_dir
in $PATH; do
868 test -z "$ac_dir" && ac_dir
=.
869 if test -f $ac_dir/$ac_word; then
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
885 # Extract the first word of "cc", so it can be a program name with args.
886 set dummy cc
; ac_word
=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC
="$CC" # Let the user override the test.
895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
897 for ac_dir
in $PATH; do
898 test -z "$ac_dir" && ac_dir
=.
899 if test -f $ac_dir/$ac_word; then
900 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
909 if test $ac_prog_rejected = yes; then
910 # We found a bogon in the path, so make sure we never use it.
911 set dummy
$ac_cv_prog_CC
913 if test $# -gt 0; then
914 # We chose a different compiler from the bogus one.
915 # However, it has the same basename, so the bogon will be chosen
916 # first if we set CC to just the basename; use the full file name.
918 set dummy
"$ac_dir/$ac_word" "$@"
926 if test -n "$CC"; then
927 echo "$ac_t""$CC" 1>&6
929 echo "$ac_t""no" 1>&6
932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp
='$CPP $CPPFLAGS'
941 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling
=$ac_cv_prog_cc_cross
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
950 if { (eval echo configure
:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
951 ac_cv_prog_cc_works
=yes
952 # If we can't run a trivial program, we are probably using a cross compiler.
953 if (.
/conftest
; exit) 2>/dev
/null
; then
954 ac_cv_prog_cc_cross
=no
956 ac_cv_prog_cc_cross
=yes
959 echo "configure: failed program was:" >&5
960 cat conftest.
$ac_ext >&5
961 ac_cv_prog_cc_works
=no
965 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
966 if test $ac_cv_prog_cc_works = no
; then
967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
971 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
972 cross_compiling
=$ac_cv_prog_cc_cross
974 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
975 echo "configure:976: checking whether we are using GNU C" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 cat > conftest.c
<<EOF
984 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
991 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
993 if test $ac_cv_prog_gcc = yes; then
995 ac_test_CFLAGS
="${CFLAGS+set}"
996 ac_save_CFLAGS
="$CFLAGS"
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS
="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1023 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1026 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1027 echo "configure:1028: checking for POSIXized ISC" >&5
1028 if test -d /etc
/conf
/kconfig.d
&&
1029 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1031 echo "$ac_t""yes" 1>&6
1032 ISC
=yes # If later tests want to check for ISC.
1033 cat >> confdefs.h
<<\EOF
1034 #define _POSIX_SOURCE 1
1037 if test "$GCC" = yes; then
1043 echo "$ac_t""no" 1>&6
1047 # Extract the first word of "gcc", so it can be a program name with args.
1048 set dummy gcc
; ac_word
=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC
="$CC" # Let the user override the test.
1057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1058 for ac_dir
in $PATH; do
1059 test -z "$ac_dir" && ac_dir
=.
1060 if test -f $ac_dir/$ac_word; then
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1072 echo "$ac_t""no" 1>&6
1075 if test -z "$CC"; then
1076 # Extract the first word of "cc", so it can be a program name with args.
1077 set dummy cc
; ac_word
=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC
="$CC" # Let the user override the test.
1086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1088 for ac_dir
in $PATH; do
1089 test -z "$ac_dir" && ac_dir
=.
1090 if test -f $ac_dir/$ac_word; then
1091 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1092 ac_prog_rejected
=yes
1100 if test $ac_prog_rejected = yes; then
1101 # We found a bogon in the path, so make sure we never use it.
1102 set dummy
$ac_cv_prog_CC
1104 if test $# -gt 0; then
1105 # We chose a different compiler from the bogus one.
1106 # However, it has the same basename, so the bogon will be chosen
1107 # first if we set CC to just the basename; use the full file name.
1109 set dummy
"$ac_dir/$ac_word" "$@"
1117 if test -n "$CC"; then
1118 echo "$ac_t""$CC" 1>&6
1120 echo "$ac_t""no" 1>&6
1123 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1126 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1131 ac_cpp
='$CPP $CPPFLAGS'
1132 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1133 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1134 cross_compiling
=$ac_cv_prog_cc_cross
1136 cat > conftest.
$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1141 if { (eval echo configure
:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1142 ac_cv_prog_cc_works
=yes
1143 # If we can't run a trivial program, we are probably using a cross compiler.
1144 if (.
/conftest
; exit) 2>/dev
/null
; then
1145 ac_cv_prog_cc_cross
=no
1147 ac_cv_prog_cc_cross
=yes
1150 echo "configure: failed program was:" >&5
1151 cat conftest.
$ac_ext >&5
1152 ac_cv_prog_cc_works
=no
1156 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1157 if test $ac_cv_prog_cc_works = no
; then
1158 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1160 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1162 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1163 cross_compiling
=$ac_cv_prog_cc_cross
1165 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether we are using GNU C" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 cat > conftest.c
<<EOF
1175 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1182 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1184 if test $ac_cv_prog_gcc = yes; then
1186 ac_test_CFLAGS
="${CFLAGS+set}"
1187 ac_save_CFLAGS
="$CFLAGS"
1189 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${CC-cc} accepts -g" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 echo 'void f(){}' > conftest.c
1195 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1204 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1205 if test "$ac_test_CFLAGS" = set; then
1206 CFLAGS
="$ac_save_CFLAGS"
1207 elif test $ac_cv_prog_cc_g = yes; then
1214 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1217 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${MAKE-make} sets \${MAKE}" >&5
1219 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftestmake
<<\EOF
1225 @
echo 'ac_maketemp="${MAKE}"'
1227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1228 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1229 if test -n "$ac_maketemp"; then
1230 eval ac_cv_prog_make_
${ac_make}_set
=yes
1232 eval ac_cv_prog_make_
${ac_make}_set
=no
1236 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1240 echo "$ac_t""no" 1>&6
1241 SET_MAKE
="MAKE=${MAKE-make}"
1244 # Extract the first word of "ranlib", so it can be a program name with args.
1245 set dummy ranlib
; ac_word
=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -n "$RANLIB"; then
1252 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1254 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1255 for ac_dir
in $PATH; do
1256 test -z "$ac_dir" && ac_dir
=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_RANLIB
="ranlib"
1263 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1266 RANLIB
="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268 echo "$ac_t""$RANLIB" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 # Find a good install program. We prefer a C program (faster),
1274 # so one script is as good as another. But avoid the broken or
1275 # incompatible versions:
1276 # SysV /etc/install, /usr/sbin/install
1277 # SunOS /usr/etc/install
1278 # IRIX /sbin/install
1280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1282 # ./install, which can be erroneously created by make from ./install.sh.
1283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1284 echo "configure:1285: checking for a BSD compatible install" >&5
1285 if test -z "$INSTALL"; then
1286 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1290 for ac_dir
in $PATH; do
1291 # Account for people who put trailing slashes in PATH elements.
1293 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1295 # OSF1 and SCO ODT 3.0 have their own names for install.
1296 for ac_prog
in ginstall installbsd scoinst
install; do
1297 if test -f $ac_dir/$ac_prog; then
1298 if test $ac_prog = install &&
1299 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1300 # AIX install. It has an incompatible calling convention.
1301 # OSF/1 installbsd also uses dspmsg, but is usable.
1304 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1315 if test "${ac_cv_path_install+set}" = set; then
1316 INSTALL
="$ac_cv_path_install"
1318 # As a last resort, use the slow shell script. We don't cache a
1319 # path for INSTALL within a source directory, because that will
1320 # break other packages using the cache if that directory is
1321 # removed, or if the path is relative.
1322 INSTALL
="$ac_install_sh"
1325 echo "$ac_t""$INSTALL" 1>&6
1327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1328 # It thinks the first close brace ends the variable substitution.
1329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1331 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1333 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether ln -s works" >&5
1335 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1339 if ln -s X conftestdata
2>/dev
/null
1342 ac_cv_prog_LN_S
="ln -s"
1347 LN_S
="$ac_cv_prog_LN_S"
1348 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1349 echo "$ac_t""yes" 1>&6
1351 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.
$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure
:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err
=`grep -v '^ *+' conftest.out`
1378 if test -z "$ac_err"; then
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 CPP
="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.
$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure
:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err
=`grep -v '^ *+' conftest.out`
1395 if test -z "$ac_err"; then
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1407 ac_cv_prog_CPP
="$CPP"
1409 CPP
="$ac_cv_prog_CPP"
1411 ac_cv_prog_CPP
="$CPP"
1413 echo "$ac_t""$CPP" 1>&6
1415 if test $ac_cv_prog_gcc = yes; then
1416 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether ${CC-cc} needs -traditional" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 ac_pattern
="Autoconf.*'x'"
1422 cat > conftest.
$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429 egrep "$ac_pattern" >/dev
/null
2>&1; then
1431 ac_cv_prog_gcc_traditional
=yes
1434 ac_cv_prog_gcc_traditional
=no
1439 if test $ac_cv_prog_gcc_traditional = no
; then
1440 cat > conftest.
$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447 egrep "$ac_pattern" >/dev
/null
2>&1; then
1449 ac_cv_prog_gcc_traditional
=yes
1456 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1457 if test $ac_cv_prog_gcc_traditional = yes; then
1458 CC
="$CC -traditional"
1464 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1465 echo "configure:1466: checking return type of signal handlers" >&5
1466 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.
$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 #include <sys/types.h>
1478 extern "C" void (*signal (int, void (*)(int)))(int);
1480 void (*signal ()) ();
1487 if { (eval echo configure
:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1489 ac_cv_type_signal
=void
1491 echo "configure: failed program was:" >&5
1492 cat conftest.
$ac_ext >&5
1494 ac_cv_type_signal
=int
1499 echo "$ac_t""$ac_cv_type_signal" 1>&6
1500 cat >> confdefs.h
<<EOF
1501 #define RETSIGTYPE $ac_cv_type_signal
1505 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1506 echo "configure:1507: checking for vprintf" >&5
1507 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat > conftest.
$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* System header to define __stub macros and hopefully few prototypes,
1514 which can conflict with char vprintf(); below. */
1516 /* Override any gcc2 internal prototype to avoid an error. */
1517 /* We use char because int might match the return type of a gcc2
1518 builtin and then its argument prototype would still apply. */
1523 /* The GNU C library defines this for functions which it implements
1524 to always fail with ENOSYS. Some functions are actually named
1525 something starting with __ and the normal name is an alias. */
1526 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1534 if { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1536 eval "ac_cv_func_vprintf=yes"
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 eval "ac_cv_func_vprintf=no"
1546 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
1548 cat >> confdefs.h
<<\EOF
1549 #define HAVE_VPRINTF 1
1553 echo "$ac_t""no" 1>&6
1556 if test "$ac_cv_func_vprintf" != yes; then
1557 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1558 echo "configure:1559: checking for _doprnt" >&5
1559 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.
$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* System header to define __stub macros and hopefully few prototypes,
1566 which can conflict with char _doprnt(); below. */
1568 /* Override any gcc2 internal prototype to avoid an error. */
1569 /* We use char because int might match the return type of a gcc2
1570 builtin and then its argument prototype would still apply. */
1575 /* The GNU C library defines this for functions which it implements
1576 to always fail with ENOSYS. Some functions are actually named
1577 something starting with __ and the normal name is an alias. */
1578 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1586 if { (eval echo configure
:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1588 eval "ac_cv_func__doprnt=yes"
1590 echo "configure: failed program was:" >&5
1591 cat conftest.
$ac_ext >&5
1593 eval "ac_cv_func__doprnt=no"
1598 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 cat >> confdefs.h
<<\EOF
1601 #define HAVE_DOPRNT 1
1605 echo "$ac_t""no" 1>&6
1610 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1611 # for constant arguments. Useless!
1612 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1613 echo "configure:1614: checking for working alloca.h" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 char *p = alloca(2 * sizeof(int));
1625 if { (eval echo configure
:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1627 ac_cv_header_alloca_h
=yes
1629 echo "configure: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1632 ac_cv_header_alloca_h
=no
1637 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1638 if test $ac_cv_header_alloca_h = yes; then
1639 cat >> confdefs.h
<<\EOF
1640 #define HAVE_ALLOCA_H 1
1645 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1646 echo "configure:1647: checking for alloca" >&5
1647 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1655 # define alloca __builtin_alloca
1658 # include <alloca.h>
1663 # ifndef alloca /* predefined by HP cc +Olibcalls */
1671 char *p = (char *) alloca(1);
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1676 ac_cv_func_alloca_works
=yes
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 ac_cv_func_alloca_works
=no
1686 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1687 if test $ac_cv_func_alloca_works = yes; then
1688 cat >> confdefs.h
<<\EOF
1689 #define HAVE_ALLOCA 1
1694 if test $ac_cv_func_alloca_works = no
; then
1695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1696 # that cause trouble. Some versions do not even contain alloca or
1697 # contain a buggy version. If you still want to use their alloca,
1698 # use ar to extract alloca.o from them instead of compiling alloca.c.
1700 cat >> confdefs.h
<<\EOF
1705 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1706 echo "configure:1707: checking whether alloca needs Cray hooks" >&5
1707 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 #if defined(CRAY) && ! defined(CRAY2)
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "webecray" >/dev
/null
2>&1; then
1732 echo "$ac_t""$ac_cv_os_cray" 1>&6
1733 if test $ac_cv_os_cray = yes; then
1734 for ac_func
in _getb67 GETB67 getb67
; do
1735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_func" >&5
1737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $ac_func(); below. */
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1764 if { (eval echo configure
:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1766 eval "ac_cv_func_$ac_func=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1771 eval "ac_cv_func_$ac_func=no"
1776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 cat >> confdefs.h
<<EOF
1779 #define CRAY_STACKSEG_END $ac_func
1784 echo "$ac_t""no" 1>&6
1790 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1791 echo "configure:1792: checking stack direction for C alloca" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test "$cross_compiling" = yes; then
1796 ac_cv_c_stack_direction
=0
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 find_stack_direction ()
1803 static char *addr = 0;
1808 return find_stack_direction ();
1811 return (&dummy > addr) ? 1 : -1;
1815 exit (find_stack_direction() < 0);
1818 if { (eval echo configure
:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1820 ac_cv_c_stack_direction
=1
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 ac_cv_c_stack_direction
=-1
1832 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1833 cat >> confdefs.h
<<EOF
1834 #define STACK_DIRECTION $ac_cv_c_stack_direction
1839 for ac_func
in gethostname gettimeofday
select poll strerror strncasecmp setpgid
1841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_func" >&5
1843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $ac_func(); below. */
1852 /* Override any gcc2 internal prototype to avoid an error. */
1853 /* We use char because int might match the return type of a gcc2
1854 builtin and then its argument prototype would still apply. */
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1870 if { (eval echo configure
:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1872 eval "ac_cv_func_$ac_func=yes"
1874 echo "configure: failed program was:" >&5
1875 cat conftest.
$ac_ext >&5
1877 eval "ac_cv_func_$ac_func=no"
1882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1885 cat >> confdefs.h
<<EOF
1886 #define $ac_tr_func 1
1890 echo "$ac_t""no" 1>&6
1895 if test "$ac_cv_func_gettimeofday" != yes; then
1896 echo "The gettimeofday() system call is not available in your system"
1897 echo "but it is required by Window Maker. Sorry."
1901 if test "x$CPP_PATH" = x
; then
1902 # Extract the first word of "cpp", so it can be a program name with args.
1903 set dummy cpp
; ac_word
=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1911 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
1914 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1915 for ac_dir
in /lib
:/usr
/bin
:/bin
:/usr
/lib
:/usr
/ccs
/lib
:$PATH$ac_dummy; do
1916 test -z "$ac_dir" && ac_dir
=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
1923 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
1927 CPP_PATH
="$ac_cv_path_CPP_PATH"
1928 if test -n "$CPP_PATH"; then
1929 echo "$ac_t""$CPP_PATH" 1>&6
1931 echo "$ac_t""no" 1>&6
1936 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
1937 if test "$GCC" = "yes"; then
1938 CPP_PATH
="gcc -E -x c"
1940 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
1941 CPP_PATH
="$CPP_PATH -B"
1943 echo "cpp, the C preprocessor was not found in your system."
1944 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
1949 cat >> confdefs.h
<<EOF
1950 #define CPP_PATH "$CPP_PATH"
1962 echo $ac_n "checking for gettext""... $ac_c" 1>&6
1963 echo "configure:1964: checking for gettext" >&5
1964 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1970 /* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char gettext(); below. */
1973 /* Override any gcc2 internal prototype to avoid an error. */
1974 /* We use char because int might match the return type of a gcc2
1975 builtin and then its argument prototype would still apply. */
1980 /* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983 #if defined (__stub_gettext) || defined (__stub___gettext)
1991 if { (eval echo configure
:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1993 eval "ac_cv_func_gettext=yes"
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 eval "ac_cv_func_gettext=no"
2003 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2004 echo "$ac_t""yes" 1>&6
2007 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2009 echo "configure:2010: checking for gettext in -lintl" >&5
2010 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 ac_save_LIBS
="$LIBS"
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_lib_$ac_lib_var=no"
2038 LIBS
="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2045 echo "$ac_t""no" 1>&6
2052 # Extract the first word of "xgettext", so it can be a program name with args.
2053 set dummy xgettext
; ac_word
=$2
2054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_word" >&5
2056 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 if test -n "$XGETTEXT"; then
2060 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2063 for ac_dir
in $PATH; do
2064 test -z "$ac_dir" && ac_dir
=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_XGETTEXT
="xgettext"
2073 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2074 if test -n "$XGETTEXT"; then
2075 echo "$ac_t""$XGETTEXT" 1>&6
2077 echo "$ac_t""no" 1>&6
2081 if test "$XGETTEXT" != ""; then
2082 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2083 echo "xgettext isn't GNU version"
2088 if test "$LINGUAS" != ""; then
2089 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2092 # if test "$LINGUAS" = ""; then
2093 # ling=` (cd src/po; /bin/ls *.po) `
2094 # for l in $ling; do
2095 # lcode=`basename $l .po`
2096 # LINGUAS="$LINGUAS $lcode"
2099 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2104 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2115 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2116 supported_wprefs_locales
="pt hr fr ko ja"
2118 for lang
in $LINGUAS; do
2120 for l
in $supported_locales; do
2121 if test "$l" = "$lang"; then
2126 if test "$ok" = 1; then
2127 MOFILES
="$MOFILES $lang.mo"
2129 echo "Locale $lang is not supported."
2132 for l
in $supported_wprefs_locales; do
2133 if test "$l" = "$lang"; then
2138 if test "$ok" = 1; then
2139 WPMOFILES
="$WPMOFILES $lang.mo"
2145 # Check whether --enable-kanji or --disable-kanji was given.
2146 if test "${enable_kanji+set}" = set; then
2147 enableval
="$enable_kanji"
2154 if test "$enable_kanji" = yes; then
2155 I18N_MB
="#define I18N_MB"
2158 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2159 echo "configure:2160: checking for setlocale in -lxpg4" >&5
2160 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 ac_save_LIBS
="$LIBS"
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* Override any gcc2 internal prototype to avoid an error. */
2170 /* We use char because int might match the return type of a gcc2
2171 builtin and then its argument prototype would still apply. */
2178 if { (eval echo configure
:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2180 eval "ac_cv_lib_$ac_lib_var=yes"
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2185 eval "ac_cv_lib_$ac_lib_var=no"
2188 LIBS
="$ac_save_LIBS"
2191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2195 echo "$ac_t""no" 1>&6
2202 I18N_MB
="#undef I18N_MB"
2207 # Check whether --enable-modelock or --disable-modelock was given.
2208 if test "${enable_modelock+set}" = set; then
2209 enableval
="$enable_modelock"
2210 X_CFLAGS
="$X_CFLAGS -DXKB_MODELOCK"
2216 # Check whether --with-nlsdir or --without-nlsdir was given.
2217 if test "${with_nlsdir+set}" = set; then
2218 withval
="$with_nlsdir"
2223 if test "x$NLSDIR" = "x"; then
2224 if test "x$with_nlsdir" != "x"; then
2227 NLSDIR
='$(prefix)/lib/locale'
2240 # If we find X, set shell vars x_includes and x_libraries to the
2241 # paths, otherwise set no_x=yes.
2242 # Uses ac_ vars as temps to allow command line to override cache and checks.
2243 # --without-x overrides everything else, but does not touch the cache.
2244 echo $ac_n "checking for X""... $ac_c" 1>&6
2245 echo "configure:2246: checking for X" >&5
2247 # Check whether --with-x or --without-x was given.
2248 if test "${with_x+set}" = set; then
2253 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2254 if test "x$with_x" = xno
; then
2255 # The user explicitly disabled X.
2258 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2259 # Both variables are already set.
2262 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 # One or both of the vars are not set, and there is no cached value.
2266 ac_x_includes
=NO ac_x_libraries
=NO
2268 if mkdir conftestdir
; then
2270 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2271 cat > Imakefile
<<'EOF'
2273 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2275 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2277 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2278 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2279 for ac_extension
in a so sl
; do
2280 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2281 test -f $ac_im_libdir/libX11.
$ac_extension; then
2282 ac_im_usrlibdir
=$ac_im_libdir; break
2285 # Screen out bogus values from the imake configuration. They are
2286 # bogus both because they are the default anyway, and because
2287 # using them would break gcc on systems where it needs fixed includes.
2288 case "$ac_im_incroot" in
2290 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2292 case "$ac_im_usrlibdir" in
2294 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2301 if test "$ac_x_includes" = NO
; then
2302 # Guess where to find include files, by looking for this one X11 .h file.
2303 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2305 # First, try using that file with no special directory specified.
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <$x_direct_test_include>
2311 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure
:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err
=`grep -v '^ *+' conftest.out`
2314 if test -z "$ac_err"; then
2316 # We can compile using X headers with no special include directory.
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 # Look for the header file in a standard set of common directories.
2324 # Check X11 before X11Rn because it is often a symlink to the current release.
2327 /usr
/X11R
6/include \
2328 /usr
/X11R
5/include \
2329 /usr
/X11R
4/include \
2332 /usr
/include
/X11R6 \
2333 /usr
/include
/X11R5 \
2334 /usr
/include
/X11R4 \
2336 /usr
/local
/X11
/include \
2337 /usr
/local
/X11R
6/include \
2338 /usr
/local
/X11R
5/include \
2339 /usr
/local
/X11R
4/include \
2341 /usr
/local
/include
/X11 \
2342 /usr
/local
/include
/X11R6 \
2343 /usr
/local
/include
/X11R5 \
2344 /usr
/local
/include
/X11R4 \
2348 /usr
/XFree86
/include
/X11 \
2351 /usr
/local
/include \
2352 /usr
/unsupported
/include \
2353 /usr
/athena
/include \
2354 /usr
/local
/x11r
5/include \
2355 /usr
/lpp
/Xamples
/include \
2357 /usr
/openwin
/include \
2358 /usr
/openwin
/share
/include \
2361 if test -r "$ac_dir/$x_direct_test_include"; then
2362 ac_x_includes
=$ac_dir
2368 fi # $ac_x_includes = NO
2370 if test "$ac_x_libraries" = NO
; then
2371 # Check for the libraries.
2373 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2374 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2376 # See if we find them without any special options.
2377 # Don't add to $LIBS permanently.
2378 ac_save_LIBS
="$LIBS"
2379 LIBS
="-l$x_direct_test_library $LIBS"
2380 cat > conftest.
$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2385 ${x_direct_test_function}()
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2390 LIBS
="$ac_save_LIBS"
2391 # We can link X programs with no special library path.
2394 echo "configure: failed program was:" >&5
2395 cat conftest.
$ac_ext >&5
2397 LIBS
="$ac_save_LIBS"
2398 # First see if replacing the include by lib works.
2399 # Check X11 before X11Rn because it is often a symlink to the current release.
2400 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2411 /usr
/local
/X11
/lib \
2412 /usr
/local
/X11R
6/lib \
2413 /usr
/local
/X11R
5/lib \
2414 /usr
/local
/X11R
4/lib \
2416 /usr
/local
/lib
/X11 \
2417 /usr
/local
/lib
/X11R6 \
2418 /usr
/local
/lib
/X11R5 \
2419 /usr
/local
/lib
/X11R4 \
2423 /usr
/XFree86
/lib
/X11 \
2427 /usr
/unsupported
/lib \
2429 /usr
/local
/x11r
5/lib \
2430 /usr
/lpp
/Xamples
/lib \
2434 /usr
/openwin
/share
/lib \
2437 for ac_extension
in a so sl
; do
2438 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2439 ac_x_libraries
=$ac_dir
2446 fi # $ac_x_libraries = NO
2448 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2449 # Didn't find X anywhere. Cache the known absence of X.
2450 ac_cv_have_x
="have_x=no"
2452 # Record where we found X for the cache.
2453 ac_cv_have_x
="have_x=yes \
2454 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2458 eval "$ac_cv_have_x"
2461 if test "$have_x" != yes; then
2462 echo "$ac_t""$have_x" 1>&6
2465 # If each of the values was on the command line, it overrides each guess.
2466 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2467 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2468 # Update the cache value to reflect the command line values.
2469 ac_cv_have_x
="have_x=yes \
2470 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2471 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2474 if test "$no_x" = yes; then
2475 # Not all programs may use this symbol, but it does not hurt to define it.
2476 cat >> confdefs.h
<<\EOF
2477 #define X_DISPLAY_MISSING 1
2480 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2482 if test -n "$x_includes"; then
2483 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2486 # It would also be nice to do this for all -L options, not just this one.
2487 if test -n "$x_libraries"; then
2488 X_LIBS
="$X_LIBS -L$x_libraries"
2489 # For Solaris; some versions of Sun CC require a space after -R and
2490 # others require no space. Words are not sufficient . . . .
2491 case "`(uname -sr) 2>/dev/null`" in
2493 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether -R must be followed by a space" >&5
2495 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2504 if { (eval echo configure
:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2514 if test $ac_R_nospace = yes; then
2515 echo "$ac_t""no" 1>&6
2516 X_LIBS
="$X_LIBS -R$x_libraries"
2518 LIBS
="$ac_xsave_LIBS -R $x_libraries"
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure
:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2531 echo "configure: failed program was:" >&5
2532 cat conftest.
$ac_ext >&5
2537 if test $ac_R_space = yes; then
2538 echo "$ac_t""yes" 1>&6
2539 X_LIBS
="$X_LIBS -R $x_libraries"
2541 echo "$ac_t""neither works" 1>&6
2544 LIBS
="$ac_xsave_LIBS"
2548 # Check for system-dependent libraries X programs must link with.
2549 # Do this before checking for the system-independent R6 libraries
2550 # (-lICE), since we may need -lsocket or whatever for X linking.
2552 if test "$ISC" = yes; then
2553 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2555 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2556 # libraries were built with DECnet support. And karl@cs.umb.edu says
2557 # the Alpha needs dnet_stub (dnet does not exist).
2558 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2559 echo "configure:2560: checking for dnet_ntoa in -ldnet" >&5
2560 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_save_LIBS
="$LIBS"
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2578 if { (eval echo configure
:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 eval "ac_cv_lib_$ac_lib_var=no"
2588 LIBS
="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2595 echo "$ac_t""no" 1>&6
2598 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2599 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2600 echo "configure:2601: checking for dnet_ntoa in -ldnet_stub" >&5
2601 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_save_LIBS
="$LIBS"
2606 LIBS
="-ldnet_stub $LIBS"
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2619 if { (eval echo configure
:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 eval "ac_cv_lib_$ac_lib_var=no"
2629 LIBS
="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2636 echo "$ac_t""no" 1>&6
2641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2642 # to get the SysV transport functions.
2643 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2645 # The nsl library prevents programs from opening the X display
2646 # on Irix 5.2, according to dickey@clark.net.
2647 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2648 echo "configure:2649: checking for gethostbyname" >&5
2649 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 /* System header to define __stub macros and hopefully few prototypes,
2656 which can conflict with char gethostbyname(); below. */
2658 /* Override any gcc2 internal prototype to avoid an error. */
2659 /* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661 char gethostbyname();
2665 /* The GNU C library defines this for functions which it implements
2666 to always fail with ENOSYS. Some functions are actually named
2667 something starting with __ and the normal name is an alias. */
2668 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2676 if { (eval echo configure
:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2678 eval "ac_cv_func_gethostbyname=yes"
2680 echo "configure: failed program was:" >&5
2681 cat conftest.
$ac_ext >&5
2683 eval "ac_cv_func_gethostbyname=no"
2688 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2692 echo "$ac_t""no" 1>&6
2695 if test $ac_cv_func_gethostbyname = no
; then
2696 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2697 echo "configure:2698: checking for gethostbyname in -lnsl" >&5
2698 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 ac_save_LIBS
="$LIBS"
2704 cat > conftest.
$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2710 char gethostbyname();
2716 if { (eval echo configure
:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2718 eval "ac_cv_lib_$ac_lib_var=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 eval "ac_cv_lib_$ac_lib_var=no"
2726 LIBS
="$ac_save_LIBS"
2729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2733 echo "$ac_t""no" 1>&6
2738 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2739 # socket/setsockopt and other routines are undefined under SCO ODT
2740 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2741 # on later versions), says simon@lia.di.epfl.ch: it contains
2742 # gethostby* variants that don't use the nameserver (or something).
2743 # -lsocket must be given before -lnsl if both are needed.
2744 # We assume that if connect needs -lnsl, so does gethostbyname.
2745 echo $ac_n "checking for connect""... $ac_c" 1>&6
2746 echo "configure:2747: checking for connect" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char connect(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_connect) || defined (__stub___connect)
2774 if { (eval echo configure
:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2776 eval "ac_cv_func_connect=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 eval "ac_cv_func_connect=no"
2786 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2790 echo "$ac_t""no" 1>&6
2793 if test $ac_cv_func_connect = no
; then
2794 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2795 echo "configure:2796: checking for connect in -lsocket" >&5
2796 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 ac_save_LIBS
="$LIBS"
2801 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2805 /* Override any gcc2 internal prototype to avoid an error. */
2806 /* We use char because int might match the return type of a gcc2
2807 builtin and then its argument prototype would still apply. */
2814 if { (eval echo configure
:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2816 eval "ac_cv_lib_$ac_lib_var=yes"
2818 echo "configure: failed program was:" >&5
2819 cat conftest.
$ac_ext >&5
2821 eval "ac_cv_lib_$ac_lib_var=no"
2824 LIBS
="$ac_save_LIBS"
2827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2829 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2831 echo "$ac_t""no" 1>&6
2836 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2837 echo $ac_n "checking for remove""... $ac_c" 1>&6
2838 echo "configure:2839: checking for remove" >&5
2839 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.
$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 /* System header to define __stub macros and hopefully few prototypes,
2846 which can conflict with char remove(); below. */
2848 /* Override any gcc2 internal prototype to avoid an error. */
2849 /* We use char because int might match the return type of a gcc2
2850 builtin and then its argument prototype would still apply. */
2855 /* The GNU C library defines this for functions which it implements
2856 to always fail with ENOSYS. Some functions are actually named
2857 something starting with __ and the normal name is an alias. */
2858 #if defined (__stub_remove) || defined (__stub___remove)
2866 if { (eval echo configure
:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2868 eval "ac_cv_func_remove=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2873 eval "ac_cv_func_remove=no"
2878 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2882 echo "$ac_t""no" 1>&6
2885 if test $ac_cv_func_remove = no
; then
2886 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2887 echo "configure:2888: checking for remove in -lposix" >&5
2888 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 ac_save_LIBS
="$LIBS"
2893 LIBS
="-lposix $LIBS"
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 /* We use char because int might match the return type of a gcc2
2899 builtin and then its argument prototype would still apply. */
2906 if { (eval echo configure
:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2908 eval "ac_cv_lib_$ac_lib_var=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2913 eval "ac_cv_lib_$ac_lib_var=no"
2916 LIBS
="$ac_save_LIBS"
2919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2923 echo "$ac_t""no" 1>&6
2928 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2929 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2930 echo "configure:2931: checking for shmat" >&5
2931 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 cat > conftest.
$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 /* System header to define __stub macros and hopefully few prototypes,
2938 which can conflict with char shmat(); below. */
2940 /* Override any gcc2 internal prototype to avoid an error. */
2941 /* We use char because int might match the return type of a gcc2
2942 builtin and then its argument prototype would still apply. */
2947 /* The GNU C library defines this for functions which it implements
2948 to always fail with ENOSYS. Some functions are actually named
2949 something starting with __ and the normal name is an alias. */
2950 #if defined (__stub_shmat) || defined (__stub___shmat)
2958 if { (eval echo configure
:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2960 eval "ac_cv_func_shmat=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.
$ac_ext >&5
2965 eval "ac_cv_func_shmat=no"
2970 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2974 echo "$ac_t""no" 1>&6
2977 if test $ac_cv_func_shmat = no
; then
2978 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2979 echo "configure:2980: checking for shmat in -lipc" >&5
2980 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 ac_save_LIBS
="$LIBS"
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* Override any gcc2 internal prototype to avoid an error. */
2990 /* We use char because int might match the return type of a gcc2
2991 builtin and then its argument prototype would still apply. */
2998 if { (eval echo configure
:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3000 eval "ac_cv_lib_$ac_lib_var=yes"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 eval "ac_cv_lib_$ac_lib_var=no"
3008 LIBS
="$ac_save_LIBS"
3011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3015 echo "$ac_t""no" 1>&6
3021 # Check for libraries that X11R6 Xt/Xaw programs need.
3022 ac_save_LDFLAGS
="$LDFLAGS"
3023 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3024 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3025 # check for ICE first), but we must link in the order -lSM -lICE or
3026 # we get undefined symbols. So assume we have SM if we have ICE.
3027 # These have to be linked with before -lX11, unlike the other
3028 # libraries we check for below, so use a different variable.
3029 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3030 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3031 echo "configure:3032: checking for IceConnectionNumber in -lICE" >&5
3032 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_save_LIBS
="$LIBS"
3038 cat > conftest.
$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3044 char IceConnectionNumber();
3047 IceConnectionNumber()
3050 if { (eval echo configure
:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3052 eval "ac_cv_lib_$ac_lib_var=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.
$ac_ext >&5
3057 eval "ac_cv_lib_$ac_lib_var=no"
3060 LIBS
="$ac_save_LIBS"
3063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3065 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3067 echo "$ac_t""no" 1>&6
3070 LDFLAGS
="$ac_save_LDFLAGS"
3079 XLIBS
="$X_EXTRA_LIBS -lX11"
3081 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3082 echo "configure:3083: checking for _Xsetlocale in -lX11" >&5
3083 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_save_LIBS
="$LIBS"
3088 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3101 if { (eval echo configure
:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.
$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS
="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 X_LOCALE
="-DX_LOCALE"
3118 echo "$ac_t""no" 1>&6
3125 # Check whether --enable-shape or --disable-shape was given.
3126 if test "${enable_shape+set}" = set; then
3127 enableval
="$enable_shape"
3136 if test "$shape" = yes; then
3137 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3138 echo "configure:3139: checking for XShapeSelectInput in -lXext" >&5
3139 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 ac_save_LIBS
="$LIBS"
3144 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3151 char XShapeSelectInput();
3157 if { (eval echo configure
:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3159 eval "ac_cv_lib_$ac_lib_var=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "ac_cv_lib_$ac_lib_var=no"
3167 LIBS
="$ac_save_LIBS"
3170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 XLIBS
="-lXext $XLIBS"
3173 added_xext
=yes SHAPE
=-DSHAPE
3175 echo "$ac_t""no" 1>&6
3185 # Check whether --enable-shm or --disable-shm was given.
3186 if test "${enable_shm+set}" = set; then
3187 enableval
="$enable_shm"
3194 if test "$shm" = yes; then
3195 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3196 echo "configure:3197: checking for XShmAttach in -lXext" >&5
3197 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 ac_save_LIBS
="$LIBS"
3202 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3215 if { (eval echo configure
:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3217 eval "ac_cv_lib_$ac_lib_var=yes"
3219 echo "configure: failed program was:" >&5
3220 cat conftest.
$ac_ext >&5
3222 eval "ac_cv_lib_$ac_lib_var=no"
3225 LIBS
="$ac_save_LIBS"
3228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3232 echo "$ac_t""no" 1>&6
3237 if test "$ok" = yes; then
3238 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3239 echo "configure:3240: checking for shmget" >&5
3240 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* System header to define __stub macros and hopefully few prototypes,
3247 which can conflict with char shmget(); below. */
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3256 /* The GNU C library defines this for functions which it implements
3257 to always fail with ENOSYS. Some functions are actually named
3258 something starting with __ and the normal name is an alias. */
3259 #if defined (__stub_shmget) || defined (__stub___shmget)
3267 if { (eval echo configure
:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3269 eval "ac_cv_func_shmget=yes"
3271 echo "configure: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3274 eval "ac_cv_func_shmget=no"
3279 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3283 echo "$ac_t""no" 1>&6
3289 if test "$ok" = yes; then
3290 if test "$added_xext" = no
; then
3291 XLIBS
="-lXext $XLIBS"
3310 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3311 if test "${with_gfx_libs+set}" = set; then
3312 withval
="$with_gfx_libs"
3319 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3320 if test "${with_gfx_incs+set}" = set; then
3321 withval
="$with_gfx_incs"
3322 GFXFLAGS
="$withval" GFX_INC_PATH
=$withval
3324 GFXFLAGS
="" GFX_INC_PATH
=""
3332 # Check whether --enable-xpm or --disable-xpm was given.
3333 if test "${enable_xpm+set}" = set; then
3334 enableval
="$enable_xpm"
3341 if test "$xpm" = yes; then
3342 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3343 echo "configure:3344: checking for XpmCreatePixmapFromData in -lXpm" >&5
3344 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 ac_save_LIBS
="$LIBS"
3349 LIBS
="-lXpm $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3350 cat > conftest.
$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* Override any gcc2 internal prototype to avoid an error. */
3354 /* We use char because int might match the return type of a gcc2
3355 builtin and then its argument prototype would still apply. */
3356 char XpmCreatePixmapFromData();
3359 XpmCreatePixmapFromData()
3362 if { (eval echo configure
:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3364 eval "ac_cv_lib_$ac_lib_var=yes"
3366 echo "configure: failed program was:" >&5
3367 cat conftest.
$ac_ext >&5
3369 eval "ac_cv_lib_$ac_lib_var=no"
3372 LIBS
="$ac_save_LIBS"
3375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3379 echo "$ac_t""no" 1>&6
3384 if test "$my_libok" = yes; then
3385 my_old_cppflags
=$CPPFLAGS
3386 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3387 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3388 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3389 echo "configure:3390: checking for X11/xpm.h" >&5
3390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.
$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <X11/xpm.h>
3398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3399 { (eval echo configure
:3400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3400 ac_err
=`grep -v '^ *+' conftest.out`
3401 if test -z "$ac_err"; then
3403 eval "ac_cv_header_$ac_safe=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 eval "ac_cv_header_$ac_safe=no"
3413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 GFXFLAGS
="$GFXFLAGS -DUSE_XPM" GFXLIBS
="$GFXLIBS -lXpm"
3418 echo "$ac_t""no" 1>&6
3419 supported_gfx
="XPM (builtin)"
3422 CPPFLAGS
=$my_old_cppflags
3436 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
3437 echo "configure:3438: checking for gzread in -lz" >&5
3438 ac_lib_var
=`echo z'_'gzread | sed 'y%./+-%__p_%'`
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 ac_save_LIBS
="$LIBS"
3443 LIBS
="-lz $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3456 if { (eval echo configure
:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3458 eval "ac_cv_lib_$ac_lib_var=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3463 eval "ac_cv_lib_$ac_lib_var=no"
3466 LIBS
="$ac_save_LIBS"
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3473 echo "$ac_t""no" 1>&6
3480 # Check whether --enable-png or --disable-png was given.
3481 if test "${enable_png+set}" = set; then
3482 enableval
="$enable_png"
3490 if test "$png" = yes -a "$zlib" = yes ; then
3491 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3492 echo "configure:3493: checking for png_get_valid in -lpng" >&5
3493 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS
="$LIBS"
3498 LIBS
="-lpng $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm $LIBS"
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505 char png_get_valid();
3511 if { (eval echo configure
:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3518 eval "ac_cv_lib_$ac_lib_var=no"
3521 LIBS
="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3528 echo "$ac_t""no" 1>&6
3533 if test "$my_libok" = yes; then
3534 my_old_cppflags
=$CPPFLAGS
3535 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3536 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
3537 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3538 echo "configure:3539: checking for png.h" >&5
3539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 cat > conftest.
$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3548 { (eval echo configure
:3549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3549 ac_err
=`grep -v '^ *+' conftest.out`
3550 if test -z "$ac_err"; then
3552 eval "ac_cv_header_$ac_safe=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 eval "ac_cv_header_$ac_safe=no"
3562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3564 GFXLIBS
="$GFXLIBS -lpng -lz" GFXFLAGS
="$GFXFLAGS -DUSE_PNG"
3565 supported_gfx
="$supported_gfx PNG"
3567 echo "$ac_t""no" 1>&6
3570 CPPFLAGS
=$my_old_cppflags
3576 # Check whether --enable-jpeg or --disable-jpeg was given.
3577 if test "${enable_jpeg+set}" = set; then
3578 enableval
="$enable_jpeg"
3585 if test "$jpeg" = yes; then
3586 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3587 echo "configure:3588: checking for jpeg_destroy_compress in -ljpeg" >&5
3588 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 ac_save_LIBS
="$LIBS"
3593 LIBS
="-ljpeg $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3594 cat > conftest.
$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char jpeg_destroy_compress();
3603 jpeg_destroy_compress()
3606 if { (eval echo configure
:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3608 eval "ac_cv_lib_$ac_lib_var=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 eval "ac_cv_lib_$ac_lib_var=no"
3616 LIBS
="$ac_save_LIBS"
3619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3623 echo "$ac_t""no" 1>&6
3628 if test "$my_libok" = yes; then
3629 my_old_cppflags
=$CPPFLAGS
3630 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure
:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err
=`grep -v '^ *+' conftest.out`
3639 if test -z "$ac_err"; then
3641 GFXLIBS
="$GFXLIBS -ljpeg" GFXFLAGS
="$GFXFLAGS -DUSE_JPEG"
3642 supported_gfx
="$supported_gfx JPEG"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.
$ac_ext >&5
3649 CPPFLAGS
=$my_old_cppflags
3655 # Check whether --enable-gif or --disable-gif was given.
3656 if test "${enable_gif+set}" = set; then
3657 enableval
="$enable_gif"
3664 if test "$gif" = yes; then
3666 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3667 echo "configure:3668: checking for DGifOpenFileName in -lungif" >&5
3668 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 ac_save_LIBS
="$LIBS"
3673 LIBS
="-lungif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3680 char DGifOpenFileName();
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS
="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 my_libok
=yes my_libname
=ungif
3703 echo "$ac_t""no" 1>&6
3704 retry
=yes my_libok
=no
3707 if test "$retry" = yes; then
3708 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3709 echo "configure:3710: checking for DGifOpenFileName in -lgif" >&5
3710 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 ac_save_LIBS
="$LIBS"
3715 LIBS
="-lgif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 /* We use char because int might match the return type of a gcc2
3721 builtin and then its argument prototype would still apply. */
3722 char DGifOpenFileName();
3728 if { (eval echo configure
:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3730 eval "ac_cv_lib_$ac_lib_var=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.
$ac_ext >&5
3735 eval "ac_cv_lib_$ac_lib_var=no"
3738 LIBS
="$ac_save_LIBS"
3741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 my_libok
=yes my_libname
=gif
3745 echo "$ac_t""no" 1>&6
3751 if test "$my_libok" = yes; then
3752 my_old_cppflags
=$CPPFLAGS
3753 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3754 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3755 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3756 echo "configure:3757: checking for gif_lib.h" >&5
3757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <gif_lib.h>
3765 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3766 { (eval echo configure
:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3767 ac_err
=`grep -v '^ *+' conftest.out`
3768 if test -z "$ac_err"; then
3770 eval "ac_cv_header_$ac_safe=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.
$ac_ext >&5
3776 eval "ac_cv_header_$ac_safe=no"
3780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 GFXLIBS
="$GFXLIBS -l$my_libname" GFXFLAGS
="$GFXFLAGS -DUSE_GIF"
3783 supported_gfx
="$supported_gfx GIF"
3785 echo "$ac_t""no" 1>&6
3788 CPPFLAGS
=$my_old_cppflags
3794 # Check whether --enable-tiff or --disable-tiff was given.
3795 if test "${enable_tiff+set}" = set; then
3796 enableval
="$enable_tiff"
3804 # TIFF can optionally have JPEG and/or zlib support. Must find out
3805 # when they are supported so that correct library flags are passed during
3806 # detection and linkage
3809 # By default use xpm icons if tiff is not found.
3813 if test "$tif" = yes; then
3815 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3816 echo "configure:3817: checking for TIFFGetVersion in -ltiff" >&5
3817 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 ac_save_LIBS
="$LIBS"
3822 LIBS
="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829 char TIFFGetVersion();
3835 if { (eval echo configure
:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.
$ac_ext >&5
3842 eval "ac_cv_lib_$ac_lib_var=no"
3845 LIBS
="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 my_libok
=yes my_libname
="-ltiff"
3852 echo "$ac_t""no" 1>&6
3856 unset ac_cv_lib_tiff_TIFFGetVersion
3857 if test "$my_libok" = no
; then
3858 if test "$zlib" = "yes"; then
3859 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3860 echo "configure:3861: checking for TIFFGetVersion in -ltiff" >&5
3861 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS
="$LIBS"
3866 LIBS
="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char TIFFGetVersion();
3879 if { (eval echo configure
:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS
="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 my_libok
=yes my_libname
="-ltiff -lz"
3896 echo "$ac_t""no" 1>&6
3903 if test "$my_libok" = no
; then
3904 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
3905 echo "configure:3906: checking for TIFFGetVersion in -ltiff34" >&5
3906 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_save_LIBS
="$LIBS"
3911 LIBS
="-ltiff34 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char TIFFGetVersion();
3924 if { (eval echo configure
:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS
="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 my_libok
=yes my_libname
="-ltiff34"
3941 echo "$ac_t""no" 1>&6
3947 if test "$my_libok" = yes; then
3948 my_old_cppflags
=$CPPFLAGS
3949 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3950 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
3951 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3952 echo "configure:3953: checking for tiffio.h" >&5
3953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3961 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3962 { (eval echo configure
:3963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3963 ac_err
=`grep -v '^ *+' conftest.out`
3964 if test -z "$ac_err"; then
3966 eval "ac_cv_header_$ac_safe=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 eval "ac_cv_header_$ac_safe=no"
3976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 GFXFLAGS
="$GFXFLAGS -DUSE_TIFF" GFXLIBS
="$my_libname $GFXLIBS"
3979 ICONEXT
="tiff" supported_gfx
="$supported_gfx TIFF"
3981 echo "$ac_t""no" 1>&6
3984 CPPFLAGS
=$my_old_cppflags
3998 # Check whether --enable-debug or --disable-debug was given.
3999 if test "${enable_debug+set}" = set; then
4000 enableval
="$enable_debug"
4007 if test "$enable_debug" = yes; then
4009 # Efence makes things too slow. Add it by hand in the Makefiles
4010 # if it is really needed.
4011 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4017 # Check whether --enable-sound or --disable-sound was given.
4018 if test "${enable_sound+set}" = set; then
4019 enableval
="$enable_sound"
4025 if test "$sound" = yes; then
4026 SOUND
="#define WMSOUND"
4028 SOUND
="#undef WMSOUND"
4033 # AC_PREFIX_PROGRAM(wmaker)
4035 if test "${prefix}" = "NONE"; then
4038 if test "${exec_prefix}" = "NONE"; then
4039 exec_prefix
='$(prefix)'
4042 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4043 if test "${with_pixmapdir+set}" = set; then
4044 withval
="$with_pixmapdir"
4049 if test "x$with_pixmapdir" != "x"; then
4050 pixmapdir
=$with_pixmapdir
4052 pixmapdir
='$(datadir)/pixmaps'
4061 # Check whether --with-appspath or --without-appspath was given.
4062 if test "${with_appspath+set}" = set; then
4063 withval
="$with_appspath"
4068 if test "x$appspath" = "x"; then
4069 gnustepdir
='$(prefix)/GNUstep'
4071 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4072 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
4073 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
4076 with_appspath
=$gnustepdir/Apps
4079 wprefsdir
=$with_appspath/WPrefs.app
4084 # Check whether --enable-single-icon or --disable-single-icon was given.
4085 if test "${enable_single_icon+set}" = set; then
4086 enableval
="$enable_single_icon"
4087 if test "$enableval" = yes; then
4088 REDUCE_APPICONS
="#define REDUCE_APPICONS"
4090 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4093 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4099 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4100 echo "configure:4101: checking for sys/wait.h that is POSIX.1 compatible" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.
$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4108 #include <sys/wait.h>
4110 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4113 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4121 if { (eval echo configure
:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 ac_cv_header_sys_wait_h
=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 ac_cv_header_sys_wait_h
=no
4133 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4134 if test $ac_cv_header_sys_wait_h = yes; then
4135 cat >> confdefs.h
<<\EOF
4136 #define HAVE_SYS_WAIT_H 1
4141 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h libintl.h sys
/select.h
4143 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_hdr" >&5
4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155 { (eval echo configure
:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156 ac_err
=`grep -v '^ *+' conftest.out`
4157 if test -z "$ac_err"; then
4159 eval "ac_cv_header_$ac_safe=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 eval "ac_cv_header_$ac_safe=no"
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4172 cat >> confdefs.h
<<EOF
4173 #define $ac_tr_hdr 1
4177 echo "$ac_t""no" 1>&6
4184 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4185 echo "configure:4186: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4186 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.
$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 #include <sys/types.h>
4194 /* NetBSD declares sys_siglist in unistd.h. */
4195 #ifdef HAVE_UNISTD_H
4199 char *msg = *(sys_siglist + 1);
4202 if { (eval echo configure
:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 ac_cv_decl_sys_siglist
=yes
4206 echo "configure: failed program was:" >&5
4207 cat conftest.
$ac_ext >&5
4209 ac_cv_decl_sys_siglist
=no
4214 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4215 if test $ac_cv_decl_sys_siglist = yes; then
4216 cat >> confdefs.h
<<\EOF
4217 #define SYS_SIGLIST_DECLARED 1
4222 echo $ac_n "checking for working const""... $ac_c" 1>&6
4223 echo "configure:4224: checking for working const" >&5
4224 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4233 /* Ultrix mips cc rejects this. */
4234 typedef int charset[2]; const charset x;
4235 /* SunOS 4.1.1 cc rejects this. */
4236 char const *const *ccp;
4238 /* NEC SVR4.0.2 mips cc rejects this. */
4239 struct point {int x, y;};
4240 static struct point const zero = {0,0};
4241 /* AIX XL C 1.02.0.0 rejects this.
4242 It does not let you subtract one const X* pointer from another in an arm
4243 of an if-expression whose if-part is not a constant expression */
4244 const char *g = "string";
4245 ccp = &g + (g ? g-g : 0);
4246 /* HPUX 7.0 cc rejects these. */
4249 ccp = (char const *const *) p;
4250 { /* SCO 3.2v4 cc rejects this. */
4252 char const *s = 0 ? (char *) 0 : (char const *) 0;
4256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4258 const int *foo = &x[0];
4261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4262 typedef const int *iptr;
4266 { /* AIX XL C 1.02.0.0 rejects this saying
4267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4268 struct s { int j; const int *ap[3]; };
4269 struct s *b; b->j = 5;
4271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4277 if { (eval echo configure
:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4289 echo "$ac_t""$ac_cv_c_const" 1>&6
4290 if test $ac_cv_c_const = no
; then
4291 cat >> confdefs.h
<<\EOF
4297 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4298 echo "configure:4299: checking for ANSI C header files" >&5
4299 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 cat > conftest.
$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4310 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4311 { (eval echo configure
:4312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4312 ac_err
=`grep -v '^ *+' conftest.out`
4313 if test -z "$ac_err"; then
4315 ac_cv_header_stdc
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 ac_cv_header_stdc
=no
4325 if test $ac_cv_header_stdc = yes; then
4326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4327 cat > conftest.
$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 egrep "memchr" >/dev
/null
2>&1; then
4337 ac_cv_header_stdc
=no
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat > conftest.
$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 egrep "free" >/dev
/null
2>&1; then
4355 ac_cv_header_stdc
=no
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then
4366 cat > conftest.
$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4370 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4373 int main () { int i; for (i = 0; i < 256; i++)
4374 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4378 if { (eval echo configure
:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4382 echo "configure: failed program was:" >&5
4383 cat conftest.
$ac_ext >&5
4385 ac_cv_header_stdc
=no
4393 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4394 if test $ac_cv_header_stdc = yes; then
4395 cat >> confdefs.h
<<\EOF
4396 #define STDC_HEADERS 1
4401 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4402 echo "configure:4403: checking for size_t" >&5
4403 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <sys/types.h>
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4418 ac_cv_type_size_t
=yes
4421 ac_cv_type_size_t
=no
4426 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4427 if test $ac_cv_type_size_t = no
; then
4428 cat >> confdefs.h
<<\EOF
4429 #define size_t unsigned
4434 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4435 echo "configure:4436: checking for pid_t" >&5
4436 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.
$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <sys/types.h>
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4451 ac_cv_type_pid_t
=yes
4459 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4460 if test $ac_cv_type_pid_t = no
; then
4461 cat >> confdefs.h
<<\EOF
4467 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4468 echo "configure:4469: checking whether time.h and sys/time.h may both be included" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 #include <sys/types.h>
4476 #include <sys/time.h>
4482 if { (eval echo configure
:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4484 ac_cv_header_time
=yes
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 ac_cv_header_time
=no
4494 echo "$ac_t""$ac_cv_header_time" 1>&6
4495 if test $ac_cv_header_time = yes; then
4496 cat >> confdefs.h
<<\EOF
4497 #define TIME_WITH_SYS_TIME 1
4507 #AC_ARG_ENABLE(shared,
4508 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4511 if test "$enable_shared" = yes; then
4512 if test "$GCC" = yes; then
4514 LDSHARED
='$CC -shared'
4516 # find system name and corresponding cc options
4517 case `(uname -sr || echo unknown) 2>/dev/null` in
4519 _CFLAGS
="-fast -xcg89 -KPIC -R."
4525 _CFLAGS
="-ansi -rpath ."
4526 LDSHARED
='$CC -shared';;
4528 _CFLAGS
="-dy -KPIC "
4529 LDSHARED
='$CC -dy -KPIC -G';;
4533 SHAREDLIBS
='libz.sl';;
4536 LDSHARED
='$CC -shared';;
4540 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4541 echo "configure:4542: checking for shared library support" >&5
4545 int hello() { printf("hello\n"); }
4549 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4550 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4551 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4552 CFLAGS
="$CFLAGS $_CFLAGS"
4553 WRASTERLIB
='libwraster.so.$(WRASTER_VER)'
4554 WINGSLIB
='libWINGs.so.$(WINGS_VER)'
4555 echo "$ac_t""yes, building shared" 1>&6
4558 WRASTERLIB
='libwraster.a'
4559 WINGSLIB
='libWINGs.a'
4560 echo "$ac_t""no, building static" 1>&6
4562 rm -f $test.co
$test.so
4565 #AC_SUBST(WRASTER_VER)
4566 #AC_SUBST(WINGS_VER)
4567 #AC_SUBST(WRASTERLIB)
4568 # AC_SUBST(WINGSLIB)
4569 # AC_SUBST(LDSHARED)
4576 cat > confcache
<<\EOF
4577 # This file is a shell script that caches the results of configure
4578 # tests run on this system so they can be shared between configure
4579 # scripts and configure runs. It is not useful on other systems.
4580 # If it contains results you don't want to keep, you may remove or edit it.
4582 # By default, configure uses ./config.cache as the cache file,
4583 # creating it if it does not exist already. You can give configure
4584 # the --cache-file=FILE option to use a different cache file; that is
4585 # what configure does when it calls configure scripts in
4586 # subdirectories, so they share the cache.
4587 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4588 # config.status only pays attention to the cache file if you give it the
4589 # --recheck option to rerun configure.
4592 # The following way of writing the cache mishandles newlines in values,
4593 # but we know of no workaround that is simple, portable, and efficient.
4594 # So, don't put newlines in cache variables' values.
4595 # Ultrix sh set writes to stderr and can't be redirected directly,
4596 # and sets the high bit in the cache file unless we assign to the vars.
4598 case `(ac_space=' '; set) 2>&1` in
4600 # `set' does not quote correctly, so add quotes (double-quote substitution
4601 # turns \\\\ into \\, and sed turns \\ into \).
4603 -e "s/'/'\\\\''/g" \
4604 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4607 # `set' quotes correctly as required by POSIX, so do not add quotes.
4608 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4611 if cmp -s $cache_file confcache
; then
4614 if test -w $cache_file; then
4615 echo "updating cache $cache_file"
4616 cat confcache
> $cache_file
4618 echo "not updating unwritable cache $cache_file"
4623 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4625 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4626 # Let make expand exec_prefix.
4627 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4629 # Any assignment to VPATH causes Sun make to only execute
4630 # the first set of double-colon rules, so remove it if not needed.
4631 # If there is a colon in the path, we need to keep it.
4632 if test "x$srcdir" = x.
; then
4633 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4636 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4638 DEFS
=-DHAVE_CONFIG_H
4640 # Without the "./", some shells look in PATH for config.status.
4641 : ${CONFIG_STATUS=./config.status}
4643 echo creating
$CONFIG_STATUS
4644 rm -f $CONFIG_STATUS
4645 cat > $CONFIG_STATUS <<EOF
4647 # Generated automatically by configure.
4648 # Run this file to recreate the current configuration.
4649 # This directory was configured as follows,
4650 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4652 # $0 $ac_configure_args
4654 # Compiler output produced by configure, useful for debugging
4655 # configure, is in ./config.log if it exists.
4657 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4660 case "\$ac_option" in
4661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4662 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4663 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4664 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4665 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4667 -help | --help | --hel | --he | --h)
4668 echo "\$ac_cs_usage"; exit 0 ;;
4669 *) echo "\$ac_cs_usage"; exit 1 ;;
4673 ac_given_srcdir=$srcdir
4674 ac_given_INSTALL="$INSTALL"
4676 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4677 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4678 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4679 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4680 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4681 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4682 WindowMaker/IconSets/Makefile \
4683 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4684 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4686 cat >> $CONFIG_STATUS <<EOF
4688 # Protect against being on the right side of a sed subst in config.status.
4689 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4690 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4693 s%@CFLAGS@%$CFLAGS%g
4694 s%@CPPFLAGS@%$CPPFLAGS%g
4695 s%@CXXFLAGS@%$CXXFLAGS%g
4697 s%@LDFLAGS@%$LDFLAGS%g
4699 s%@exec_prefix@%$exec_prefix%g
4700 s%@prefix@%$prefix%g
4701 s%@program_transform_name@%$program_transform_name%g
4702 s%@bindir@%$bindir%g
4703 s%@sbindir@%$sbindir%g
4704 s%@libexecdir@%$libexecdir%g
4705 s%@datadir@%$datadir%g
4706 s%@sysconfdir@%$sysconfdir%g
4707 s%@sharedstatedir@%$sharedstatedir%g
4708 s%@localstatedir@%$localstatedir%g
4709 s%@libdir@%$libdir%g
4710 s%@includedir@%$includedir%g
4711 s%@oldincludedir@%$oldincludedir%g
4712 s%@infodir@%$infodir%g
4713 s%@mandir@%$mandir%g
4714 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4715 s%@INSTALL_DATA@%$INSTALL_DATA%g
4716 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4717 s%@PACKAGE@%$PACKAGE%g
4718 s%@VERSION@%$VERSION%g
4719 s%@ACLOCAL@%$ACLOCAL%g
4720 s%@AUTOCONF@%$AUTOCONF%g
4721 s%@AUTOMAKE@%$AUTOMAKE%g
4722 s%@AUTOHEADER@%$AUTOHEADER%g
4723 s%@MAKEINFO@%$MAKEINFO%g
4724 s%@SET_MAKE@%$SET_MAKE%g
4725 s%@subdirs@%$subdirs%g
4727 s%@host_alias@%$host_alias%g
4728 s%@host_cpu@%$host_cpu%g
4729 s%@host_vendor@%$host_vendor%g
4730 s%@host_os@%$host_os%g
4732 s%@RANLIB@%$RANLIB%g
4735 s%@ALLOCA@%$ALLOCA%g
4736 s%@CPP_PATH@%$CPP_PATH%g
4737 s%@XGETTEXT@%$XGETTEXT%g
4738 s%@I18N_MB@%$I18N_MB%g
4740 s%@INTLIBS@%$INTLIBS%g
4741 s%@NLSDIR@%$NLSDIR%g
4742 s%@MOFILES@%$MOFILES%g
4743 s%@WPMOFILES@%$WPMOFILES%g
4744 s%@X_CFLAGS@%$X_CFLAGS%g
4745 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4746 s%@X_LIBS@%$X_LIBS%g
4747 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4748 s%@X_LOCALE@%$X_LOCALE%g
4752 s%@XCFLAGS@%$XCFLAGS%g
4753 s%@XLFLAGS@%$XLFLAGS%g
4754 s%@GFXFLAGS@%$GFXFLAGS%g
4755 s%@GFXLFLAGS@%$GFXLFLAGS%g
4756 s%@GFXLIBS@%$GFXLIBS%g
4757 s%@ICONEXT@%$ICONEXT%g
4758 s%@DFLAGS@%$DFLAGS%g
4760 s%@pixmapdir@%$pixmapdir%g
4761 s%@wprefsdir@%$wprefsdir%g
4762 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4767 cat >> $CONFIG_STATUS <<\EOF
4769 # Split the substitutions into bite-sized pieces for seds with
4770 # small command number limits, like on Digital OSF/1 and HP-UX.
4771 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4772 ac_file
=1 # Number of current file.
4773 ac_beg
=1 # First line for current file.
4774 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4777 while $ac_more_lines; do
4778 if test $ac_beg -gt 1; then
4779 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4781 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4783 if test ! -s conftest.s
$ac_file; then
4785 rm -f conftest.s
$ac_file
4787 if test -z "$ac_sed_cmds"; then
4788 ac_sed_cmds
="sed -f conftest.s$ac_file"
4790 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4792 ac_file
=`expr $ac_file + 1`
4794 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4797 if test -z "$ac_sed_cmds"; then
4802 cat >> $CONFIG_STATUS <<EOF
4804 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4805 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4806 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4807 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4808 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4809 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4810 WindowMaker/IconSets/Makefile \
4811 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4812 WPrefs.app/po/Makefile "}
4814 cat >> $CONFIG_STATUS <<\EOF
4815 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4818 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4819 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4820 *) ac_file_in
="${ac_file}.in" ;;
4823 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4825 # Remove last slash and all that follows it. Not all systems have dirname.
4826 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4828 # The file is in a subdirectory.
4829 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4830 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4831 # A "../" for each directory in $ac_dir_suffix.
4832 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4834 ac_dir_suffix
= ac_dots
=
4837 case "$ac_given_srcdir" in
4839 if test -z "$ac_dots"; then top_srcdir
=.
4840 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4841 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4843 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4844 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4847 case "$ac_given_INSTALL" in
4848 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4849 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4852 echo creating
"$ac_file"
4854 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4856 *Makefile
*) ac_comsub
="1i\\
4857 # $configure_input" ;;
4861 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4863 s%@configure_input@%$configure_input%g
4864 s%@srcdir@%$srcdir%g
4865 s%@top_srcdir@%$top_srcdir%g
4866 s%@INSTALL@%$INSTALL%g
4867 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4871 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4872 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4874 # ac_d sets the value in "#define NAME VALUE" lines.
4875 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4876 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4879 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4880 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4881 ac_uB
='\([ ]\)%\1#\2define\3'
4884 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4885 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4886 ac_eB
='$%\1#\2define\3'
4890 if test "${CONFIG_HEADERS+set}" != set; then
4892 cat >> $CONFIG_STATUS <<EOF
4893 CONFIG_HEADERS="src/config.h"
4895 cat >> $CONFIG_STATUS <<\EOF
4897 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4900 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4901 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4902 *) ac_file_in
="${ac_file}.in" ;;
4905 echo creating
$ac_file
4907 rm -f conftest.frag conftest.
in conftest.out
4908 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4909 cat $ac_file_inputs > conftest.
in
4913 # Transform confdefs.h into a sed script conftest.vals that substitutes
4914 # the proper values into config.h.in to produce config.h. And first:
4915 # Protect against being on the right side of a sed subst in config.status.
4916 # Protect against being in an unquoted here document in config.status.
4918 cat > conftest.hdr
<<\EOF
4921 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4925 sed -n -f conftest.hdr confdefs.h > conftest.vals
4928 # This sed command replaces #undef with comments. This is necessary, for
4929 # example, in the case of _POSIX_SOURCE, which is predefined and required
4930 # on some systems where configure will not decide to define it.
4931 cat >> conftest.vals <<\EOF
4932 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4935 # Break up conftest.vals because some shells have a limit on
4936 # the size of here documents, and old seds have small limits too.
4941 ac_lines=`grep -c . conftest.vals
`
4942 # grep -c gives empty output for an empty file on some AIX systems.
4943 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4944 # Write a limited-size here document to conftest.frag.
4945 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4946 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4948 sed -f conftest.frag conftest.in > conftest.out
4950 mv conftest.out conftest.in
4952 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4954 mv conftest.tail conftest.vals
4958 cat >> $CONFIG_STATUS <<\EOF
4959 rm -f conftest.frag conftest.h
4960 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4961 cat conftest.in >> conftest.h
4963 if cmp -s $ac_file conftest.h 2>/dev/null; then
4964 echo "$ac_file is unchanged"
4967 # Remove last slash and all that follows it. Not all systems have dirname.
4968 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4970 # The file is in a subdirectory.
4971 test ! -d "$ac_dir" && mkdir "$ac_dir"
4974 mv conftest.h $ac_file
4979 cat >> $CONFIG_STATUS <<EOF
4983 cat >> $CONFIG_STATUS <<\EOF
4984 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
4988 chmod +x $CONFIG_STATUS
4989 rm -fr confdefs* $ac_clean_files
4990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4992 if test "$no_recursion" != yes; then
4994 # Remove --cache-file and --srcdir arguments so they do not pile up.
4995 ac_sub_configure_args=
4997 for ac_arg in $ac_configure_args; do
4998 if test -n "$ac_prev"; then
5003 -cache-file | --cache-file | --cache-fil | --cache-fi \
5004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5005 ac_prev=cache_file ;;
5006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5013 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5017 for ac_config_dir in libPropList; do
5019 # Do not complain, so a configure script can configure whichever
5020 # parts of a large source tree are present.
5021 if test ! -d $srcdir/$ac_config_dir; then
5025 echo configuring in $ac_config_dir
5030 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5032 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5040 # A "../" for each directory in /$ac_config_dir.
5041 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5044 .) # No --srcdir option. We are building in place.
5045 ac_sub_srcdir=$srcdir ;;
5046 /*) # Absolute path.
5047 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5049 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5052 # Check for guested configure; otherwise get Cygnus style configure.
5053 if test -f $ac_sub_srcdir/configure; then
5054 ac_sub_configure=$ac_sub_srcdir/configure
5055 elif test -f $ac_sub_srcdir/configure.in; then
5056 ac_sub_configure=$ac_configure
5058 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5062 # The recursion is here.
5063 if test -n "$ac_sub_configure"; then
5065 # Make the cache file name correct relative to the subdirectory.
5066 case "$cache_file" in
5067 /*) ac_sub_cache_file=$cache_file ;;
5069 ac_sub_cache_file="$ac_dots$cache_file" ;;
5071 case "$ac_given_INSTALL" in
5072 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5073 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5076 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5077 # The eval makes quoting arguments work.
5078 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5081 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5093 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5094 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5099 supported_gfx="$supported_gfx PPM (built-in)"
5101 if test "x$MOFILES" = "x"; then
5108 echo "Window Maker was configured as follows:"
5110 echo "Installation path prefix: $prefix"
5111 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
5112 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5113 echo "Graphic format libraries: $supported_gfx"
5114 echo "Sound support: $sound"
5115 echo "Translated message files to install: $mof"
5116 if test "x$MOFILES" != "x"; then
5117 echo "Installation path of translated messages: $NLSDIR"