3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-libs-from pass compiler flags to look for libraries"
27 --with-incs-from pass compiler flags to look for header files"
29 --with-nlsdir=PATH specify where the locale stuff should go "
31 --enable-gnome enable stuff needed for GNOME "
33 --enable-kde enable support for KDE window manager (kwm) hints "
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
37 --enable-lite disable some stuff (dont use it) "
39 --with-x use the X Window System"
41 --disable-locale disable use of X locale support"
43 --enable-modelock XKB keyboard language status support"
45 --disable-shape disable shaped window extension support"
47 --disable-xinerama disable XInerama extension support"
49 --disable-shm disable usage of MIT-SHM extension"
51 --disable-xpm disable use of XPM pixmaps through libXpm"
53 --disable-png disable PNG support through libpng"
55 --disable-jpeg disable JPEG support through libjpeg"
57 --disable-gif disable GIF support through libgif or libungif"
59 --disable-tiff disable use of TIFF images through libtiff"
61 --enable-debug enable debugging "
63 --disable-sound disable sound support "
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
67 --with-appspath=PATH specify the directory for GNUstep applications"
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 --enable-usermenu user defined menus for applications
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=src
/WindowMaker.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
588 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
589 if test -f $ac_dir/install-sh
; then
591 ac_install_sh
="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh
; then
595 ac_install_sh
="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 ac_config_guess
=$ac_aux_dir/config.guess
603 ac_config_sub
=$ac_aux_dir/config.sub
604 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
606 # Find a good install program. We prefer a C program (faster),
607 # so one script is as good as another. But avoid the broken or
608 # incompatible versions:
609 # SysV /etc/install, /usr/sbin/install
610 # SunOS /usr/etc/install
613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616 # ./install, which can be erroneously created by make from ./install.sh.
617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618 echo "configure:619: checking for a BSD compatible install" >&5
619 if test -z "$INSTALL"; then
620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
624 for ac_dir
in $PATH; do
625 # Account for people who put trailing slashes in PATH elements.
627 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
629 # OSF1 and SCO ODT 3.0 have their own names for install.
630 # Don't use installbsd from OSF since it installs stuff as root
632 for ac_prog
in ginstall scoinst
install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
636 # AIX install. It has an incompatible calling convention.
639 ac_cv_path_install
="$ac_dir/$ac_prog -c"
650 if test "${ac_cv_path_install+set}" = set; then
651 INSTALL
="$ac_cv_path_install"
653 # As a last resort, use the slow shell script. We don't cache a
654 # path for INSTALL within a source directory, because that will
655 # break other packages using the cache if that directory is
656 # removed, or if the path is relative.
657 INSTALL
="$ac_install_sh"
660 echo "$ac_t""$INSTALL" 1>&6
662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663 # It thinks the first close brace ends the variable substitution.
664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
668 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671 echo "configure:672: checking whether build environment is sane" >&5
674 echo timestamp
> conftestfile
675 # Do `set' in a subshell so we don't clobber the current shell's
676 # arguments. Must try -L first in case configure is actually a
677 # symlink; some systems play weird games with the mod time of symlinks
678 # (eg FreeBSD returns the mod time of the symlink's containing
681 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682 if test "$*" = "X"; then
684 set X
`ls -t $srcdir/configure conftestfile`
686 if test "$*" != "X $srcdir/configure conftestfile" \
687 && test "$*" != "X conftestfile $srcdir/configure"; then
689 # If neither matched, then we have a broken ls. This can happen
690 # if, for instance, CONFIG_SHELL is bash and it inherits a
691 # broken ls alias from the environment. This has actually
692 # happened. Such a system could not be considered "sane".
693 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
694 alias in your environment" 1>&2; exit 1; }
697 test "$2" = conftestfile
703 { echo "configure: error: newly created file is older than distributed files!
704 Check your system clock" 1>&2; exit 1; }
707 echo "$ac_t""yes" 1>&6
708 if test "$program_transform_name" = s
,x
,x
,; then
709 program_transform_name
=
711 # Double any \ or $. echo might interpret backslashes.
712 cat <<\EOF_SED
> conftestsed
713 s
,\\,\\\\,g
; s
,\$
,$$
,g
715 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
718 test "$program_prefix" != NONE
&&
719 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
720 # Use a double $ so make ignores it.
721 test "$program_suffix" != NONE
&&
722 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
724 # sed with no file args requires a program.
725 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftestmake
<<\EOF
735 @
echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_
${ac_make}_set
=yes
742 eval ac_cv_prog_make_
${ac_make}_set
=no
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
750 echo "$ac_t""no" 1>&6
751 SET_MAKE
="MAKE=${MAKE-make}"
759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
760 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
762 cat >> confdefs.h
<<EOF
763 #define PACKAGE "$PACKAGE"
766 cat >> confdefs.h
<<EOF
767 #define VERSION "$VERSION"
772 missing_dir
=`cd $ac_aux_dir && pwd`
773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
774 echo "configure:775: checking for working aclocal" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
780 echo "$ac_t""found" 1>&6
782 ACLOCAL
="$missing_dir/missing aclocal"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
787 echo "configure:788: checking for working autoconf" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
793 echo "$ac_t""found" 1>&6
795 AUTOCONF
="$missing_dir/missing autoconf"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
800 echo "configure:801: checking for working automake" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
806 echo "$ac_t""found" 1>&6
808 AUTOMAKE
="$missing_dir/missing automake"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoheader" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
818 AUTOHEADER
=autoheader
819 echo "$ac_t""found" 1>&6
821 AUTOHEADER
="$missing_dir/missing autoheader"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
826 echo "configure:827: checking for working makeinfo" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
832 echo "$ac_t""found" 1>&6
834 MAKEINFO
="$missing_dir/missing makeinfo"
835 echo "$ac_t""missing" 1>&6
840 # Check whether --enable-shared or --disable-shared was given.
841 if test "${enable_shared+set}" = set; then
842 enableval
="$enable_shared"
845 yes) enable_shared
=yes ;;
846 no
) enable_shared
=no
;;
849 # Look at the argument we got. We use all the common list separators.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
851 for pkg
in $enableval; do
852 if test "X$pkg" = "X$p"; then
863 # Check whether --enable-static or --disable-static was given.
864 if test "${enable_static+set}" = set; then
865 enableval
="$enable_static"
868 yes) enable_static
=yes ;;
869 no
) enable_static
=no
;;
872 # Look at the argument we got. We use all the common list separators.
873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
874 for pkg
in $enableval; do
875 if test "X$pkg" = "X$p"; then
886 # Check whether --enable-fast-install or --disable-fast-install was given.
887 if test "${enable_fast_install+set}" = set; then
888 enableval
="$enable_fast_install"
891 yes) enable_fast_install
=yes ;;
892 no
) enable_fast_install
=no
;;
894 enable_fast_install
=no
895 # Look at the argument we got. We use all the common list separators.
896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
897 for pkg
in $enableval; do
898 if test "X$pkg" = "X$p"; then
899 enable_fast_install
=yes
906 enable_fast_install
=yes
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
919 case "$host_alias" in
923 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
926 *) host_alias
=$nonopt ;;
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking build system type""... $ac_c" 1>&6
937 echo "configure:938: checking build system type" >&5
940 case "$build_alias" in
943 NONE
) build_alias
=$host_alias ;;
944 *) build_alias
=$nonopt ;;
948 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
949 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$build" 1>&6
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib
; ac_word
=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
966 for ac_dir
in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir
=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB
="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
977 RANLIB
="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
984 # Extract the first word of "gcc", so it can be a program name with args.
985 set dummy gcc
; ac_word
=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC
="$CC" # Let the user override the test.
994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
996 for ac_dir
in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir
=.
998 if test -f $ac_dir/$ac_word; then
1007 if test -n "$CC"; then
1008 echo "$ac_t""$CC" 1>&6
1010 echo "$ac_t""no" 1>&6
1013 if test -z "$CC"; then
1014 # Extract the first word of "cc", so it can be a program name with args.
1015 set dummy cc
; ac_word
=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC
="$CC" # Let the user override the test.
1024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1027 for ac_dir
in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir
=.
1029 if test -f $ac_dir/$ac_word; then
1030 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1031 ac_prog_rejected
=yes
1039 if test $ac_prog_rejected = yes; then
1040 # We found a bogon in the path, so make sure we never use it.
1041 set dummy
$ac_cv_prog_CC
1043 if test $# -gt 0; then
1044 # We chose a different compiler from the bogus one.
1045 # However, it has the same basename, so the bogon will be chosen
1046 # first if we set CC to just the basename; use the full file name.
1048 set dummy
"$ac_dir/$ac_word" "$@"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 case "`uname -s`" in
1065 # Extract the first word of "cl", so it can be a program name with args.
1066 set dummy cl
; ac_word
=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC
="$CC" # Let the user override the test.
1075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1091 echo "$ac_t""no" 1>&6
1096 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp
='$CPP $CPPFLAGS'
1105 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling
=$ac_cv_prog_cc_cross
1109 cat > conftest.
$ac_ext << EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1116 if { (eval echo configure
:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1117 ac_cv_prog_cc_works
=yes
1118 # If we can't run a trivial program, we are probably using a cross compiler.
1119 if (.
/conftest
; exit) 2>/dev
/null
; then
1120 ac_cv_prog_cc_cross
=no
1122 ac_cv_prog_cc_cross
=yes
1125 echo "configure: failed program was:" >&5
1126 cat conftest.
$ac_ext >&5
1127 ac_cv_prog_cc_works
=no
1131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp
='$CPP $CPPFLAGS'
1133 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling
=$ac_cv_prog_cc_cross
1137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1138 if test $ac_cv_prog_cc_works = no
; then
1139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1144 cross_compiling
=$ac_cv_prog_cc_cross
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.c
<<EOF
1156 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS
="${CFLAGS+set}"
1172 ac_save_CFLAGS
="$CFLAGS"
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS
="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1199 if test "$GCC" = yes; then
1206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1207 if test "${with_gnu_ld+set}" = set; then
1208 withval
="$with_gnu_ld"
1209 test "$withval" = no || with_gnu_ld
=yes
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 # Check if gcc -print-prog-name=ld gives a path.
1217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ld used by GCC" >&5
1219 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1221 # Accept absolute paths.
1222 [\\/]* |
[A-Za-z
]:[\\/]*)
1223 re_direlt
='/[^/][^/]*/\.\./'
1224 # Canonicalize the path of ld
1225 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1226 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1227 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1229 test -z "$LD" && LD
="$ac_prog"
1232 # If it fails, then pretend we aren't using GCC.
1236 # If it is relative, then search for the first ld in PATH.
1240 elif test "$with_gnu_ld" = yes; then
1241 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking for GNU ld" >&5
1244 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking for non-GNU ld" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -z "$LD"; then
1251 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir
in $PATH; do
1253 test -z "$ac_dir" && ac_dir
=.
1254 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1255 ac_cv_path_LD
="$ac_dir/$ac_prog"
1256 # Check to see if the program is GNU ld. I'd rather use --version,
1257 # but apparently some GNU ld's only accept -v.
1258 # Break only if it was the GNU/non-GNU ld that we prefer.
1259 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1260 test "$with_gnu_ld" != no
&& break
1262 test "$with_gnu_ld" != yes && break
1268 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1273 if test -n "$LD"; then
1274 echo "$ac_t""$LD" 1>&6
1276 echo "$ac_t""no" 1>&6
1278 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1279 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1280 echo "configure:1281: checking if the linker ($LD) is GNU ld" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1285 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1286 ac_cv_prog_gnu_ld
=yes
1288 ac_cv_prog_gnu_ld
=no
1292 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1295 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1296 echo "configure:1297: checking for BSD-compatible nm" >&5
1297 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -n "$NM"; then
1301 # Let the user override the test.
1304 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1305 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1306 test -z "$ac_dir" && ac_dir
=.
1307 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1308 # Check to see if the nm accepts a BSD-compat flag.
1309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1310 # nm: unknown option "B" ignored
1311 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1312 ac_cv_path_NM
="$ac_dir/nm -B"
1314 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1315 ac_cv_path_NM
="$ac_dir/nm -p"
1318 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1319 continue # so that we can try to find one that supports BSD flags
1324 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1329 echo "$ac_t""$NM" 1>&6
1331 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ln -s works" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1337 if ln -s X conftestdata
2>/dev
/null
1340 ac_cv_prog_LN_S
="ln -s"
1345 LN_S
="$ac_cv_prog_LN_S"
1346 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1347 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1354 NONE
) lt_target
="$host" ;;
1355 *) lt_target
="$target" ;;
1358 # Check for any special flags to pass to ltconfig.
1359 libtool_flags
="--cache-file=$cache_file"
1360 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1361 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1362 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1363 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1364 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1367 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1368 if test "${enable_libtool_lock+set}" = set; then
1369 enableval
="$enable_libtool_lock"
1373 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1374 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1376 # Some flags need to be propagated to the compiler or linker for good
1378 case "$lt_target" in
1380 # Find out which ABI we are using.
1381 echo '#line 1382 "configure"' > conftest.
$ac_ext
1382 if { (eval echo configure
:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 case "`/usr/bin/file conftest.o`" in
1399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1400 SAVE_CFLAGS
="$CFLAGS"
1401 CFLAGS
="$CFLAGS -belf"
1402 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether the C compiler needs -belf" >&5
1404 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.
$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1415 if { (eval echo configure
:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1417 lt_cv_cc_needs_belf
=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.
$ac_ext >&5
1422 lt_cv_cc_needs_belf
=no
1427 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1428 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1430 CFLAGS
="$SAVE_CFLAGS"
1438 # Save cache, so that ltconfig can load it
1439 cat > confcache
<<\EOF
1440 # This file is a shell script that caches the results of configure
1441 # tests run on this system so they can be shared between configure
1442 # scripts and configure runs. It is not useful on other systems.
1443 # If it contains results you don't want to keep, you may remove or edit it.
1445 # By default, configure uses ./config.cache as the cache file,
1446 # creating it if it does not exist already. You can give configure
1447 # the --cache-file=FILE option to use a different cache file; that is
1448 # what configure does when it calls configure scripts in
1449 # subdirectories, so they share the cache.
1450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1451 # config.status only pays attention to the cache file if you give it the
1452 # --recheck option to rerun configure.
1455 # The following way of writing the cache mishandles newlines in values,
1456 # but we know of no workaround that is simple, portable, and efficient.
1457 # So, don't put newlines in cache variables' values.
1458 # Ultrix sh set writes to stderr and can't be redirected directly,
1459 # and sets the high bit in the cache file unless we assign to the vars.
1461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1463 # `set' does not quote correctly, so add quotes (double-quote substitution
1464 # turns \\\\ into \\, and sed turns \\ into \).
1466 -e "s/'/'\\\\''/g" \
1467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1470 # `set' quotes correctly as required by POSIX, so do not add quotes.
1471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1474 if cmp -s $cache_file confcache
; then
1477 if test -w $cache_file; then
1478 echo "updating cache $cache_file"
1479 cat confcache
> $cache_file
1481 echo "not updating unwritable cache $cache_file"
1487 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1488 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1489 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1490 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1491 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1492 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1493 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1494 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1496 # Reload cache, that may have been modified by ltconfig
1497 if test -r "$cache_file"; then
1498 echo "loading cache $cache_file"
1501 echo "creating cache $cache_file"
1506 # This can be used to rebuild libtool when needed
1507 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1509 # Always use our own libtool.
1510 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1512 # Redirect the config.log output again, so that the ltconfig log is not
1513 # clobbered by the next message.
1514 exec 5>>.
/config.log
1517 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1518 # Turn around -rpath problem with libtool 1.0c
1519 # This define should be improbable enough to not conflict with anything
1522 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1523 sed < libtool
> libtool-2 \
1524 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1525 mv libtool-2 libtool
1537 # Make sure we can run config.sub.
1538 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1539 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1542 echo $ac_n "checking host system type""... $ac_c" 1>&6
1543 echo "configure:1544: checking host system type" >&5
1546 case "$host_alias" in
1550 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1551 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1553 *) host_alias
=$nonopt ;;
1557 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1558 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561 echo "$ac_t""$host" 1>&6
1565 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1566 echo "configure:1567: checking for POSIXized ISC" >&5
1567 if test -d /etc
/conf
/kconfig.d
&&
1568 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1570 echo "$ac_t""yes" 1>&6
1571 ISC
=yes # If later tests want to check for ISC.
1572 cat >> confdefs.h
<<\EOF
1573 #define _POSIX_SOURCE 1
1576 if test "$GCC" = yes; then
1582 echo "$ac_t""no" 1>&6
1586 # Extract the first word of "gcc", so it can be a program name with args.
1587 set dummy gcc
; ac_word
=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC
="$CC" # Let the user override the test.
1596 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1598 for ac_dir
in $ac_dummy; do
1599 test -z "$ac_dir" && ac_dir
=.
1600 if test -f $ac_dir/$ac_word; then
1609 if test -n "$CC"; then
1610 echo "$ac_t""$CC" 1>&6
1612 echo "$ac_t""no" 1>&6
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc
; ac_word
=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC
="$CC" # Let the user override the test.
1626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1629 for ac_dir
in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir
=.
1631 if test -f $ac_dir/$ac_word; then
1632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1633 ac_prog_rejected
=yes
1641 if test $ac_prog_rejected = yes; then
1642 # We found a bogon in the path, so make sure we never use it.
1643 set dummy
$ac_cv_prog_CC
1645 if test $# -gt 0; then
1646 # We chose a different compiler from the bogus one.
1647 # However, it has the same basename, so the bogon will be chosen
1648 # first if we set CC to just the basename; use the full file name.
1650 set dummy
"$ac_dir/$ac_word" "$@"
1658 if test -n "$CC"; then
1659 echo "$ac_t""$CC" 1>&6
1661 echo "$ac_t""no" 1>&6
1664 if test -z "$CC"; then
1665 case "`uname -s`" in
1667 # Extract the first word of "cl", so it can be a program name with args.
1668 set dummy cl
; ac_word
=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC
="$CC" # Let the user override the test.
1677 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1679 for ac_dir
in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir
=.
1681 if test -f $ac_dir/$ac_word; then
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1693 echo "$ac_t""no" 1>&6
1698 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1706 ac_cpp
='$CPP $CPPFLAGS'
1707 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1708 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1709 cross_compiling
=$ac_cv_prog_cc_cross
1711 cat > conftest.
$ac_ext << EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1718 if { (eval echo configure
:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1719 ac_cv_prog_cc_works
=yes
1720 # If we can't run a trivial program, we are probably using a cross compiler.
1721 if (.
/conftest
; exit) 2>/dev
/null
; then
1722 ac_cv_prog_cc_cross
=no
1724 ac_cv_prog_cc_cross
=yes
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1729 ac_cv_prog_cc_works
=no
1733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1734 ac_cpp
='$CPP $CPPFLAGS'
1735 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1736 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1737 cross_compiling
=$ac_cv_prog_cc_cross
1739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1740 if test $ac_cv_prog_cc_works = no
; then
1741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1746 cross_compiling
=$ac_cv_prog_cc_cross
1748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether we are using GNU C" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.c
<<EOF
1758 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1767 if test $ac_cv_prog_gcc = yes; then
1773 ac_test_CFLAGS
="${CFLAGS+set}"
1774 ac_save_CFLAGS
="$CFLAGS"
1776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether ${CC-cc} accepts -g" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 echo 'void f(){}' > conftest.c
1782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1791 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1792 if test "$ac_test_CFLAGS" = set; then
1793 CFLAGS
="$ac_save_CFLAGS"
1794 elif test $ac_cv_prog_cc_g = yes; then
1795 if test "$GCC" = yes; then
1801 if test "$GCC" = yes; then
1809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ln -s works" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1815 if ln -s X conftestdata
2>/dev
/null
1818 ac_cv_prog_LN_S
="ln -s"
1823 LN_S
="$ac_cv_prog_LN_S"
1824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1825 echo "$ac_t""yes" 1>&6
1827 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 CPP
="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 CPP
="${CC-cc} -nologo -E"
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure
:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1902 ac_cv_prog_CPP
="$CPP"
1904 CPP
="$ac_cv_prog_CPP"
1906 ac_cv_prog_CPP
="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 if test $ac_cv_prog_gcc = yes; then
1911 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether ${CC-cc} needs -traditional" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 ac_pattern
="Autoconf.*'x'"
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924 egrep "$ac_pattern" >/dev
/null
2>&1; then
1926 ac_cv_prog_gcc_traditional
=yes
1929 ac_cv_prog_gcc_traditional
=no
1934 if test $ac_cv_prog_gcc_traditional = no
; then
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1942 egrep "$ac_pattern" >/dev
/null
2>&1; then
1944 ac_cv_prog_gcc_traditional
=yes
1951 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1952 if test $ac_cv_prog_gcc_traditional = yes; then
1953 CC
="$CC -traditional"
1960 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1961 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1964 _bindir
=`eval echo $bindir`
1965 _bindir
=`eval echo $_bindir`
1967 _libdir
=`eval echo $libdir`
1968 _libdir
=`eval echo $_libdir`
1969 lib_search_path
="-L$_libdir"
1971 inc_search_path
=`eval echo $includedir`
1972 inc_search_path
="-I`eval echo $inc_search_path`"
1978 # Check whether --with-libs-from or --without-libs-from was given.
1979 if test "${with_libs_from+set}" = set; then
1980 withval
="$with_libs_from"
1981 lib_search_path
="$withval $lib_search_path"
1985 # Check whether --with-incs-from or --without-incs-from was given.
1986 if test "${with_incs_from+set}" = set; then
1987 withval
="$with_incs_from"
1988 inc_search_path
="$withval $inc_search_path"
1994 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1995 echo "configure:1996: checking for vprintf" >&5
1996 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 /* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char vprintf(); below. */
2005 /* Override any gcc2 internal prototype to avoid an error. */
2006 /* We use char because int might match the return type of a gcc2
2007 builtin and then its argument prototype would still apply. */
2012 /* The GNU C library defines this for functions which it implements
2013 to always fail with ENOSYS. Some functions are actually named
2014 something starting with __ and the normal name is an alias. */
2015 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2023 if { (eval echo configure
:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2025 eval "ac_cv_func_vprintf=yes"
2027 echo "configure: failed program was:" >&5
2028 cat conftest.
$ac_ext >&5
2030 eval "ac_cv_func_vprintf=no"
2035 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 cat >> confdefs.h
<<\EOF
2038 #define HAVE_VPRINTF 1
2042 echo "$ac_t""no" 1>&6
2045 if test "$ac_cv_func_vprintf" != yes; then
2046 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2047 echo "configure:2048: checking for _doprnt" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.
$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char _doprnt(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2075 if { (eval echo configure
:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2077 eval "ac_cv_func__doprnt=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 eval "ac_cv_func__doprnt=no"
2087 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 cat >> confdefs.h
<<\EOF
2090 #define HAVE_DOPRNT 1
2094 echo "$ac_t""no" 1>&6
2099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2100 # for constant arguments. Useless!
2101 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2102 echo "configure:2103: checking for working alloca.h" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2111 void *p = alloca(2 * sizeof(int));
2114 if { (eval echo configure
:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2116 ac_cv_header_alloca_h
=yes
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 ac_cv_header_alloca_h
=no
2126 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2127 if test $ac_cv_header_alloca_h = yes; then
2128 cat >> confdefs.h
<<\EOF
2129 #define HAVE_ALLOCA_H 1
2134 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2135 echo "configure:2136: checking for alloca" >&5
2136 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 cat > conftest.
$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2144 # define alloca __builtin_alloca
2147 # include <malloc.h>
2148 # define alloca _alloca
2151 # include <alloca.h>
2156 # ifndef alloca /* predefined by HP cc +Olibcalls */
2165 char *p = (char *) alloca(1);
2168 if { (eval echo configure
:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2170 ac_cv_func_alloca_works
=yes
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 ac_cv_func_alloca_works
=no
2180 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2181 if test $ac_cv_func_alloca_works = yes; then
2182 cat >> confdefs.h
<<\EOF
2183 #define HAVE_ALLOCA 1
2188 if test $ac_cv_func_alloca_works = no
; then
2189 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2190 # that cause trouble. Some versions do not even contain alloca or
2191 # contain a buggy version. If you still want to use their alloca,
2192 # use ar to extract alloca.o from them instead of compiling alloca.c.
2193 ALLOCA
=alloca.
${ac_objext}
2194 cat >> confdefs.h
<<\EOF
2199 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether alloca needs Cray hooks" >&5
2201 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #if defined(CRAY) && ! defined(CRAY2)
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "webecray" >/dev
/null
2>&1; then
2226 echo "$ac_t""$ac_cv_os_cray" 1>&6
2227 if test $ac_cv_os_cray = yes; then
2228 for ac_func
in _getb67 GETB67 getb67
; do
2229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_func" >&5
2231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $ac_func(); below. */
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2247 /* The GNU C library defines this for functions which it implements
2248 to always fail with ENOSYS. Some functions are actually named
2249 something starting with __ and the normal name is an alias. */
2250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2258 if { (eval echo configure
:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2260 eval "ac_cv_func_$ac_func=yes"
2262 echo "configure: failed program was:" >&5
2263 cat conftest.
$ac_ext >&5
2265 eval "ac_cv_func_$ac_func=no"
2270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 cat >> confdefs.h
<<EOF
2273 #define CRAY_STACKSEG_END $ac_func
2278 echo "$ac_t""no" 1>&6
2284 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2285 echo "configure:2286: checking stack direction for C alloca" >&5
2286 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 if test "$cross_compiling" = yes; then
2290 ac_cv_c_stack_direction
=0
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 find_stack_direction ()
2297 static char *addr = 0;
2302 return find_stack_direction ();
2305 return (&dummy > addr) ? 1 : -1;
2309 exit (find_stack_direction() < 0);
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2314 ac_cv_c_stack_direction
=1
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 ac_cv_c_stack_direction
=-1
2326 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2327 cat >> confdefs.h
<<EOF
2328 #define STACK_DIRECTION $ac_cv_c_stack_direction
2333 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_func" >&5
2337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 /* System header to define __stub macros and hopefully few prototypes,
2344 which can conflict with char $ac_func(); below. */
2346 /* Override any gcc2 internal prototype to avoid an error. */
2347 /* We use char because int might match the return type of a gcc2
2348 builtin and then its argument prototype would still apply. */
2353 /* The GNU C library defines this for functions which it implements
2354 to always fail with ENOSYS. Some functions are actually named
2355 something starting with __ and the normal name is an alias. */
2356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2364 if { (eval echo configure
:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2366 eval "ac_cv_func_$ac_func=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.
$ac_ext >&5
2371 eval "ac_cv_func_$ac_func=no"
2376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2379 cat >> confdefs.h
<<EOF
2380 #define $ac_tr_func 1
2384 echo "$ac_t""no" 1>&6
2393 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2394 echo "configure:2395: checking for dlopen" >&5
2395 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char dlopen(); below. */
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2411 /* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2422 if { (eval echo configure
:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2424 eval "ac_cv_func_dlopen=yes"
2426 echo "configure: failed program was:" >&5
2427 cat conftest.
$ac_ext >&5
2429 eval "ac_cv_func_dlopen=no"
2434 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2438 echo "$ac_t""no" 1>&6
2439 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2440 echo "configure:2441: checking for dlopen in -ldl" >&5
2441 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_save_LIBS
="$LIBS"
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2459 if { (eval echo configure
:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS
="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 DLLIBS
="-ldl" HAVEDL
="yes"
2476 echo "$ac_t""no" 1>&6
2483 if test "x$HAVEDL" = xyes
; then
2484 for ac_hdr
in dlfcn.h
2486 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_hdr" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure
:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2500 if test -z "$ac_err"; then
2502 eval "ac_cv_header_$ac_safe=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_header_$ac_safe=no"
2512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2515 cat >> confdefs.h
<<EOF
2516 #define $ac_tr_hdr 1
2520 echo "$ac_t""no" 1>&6
2528 if test "x$CPP_PATH" = x
; then
2529 # Extract the first word of "cpp", so it can be a program name with args.
2530 set dummy cpp
; ac_word
=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2538 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2541 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2545 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2546 for ac_dir
in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir
=.
2548 if test -f $ac_dir/$ac_word; then
2549 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2554 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2558 CPP_PATH
="$ac_cv_path_CPP_PATH"
2559 if test -n "$CPP_PATH"; then
2560 echo "$ac_t""$CPP_PATH" 1>&6
2562 echo "$ac_t""no" 1>&6
2567 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2568 if test "$GCC" = "yes"; then
2569 CPP_PATH
="gcc -E -x c"
2571 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2572 CPP_PATH
="$CPP_PATH -B"
2574 echo "cpp, the C preprocessor was not found in your system."
2575 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2580 cat >> confdefs.h
<<EOF
2581 #define CPP_PATH "$CPP_PATH"
2587 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2588 echo "configure:2589: checking for sys/wait.h that is POSIX.1 compatible" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <sys/types.h>
2596 #include <sys/wait.h>
2598 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2601 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2606 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2609 if { (eval echo configure
:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2611 ac_cv_header_sys_wait_h
=yes
2613 echo "configure: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2616 ac_cv_header_sys_wait_h
=no
2621 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2622 if test $ac_cv_header_sys_wait_h = yes; then
2623 cat >> confdefs.h
<<\EOF
2624 #define HAVE_SYS_WAIT_H 1
2629 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2630 echo "configure:2631: checking whether time.h and sys/time.h may both be included" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.
$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2638 #include <sys/time.h>
2644 if { (eval echo configure
:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2646 ac_cv_header_time
=yes
2648 echo "configure: failed program was:" >&5
2649 cat conftest.
$ac_ext >&5
2651 ac_cv_header_time
=no
2656 echo "$ac_t""$ac_cv_header_time" 1>&6
2657 if test $ac_cv_header_time = yes; then
2658 cat >> confdefs.h
<<\EOF
2659 #define TIME_WITH_SYS_TIME 1
2664 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2665 libintl.h sys
/select.h poll.h
2667 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure
:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2683 eval "ac_cv_header_$ac_safe=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2689 eval "ac_cv_header_$ac_safe=no"
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h
<<EOF
2697 #define $ac_tr_hdr 1
2701 echo "$ac_t""no" 1>&6
2708 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2709 echo "configure:2710: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2710 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <sys/types.h>
2718 /* NetBSD declares sys_siglist in unistd.h. */
2719 #ifdef HAVE_UNISTD_H
2723 char *msg = *(sys_siglist + 1);
2726 if { (eval echo configure
:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2728 ac_cv_decl_sys_siglist
=yes
2730 echo "configure: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2733 ac_cv_decl_sys_siglist
=no
2738 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2739 if test $ac_cv_decl_sys_siglist = yes; then
2740 cat >> confdefs.h
<<\EOF
2741 #define SYS_SIGLIST_DECLARED 1
2746 echo $ac_n "checking for working const""... $ac_c" 1>&6
2747 echo "configure:2748: checking for working const" >&5
2748 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2757 /* Ultrix mips cc rejects this. */
2758 typedef int charset[2]; const charset x = {0,0};
2759 /* SunOS 4.1.1 cc rejects this. */
2760 char const *const *ccp;
2762 /* NEC SVR4.0.2 mips cc rejects this. */
2763 struct point {int x, y;};
2764 static struct point const zero = {0,0};
2765 /* AIX XL C 1.02.0.0 rejects this.
2766 It does not let you subtract one const X* pointer from another in an arm
2767 of an if-expression whose if-part is not a constant expression */
2768 const char *g = "string";
2769 ccp = &g + (g ? g-g : 0);
2770 /* HPUX 7.0 cc rejects these. */
2773 ccp = (char const *const *) p;
2774 { /* SCO 3.2v4 cc rejects this. */
2776 char const *s = 0 ? (char *) 0 : (char const *) 0;
2780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2782 const int *foo = &x[0];
2785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2786 typedef const int *iptr;
2790 { /* AIX XL C 1.02.0.0 rejects this saying
2791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2792 struct s { int j; const int *ap[3]; };
2793 struct s *b; b->j = 5;
2795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2801 if { (eval echo configure
:2802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2805 echo "configure: failed program was:" >&5
2806 cat conftest.
$ac_ext >&5
2813 echo "$ac_t""$ac_cv_c_const" 1>&6
2814 if test $ac_cv_c_const = no
; then
2815 cat >> confdefs.h
<<\EOF
2823 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2824 echo "configure:2825: checking return type of signal handlers" >&5
2825 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.
$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <sys/types.h>
2837 extern "C" void (*signal (int, void (*)(int)))(int);
2839 void (*signal ()) ();
2846 if { (eval echo configure
:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2848 ac_cv_type_signal
=void
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 ac_cv_type_signal
=int
2858 echo "$ac_t""$ac_cv_type_signal" 1>&6
2859 cat >> confdefs.h
<<EOF
2860 #define RETSIGTYPE $ac_cv_type_signal
2870 if test "$ac_cv_prog_gcc" = yes; then
2877 if test $x86 = 1; then
2878 cat >> confdefs.h
<<\EOF
2883 echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
2884 echo "configure:2885: checking whether gcc supports MMX(tm) inline asm" >&5
2885 if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 cat > conftest.
$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2893 asm ("movq %mm0, %mm1");
2896 if { (eval echo configure
:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2898 ac_cv_c_inline_mmx
=yes
2900 echo "configure: failed program was:" >&5
2901 cat conftest.
$ac_ext >&5
2903 ac_cv_c_inline_mmx
=no
2908 echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
2910 if test "x$ac_cv_c_inline_mmx" = xyes
; then
2911 cat >> confdefs.h
<<\EOF
2912 #define ASM_X86_MMX 1
2928 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2929 echo "configure:2930: checking for gettext" >&5
2930 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.
$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* System header to define __stub macros and hopefully few prototypes,
2937 which can conflict with char gettext(); below. */
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined (__stub_gettext) || defined (__stub___gettext)
2957 if { (eval echo configure
:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2959 eval "ac_cv_func_gettext=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 eval "ac_cv_func_gettext=no"
2969 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2973 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2975 echo "configure:2976: checking for gettext in -lintl" >&5
2976 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 ac_save_LIBS
="$LIBS"
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2994 if { (eval echo configure
:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2996 eval "ac_cv_lib_$ac_lib_var=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3001 eval "ac_cv_lib_$ac_lib_var=no"
3004 LIBS
="$ac_save_LIBS"
3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
3011 echo "$ac_t""no" 1>&6
3018 # Extract the first word of "xgettext", so it can be a program name with args.
3019 set dummy xgettext
; ac_word
=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test -n "$XGETTEXT"; then
3026 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
3028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3030 for ac_dir
in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir
=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_XGETTEXT
="xgettext"
3040 XGETTEXT
="$ac_cv_prog_XGETTEXT"
3041 if test -n "$XGETTEXT"; then
3042 echo "$ac_t""$XGETTEXT" 1>&6
3044 echo "$ac_t""no" 1>&6
3048 if test "$XGETTEXT" != ""; then
3049 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
3050 echo "xgettext isn't GNU version"
3055 if test "$LINGUAS" != ""; then
3056 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3057 cat >> confdefs.h
<<\EOF
3062 # if test "$LINGUAS" = ""; then
3063 # ling=` (cd src/po; /bin/ls *.po) `
3064 # for l in $ling; do
3065 # lcode=`basename $l .po`
3066 # LINGUAS="$LINGUAS $lcode"
3069 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3073 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3084 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
3085 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3087 for lang
in $LINGUAS; do
3089 for l
in $supported_locales; do
3090 if test "$l" = "$lang"; then
3095 if test "$ok" = 1; then
3096 MOFILES
="$MOFILES $lang.mo"
3098 echo "Locale $lang is not supported."
3101 for l
in $supported_wprefs_locales; do
3102 if test "$l" = "$lang"; then
3107 if test "$ok" = 1; then
3108 WPMOFILES
="$WPMOFILES $lang.mo"
3116 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3117 echo "configure:3118: checking for setlocale in -lxpg4" >&5
3118 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 ac_save_LIBS
="$LIBS"
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3136 if { (eval echo configure
:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3143 eval "ac_cv_lib_$ac_lib_var=no"
3146 LIBS
="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3153 echo "$ac_t""no" 1>&6
3162 # Check whether --with-nlsdir or --without-nlsdir was given.
3163 if test "${with_nlsdir+set}" = set; then
3164 withval
="$with_nlsdir"
3170 if test "x$NLSDIR" = "x"; then
3171 if test "x$with_nlsdir" != "x"; then
3174 NLSDIR
='$(prefix)/lib/locale'
3190 # Check whether --enable-gnome or --disable-gnome was given.
3191 if test "${enable_gnome+set}" = set; then
3192 enableval
="$enable_gnome"
3193 if test x
$enableval = xyes
; then
3194 cat >> confdefs.h
<<\EOF
3195 #define GNOME_STUFF 1
3204 # Check whether --enable-kde or --disable-kde was given.
3205 if test "${enable_kde+set}" = set; then
3206 enableval
="$enable_kde"
3207 if test x
$enableval = xyes
; then
3208 cat >> confdefs.h
<<\EOF
3218 # Check whether --enable-openlook or --disable-openlook was given.
3219 if test "${enable_openlook+set}" = set; then
3220 enableval
="$enable_openlook"
3221 if test x
$enableval = xyes
; then
3222 cat >> confdefs.h
<<\EOF
3223 #define OLWM_HINTS 1
3232 # Check whether --enable-lite or --disable-lite was given.
3233 if test "${enable_lite+set}" = set; then
3234 enableval
="$enable_lite"
3235 if test x
$enableval = xyes
; then
3237 cat >> confdefs.h
<<\EOF
3251 echo $ac_n "checking for connect""... $ac_c" 1>&6
3252 echo "configure:3253: checking for connect" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char connect(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_connect) || defined (__stub___connect)
3280 if { (eval echo configure
:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3282 eval "ac_cv_func_connect=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.
$ac_ext >&5
3287 eval "ac_cv_func_connect=no"
3292 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3296 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3298 echo "configure:3299: checking for connect in -lsocket" >&5
3299 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_save_LIBS
="$LIBS"
3304 LIBS
="-lsocket $LIBS"
3305 cat > conftest.
$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3317 if { (eval echo configure
:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3319 eval "ac_cv_lib_$ac_lib_var=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3324 eval "ac_cv_lib_$ac_lib_var=no"
3327 LIBS
="$ac_save_LIBS"
3330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 NETLIBS
="$NETLIBS -lsocket"
3334 echo "$ac_t""no" 1>&6
3340 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3341 echo "configure:3342: checking for gethostbyname" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char gethostbyname(); below. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char gethostbyname();
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3369 if { (eval echo configure
:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3371 eval "ac_cv_func_gethostbyname=yes"
3373 echo "configure: failed program was:" >&5
3374 cat conftest.
$ac_ext >&5
3376 eval "ac_cv_func_gethostbyname=no"
3381 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3385 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3387 echo "configure:3388: checking for gethostbyname in -lnsl" >&5
3388 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 ac_save_LIBS
="$LIBS"
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3400 char gethostbyname();
3406 if { (eval echo configure
:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 eval "ac_cv_lib_$ac_lib_var=no"
3416 LIBS
="$ac_save_LIBS"
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 NETLIBS
="$NETLIBS -lnsl"
3423 echo "$ac_t""no" 1>&6
3429 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3430 echo "configure:3431: checking for inet_aton" >&5
3431 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3434 cat > conftest.
$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* System header to define __stub macros and hopefully few prototypes,
3438 which can conflict with char inet_aton(); below. */
3440 /* Override any gcc2 internal prototype to avoid an error. */
3441 /* We use char because int might match the return type of a gcc2
3442 builtin and then its argument prototype would still apply. */
3447 /* The GNU C library defines this for functions which it implements
3448 to always fail with ENOSYS. Some functions are actually named
3449 something starting with __ and the normal name is an alias. */
3450 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3458 if { (eval echo configure
:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3460 eval "ac_cv_func_inet_aton=yes"
3462 echo "configure: failed program was:" >&5
3463 cat conftest.
$ac_ext >&5
3465 eval "ac_cv_func_inet_aton=no"
3470 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h
<<\EOF
3473 #define HAVE_INET_ATON 1
3477 echo "$ac_t""no" 1>&6
3478 for lib
in resolv socket inet bsd
; do
3479 echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
3480 echo "configure:3481: checking for inet_aton in -l$lib" >&5
3481 ac_lib_var
=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
3482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_save_LIBS
="$LIBS"
3486 LIBS
="-l$lib $NETLIBS $LIBS"
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3499 if { (eval echo configure
:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3501 eval "ac_cv_lib_$ac_lib_var=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3506 eval "ac_cv_lib_$ac_lib_var=no"
3509 LIBS
="$ac_save_LIBS"
3512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 cat >> confdefs.h
<<\EOF
3515 #define HAVE_INET_ATON 1
3518 NETLIBS
="$NETLIBS -l$lib"; break
3520 echo "$ac_t""no" 1>&6
3531 # If we find X, set shell vars x_includes and x_libraries to the
3532 # paths, otherwise set no_x=yes.
3533 # Uses ac_ vars as temps to allow command line to override cache and checks.
3534 # --without-x overrides everything else, but does not touch the cache.
3535 echo $ac_n "checking for X""... $ac_c" 1>&6
3536 echo "configure:3537: checking for X" >&5
3538 # Check whether --with-x or --without-x was given.
3539 if test "${with_x+set}" = set; then
3544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3545 if test "x$with_x" = xno
; then
3546 # The user explicitly disabled X.
3549 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3550 # Both variables are already set.
3553 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 # One or both of the vars are not set, and there is no cached value.
3557 ac_x_includes
=NO ac_x_libraries
=NO
3559 if mkdir conftestdir
; then
3561 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3562 cat > Imakefile
<<'EOF'
3564 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3566 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3568 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3570 for ac_extension
in a so sl
; do
3571 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3572 test -f $ac_im_libdir/libX11.
$ac_extension; then
3573 ac_im_usrlibdir
=$ac_im_libdir; break
3576 # Screen out bogus values from the imake configuration. They are
3577 # bogus both because they are the default anyway, and because
3578 # using them would break gcc on systems where it needs fixed includes.
3579 case "$ac_im_incroot" in
3581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3583 case "$ac_im_usrlibdir" in
3585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3592 if test "$ac_x_includes" = NO
; then
3593 # Guess where to find include files, by looking for this one X11 .h file.
3594 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3596 # First, try using that file with no special directory specified.
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <$x_direct_test_include>
3602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure
:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3605 if test -z "$ac_err"; then
3607 # We can compile using X headers with no special include directory.
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 # Look for the header file in a standard set of common directories.
3615 # Check X11 before X11Rn because it is often a symlink to the current release.
3618 /usr
/X11R
6/include \
3619 /usr
/X11R
5/include \
3620 /usr
/X11R
4/include \
3623 /usr
/include
/X11R6 \
3624 /usr
/include
/X11R5 \
3625 /usr
/include
/X11R4 \
3627 /usr
/local
/X11
/include \
3628 /usr
/local
/X11R
6/include \
3629 /usr
/local
/X11R
5/include \
3630 /usr
/local
/X11R
4/include \
3632 /usr
/local
/include
/X11 \
3633 /usr
/local
/include
/X11R6 \
3634 /usr
/local
/include
/X11R5 \
3635 /usr
/local
/include
/X11R4 \
3639 /usr
/XFree86
/include
/X11 \
3642 /usr
/local
/include \
3643 /usr
/unsupported
/include \
3644 /usr
/athena
/include \
3645 /usr
/local
/x11r
5/include \
3646 /usr
/lpp
/Xamples
/include \
3648 /usr
/openwin
/include \
3649 /usr
/openwin
/share
/include \
3652 if test -r "$ac_dir/$x_direct_test_include"; then
3653 ac_x_includes
=$ac_dir
3659 fi # $ac_x_includes = NO
3661 if test "$ac_x_libraries" = NO
; then
3662 # Check for the libraries.
3664 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3665 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3667 # See if we find them without any special options.
3668 # Don't add to $LIBS permanently.
3669 ac_save_LIBS
="$LIBS"
3670 LIBS
="-l$x_direct_test_library $LIBS"
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3676 ${x_direct_test_function}()
3679 if { (eval echo configure
:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3681 LIBS
="$ac_save_LIBS"
3682 # We can link X programs with no special library path.
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 LIBS
="$ac_save_LIBS"
3689 # First see if replacing the include by lib works.
3690 # Check X11 before X11Rn because it is often a symlink to the current release.
3691 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3702 /usr
/local
/X11
/lib \
3703 /usr
/local
/X11R
6/lib \
3704 /usr
/local
/X11R
5/lib \
3705 /usr
/local
/X11R
4/lib \
3707 /usr
/local
/lib
/X11 \
3708 /usr
/local
/lib
/X11R6 \
3709 /usr
/local
/lib
/X11R5 \
3710 /usr
/local
/lib
/X11R4 \
3714 /usr
/XFree86
/lib
/X11 \
3718 /usr
/unsupported
/lib \
3720 /usr
/local
/x11r
5/lib \
3721 /usr
/lpp
/Xamples
/lib \
3725 /usr
/openwin
/share
/lib \
3728 for ac_extension
in a so sl
; do
3729 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3730 ac_x_libraries
=$ac_dir
3737 fi # $ac_x_libraries = NO
3739 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3740 # Didn't find X anywhere. Cache the known absence of X.
3741 ac_cv_have_x
="have_x=no"
3743 # Record where we found X for the cache.
3744 ac_cv_have_x
="have_x=yes \
3745 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3749 eval "$ac_cv_have_x"
3752 if test "$have_x" != yes; then
3753 echo "$ac_t""$have_x" 1>&6
3756 # If each of the values was on the command line, it overrides each guess.
3757 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3758 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3759 # Update the cache value to reflect the command line values.
3760 ac_cv_have_x
="have_x=yes \
3761 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3762 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3765 if test "$no_x" = yes; then
3766 # Not all programs may use this symbol, but it does not hurt to define it.
3767 cat >> confdefs.h
<<\EOF
3768 #define X_DISPLAY_MISSING 1
3771 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3773 if test -n "$x_includes"; then
3774 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3777 # It would also be nice to do this for all -L options, not just this one.
3778 if test -n "$x_libraries"; then
3779 X_LIBS
="$X_LIBS -L$x_libraries"
3780 # For Solaris; some versions of Sun CC require a space after -R and
3781 # others require no space. Words are not sufficient . . . .
3782 case "`(uname -sr) 2>/dev/null`" in
3784 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3785 echo "configure:3786: checking whether -R must be followed by a space" >&5
3786 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3795 if { (eval echo configure
:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3799 echo "configure: failed program was:" >&5
3800 cat conftest.
$ac_ext >&5
3805 if test $ac_R_nospace = yes; then
3806 echo "$ac_t""no" 1>&6
3807 X_LIBS
="$X_LIBS -R$x_libraries"
3809 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3818 if { (eval echo configure
:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3822 echo "configure: failed program was:" >&5
3823 cat conftest.
$ac_ext >&5
3828 if test $ac_R_space = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 X_LIBS
="$X_LIBS -R $x_libraries"
3832 echo "$ac_t""neither works" 1>&6
3835 LIBS
="$ac_xsave_LIBS"
3839 # Check for system-dependent libraries X programs must link with.
3840 # Do this before checking for the system-independent R6 libraries
3841 # (-lICE), since we may need -lsocket or whatever for X linking.
3843 if test "$ISC" = yes; then
3844 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3846 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3847 # libraries were built with DECnet support. And karl@cs.umb.edu says
3848 # the Alpha needs dnet_stub (dnet does not exist).
3849 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3850 echo "configure:3851: checking for dnet_ntoa in -ldnet" >&5
3851 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 ac_save_LIBS
="$LIBS"
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3869 if { (eval echo configure
:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 eval "ac_cv_lib_$ac_lib_var=no"
3879 LIBS
="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3886 echo "$ac_t""no" 1>&6
3889 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3890 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3891 echo "configure:3892: checking for dnet_ntoa in -ldnet_stub" >&5
3892 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS
="$LIBS"
3897 LIBS
="-ldnet_stub $LIBS"
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS
="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3927 echo "$ac_t""no" 1>&6
3932 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3933 # to get the SysV transport functions.
3934 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3936 # The nsl library prevents programs from opening the X display
3937 # on Irix 5.2, according to dickey@clark.net.
3938 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3939 echo "configure:3940: checking for gethostbyname" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.
$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* System header to define __stub macros and hopefully few prototypes,
3947 which can conflict with char gethostbyname(); below. */
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3952 char gethostbyname();
3956 /* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3967 if { (eval echo configure
:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3969 eval "ac_cv_func_gethostbyname=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.
$ac_ext >&5
3974 eval "ac_cv_func_gethostbyname=no"
3979 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3983 echo "$ac_t""no" 1>&6
3986 if test $ac_cv_func_gethostbyname = no
; then
3987 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3988 echo "configure:3989: checking for gethostbyname in -lnsl" >&5
3989 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 ac_save_LIBS
="$LIBS"
3995 cat > conftest.
$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char gethostbyname();
4007 if { (eval echo configure
:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.
$ac_ext >&5
4014 eval "ac_cv_lib_$ac_lib_var=no"
4017 LIBS
="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4024 echo "$ac_t""no" 1>&6
4029 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4030 # socket/setsockopt and other routines are undefined under SCO ODT
4031 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4032 # on later versions), says simon@lia.di.epfl.ch: it contains
4033 # gethostby* variants that don't use the nameserver (or something).
4034 # -lsocket must be given before -lnsl if both are needed.
4035 # We assume that if connect needs -lnsl, so does gethostbyname.
4036 echo $ac_n "checking for connect""... $ac_c" 1>&6
4037 echo "configure:4038: checking for connect" >&5
4038 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.
$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 /* System header to define __stub macros and hopefully few prototypes,
4045 which can conflict with char connect(); below. */
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4054 /* The GNU C library defines this for functions which it implements
4055 to always fail with ENOSYS. Some functions are actually named
4056 something starting with __ and the normal name is an alias. */
4057 #if defined (__stub_connect) || defined (__stub___connect)
4065 if { (eval echo configure
:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4067 eval "ac_cv_func_connect=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.
$ac_ext >&5
4072 eval "ac_cv_func_connect=no"
4077 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4081 echo "$ac_t""no" 1>&6
4084 if test $ac_cv_func_connect = no
; then
4085 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4086 echo "configure:4087: checking for connect in -lsocket" >&5
4087 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS
="$LIBS"
4092 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure
:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS
="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4122 echo "$ac_t""no" 1>&6
4127 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4128 echo $ac_n "checking for remove""... $ac_c" 1>&6
4129 echo "configure:4130: checking for remove" >&5
4130 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* System header to define __stub macros and hopefully few prototypes,
4137 which can conflict with char remove(); below. */
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 /* We use char because int might match the return type of a gcc2
4141 builtin and then its argument prototype would still apply. */
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined (__stub_remove) || defined (__stub___remove)
4157 if { (eval echo configure
:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4159 eval "ac_cv_func_remove=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.
$ac_ext >&5
4164 eval "ac_cv_func_remove=no"
4169 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4173 echo "$ac_t""no" 1>&6
4176 if test $ac_cv_func_remove = no
; then
4177 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4178 echo "configure:4179: checking for remove in -lposix" >&5
4179 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 ac_save_LIBS
="$LIBS"
4184 LIBS
="-lposix $LIBS"
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4197 if { (eval echo configure
:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 eval "ac_cv_lib_$ac_lib_var=no"
4207 LIBS
="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4214 echo "$ac_t""no" 1>&6
4219 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4220 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4221 echo "configure:4222: checking for shmat" >&5
4222 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.
$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* System header to define __stub macros and hopefully few prototypes,
4229 which can conflict with char shmat(); below. */
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4238 /* The GNU C library defines this for functions which it implements
4239 to always fail with ENOSYS. Some functions are actually named
4240 something starting with __ and the normal name is an alias. */
4241 #if defined (__stub_shmat) || defined (__stub___shmat)
4249 if { (eval echo configure
:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4251 eval "ac_cv_func_shmat=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.
$ac_ext >&5
4256 eval "ac_cv_func_shmat=no"
4261 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4265 echo "$ac_t""no" 1>&6
4268 if test $ac_cv_func_shmat = no
; then
4269 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4270 echo "configure:4271: checking for shmat in -lipc" >&5
4271 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS
="$LIBS"
4277 cat > conftest.
$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4289 if { (eval echo configure
:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS
="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4306 echo "$ac_t""no" 1>&6
4312 # Check for libraries that X11R6 Xt/Xaw programs need.
4313 ac_save_LDFLAGS
="$LDFLAGS"
4314 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4315 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4316 # check for ICE first), but we must link in the order -lSM -lICE or
4317 # we get undefined symbols. So assume we have SM if we have ICE.
4318 # These have to be linked with before -lX11, unlike the other
4319 # libraries we check for below, so use a different variable.
4320 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4321 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4322 echo "configure:4323: checking for IceConnectionNumber in -lICE" >&5
4323 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 ac_save_LIBS
="$LIBS"
4328 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 /* Override any gcc2 internal prototype to avoid an error. */
4333 /* We use char because int might match the return type of a gcc2
4334 builtin and then its argument prototype would still apply. */
4335 char IceConnectionNumber();
4338 IceConnectionNumber()
4341 if { (eval echo configure
:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4343 eval "ac_cv_lib_$ac_lib_var=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.
$ac_ext >&5
4348 eval "ac_cv_lib_$ac_lib_var=no"
4351 LIBS
="$ac_save_LIBS"
4354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4358 echo "$ac_t""no" 1>&6
4361 LDFLAGS
="$ac_save_LDFLAGS"
4367 { echo "configure: error: The path for the X11 files not found!
4368 Make sure you have X and it's headers and libraries (the -devel packages
4369 in Linux) installed." 1>&2; exit 1; }
4372 X_LIBRARY_PATH
=$x_libraries
4378 XLIBS
="-lX11 $X_EXTRA_LIBS"
4381 lib_search_path
="$lib_search_path $XLFLAGS"
4382 inc_search_path
="$inc_search_path $XCFLAGS"
4390 # Check whether --enable-locale or --disable-locale was given.
4391 if test "${enable_locale+set}" = set; then
4392 enableval
="$enable_locale"
4397 if test "$use_locale" = yes; then
4398 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4399 echo "configure:4400: checking for _Xsetlocale in -lX11" >&5
4400 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 ac_save_LIBS
="$LIBS"
4405 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4418 if { (eval echo configure
:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 eval "ac_cv_lib_$ac_lib_var=no"
4428 LIBS
="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 cat >> confdefs.h
<<\EOF
4438 echo "$ac_t""no" 1>&6
4444 # Check whether --enable-modelock or --disable-modelock was given.
4445 if test "${enable_modelock+set}" = set; then
4446 enableval
="$enable_modelock"
4447 cat >> confdefs.h
<<\EOF
4448 #define XKB_MODELOCK 1
4457 # Check whether --enable-shape or --disable-shape was given.
4458 if test "${enable_shape+set}" = set; then
4459 enableval
="$enable_shape"
4468 if test "$shape" = yes; then
4469 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4470 echo "configure:4471: checking for XShapeSelectInput in -lXext" >&5
4471 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 ac_save_LIBS
="$LIBS"
4476 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4477 cat > conftest.
$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char XShapeSelectInput();
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 eval "ac_cv_lib_$ac_lib_var=no"
4499 LIBS
="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 XLIBS
="-lXext $XLIBS"
4506 cat >> confdefs.h
<<\EOF
4511 echo "$ac_t""no" 1>&6
4520 # Check whether --enable-xinerama or --disable-xinerama was given.
4521 if test "${enable_xinerama+set}" = set; then
4522 enableval
="$enable_xinerama"
4529 if test "$xinerama" = yes; then
4530 echo $ac_n "checking for X in -lXext""... $ac_c" 1>&6
4531 echo "configure:4532: checking for X in -lXext" >&5
4532 ac_lib_var
=`echo Xext'_'X | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS
="$LIBS"
4537 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4538 cat > conftest.
$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure
:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS
="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 XLIBS
="-lXext $XLIBS"
4567 cat >> confdefs.h
<<\EOF
4572 echo "$ac_t""no" 1>&6
4581 # Check whether --enable-shm or --disable-shm was given.
4582 if test "${enable_shm+set}" = set; then
4583 enableval
="$enable_shm"
4590 if test "$shm" = yes; then
4591 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4592 echo "configure:4593: checking for XShmAttach in -lXext" >&5
4593 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 ac_save_LIBS
="$LIBS"
4598 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4611 if { (eval echo configure
:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS
="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4628 echo "$ac_t""no" 1>&6
4633 if test "$ok" = yes; then
4634 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4635 echo "configure:4636: checking for shmget" >&5
4636 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char shmget(); below. */
4645 /* Override any gcc2 internal prototype to avoid an error. */
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_shmget) || defined (__stub___shmget)
4663 if { (eval echo configure
:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4665 eval "ac_cv_func_shmget=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.
$ac_ext >&5
4670 eval "ac_cv_func_shmget=no"
4675 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4679 echo "$ac_t""no" 1>&6
4685 if test "$ok" = yes; then
4686 if test "$added_xext" = no
; then
4687 XLIBS
="-lXext $XLIBS"
4689 cat >> confdefs.h
<<\EOF
4709 LDFLAGS_old
="$LDFLAGS"
4710 LDFLAGS
="$LDFLAGS $lib_search_path"
4711 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4712 echo "configure:4713: checking for PLGetString in -lPropList" >&5
4713 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 ac_save_LIBS
="$LIBS"
4718 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4731 if { (eval echo configure
:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4733 eval "ac_cv_lib_$ac_lib_var=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4738 eval "ac_cv_lib_$ac_lib_var=no"
4741 LIBS
="$ac_save_LIBS"
4744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4748 echo "$ac_t""no" 1>&6
4752 LDFLAGS
="$LDFLAGS_old"
4754 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4756 CPPFLAGS_old
="$CPPFLAGS"
4757 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4758 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4759 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4760 echo "configure:4761: checking for proplist.h" >&5
4761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 cat > conftest.
$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 #include <proplist.h>
4769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4770 { (eval echo configure
:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4772 if test -z "$ac_err"; then
4774 eval "ac_cv_header_$ac_safe=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.
$ac_ext >&5
4780 eval "ac_cv_header_$ac_safe=no"
4784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4788 echo "$ac_t""no" 1>&6
4791 CPPFLAGS
="$CPPFLAGS_old"
4793 if test "x$ac_cv_header_proplist_h" = xyes
; then
4798 if test "x$LIBPL" = "x"; then
4800 echo "ERROR!!! libPropList is not installed, or could not be found."
4801 echo " Window Maker requires libPropList to build."
4802 echo " Please read INSTALL to find where you can find libPropList,"
4803 echo " and install it first."
4804 if test x
$host_os = xlinux
; then
4805 echo " If you're using some prepackaged version of libPropList,"
4806 echo " make sure you install it's \"development\" package as well."
4808 echo " If you already have it installed, try using the"
4809 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4810 echo " --with-libs-from flag to tell configure where the library"
4811 echo " is installed and"
4813 echo " --with-incs-from flag to tell configure where the header"
4814 echo " files are installed"
4819 CPPFLAGS_old
="$CPPFLAGS"
4820 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4821 lPL_major_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4822 lPL_minor_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4823 lPL_micro_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4824 echo $ac_n "checking whether libPropList is newer than 0.9.5""... $ac_c" 1>&6
4825 echo "configure:4826: checking whether libPropList is newer than 0.9.5" >&5
4826 if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.
$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 /* Test version of libPropList we have */
4833 #include <proplist.h>
4835 #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
4836 #error libPropList on this system is too old. Consider upgrading to at least 0.9.5
4843 if { (eval echo configure
:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4845 eval "ac_cv_lib_proplist_version_ok=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 eval "ac_cv_lib_proplist_version_ok=no"
4855 if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4859 echo "$ac_t""no" 1>&6
4862 CPPFLAGS
="$CPPFLAGS_old"
4865 if test "$goodlPL" = no
; then
4867 echo "ERROR!!! libPropList is an old version. Please consider upgrading"
4868 echo " to at least version 0.9.5. Older versions have bugs that"
4869 echo " may cause Window Maker to crash randomly."
4870 echo " If your libPropList is older than 0.9.2 it will also prevent"
4871 echo " Window Maker from compiling because new functions were"
4872 echo " introduced since that version."
4873 echo " Please read INSTALL to find where you can find libPropList,"
4874 echo " and upgrade it before you proceed."
4887 # Check whether --enable-xpm or --disable-xpm was given.
4888 if test "${enable_xpm+set}" = set; then
4889 enableval
="$enable_xpm"
4896 if test "$xpm" = yes; then
4898 LDFLAGS_old
="$LDFLAGS"
4899 LDFLAGS
="$LDFLAGS $lib_search_path"
4900 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4901 echo "configure:4902: checking for XpmCreatePixmapFromData in -lXpm" >&5
4902 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 ac_save_LIBS
="$LIBS"
4907 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4908 cat > conftest.
$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char XpmCreatePixmapFromData();
4917 XpmCreatePixmapFromData()
4920 if { (eval echo configure
:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4922 eval "ac_cv_lib_$ac_lib_var=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 eval "ac_cv_lib_$ac_lib_var=no"
4930 LIBS
="$ac_save_LIBS"
4933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4941 LDFLAGS
="$LDFLAGS_old"
4944 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4946 CPPFLAGS_old
="$CPPFLAGS"
4947 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4948 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4949 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4950 echo "configure:4951: checking for X11/xpm.h" >&5
4951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 cat > conftest.
$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 #include <X11/xpm.h>
4959 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4960 { (eval echo configure
:4961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4961 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4962 if test -z "$ac_err"; then
4964 eval "ac_cv_header_$ac_safe=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.
$ac_ext >&5
4970 eval "ac_cv_header_$ac_safe=no"
4974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4975 echo "$ac_t""yes" 1>&6
4978 echo "$ac_t""no" 1>&6
4981 CPPFLAGS
="$CPPFLAGS_old"
4983 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4984 GFXLIBS
="$GFXLIBS -lXpm"
4986 cat >> confdefs.h
<<\EOF
4991 supported_gfx
="builtin-XPM"
5007 # Check whether --enable-png or --disable-png was given.
5008 if test "${enable_png+set}" = set; then
5009 enableval
="$enable_png"
5017 if test "$png" = yes ; then
5019 LDFLAGS_old
="$LDFLAGS"
5020 LDFLAGS
="$LDFLAGS $lib_search_path"
5021 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
5022 echo "configure:5023: checking for png_get_valid in -lpng" >&5
5023 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
5024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 ac_save_LIBS
="$LIBS"
5028 LIBS
="-lpng -lz -lm $LIBS"
5029 cat > conftest.
$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5035 char png_get_valid();
5041 if { (eval echo configure
:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS
="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5058 echo "$ac_t""no" 1>&6
5062 LDFLAGS
="$LDFLAGS_old"
5065 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
5067 CPPFLAGS_old
="$CPPFLAGS"
5068 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5069 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
5070 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5071 echo "configure:5072: checking for png.h" >&5
5072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 cat > conftest.
$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5080 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5081 { (eval echo configure
:5082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5082 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5083 if test -z "$ac_err"; then
5085 eval "ac_cv_header_$ac_safe=yes"
5088 echo "configure: failed program was:" >&5
5089 cat conftest.
$ac_ext >&5
5091 eval "ac_cv_header_$ac_safe=no"
5095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5099 echo "$ac_t""no" 1>&6
5102 CPPFLAGS
="$CPPFLAGS_old"
5104 if test "x$ac_cv_header_png_h" = xyes
; then
5105 GFXLIBS
="$GFXLIBS -lpng -lz"
5106 supported_gfx
="$supported_gfx PNG"
5107 cat >> confdefs.h
<<\EOF
5118 # Check whether --enable-jpeg or --disable-jpeg was given.
5119 if test "${enable_jpeg+set}" = set; then
5120 enableval
="$enable_jpeg"
5127 if test "$jpeg" = yes; then
5129 LDFLAGS_old
="$LDFLAGS"
5130 LDFLAGS
="$LDFLAGS $lib_search_path"
5131 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5132 echo "configure:5133: checking for jpeg_destroy_compress in -ljpeg" >&5
5133 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 ac_save_LIBS
="$LIBS"
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* Override any gcc2 internal prototype to avoid an error. */
5143 /* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5145 char jpeg_destroy_compress();
5148 jpeg_destroy_compress()
5151 if { (eval echo configure
:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5153 eval "ac_cv_lib_$ac_lib_var=yes"
5155 echo "configure: failed program was:" >&5
5156 cat conftest.
$ac_ext >&5
5158 eval "ac_cv_lib_$ac_lib_var=no"
5161 LIBS
="$ac_save_LIBS"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5168 echo "$ac_t""no" 1>&6
5172 LDFLAGS
="$LDFLAGS_old"
5175 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
5180 CPPFLAGS_old
="$CPPFLAGS"
5181 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5182 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5183 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5184 echo "configure:5185: checking for jpeglib.h" >&5
5185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.
$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 #include <jpeglib.h>
5193 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5194 { (eval echo configure
:5195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5195 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5196 if test -z "$ac_err"; then
5198 eval "ac_cv_header_$ac_safe=yes"
5201 echo "configure: failed program was:" >&5
5202 cat conftest.
$ac_ext >&5
5204 eval "ac_cv_header_$ac_safe=no"
5208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5212 echo "$ac_t""no" 1>&6
5215 CPPFLAGS
="$CPPFLAGS_old"
5217 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
5218 GFXLIBS
="$GFXLIBS -ljpeg"
5219 supported_gfx
="$supported_gfx JPEG"
5220 cat >> confdefs.h
<<\EOF
5230 # Check whether --enable-gif or --disable-gif was given.
5231 if test "${enable_gif+set}" = set; then
5232 enableval
="$enable_gif"
5239 if test "$gif" = yes; then
5242 LDFLAGS_old
="$LDFLAGS"
5243 LDFLAGS
="$LDFLAGS $lib_search_path"
5244 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
5245 echo "configure:5246: checking for DGifOpenFileName in -lungif" >&5
5246 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 ac_save_LIBS
="$LIBS"
5251 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
5252 cat > conftest.
$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 /* Override any gcc2 internal prototype to avoid an error. */
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258 char DGifOpenFileName();
5264 if { (eval echo configure
:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5266 eval "ac_cv_lib_$ac_lib_var=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.
$ac_ext >&5
5271 eval "ac_cv_lib_$ac_lib_var=no"
5274 LIBS
="$ac_save_LIBS"
5277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5281 echo "$ac_t""no" 1>&6
5285 LDFLAGS
="$LDFLAGS_old"
5287 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
5290 if test "x$my_libname" = x
; then
5292 LDFLAGS_old
="$LDFLAGS"
5293 LDFLAGS
="$LDFLAGS $lib_search_path"
5294 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5295 echo "configure:5296: checking for DGifOpenFileName in -lgif" >&5
5296 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 ac_save_LIBS
="$LIBS"
5301 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
5302 cat > conftest.
$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5308 char DGifOpenFileName();
5314 if { (eval echo configure
:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5316 eval "ac_cv_lib_$ac_lib_var=yes"
5318 echo "configure: failed program was:" >&5
5319 cat conftest.
$ac_ext >&5
5321 eval "ac_cv_lib_$ac_lib_var=no"
5324 LIBS
="$ac_save_LIBS"
5327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5331 echo "$ac_t""no" 1>&6
5335 LDFLAGS
="$LDFLAGS_old"
5337 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
5342 if test "$my_libname" != x
; then
5344 CPPFLAGS_old
="$CPPFLAGS"
5345 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5346 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5347 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5348 echo "configure:5349: checking for gif_lib.h" >&5
5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 cat > conftest.
$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 #include <gif_lib.h>
5357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5358 { (eval echo configure
:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5360 if test -z "$ac_err"; then
5362 eval "ac_cv_header_$ac_safe=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_header_$ac_safe=no"
5372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5379 CPPFLAGS
="$CPPFLAGS_old"
5381 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
5382 GFXLIBS
="$GFXLIBS $my_libname"
5383 supported_gfx
="$supported_gfx GIF"
5384 cat >> confdefs.h
<<\EOF
5394 # Check whether --enable-tiff or --disable-tiff was given.
5395 if test "${enable_tiff+set}" = set; then
5396 enableval
="$enable_tiff"
5404 # TIFF can optionally have JPEG and/or zlib support. Must find out
5405 # when they are supported so that correct library flags are passed during
5406 # detection and linkage
5409 # By default use xpm icons if tiff is not found.
5413 if test "$tif" = yes; then
5416 LDFLAGS_old
="$LDFLAGS"
5417 LDFLAGS
="$LDFLAGS $lib_search_path"
5418 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5419 echo "configure:5420: checking for TIFFGetVersion in -ltiff" >&5
5420 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 ac_save_LIBS
="$LIBS"
5425 LIBS
="-ltiff -lm $LIBS"
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5432 char TIFFGetVersion();
5438 if { (eval echo configure
:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5440 eval "ac_cv_lib_$ac_lib_var=yes"
5442 echo "configure: failed program was:" >&5
5443 cat conftest.
$ac_ext >&5
5445 eval "ac_cv_lib_$ac_lib_var=no"
5448 LIBS
="$ac_save_LIBS"
5451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5452 echo "$ac_t""yes" 1>&6
5455 echo "$ac_t""no" 1>&6
5459 LDFLAGS
="$LDFLAGS_old"
5461 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5464 unset ac_cv_lib_tiff_TIFFGetVersion
5465 if test "x$my_libname" = x
; then
5467 LDFLAGS_old
="$LDFLAGS"
5468 LDFLAGS
="$LDFLAGS $lib_search_path"
5469 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5470 echo "configure:5471: checking for TIFFGetVersion in -ltiff" >&5
5471 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 ac_save_LIBS
="$LIBS"
5476 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
5477 cat > conftest.
$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 /* We use char because int might match the return type of a gcc2
5482 builtin and then its argument prototype would still apply. */
5483 char TIFFGetVersion();
5489 if { (eval echo configure
:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5491 eval "ac_cv_lib_$ac_lib_var=yes"
5493 echo "configure: failed program was:" >&5
5494 cat conftest.
$ac_ext >&5
5496 eval "ac_cv_lib_$ac_lib_var=no"
5499 LIBS
="$ac_save_LIBS"
5502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5506 echo "$ac_t""no" 1>&6
5510 LDFLAGS
="$LDFLAGS_old"
5512 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5513 my_libname
="-ltiff -lz"
5517 if test "x$my_libname" = x
; then
5519 LDFLAGS_old
="$LDFLAGS"
5520 LDFLAGS
="$LDFLAGS $lib_search_path"
5521 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5522 echo "configure:5523: checking for TIFFGetVersion in -ltiff34" >&5
5523 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 ac_save_LIBS
="$LIBS"
5528 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5529 cat > conftest.
$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5535 char TIFFGetVersion();
5541 if { (eval echo configure
:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5543 eval "ac_cv_lib_$ac_lib_var=yes"
5545 echo "configure: failed program was:" >&5
5546 cat conftest.
$ac_ext >&5
5548 eval "ac_cv_lib_$ac_lib_var=no"
5551 LIBS
="$ac_save_LIBS"
5554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5558 echo "$ac_t""no" 1>&6
5562 LDFLAGS
="$LDFLAGS_old"
5564 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5565 my_libname
="-ltiff34"
5570 if test "x$my_libname" != x
; then
5572 CPPFLAGS_old
="$CPPFLAGS"
5573 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5574 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5576 echo "configure:5577: checking for tiffio.h" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.
$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5585 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure
:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5590 eval "ac_cv_header_$ac_safe=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.
$ac_ext >&5
5596 eval "ac_cv_header_$ac_safe=no"
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5604 echo "$ac_t""no" 1>&6
5607 CPPFLAGS
="$CPPFLAGS_old"
5609 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5610 GFXLIBS
="$my_libname $GFXLIBS"
5612 supported_gfx
="$supported_gfx TIFF"
5613 cat >> confdefs.h
<<\EOF
5621 LIBRARY_SEARCH_PATH
="$lib_search_path"
5622 HEADER_SEARCH_PATH
="$inc_search_path"
5634 # Check whether --enable-debug or --disable-debug was given.
5635 if test "${enable_debug+set}" = set; then
5636 enableval
="$enable_debug"
5643 if test "$enable_debug" = yes; then
5645 # Efence makes things too slow. Add it by hand in the Makefiles
5646 # if it is really needed.
5647 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5649 DFLAGS
="-DWITHOUT_NANA"
5655 # Check whether --enable-sound or --disable-sound was given.
5656 if test "${enable_sound+set}" = set; then
5657 enableval
="$enable_sound"
5663 if test "$sound" = yes; then
5664 cat >> confdefs.h
<<\EOF
5671 # AC_PREFIX_PROGRAM(wmaker)
5673 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5674 if test "${with_pixmapdir+set}" = set; then
5675 withval
="$with_pixmapdir"
5680 if test "x$with_pixmapdir" != "x"; then
5681 pixmapdir
=$with_pixmapdir
5683 pixmapdir
=`eval echo ${datadir}/pixmaps`
5686 cat >> confdefs.h
<<EOF
5687 #define PIXMAPDIR "$pixmapdir"
5691 pkgdatadir
=`eval echo $datadir`
5692 cat >> confdefs.h
<<EOF
5693 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5697 _sysconfdir
=`eval echo $sysconfdir`
5698 cat >> confdefs.h
<<EOF
5699 #define SYSCONFDIR "$_sysconfdir"
5707 # Check whether --with-appspath or --without-appspath was given.
5708 if test "${with_appspath+set}" = set; then
5709 withval
="$with_appspath"
5714 if test "x$appspath" = "x"; then
5715 gnustepdir
='$(prefix)/GNUstep'
5717 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5718 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5719 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5722 with_appspath
=$gnustepdir/Apps
5725 wprefsdir
=$with_appspath/WPrefs.app
5731 # Check whether --enable-single-icon or --disable-single-icon was given.
5732 if test "${enable_single_icon+set}" = set; then
5733 enableval
="$enable_single_icon"
5734 if test "$enableval" = yes; then
5735 cat >> confdefs.h
<<\EOF
5736 #define REDUCE_APPICONS 1
5744 # Check whether --enable-usermenu or --disable-usermenu was given.
5745 if test "${enable_usermenu+set}" = set; then
5746 enableval
="$enable_usermenu"
5747 if test "$enableval" = yes; then
5748 cat >> confdefs.h
<<\EOF
5761 cat > confcache
<<\EOF
5762 # This file is a shell script that caches the results of configure
5763 # tests run on this system so they can be shared between configure
5764 # scripts and configure runs. It is not useful on other systems.
5765 # If it contains results you don't want to keep, you may remove or edit it.
5767 # By default, configure uses ./config.cache as the cache file,
5768 # creating it if it does not exist already. You can give configure
5769 # the --cache-file=FILE option to use a different cache file; that is
5770 # what configure does when it calls configure scripts in
5771 # subdirectories, so they share the cache.
5772 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5773 # config.status only pays attention to the cache file if you give it the
5774 # --recheck option to rerun configure.
5777 # The following way of writing the cache mishandles newlines in values,
5778 # but we know of no workaround that is simple, portable, and efficient.
5779 # So, don't put newlines in cache variables' values.
5780 # Ultrix sh set writes to stderr and can't be redirected directly,
5781 # and sets the high bit in the cache file unless we assign to the vars.
5783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5785 # `set' does not quote correctly, so add quotes (double-quote substitution
5786 # turns \\\\ into \\, and sed turns \\ into \).
5788 -e "s/'/'\\\\''/g" \
5789 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5792 # `set' quotes correctly as required by POSIX, so do not add quotes.
5793 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5796 if cmp -s $cache_file confcache
; then
5799 if test -w $cache_file; then
5800 echo "updating cache $cache_file"
5801 cat confcache
> $cache_file
5803 echo "not updating unwritable cache $cache_file"
5808 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5810 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5811 # Let make expand exec_prefix.
5812 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5814 # Any assignment to VPATH causes Sun make to only execute
5815 # the first set of double-colon rules, so remove it if not needed.
5816 # If there is a colon in the path, we need to keep it.
5817 if test "x$srcdir" = x.
; then
5818 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5821 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5823 DEFS
=-DHAVE_CONFIG_H
5825 # Without the "./", some shells look in PATH for config.status.
5826 : ${CONFIG_STATUS=./config.status}
5828 echo creating
$CONFIG_STATUS
5829 rm -f $CONFIG_STATUS
5830 cat > $CONFIG_STATUS <<EOF
5832 # Generated automatically by configure.
5833 # Run this file to recreate the current configuration.
5834 # This directory was configured as follows,
5835 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5837 # $0 $ac_configure_args
5839 # Compiler output produced by configure, useful for debugging
5840 # configure, is in ./config.log if it exists.
5842 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5845 case "\$ac_option" in
5846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5847 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5848 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5849 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5850 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5852 -help | --help | --hel | --he | --h)
5853 echo "\$ac_cs_usage"; exit 0 ;;
5854 *) echo "\$ac_cs_usage"; exit 1 ;;
5858 ac_given_srcdir=$srcdir
5859 ac_given_INSTALL="$INSTALL"
5861 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5862 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5863 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5864 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5865 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5866 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5867 WindowMaker/Themes/Makefile \
5868 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5869 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5871 cat >> $CONFIG_STATUS <<EOF
5873 # Protect against being on the right side of a sed subst in config.status.
5874 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5875 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5879 s%@CFLAGS@%$CFLAGS%g
5880 s%@CPPFLAGS@%$CPPFLAGS%g
5881 s%@CXXFLAGS@%$CXXFLAGS%g
5882 s%@FFLAGS@%$FFLAGS%g
5884 s%@LDFLAGS@%$LDFLAGS%g
5886 s%@exec_prefix@%$exec_prefix%g
5887 s%@prefix@%$prefix%g
5888 s%@program_transform_name@%$program_transform_name%g
5889 s%@bindir@%$bindir%g
5890 s%@sbindir@%$sbindir%g
5891 s%@libexecdir@%$libexecdir%g
5892 s%@datadir@%$datadir%g
5893 s%@sysconfdir@%$sysconfdir%g
5894 s%@sharedstatedir@%$sharedstatedir%g
5895 s%@localstatedir@%$localstatedir%g
5896 s%@libdir@%$libdir%g
5897 s%@includedir@%$includedir%g
5898 s%@oldincludedir@%$oldincludedir%g
5899 s%@infodir@%$infodir%g
5900 s%@mandir@%$mandir%g
5901 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5902 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5903 s%@INSTALL_DATA@%$INSTALL_DATA%g
5904 s%@PACKAGE@%$PACKAGE%g
5905 s%@VERSION@%$VERSION%g
5906 s%@ACLOCAL@%$ACLOCAL%g
5907 s%@AUTOCONF@%$AUTOCONF%g
5908 s%@AUTOMAKE@%$AUTOMAKE%g
5909 s%@AUTOHEADER@%$AUTOHEADER%g
5910 s%@MAKEINFO@%$MAKEINFO%g
5911 s%@SET_MAKE@%$SET_MAKE%g
5913 s%@host_alias@%$host_alias%g
5914 s%@host_cpu@%$host_cpu%g
5915 s%@host_vendor@%$host_vendor%g
5916 s%@host_os@%$host_os%g
5918 s%@build_alias@%$build_alias%g
5919 s%@build_cpu@%$build_cpu%g
5920 s%@build_vendor@%$build_vendor%g
5921 s%@build_os@%$build_os%g
5922 s%@RANLIB@%$RANLIB%g
5925 s%@LIBTOOL@%$LIBTOOL%g
5927 s%@ALLOCA@%$ALLOCA%g
5928 s%@CPP_PATH@%$CPP_PATH%g
5929 s%@XGETTEXT@%$XGETTEXT%g
5930 s%@DLLIBS@%$DLLIBS%g
5931 s%@INTLIBS@%$INTLIBS%g
5932 s%@NLSDIR@%$NLSDIR%g
5933 s%@MOFILES@%$MOFILES%g
5934 s%@WPMOFILES@%$WPMOFILES%g
5936 s%@NETLIBS@%$NETLIBS%g
5937 s%@X_CFLAGS@%$X_CFLAGS%g
5938 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5939 s%@X_LIBS@%$X_LIBS%g
5940 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5941 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5943 s%@XCFLAGS@%$XCFLAGS%g
5944 s%@XLFLAGS@%$XLFLAGS%g
5946 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5947 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5948 s%@GFXLIBS@%$GFXLIBS%g
5949 s%@ICONEXT@%$ICONEXT%g
5950 s%@DFLAGS@%$DFLAGS%g
5951 s%@wprefsdir@%$wprefsdir%g
5956 cat >> $CONFIG_STATUS <<\EOF
5958 # Split the substitutions into bite-sized pieces for seds with
5959 # small command number limits, like on Digital OSF/1 and HP-UX.
5960 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5961 ac_file
=1 # Number of current file.
5962 ac_beg
=1 # First line for current file.
5963 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5966 while $ac_more_lines; do
5967 if test $ac_beg -gt 1; then
5968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5970 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5972 if test ! -s conftest.s
$ac_file; then
5974 rm -f conftest.s
$ac_file
5976 if test -z "$ac_sed_cmds"; then
5977 ac_sed_cmds
="sed -f conftest.s$ac_file"
5979 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5981 ac_file
=`expr $ac_file + 1`
5983 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5986 if test -z "$ac_sed_cmds"; then
5991 cat >> $CONFIG_STATUS <<EOF
5993 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5994 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5995 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5996 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5997 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5998 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5999 WindowMaker/Themes/Makefile \
6000 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
6001 WPrefs.app/po/Makefile "}
6003 cat >> $CONFIG_STATUS <<\EOF
6004 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6007 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6008 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6009 *) ac_file_in
="${ac_file}.in" ;;
6012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6014 # Remove last slash and all that follows it. Not all systems have dirname.
6015 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6017 # The file is in a subdirectory.
6018 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6019 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6020 # A "../" for each directory in $ac_dir_suffix.
6021 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6023 ac_dir_suffix
= ac_dots
=
6026 case "$ac_given_srcdir" in
6028 if test -z "$ac_dots"; then top_srcdir
=.
6029 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6030 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6032 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6033 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6036 case "$ac_given_INSTALL" in
6037 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6038 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6041 echo creating
"$ac_file"
6043 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6045 *Makefile
*) ac_comsub
="1i\\
6046 # $configure_input" ;;
6050 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6052 s%@configure_input@%$configure_input%g
6053 s%@srcdir@%$srcdir%g
6054 s%@top_srcdir@%$top_srcdir%g
6055 s%@INSTALL@%$INSTALL%g
6056 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6060 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6061 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6063 # ac_d sets the value in "#define NAME VALUE" lines.
6064 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6065 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6068 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6069 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6070 ac_uB
='\([ ]\)%\1#\2define\3'
6073 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6074 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6075 ac_eB
='$%\1#\2define\3'
6079 if test "${CONFIG_HEADERS+set}" != set; then
6081 cat >> $CONFIG_STATUS <<EOF
6082 CONFIG_HEADERS="src/config.h"
6084 cat >> $CONFIG_STATUS <<\EOF
6086 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6089 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6090 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6091 *) ac_file_in
="${ac_file}.in" ;;
6094 echo creating
$ac_file
6096 rm -f conftest.frag conftest.
in conftest.out
6097 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6098 cat $ac_file_inputs > conftest.
in
6102 # Transform confdefs.h into a sed script conftest.vals that substitutes
6103 # the proper values into config.h.in to produce config.h. And first:
6104 # Protect against being on the right side of a sed subst in config.status.
6105 # Protect against being in an unquoted here document in config.status.
6107 cat > conftest.hdr
<<\EOF
6110 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6114 sed -n -f conftest.hdr confdefs.h > conftest.vals
6117 # This sed command replaces #undef with comments. This is necessary, for
6118 # example, in the case of _POSIX_SOURCE, which is predefined and required
6119 # on some systems where configure will not decide to define it.
6120 cat >> conftest.vals <<\EOF
6121 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6124 # Break up conftest.vals because some shells have a limit on
6125 # the size of here documents, and old seds have small limits too.
6130 ac_lines=`grep -c . conftest.vals
`
6131 # grep -c gives empty output for an empty file on some AIX systems.
6132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6133 # Write a limited-size here document to conftest.frag.
6134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6137 sed -f conftest.frag conftest.in > conftest.out
6139 mv conftest.out conftest.in
6141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6143 mv conftest.tail conftest.vals
6147 cat >> $CONFIG_STATUS <<\EOF
6148 rm -f conftest.frag conftest.h
6149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6150 cat conftest.in >> conftest.h
6152 if cmp -s $ac_file conftest.h 2>/dev/null; then
6153 echo "$ac_file is unchanged"
6156 # Remove last slash and all that follows it. Not all systems have dirname.
6157 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6159 # The file is in a subdirectory.
6160 test ! -d "$ac_dir" && mkdir "$ac_dir"
6163 mv conftest.h $ac_file
6168 cat >> $CONFIG_STATUS <<EOF
6172 cat >> $CONFIG_STATUS <<\EOF
6173 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
6177 chmod +x $CONFIG_STATUS
6178 rm -fr confdefs* $ac_clean_files
6179 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6187 cat <<EOF >get-wraster-flags
6191 exec_prefix=\$prefix
6193 WCFLAGS="-I\$prefix/include $inc_search_path"
6194 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6195 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
6197 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6199 if test \$# -eq 0; then
6200 echo "\${usage}" 1>&2
6204 while test \$# -gt 0; do
6216 echo "\${usage}" 1>&2
6226 cat <<EOF >get-wings-flags
6230 exec_prefix=\$prefix
6232 WCFLAGS="-I\$prefix/include $inc_search_path"
6233 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6234 WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
6236 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6238 if test \$# -eq 0; then
6239 echo "\${usage}" 1>&2
6243 while test \$# -gt 0; do
6255 echo "\${usage}" 1>&2
6265 cat <<EOF >get-wutil-flags
6269 exec_prefix=\$prefix
6271 WCFLAGS="-I\$prefix/include $inc_search_path"
6272 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6273 WLIBS="-lWUtil $NETLIBS -lPropList"
6275 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6277 if test \$# -eq 0; then
6278 echo "\${usage}" 1>&2
6282 while test \$# -gt 0; do
6294 echo "\${usage}" 1>&2
6304 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
6305 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
6306 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
6308 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
6310 rm -f get-wraster-flags get-wings-flags get-wutil-flags
6314 supported_gfx="$supported_gfx builtin-PPM"
6316 if test "x$MOFILES" = "x"; then
6324 echo "Window Maker was configured as follows:"
6326 echo "Installation path prefix: $prefix"
6327 echo "Installation path prefix for binaries: $_bindir"
6328 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
6329 echo "Graphic format libraries: $supported_gfx"
6330 echo "Sound support: $sound"
6331 echo "Translated message files to install: $mof"
6332 if test "x$MOFILES" != "x"; then
6333 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
6337 if test "x$ac_cv_header_jpeglib_h" != xyes; then
6338 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
6340 echo "JPEG support will not be included because the JPEG library is"
6341 echo "not installed correctly or was not found. Background images"
6342 echo "from themes will not display as they usually are JPEG files."
6344 echo "To fix, download and install the jpeg library and/or make sure you"
6345 echo "installed all jpeg related packages, SPECIALLY the development packages"
6346 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
6348 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"