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 build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --with-libs-from pass compiler flags to look for libraries"
27 --with-incs-from pass compiler flags to look for header files"
29 --enable-kanji multibyte character support (kanji, Korean etc.)"
31 --with-nlsdir=PATH specify where the locale stuff should go "
33 --enable-gnome enable stuff needed for GNOME "
35 --enable-kde enable support for KDE window manager (kwm) hints "
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
39 --enable-lite disable stuff duplicated in KDE/GNOME "
41 --with-x use the X Window System"
43 --disable-locale disable use of X locale support"
45 --enable-modelock XKB keyboard language status support"
47 --disable-shape disable shaped window 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 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file
=.
/config.cache
85 program_transform_name
=s
,x
,x
,
93 bindir
='${exec_prefix}/bin'
94 sbindir
='${exec_prefix}/sbin'
95 libexecdir
='${exec_prefix}/libexec'
96 datadir
='${prefix}/share'
97 sysconfdir
='${prefix}/etc'
98 sharedstatedir
='${prefix}/com'
99 localstatedir
='${prefix}/var'
100 libdir
='${exec_prefix}/lib'
101 includedir
='${prefix}/include'
102 oldincludedir
='/usr/include'
103 infodir
='${prefix}/info'
104 mandir
='${prefix}/man'
106 # Initialize some other variables.
109 SHELL
=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=src
/WindowMaker.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
585 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
586 if test -f $ac_dir/install-sh
; then
588 ac_install_sh
="$ac_aux_dir/install-sh -c"
590 elif test -f $ac_dir/install.sh
; then
592 ac_install_sh
="$ac_aux_dir/install.sh -c"
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess
=$ac_aux_dir/config.guess
600 ac_config_sub
=$ac_aux_dir/config.sub
601 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
613 # ./install, which can be erroneously created by make from ./install.sh.
614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
615 echo "configure:616: checking for a BSD compatible install" >&5
616 if test -z "$INSTALL"; then
617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
621 for ac_dir
in $PATH; do
622 # Account for people who put trailing slashes in PATH elements.
624 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
626 # OSF1 and SCO ODT 3.0 have their own names for install.
627 # Don't use installbsd from OSF since it installs stuff as root
629 for ac_prog
in ginstall scoinst
install; do
630 if test -f $ac_dir/$ac_prog; then
631 if test $ac_prog = install &&
632 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
633 # AIX install. It has an incompatible calling convention.
636 ac_cv_path_install
="$ac_dir/$ac_prog -c"
647 if test "${ac_cv_path_install+set}" = set; then
648 INSTALL
="$ac_cv_path_install"
650 # As a last resort, use the slow shell script. We don't cache a
651 # path for INSTALL within a source directory, because that will
652 # break other packages using the cache if that directory is
653 # removed, or if the path is relative.
654 INSTALL
="$ac_install_sh"
657 echo "$ac_t""$INSTALL" 1>&6
659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
660 # It thinks the first close brace ends the variable substitution.
661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
665 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
667 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
668 echo "configure:669: checking whether build environment is sane" >&5
671 echo timestamp
> conftestfile
672 # Do `set' in a subshell so we don't clobber the current shell's
673 # arguments. Must try -L first in case configure is actually a
674 # symlink; some systems play weird games with the mod time of symlinks
675 # (eg FreeBSD returns the mod time of the symlink's containing
678 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
679 if test "$*" = "X"; then
681 set X
`ls -t $srcdir/configure conftestfile`
683 if test "$*" != "X $srcdir/configure conftestfile" \
684 && test "$*" != "X conftestfile $srcdir/configure"; then
686 # If neither matched, then we have a broken ls. This can happen
687 # if, for instance, CONFIG_SHELL is bash and it inherits a
688 # broken ls alias from the environment. This has actually
689 # happened. Such a system could not be considered "sane".
690 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
691 alias in your environment" 1>&2; exit 1; }
694 test "$2" = conftestfile
700 { echo "configure: error: newly created file is older than distributed files!
701 Check your system clock" 1>&2; exit 1; }
704 echo "$ac_t""yes" 1>&6
705 if test "$program_transform_name" = s
,x
,x
,; then
706 program_transform_name
=
708 # Double any \ or $. echo might interpret backslashes.
709 cat <<\EOF_SED
> conftestsed
710 s
,\\,\\\\,g
; s
,\$
,$$
,g
712 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
715 test "$program_prefix" != NONE
&&
716 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
717 # Use a double $ so make ignores it.
718 test "$program_suffix" != NONE
&&
719 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
721 # sed with no file args requires a program.
722 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
724 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
725 echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
726 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
727 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 cat > conftestmake
<<\EOF
732 @
echo 'ac_maketemp="${MAKE}"'
734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
735 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
736 if test -n "$ac_maketemp"; then
737 eval ac_cv_prog_make_
${ac_make}_set
=yes
739 eval ac_cv_prog_make_
${ac_make}_set
=no
743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
744 echo "$ac_t""yes" 1>&6
747 echo "$ac_t""no" 1>&6
748 SET_MAKE
="MAKE=${MAKE-make}"
756 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
757 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
759 cat >> confdefs.h
<<EOF
760 #define PACKAGE "$PACKAGE"
763 cat >> confdefs.h
<<EOF
764 #define VERSION "$VERSION"
769 missing_dir
=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 ACLOCAL
="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOCONF
="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
803 echo "$ac_t""found" 1>&6
805 AUTOMAKE
="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
815 AUTOHEADER
=autoheader
816 echo "$ac_t""found" 1>&6
818 AUTOHEADER
="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
829 echo "$ac_t""found" 1>&6
831 MAKEINFO
="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
837 # Check whether --enable-shared or --disable-shared was given.
838 if test "${enable_shared+set}" = set; then
839 enableval
="$enable_shared"
842 yes) enable_shared
=yes ;;
843 no
) enable_shared
=no
;;
846 # Look at the argument we got. We use all the common list separators.
847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
848 for pkg
in $enableval; do
849 if test "X$pkg" = "X$p"; then
860 # Check whether --enable-static or --disable-static was given.
861 if test "${enable_static+set}" = set; then
862 enableval
="$enable_static"
865 yes) enable_static
=yes ;;
866 no
) enable_static
=no
;;
869 # Look at the argument we got. We use all the common list separators.
870 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
871 for pkg
in $enableval; do
872 if test "X$pkg" = "X$p"; then
884 # Make sure we can run config.sub.
885 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
886 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
893 case "$host_alias" in
897 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
900 *) host_alias
=$nonopt ;;
904 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
905 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo "$ac_t""$host" 1>&6
910 # Extract the first word of "ranlib", so it can be a program name with args.
911 set dummy ranlib
; ac_word
=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 echo "configure:914: checking for $ac_word" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 if test -n "$RANLIB"; then
918 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
920 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
922 for ac_dir
in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir
=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_RANLIB
="ranlib"
930 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
933 RANLIB
="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
937 echo "$ac_t""no" 1>&6
940 # Extract the first word of "gcc", so it can be a program name with args.
941 set dummy gcc
; ac_word
=$2
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
943 echo "configure:944: checking for $ac_word" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 if test -n "$CC"; then
948 ac_cv_prog_CC
="$CC" # Let the user override the test.
950 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
952 for ac_dir
in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir
=.
954 if test -f $ac_dir/$ac_word; then
963 if test -n "$CC"; then
964 echo "$ac_t""$CC" 1>&6
966 echo "$ac_t""no" 1>&6
969 if test -z "$CC"; then
970 # Extract the first word of "cc", so it can be a program name with args.
971 set dummy cc
; ac_word
=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 if test -n "$CC"; then
978 ac_cv_prog_CC
="$CC" # Let the user override the test.
980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
983 for ac_dir
in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir
=.
985 if test -f $ac_dir/$ac_word; then
986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
995 if test $ac_prog_rejected = yes; then
996 # We found a bogon in the path, so make sure we never use it.
997 set dummy
$ac_cv_prog_CC
999 if test $# -gt 0; then
1000 # We chose a different compiler from the bogus one.
1001 # However, it has the same basename, so the bogon will be chosen
1002 # first if we set CC to just the basename; use the full file name.
1004 set dummy
"$ac_dir/$ac_word" "$@"
1012 if test -n "$CC"; then
1013 echo "$ac_t""$CC" 1>&6
1015 echo "$ac_t""no" 1>&6
1018 if test -z "$CC"; then
1019 case "`uname -s`" in
1021 # Extract the first word of "cl", so it can be a program name with args.
1022 set dummy cl
; ac_word
=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC
="$CC" # Let the user override the test.
1031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1033 for ac_dir
in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir
=.
1035 if test -f $ac_dir/$ac_word; then
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1047 echo "$ac_t""no" 1>&6
1052 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1060 ac_cpp
='$CPP $CPPFLAGS'
1061 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1062 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1063 cross_compiling
=$ac_cv_prog_cc_cross
1065 cat > conftest.
$ac_ext << EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1072 if { (eval echo configure
:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1073 ac_cv_prog_cc_works
=yes
1074 # If we can't run a trivial program, we are probably using a cross compiler.
1075 if (.
/conftest
; exit) 2>/dev
/null
; then
1076 ac_cv_prog_cc_cross
=no
1078 ac_cv_prog_cc_cross
=yes
1081 echo "configure: failed program was:" >&5
1082 cat conftest.
$ac_ext >&5
1083 ac_cv_prog_cc_works
=no
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp
='$CPP $CPPFLAGS'
1089 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling
=$ac_cv_prog_cc_cross
1093 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1094 if test $ac_cv_prog_cc_works = no
; then
1095 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1099 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1100 cross_compiling
=$ac_cv_prog_cc_cross
1102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 cat > conftest.c
<<EOF
1112 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1121 if test $ac_cv_prog_gcc = yes; then
1127 ac_test_CFLAGS
="${CFLAGS+set}"
1128 ac_save_CFLAGS
="$CFLAGS"
1130 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CC-cc} accepts -g" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 echo 'void f(){}' > conftest.c
1136 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1145 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1146 if test "$ac_test_CFLAGS" = set; then
1147 CFLAGS
="$ac_save_CFLAGS"
1148 elif test $ac_cv_prog_cc_g = yes; then
1149 if test "$GCC" = yes; then
1155 if test "$GCC" = yes; then
1162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1163 if test "${with_gnu_ld+set}" = set; then
1164 withval
="$with_gnu_ld"
1165 test "$withval" = no || with_gnu_ld
=yes
1172 if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ld used by GCC" >&5
1176 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1178 # Accept absolute paths.
1180 test -z "$LD" && LD
="$ac_prog"
1183 # If it fails, then pretend we aren't using GCC.
1187 # If it is relative, then search for the first ld in PATH.
1191 elif test "$with_gnu_ld" = yes; then
1192 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1193 echo "configure:1194: checking for GNU ld" >&5
1195 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1196 echo "configure:1197: checking for non-GNU ld" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -z "$LD"; then
1202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1203 for ac_dir
in $PATH; do
1204 test -z "$ac_dir" && ac_dir
=.
1205 if test -f "$ac_dir/$ac_prog"; then
1206 ac_cv_path_LD
="$ac_dir/$ac_prog"
1207 # Check to see if the program is GNU ld. I'd rather use --version,
1208 # but apparently some GNU ld's only accept -v.
1209 # Break only if it was the GNU/non-GNU ld that we prefer.
1210 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1211 test "$with_gnu_ld" != no
&& break
1213 test "$with_gnu_ld" != yes && break
1219 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1224 if test -n "$LD"; then
1225 echo "$ac_t""$LD" 1>&6
1227 echo "$ac_t""no" 1>&6
1229 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1232 echo "configure:1233: checking if the linker ($LD) is GNU ld" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1237 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1238 ac_cv_prog_gnu_ld
=yes
1240 ac_cv_prog_gnu_ld
=no
1244 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1247 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1248 echo "configure:1249: checking for BSD-compatible nm" >&5
1249 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1254 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1258 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1259 test -z "$ac_dir" && ac_dir
=.
1260 if test -f $ac_dir/nm
; then
1261 # Check to see if the nm accepts a BSD-compat flag.
1262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1263 # nm: unknown option "B" ignored
1264 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1265 ac_cv_path_NM
="$ac_dir/nm -B"
1266 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1267 ac_cv_path_NM
="$ac_dir/nm -p"
1269 ac_cv_path_NM
="$ac_dir/nm"
1275 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1281 echo "$ac_t""$NM" 1>&6
1284 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ln -s works" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1290 if ln -s X conftestdata
2>/dev
/null
1293 ac_cv_prog_LN_S
="ln -s"
1298 LN_S
="$ac_cv_prog_LN_S"
1299 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1300 echo "$ac_t""yes" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 # Always use our own libtool.
1306 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1308 # Check for any special flags to pass to ltconfig.
1310 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1311 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1312 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1313 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1314 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1316 # Some flags need to be propagated to the compiler or linker for good
1320 # Find out which ABI we are using.
1321 echo '#line 1322 "configure"' > conftest.
$ac_ext
1322 if { (eval echo configure
:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 case "`/usr/bin/file conftest.o`" in
1339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1340 CFLAGS
="$CFLAGS -belf"
1344 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1345 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1346 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1347 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1348 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1349 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1352 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1353 # Turn around -rpath problem with libtool 1.0c
1354 # This define should be improbable enough to not conflict with anything
1357 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1358 sed < libtool
> libtool-2 \
1359 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1360 mv libtool-2 libtool
1373 # Make sure we can run config.sub.
1374 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1375 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1378 echo $ac_n "checking host system type""... $ac_c" 1>&6
1379 echo "configure:1380: checking host system type" >&5
1382 case "$host_alias" in
1386 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1387 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1389 *) host_alias
=$nonopt ;;
1393 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1394 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$ac_t""$host" 1>&6
1401 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1402 echo "configure:1403: checking for POSIXized ISC" >&5
1403 if test -d /etc
/conf
/kconfig.d
&&
1404 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1406 echo "$ac_t""yes" 1>&6
1407 ISC
=yes # If later tests want to check for ISC.
1408 cat >> confdefs.h
<<\EOF
1409 #define _POSIX_SOURCE 1
1412 if test "$GCC" = yes; then
1418 echo "$ac_t""no" 1>&6
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc
; ac_word
=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC
="$CC" # Let the user override the test.
1432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1434 for ac_dir
in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir
=.
1436 if test -f $ac_dir/$ac_word; then
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1448 echo "$ac_t""no" 1>&6
1451 if test -z "$CC"; then
1452 # Extract the first word of "cc", so it can be a program name with args.
1453 set dummy cc
; ac_word
=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC
="$CC" # Let the user override the test.
1462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1465 for ac_dir
in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir
=.
1467 if test -f $ac_dir/$ac_word; then
1468 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1469 ac_prog_rejected
=yes
1477 if test $ac_prog_rejected = yes; then
1478 # We found a bogon in the path, so make sure we never use it.
1479 set dummy
$ac_cv_prog_CC
1481 if test $# -gt 0; then
1482 # We chose a different compiler from the bogus one.
1483 # However, it has the same basename, so the bogon will be chosen
1484 # first if we set CC to just the basename; use the full file name.
1486 set dummy
"$ac_dir/$ac_word" "$@"
1494 if test -n "$CC"; then
1495 echo "$ac_t""$CC" 1>&6
1497 echo "$ac_t""no" 1>&6
1500 if test -z "$CC"; then
1501 case "`uname -s`" in
1503 # Extract the first word of "cl", so it can be a program name with args.
1504 set dummy cl
; ac_word
=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC
="$CC" # Let the user override the test.
1513 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1515 for ac_dir
in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir
=.
1517 if test -f $ac_dir/$ac_word; then
1526 if test -n "$CC"; then
1527 echo "$ac_t""$CC" 1>&6
1529 echo "$ac_t""no" 1>&6
1534 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp
='$CPP $CPPFLAGS'
1543 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling
=$ac_cv_prog_cc_cross
1547 cat > conftest.
$ac_ext << EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1554 if { (eval echo configure
:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1555 ac_cv_prog_cc_works
=yes
1556 # If we can't run a trivial program, we are probably using a cross compiler.
1557 if (.
/conftest
; exit) 2>/dev
/null
; then
1558 ac_cv_prog_cc_cross
=no
1560 ac_cv_prog_cc_cross
=yes
1563 echo "configure: failed program was:" >&5
1564 cat conftest.
$ac_ext >&5
1565 ac_cv_prog_cc_works
=no
1569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp
='$CPP $CPPFLAGS'
1571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling
=$ac_cv_prog_cc_cross
1575 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1576 if test $ac_cv_prog_cc_works = no
; then
1577 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1581 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1582 cross_compiling
=$ac_cv_prog_cc_cross
1584 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether we are using GNU C" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.c
<<EOF
1594 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1601 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1603 if test $ac_cv_prog_gcc = yes; then
1609 ac_test_CFLAGS
="${CFLAGS+set}"
1610 ac_save_CFLAGS
="$CFLAGS"
1612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether ${CC-cc} accepts -g" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 echo 'void f(){}' > conftest.c
1618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1628 if test "$ac_test_CFLAGS" = set; then
1629 CFLAGS
="$ac_save_CFLAGS"
1630 elif test $ac_cv_prog_cc_g = yes; then
1631 if test "$GCC" = yes; then
1637 if test "$GCC" = yes; then
1645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether ln -s works" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1651 if ln -s X conftestdata
2>/dev
/null
1654 ac_cv_prog_LN_S
="ln -s"
1659 LN_S
="$ac_cv_prog_LN_S"
1660 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1661 echo "$ac_t""yes" 1>&6
1663 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1667 echo "configure:1668: checking how to run the C preprocessor" >&5
1668 # On Suns, sometimes $CPP names a directory.
1669 if test -n "$CPP" && test -d "$CPP"; then
1672 if test -z "$CPP"; then
1673 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 # This must be in double quotes, not single quotes, because CPP may get
1677 # substituted into the Makefile and "${CC-cc}" will confuse make.
1679 # On the NeXT, cc -E runs the code through the compiler's parser,
1680 # not just through cpp.
1681 cat > conftest.
$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1688 { (eval echo configure
:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1690 if test -z "$ac_err"; then
1694 echo "configure: failed program was:" >&5
1695 cat conftest.
$ac_ext >&5
1697 CPP
="${CC-cc} -E -traditional-cpp"
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure
:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1711 echo "configure: failed program was:" >&5
1712 cat conftest.
$ac_ext >&5
1714 CPP
="${CC-cc} -nologo -E"
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure
:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1728 echo "configure: failed program was:" >&5
1729 cat conftest.
$ac_ext >&5
1738 ac_cv_prog_CPP
="$CPP"
1740 CPP
="$ac_cv_prog_CPP"
1742 ac_cv_prog_CPP
="$CPP"
1744 echo "$ac_t""$CPP" 1>&6
1746 if test $ac_cv_prog_gcc = yes; then
1747 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 ac_pattern
="Autoconf.*'x'"
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "$ac_pattern" >/dev
/null
2>&1; then
1762 ac_cv_prog_gcc_traditional
=yes
1765 ac_cv_prog_gcc_traditional
=no
1770 if test $ac_cv_prog_gcc_traditional = no
; then
1771 cat > conftest.
$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "$ac_pattern" >/dev
/null
2>&1; then
1780 ac_cv_prog_gcc_traditional
=yes
1787 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1788 if test $ac_cv_prog_gcc_traditional = yes; then
1789 CC
="$CC -traditional"
1796 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1797 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1800 _bindir
=`eval echo $bindir`
1801 _bindir
=`eval echo $_bindir`
1803 _libdir
=`eval echo $libdir`
1804 _libdir
=`eval echo $_libdir`
1805 lib_search_path
="-L$_libdir"
1807 inc_search_path
=`eval echo $includedir`
1808 inc_search_path
="-I`eval echo $inc_search_path`"
1813 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1814 echo "configure:1815: checking for RedHat system" >&5
1815 wm_check_flag
='no :)'
1816 if test -f /etc
/redhat-release
; then
1819 echo "$ac_t""$wm_check_flag" 1>&6
1823 if test "$wm_check_flag" = yes; then
1825 echo "configure: warning: it seems you are using a system packaged by RedHat.
1826 I will now do some checks for RedHat specific bugs. If some check
1827 fail, please read the INSTALL file regarding RedHat, resolve the
1828 problem and retry to configure." 1>&2
1831 # Check old wmaker from RedHat
1833 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1834 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1835 echo "configure:1836: checking for multiple installed wmaker versions" >&5
1836 if test -f /usr
/X11R
6/bin
/wmaker
; then
1837 echo "$ac_t""uh oh" 1>&6
1838 echo "configure: warning: you seem to have an old version of Window Maker
1839 installed at /usr/X11R6/bin. It is recommended that you uninstall
1840 any previously installed packages of WindowMaker before installing
1844 echo "$ac_t""no apparent problems" 1>&6
1848 # Check for infamous en_RN bug
1849 # Wont work because autoconf will change LANG in the beginning of the
1853 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
1855 #if test "x$LANG" = xen_RN; then
1856 #AC_MSG_RESULT(uh oh)
1857 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
1858 #locale. Please unset it or you will have mysterious problems when
1859 #using various software packages.])
1862 #AC_MSG_RESULT(no problem)
1865 # If binary installation path is /usr/local/bin, check if it's in PATH
1867 if test "$_bindir" = "/usr/local/bin"; then
1868 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
1869 echo "configure:1870: checking if /usr/local/bin is in the search PATH" >&5
1874 if test "x$i" = "x/usr/local/bin"; then
1880 if test "$wm_check_flag" = no
; then
1881 echo "$ac_t""uh oh" 1>&6
1882 echo "configure: warning: /usr/local/bin is not in the PATH environment variable.
1883 Please resolve the problem." 1>&2
1886 echo "$ac_t""no problem" 1>&6
1890 # If library installation path is /usr/local/lib,
1891 # check if it's in /etc/ld.so.conf
1893 if test "$_libdir" = "/usr/local/lib"; then
1895 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
1896 echo "configure:1897: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
1897 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
1898 test "$?" -eq 0 && wm_check_flag
=no
1899 if test "$wm_check_flag" = no
; then
1900 echo "$ac_t""uh oh" 1>&6
1901 echo "configure: warning: /usr/local/lib is not in the /etc/ld.so.conf file.
1902 Please add it there." 1>&2
1905 echo "$ac_t""no problem" 1>&6
1909 # Check for symbolic links
1911 echo $ac_n "checking for /usr/X11 symbolic link""... $ac_c" 1>&6
1912 echo "configure:1913: checking for /usr/X11 symbolic link" >&5
1913 if test -d "/usr/X11"; then
1914 echo "$ac_t""found" 1>&6
1916 echo "$ac_t""uh oh" 1>&6
1917 echo "configure: warning: Please create a symbolic link from /usr/X11R6 to /usr/X11." 1>&2
1920 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
1921 echo "configure:1922: checking for /usr/include/X11 symbolic link" >&5
1922 if test -d "/usr/include/X11"; then
1923 echo "$ac_t""found" 1>&6
1925 echo "$ac_t""uh oh" 1>&6
1926 echo "configure: warning: Please create a symbolic link from /usr/X11R6/include/X11
1927 to /usr/include/X11." 1>&2
1932 # Check for /lib/cpp
1934 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
1935 echo "configure:1936: checking for /lib/cpp" >&5
1936 if test -f "/lib/cpp"; then
1937 echo "$ac_t""found" 1>&6
1939 echo "$ac_t""uh oh" 1>&6
1940 echo "configure: warning: Please create a symbolic link from the cpp (C preprocessor)
1941 program to /lib/cpp" 1>&2
1945 if test "x$bugs_found" = xyes
; then
1946 { echo "configure: error: Some bugs that can potentially cause problems during
1947 installation/execution were found. Please correct these problems
1948 and retry later." 1>&2; exit 1; }
1950 elif test "x$mins_found" = xyes
; then
1951 echo "configure: warning: Some minor problems that might or might not cause
1952 problems were found. If you have any problems during
1953 installation/execution, please resolve the pointed problems and try
1955 echo "Press <Return> to continue."
1959 echo "None of the RedHat problems known to this script were found."
1966 # Check whether --with-libs-from or --without-libs-from was given.
1967 if test "${with_libs_from+set}" = set; then
1968 withval
="$with_libs_from"
1969 lib_search_path
="$withval $lib_search_path"
1973 # Check whether --with-incs-from or --without-incs-from was given.
1974 if test "${with_incs_from+set}" = set; then
1975 withval
="$with_incs_from"
1976 inc_search_path
="$withval $inc_search_path"
1982 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1983 echo "configure:1984: checking for vprintf" >&5
1984 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char vprintf(); below. */
1993 /* Override any gcc2 internal prototype to avoid an error. */
1994 /* We use char because int might match the return type of a gcc2
1995 builtin and then its argument prototype would still apply. */
2000 /* The GNU C library defines this for functions which it implements
2001 to always fail with ENOSYS. Some functions are actually named
2002 something starting with __ and the normal name is an alias. */
2003 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2011 if { (eval echo configure
:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2013 eval "ac_cv_func_vprintf=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2018 eval "ac_cv_func_vprintf=no"
2023 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2024 echo "$ac_t""yes" 1>&6
2025 cat >> confdefs.h
<<\EOF
2026 #define HAVE_VPRINTF 1
2030 echo "$ac_t""no" 1>&6
2033 if test "$ac_cv_func_vprintf" != yes; then
2034 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2035 echo "configure:2036: checking for _doprnt" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* System header to define __stub macros and hopefully few prototypes,
2043 which can conflict with char _doprnt(); below. */
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2063 if { (eval echo configure
:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2065 eval "ac_cv_func__doprnt=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 eval "ac_cv_func__doprnt=no"
2075 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 cat >> confdefs.h
<<\EOF
2078 #define HAVE_DOPRNT 1
2082 echo "$ac_t""no" 1>&6
2087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2088 # for constant arguments. Useless!
2089 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2090 echo "configure:2091: checking for working alloca.h" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2099 char *p = alloca(2 * sizeof(int));
2102 if { (eval echo configure
:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2104 ac_cv_header_alloca_h
=yes
2106 echo "configure: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2109 ac_cv_header_alloca_h
=no
2114 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2115 if test $ac_cv_header_alloca_h = yes; then
2116 cat >> confdefs.h
<<\EOF
2117 #define HAVE_ALLOCA_H 1
2122 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2123 echo "configure:2124: checking for alloca" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 # define alloca __builtin_alloca
2135 # include <malloc.h>
2136 # define alloca _alloca
2139 # include <alloca.h>
2144 # ifndef alloca /* predefined by HP cc +Olibcalls */
2153 char *p = (char *) alloca(1);
2156 if { (eval echo configure
:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2158 ac_cv_func_alloca_works
=yes
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 ac_cv_func_alloca_works
=no
2168 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2169 if test $ac_cv_func_alloca_works = yes; then
2170 cat >> confdefs.h
<<\EOF
2171 #define HAVE_ALLOCA 1
2176 if test $ac_cv_func_alloca_works = no
; then
2177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2178 # that cause trouble. Some versions do not even contain alloca or
2179 # contain a buggy version. If you still want to use their alloca,
2180 # use ar to extract alloca.o from them instead of compiling alloca.c.
2181 ALLOCA
=alloca.
${ac_objext}
2182 cat >> confdefs.h
<<\EOF
2187 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2188 echo "configure:2189: checking whether alloca needs Cray hooks" >&5
2189 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #if defined(CRAY) && ! defined(CRAY2)
2202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2203 egrep "webecray" >/dev
/null
2>&1; then
2214 echo "$ac_t""$ac_cv_os_cray" 1>&6
2215 if test $ac_cv_os_cray = yes; then
2216 for ac_func
in _getb67 GETB67 getb67
; do
2217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_func" >&5
2219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* System header to define __stub macros and hopefully few prototypes,
2226 which can conflict with char $ac_func(); below. */
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2246 if { (eval echo configure
:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2248 eval "ac_cv_func_$ac_func=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 eval "ac_cv_func_$ac_func=no"
2258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 cat >> confdefs.h
<<EOF
2261 #define CRAY_STACKSEG_END $ac_func
2266 echo "$ac_t""no" 1>&6
2272 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2273 echo "configure:2274: checking stack direction for C alloca" >&5
2274 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 if test "$cross_compiling" = yes; then
2278 ac_cv_c_stack_direction
=0
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 find_stack_direction ()
2285 static char *addr = 0;
2290 return find_stack_direction ();
2293 return (&dummy > addr) ? 1 : -1;
2297 exit (find_stack_direction() < 0);
2300 if { (eval echo configure
:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2302 ac_cv_c_stack_direction
=1
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 ac_cv_c_stack_direction
=-1
2314 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2315 cat >> confdefs.h
<<EOF
2316 #define STACK_DIRECTION $ac_cv_c_stack_direction
2321 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_func" >&5
2325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $ac_func(); below. */
2334 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2354 eval "ac_cv_func_$ac_func=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 eval "ac_cv_func_$ac_func=no"
2364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h
<<EOF
2368 #define $ac_tr_func 1
2372 echo "$ac_t""no" 1>&6
2377 if test "x$CPP_PATH" = x
; then
2378 # Extract the first word of "cpp", so it can be a program name with args.
2379 set dummy cpp
; ac_word
=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2387 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2390 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2394 ac_dummy
="/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH"
2395 for ac_dir
in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir
=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2403 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2407 CPP_PATH
="$ac_cv_path_CPP_PATH"
2408 if test -n "$CPP_PATH"; then
2409 echo "$ac_t""$CPP_PATH" 1>&6
2411 echo "$ac_t""no" 1>&6
2416 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2417 if test "$GCC" = "yes"; then
2418 CPP_PATH
="gcc -E -x c"
2420 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2421 CPP_PATH
="$CPP_PATH -B"
2423 echo "cpp, the C preprocessor was not found in your system."
2424 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2429 cat >> confdefs.h
<<EOF
2430 #define CPP_PATH "$CPP_PATH"
2436 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2437 echo "configure:2438: checking for sys/wait.h that is POSIX.1 compatible" >&5
2438 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 #include <sys/types.h>
2445 #include <sys/wait.h>
2447 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2450 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2458 if { (eval echo configure
:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 ac_cv_header_sys_wait_h
=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 ac_cv_header_sys_wait_h
=no
2470 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2471 if test $ac_cv_header_sys_wait_h = yes; then
2472 cat >> confdefs.h
<<\EOF
2473 #define HAVE_SYS_WAIT_H 1
2478 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2479 echo "configure:2480: checking whether time.h and sys/time.h may both be included" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <sys/types.h>
2487 #include <sys/time.h>
2493 if { (eval echo configure
:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2495 ac_cv_header_time
=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 ac_cv_header_time
=no
2505 echo "$ac_t""$ac_cv_header_time" 1>&6
2506 if test $ac_cv_header_time = yes; then
2507 cat >> confdefs.h
<<\EOF
2508 #define TIME_WITH_SYS_TIME 1
2513 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2514 libintl.h sys
/select.h poll.h
2516 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_hdr" >&5
2519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.
$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure
:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2532 eval "ac_cv_header_$ac_safe=yes"
2535 echo "configure: failed program was:" >&5
2536 cat conftest.
$ac_ext >&5
2538 eval "ac_cv_header_$ac_safe=no"
2542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2545 cat >> confdefs.h
<<EOF
2546 #define $ac_tr_hdr 1
2550 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2558 echo "configure:2559: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2559 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 cat > conftest.
$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2565 #include <sys/types.h>
2567 /* NetBSD declares sys_siglist in unistd.h. */
2568 #ifdef HAVE_UNISTD_H
2572 char *msg = *(sys_siglist + 1);
2575 if { (eval echo configure
:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577 ac_cv_decl_sys_siglist
=yes
2579 echo "configure: failed program was:" >&5
2580 cat conftest.
$ac_ext >&5
2582 ac_cv_decl_sys_siglist
=no
2587 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2588 if test $ac_cv_decl_sys_siglist = yes; then
2589 cat >> confdefs.h
<<\EOF
2590 #define SYS_SIGLIST_DECLARED 1
2595 echo $ac_n "checking for working const""... $ac_c" 1>&6
2596 echo "configure:2597: checking for working const" >&5
2597 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2606 /* Ultrix mips cc rejects this. */
2607 typedef int charset[2]; const charset x;
2608 /* SunOS 4.1.1 cc rejects this. */
2609 char const *const *ccp;
2611 /* NEC SVR4.0.2 mips cc rejects this. */
2612 struct point {int x, y;};
2613 static struct point const zero = {0,0};
2614 /* AIX XL C 1.02.0.0 rejects this.
2615 It does not let you subtract one const X* pointer from another in an arm
2616 of an if-expression whose if-part is not a constant expression */
2617 const char *g = "string";
2618 ccp = &g + (g ? g-g : 0);
2619 /* HPUX 7.0 cc rejects these. */
2622 ccp = (char const *const *) p;
2623 { /* SCO 3.2v4 cc rejects this. */
2625 char const *s = 0 ? (char *) 0 : (char const *) 0;
2629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2631 const int *foo = &x[0];
2634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2635 typedef const int *iptr;
2639 { /* AIX XL C 1.02.0.0 rejects this saying
2640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2641 struct s { int j; const int *ap[3]; };
2642 struct s *b; b->j = 5;
2644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2650 if { (eval echo configure
:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2662 echo "$ac_t""$ac_cv_c_const" 1>&6
2663 if test $ac_cv_c_const = no
; then
2664 cat >> confdefs.h
<<\EOF
2672 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2673 echo "configure:2674: checking return type of signal handlers" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2686 extern "C" void (*signal (int, void (*)(int)))(int);
2688 void (*signal ()) ();
2695 if { (eval echo configure
:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 ac_cv_type_signal
=void
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2702 ac_cv_type_signal
=int
2707 echo "$ac_t""$ac_cv_type_signal" 1>&6
2708 cat >> confdefs.h
<<EOF
2709 #define RETSIGTYPE $ac_cv_type_signal
2723 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2724 echo "configure:2725: checking for gettext" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.
$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char gettext(); below. */
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2741 /* The GNU C library defines this for functions which it implements
2742 to always fail with ENOSYS. Some functions are actually named
2743 something starting with __ and the normal name is an alias. */
2744 #if defined (__stub_gettext) || defined (__stub___gettext)
2752 if { (eval echo configure
:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2754 eval "ac_cv_func_gettext=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_func_gettext=no"
2764 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2768 echo "$ac_t""no" 1>&6
2769 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2770 echo "configure:2771: checking for gettext in -lintl" >&5
2771 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 ac_save_LIBS
="$LIBS"
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* Override any gcc2 internal prototype to avoid an error. */
2781 /* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2789 if { (eval echo configure
:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2791 eval "ac_cv_lib_$ac_lib_var=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_lib_$ac_lib_var=no"
2799 LIBS
="$ac_save_LIBS"
2802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2806 echo "$ac_t""no" 1>&6
2813 # Extract the first word of "xgettext", so it can be a program name with args.
2814 set dummy xgettext
; ac_word
=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 if test -n "$XGETTEXT"; then
2821 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2825 for ac_dir
in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir
=.
2827 if test -f $ac_dir/$ac_word; then
2828 ac_cv_prog_XGETTEXT
="xgettext"
2835 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2836 if test -n "$XGETTEXT"; then
2837 echo "$ac_t""$XGETTEXT" 1>&6
2839 echo "$ac_t""no" 1>&6
2843 if test "$XGETTEXT" != ""; then
2844 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2845 echo "xgettext isn't GNU version"
2850 if test "$LINGUAS" != ""; then
2851 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2852 cat >> confdefs.h
<<\EOF
2857 # if test "$LINGUAS" = ""; then
2858 # ling=` (cd src/po; /bin/ls *.po) `
2859 # for l in $ling; do
2860 # lcode=`basename $l .po`
2861 # LINGUAS="$LINGUAS $lcode"
2864 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2868 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2879 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro dk zh_TW.Big5"
2880 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5"
2882 for lang
in $LINGUAS; do
2884 for l
in $supported_locales; do
2885 if test "$l" = "$lang"; then
2890 if test "$ok" = 1; then
2891 MOFILES
="$MOFILES $lang.mo"
2893 echo "Locale $lang is not supported."
2896 for l
in $supported_wprefs_locales; do
2897 if test "$l" = "$lang"; then
2902 if test "$ok" = 1; then
2903 WPMOFILES
="$WPMOFILES $lang.mo"
2909 # Check whether --enable-kanji or --disable-kanji was given.
2910 if test "${enable_kanji+set}" = set; then
2911 enableval
="$enable_kanji"
2918 if test "$enable_kanji" = yes; then
2921 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2922 echo "configure:2923: checking for setlocale in -lxpg4" >&5
2923 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_save_LIBS
="$LIBS"
2929 cat > conftest.
$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2941 if { (eval echo configure
:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2943 eval "ac_cv_lib_$ac_lib_var=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.
$ac_ext >&5
2948 eval "ac_cv_lib_$ac_lib_var=no"
2951 LIBS
="$ac_save_LIBS"
2954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2958 echo "$ac_t""no" 1>&6
2964 cat >> confdefs.h
<<\EOF
2972 # Check whether --with-nlsdir or --without-nlsdir was given.
2973 if test "${with_nlsdir+set}" = set; then
2974 withval
="$with_nlsdir"
2980 if test "x$NLSDIR" = "x"; then
2981 if test "x$with_nlsdir" != "x"; then
2984 NLSDIR
='$(prefix)/lib/locale'
2997 # Check whether --enable-gnome or --disable-gnome was given.
2998 if test "${enable_gnome+set}" = set; then
2999 enableval
="$enable_gnome"
3000 if test x
$enableval = xyes
; then
3001 cat >> confdefs.h
<<\EOF
3002 #define GNOME_STUFF 1
3011 # Check whether --enable-kde or --disable-kde was given.
3012 if test "${enable_kde+set}" = set; then
3013 enableval
="$enable_kde"
3014 if test x
$enableval = xyes
; then
3015 cat >> confdefs.h
<<\EOF
3025 # Check whether --enable-openlook or --disable-openlook was given.
3026 if test "${enable_openlook+set}" = set; then
3027 enableval
="$enable_openlook"
3028 if test x
$enableval = xyes
; then
3029 cat >> confdefs.h
<<\EOF
3030 #define OLWM_HINTS 1
3039 # Check whether --enable-lite or --disable-lite was given.
3040 if test "${enable_lite+set}" = set; then
3041 enableval
="$enable_lite"
3042 if test x
$enableval = xyes
; then
3044 cat >> confdefs.h
<<\EOF
3056 # If we find X, set shell vars x_includes and x_libraries to the
3057 # paths, otherwise set no_x=yes.
3058 # Uses ac_ vars as temps to allow command line to override cache and checks.
3059 # --without-x overrides everything else, but does not touch the cache.
3060 echo $ac_n "checking for X""... $ac_c" 1>&6
3061 echo "configure:3062: checking for X" >&5
3063 # Check whether --with-x or --without-x was given.
3064 if test "${with_x+set}" = set; then
3069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3070 if test "x$with_x" = xno
; then
3071 # The user explicitly disabled X.
3074 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3075 # Both variables are already set.
3078 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 # One or both of the vars are not set, and there is no cached value.
3082 ac_x_includes
=NO ac_x_libraries
=NO
3084 if mkdir conftestdir
; then
3086 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3087 cat > Imakefile
<<'EOF'
3089 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3091 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3093 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3095 for ac_extension
in a so sl
; do
3096 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3097 test -f $ac_im_libdir/libX11.
$ac_extension; then
3098 ac_im_usrlibdir
=$ac_im_libdir; break
3101 # Screen out bogus values from the imake configuration. They are
3102 # bogus both because they are the default anyway, and because
3103 # using them would break gcc on systems where it needs fixed includes.
3104 case "$ac_im_incroot" in
3106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3108 case "$ac_im_usrlibdir" in
3110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3117 if test "$ac_x_includes" = NO
; then
3118 # Guess where to find include files, by looking for this one X11 .h file.
3119 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3121 # First, try using that file with no special directory specified.
3122 cat > conftest.
$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <$x_direct_test_include>
3127 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure
:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3132 # We can compile using X headers with no special include directory.
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 # Look for the header file in a standard set of common directories.
3140 # Check X11 before X11Rn because it is often a symlink to the current release.
3143 /usr
/X11R
6/include \
3144 /usr
/X11R
5/include \
3145 /usr
/X11R
4/include \
3148 /usr
/include
/X11R6 \
3149 /usr
/include
/X11R5 \
3150 /usr
/include
/X11R4 \
3152 /usr
/local
/X11
/include \
3153 /usr
/local
/X11R
6/include \
3154 /usr
/local
/X11R
5/include \
3155 /usr
/local
/X11R
4/include \
3157 /usr
/local
/include
/X11 \
3158 /usr
/local
/include
/X11R6 \
3159 /usr
/local
/include
/X11R5 \
3160 /usr
/local
/include
/X11R4 \
3164 /usr
/XFree86
/include
/X11 \
3167 /usr
/local
/include \
3168 /usr
/unsupported
/include \
3169 /usr
/athena
/include \
3170 /usr
/local
/x11r
5/include \
3171 /usr
/lpp
/Xamples
/include \
3173 /usr
/openwin
/include \
3174 /usr
/openwin
/share
/include \
3177 if test -r "$ac_dir/$x_direct_test_include"; then
3178 ac_x_includes
=$ac_dir
3184 fi # $ac_x_includes = NO
3186 if test "$ac_x_libraries" = NO
; then
3187 # Check for the libraries.
3189 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3190 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3192 # See if we find them without any special options.
3193 # Don't add to $LIBS permanently.
3194 ac_save_LIBS
="$LIBS"
3195 LIBS
="-l$x_direct_test_library $LIBS"
3196 cat > conftest.
$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3201 ${x_direct_test_function}()
3204 if { (eval echo configure
:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3206 LIBS
="$ac_save_LIBS"
3207 # We can link X programs with no special library path.
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 LIBS
="$ac_save_LIBS"
3214 # First see if replacing the include by lib works.
3215 # Check X11 before X11Rn because it is often a symlink to the current release.
3216 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3227 /usr
/local
/X11
/lib \
3228 /usr
/local
/X11R
6/lib \
3229 /usr
/local
/X11R
5/lib \
3230 /usr
/local
/X11R
4/lib \
3232 /usr
/local
/lib
/X11 \
3233 /usr
/local
/lib
/X11R6 \
3234 /usr
/local
/lib
/X11R5 \
3235 /usr
/local
/lib
/X11R4 \
3239 /usr
/XFree86
/lib
/X11 \
3243 /usr
/unsupported
/lib \
3245 /usr
/local
/x11r
5/lib \
3246 /usr
/lpp
/Xamples
/lib \
3250 /usr
/openwin
/share
/lib \
3253 for ac_extension
in a so sl
; do
3254 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3255 ac_x_libraries
=$ac_dir
3262 fi # $ac_x_libraries = NO
3264 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3265 # Didn't find X anywhere. Cache the known absence of X.
3266 ac_cv_have_x
="have_x=no"
3268 # Record where we found X for the cache.
3269 ac_cv_have_x
="have_x=yes \
3270 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3274 eval "$ac_cv_have_x"
3277 if test "$have_x" != yes; then
3278 echo "$ac_t""$have_x" 1>&6
3281 # If each of the values was on the command line, it overrides each guess.
3282 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3283 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3284 # Update the cache value to reflect the command line values.
3285 ac_cv_have_x
="have_x=yes \
3286 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3287 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3290 if test "$no_x" = yes; then
3291 # Not all programs may use this symbol, but it does not hurt to define it.
3292 cat >> confdefs.h
<<\EOF
3293 #define X_DISPLAY_MISSING 1
3296 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3298 if test -n "$x_includes"; then
3299 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3302 # It would also be nice to do this for all -L options, not just this one.
3303 if test -n "$x_libraries"; then
3304 X_LIBS
="$X_LIBS -L$x_libraries"
3305 # For Solaris; some versions of Sun CC require a space after -R and
3306 # others require no space. Words are not sufficient . . . .
3307 case "`(uname -sr) 2>/dev/null`" in
3309 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3310 echo "configure:3311: checking whether -R must be followed by a space" >&5
3311 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3312 cat > conftest.
$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3330 if test $ac_R_nospace = yes; then
3331 echo "$ac_t""no" 1>&6
3332 X_LIBS
="$X_LIBS -R$x_libraries"
3334 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3335 cat > conftest.
$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3343 if { (eval echo configure
:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3347 echo "configure: failed program was:" >&5
3348 cat conftest.
$ac_ext >&5
3353 if test $ac_R_space = yes; then
3354 echo "$ac_t""yes" 1>&6
3355 X_LIBS
="$X_LIBS -R $x_libraries"
3357 echo "$ac_t""neither works" 1>&6
3360 LIBS
="$ac_xsave_LIBS"
3364 # Check for system-dependent libraries X programs must link with.
3365 # Do this before checking for the system-independent R6 libraries
3366 # (-lICE), since we may need -lsocket or whatever for X linking.
3368 if test "$ISC" = yes; then
3369 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3371 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3372 # libraries were built with DECnet support. And karl@cs.umb.edu says
3373 # the Alpha needs dnet_stub (dnet does not exist).
3374 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3375 echo "configure:3376: checking for dnet_ntoa in -ldnet" >&5
3376 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 ac_save_LIBS
="$LIBS"
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3396 eval "ac_cv_lib_$ac_lib_var=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 eval "ac_cv_lib_$ac_lib_var=no"
3404 LIBS
="$ac_save_LIBS"
3407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3411 echo "$ac_t""no" 1>&6
3414 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3415 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3416 echo "configure:3417: checking for dnet_ntoa in -ldnet_stub" >&5
3417 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_save_LIBS
="$LIBS"
3422 LIBS
="-ldnet_stub $LIBS"
3423 cat > conftest.
$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3435 if { (eval echo configure
:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3442 eval "ac_cv_lib_$ac_lib_var=no"
3445 LIBS
="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3452 echo "$ac_t""no" 1>&6
3457 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3458 # to get the SysV transport functions.
3459 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3461 # The nsl library prevents programs from opening the X display
3462 # on Irix 5.2, according to dickey@clark.net.
3463 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3464 echo "configure:3465: checking for gethostbyname" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.
$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char gethostbyname(); below. */
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3477 char gethostbyname();
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3492 if { (eval echo configure
:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3494 eval "ac_cv_func_gethostbyname=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.
$ac_ext >&5
3499 eval "ac_cv_func_gethostbyname=no"
3504 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3508 echo "$ac_t""no" 1>&6
3511 if test $ac_cv_func_gethostbyname = no
; then
3512 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3513 echo "configure:3514: checking for gethostbyname in -lnsl" >&5
3514 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 ac_save_LIBS
="$LIBS"
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char gethostbyname();
3532 if { (eval echo configure
:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS
="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3549 echo "$ac_t""no" 1>&6
3554 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3555 # socket/setsockopt and other routines are undefined under SCO ODT
3556 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3557 # on later versions), says simon@lia.di.epfl.ch: it contains
3558 # gethostby* variants that don't use the nameserver (or something).
3559 # -lsocket must be given before -lnsl if both are needed.
3560 # We assume that if connect needs -lnsl, so does gethostbyname.
3561 echo $ac_n "checking for connect""... $ac_c" 1>&6
3562 echo "configure:3563: checking for connect" >&5
3563 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* System header to define __stub macros and hopefully few prototypes,
3570 which can conflict with char connect(); below. */
3572 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_connect) || defined (__stub___connect)
3590 if { (eval echo configure
:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3592 eval "ac_cv_func_connect=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.
$ac_ext >&5
3597 eval "ac_cv_func_connect=no"
3602 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3606 echo "$ac_t""no" 1>&6
3609 if test $ac_cv_func_connect = no
; then
3610 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3611 echo "configure:3612: checking for connect in -lsocket" >&5
3612 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 ac_save_LIBS
="$LIBS"
3617 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3632 eval "ac_cv_lib_$ac_lib_var=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 eval "ac_cv_lib_$ac_lib_var=no"
3640 LIBS
="$ac_save_LIBS"
3643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3647 echo "$ac_t""no" 1>&6
3652 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3653 echo $ac_n "checking for remove""... $ac_c" 1>&6
3654 echo "configure:3655: checking for remove" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 cat > conftest.
$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char remove(); below. */
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined (__stub_remove) || defined (__stub___remove)
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 eval "ac_cv_func_remove=yes"
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 eval "ac_cv_func_remove=no"
3694 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3698 echo "$ac_t""no" 1>&6
3701 if test $ac_cv_func_remove = no
; then
3702 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3703 echo "configure:3704: checking for remove in -lposix" >&5
3704 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 ac_save_LIBS
="$LIBS"
3709 LIBS
="-lposix $LIBS"
3710 cat > conftest.
$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3722 if { (eval echo configure
:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.
$ac_ext >&5
3729 eval "ac_cv_lib_$ac_lib_var=no"
3732 LIBS
="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3739 echo "$ac_t""no" 1>&6
3744 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3745 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3746 echo "configure:3747: checking for shmat" >&5
3747 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.
$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* System header to define __stub macros and hopefully few prototypes,
3754 which can conflict with char shmat(); below. */
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3763 /* The GNU C library defines this for functions which it implements
3764 to always fail with ENOSYS. Some functions are actually named
3765 something starting with __ and the normal name is an alias. */
3766 #if defined (__stub_shmat) || defined (__stub___shmat)
3774 if { (eval echo configure
:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3776 eval "ac_cv_func_shmat=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 eval "ac_cv_func_shmat=no"
3786 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3790 echo "$ac_t""no" 1>&6
3793 if test $ac_cv_func_shmat = no
; then
3794 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3795 echo "configure:3796: checking for shmat in -lipc" >&5
3796 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 ac_save_LIBS
="$LIBS"
3802 cat > conftest.
$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3814 if { (eval echo configure
:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3816 eval "ac_cv_lib_$ac_lib_var=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.
$ac_ext >&5
3821 eval "ac_cv_lib_$ac_lib_var=no"
3824 LIBS
="$ac_save_LIBS"
3827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3828 echo "$ac_t""yes" 1>&6
3829 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3831 echo "$ac_t""no" 1>&6
3837 # Check for libraries that X11R6 Xt/Xaw programs need.
3838 ac_save_LDFLAGS
="$LDFLAGS"
3839 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3840 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3841 # check for ICE first), but we must link in the order -lSM -lICE or
3842 # we get undefined symbols. So assume we have SM if we have ICE.
3843 # These have to be linked with before -lX11, unlike the other
3844 # libraries we check for below, so use a different variable.
3845 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3846 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3847 echo "configure:3848: checking for IceConnectionNumber in -lICE" >&5
3848 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 ac_save_LIBS
="$LIBS"
3853 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3860 char IceConnectionNumber();
3863 IceConnectionNumber()
3866 if { (eval echo configure
:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3868 eval "ac_cv_lib_$ac_lib_var=yes"
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 eval "ac_cv_lib_$ac_lib_var=no"
3876 LIBS
="$ac_save_LIBS"
3879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3880 echo "$ac_t""yes" 1>&6
3881 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3883 echo "$ac_t""no" 1>&6
3886 LDFLAGS
="$ac_save_LDFLAGS"
3895 XLIBS
="-lX11 $X_EXTRA_LIBS"
3898 lib_search_path
="$lib_search_path $XLFLAGS"
3899 inc_search_path
="$inc_search_path $XCFLAGS"
3903 # Check whether --enable-locale or --disable-locale was given.
3904 if test "${enable_locale+set}" = set; then
3905 enableval
="$enable_locale"
3910 if test "$use_locale" = yes; then
3911 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3912 echo "configure:3913: checking for _Xsetlocale in -lX11" >&5
3913 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 ac_save_LIBS
="$LIBS"
3918 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3931 if { (eval echo configure
:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3933 eval "ac_cv_lib_$ac_lib_var=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 eval "ac_cv_lib_$ac_lib_var=no"
3941 LIBS
="$ac_save_LIBS"
3944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3946 cat >> confdefs.h
<<\EOF
3951 echo "$ac_t""no" 1>&6
3957 # Check whether --enable-modelock or --disable-modelock was given.
3958 if test "${enable_modelock+set}" = set; then
3959 enableval
="$enable_modelock"
3960 X_CFLAGS
="$X_CFLAGS -DXKB_MODELOCK"
3967 # Check whether --enable-shape or --disable-shape was given.
3968 if test "${enable_shape+set}" = set; then
3969 enableval
="$enable_shape"
3978 if test "$shape" = yes; then
3979 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3980 echo "configure:3981: checking for XShapeSelectInput in -lXext" >&5
3981 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_save_LIBS
="$LIBS"
3986 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3993 char XShapeSelectInput();
3999 if { (eval echo configure
:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4001 eval "ac_cv_lib_$ac_lib_var=yes"
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 eval "ac_cv_lib_$ac_lib_var=no"
4009 LIBS
="$ac_save_LIBS"
4012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 XLIBS
="-lXext $XLIBS"
4016 cat >> confdefs.h
<<\EOF
4021 echo "$ac_t""no" 1>&6
4029 # Check whether --enable-shm or --disable-shm was given.
4030 if test "${enable_shm+set}" = set; then
4031 enableval
="$enable_shm"
4038 if test "$shm" = yes; then
4039 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4040 echo "configure:4041: checking for XShmAttach in -lXext" >&5
4041 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 ac_save_LIBS
="$LIBS"
4046 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4047 cat > conftest.
$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4059 if { (eval echo configure
:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4066 eval "ac_cv_lib_$ac_lib_var=no"
4069 LIBS
="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4076 echo "$ac_t""no" 1>&6
4081 if test "$ok" = yes; then
4082 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4083 echo "configure:4084: checking for shmget" >&5
4084 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.
$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 /* System header to define __stub macros and hopefully few prototypes,
4091 which can conflict with char shmget(); below. */
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4100 /* The GNU C library defines this for functions which it implements
4101 to always fail with ENOSYS. Some functions are actually named
4102 something starting with __ and the normal name is an alias. */
4103 #if defined (__stub_shmget) || defined (__stub___shmget)
4111 if { (eval echo configure
:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4113 eval "ac_cv_func_shmget=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 eval "ac_cv_func_shmget=no"
4123 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4127 echo "$ac_t""no" 1>&6
4133 if test "$ok" = yes; then
4134 if test "$added_xext" = no
; then
4135 XLIBS
="-lXext $XLIBS"
4137 cat >> confdefs.h
<<\EOF
4157 LDFLAGS_old
="$LDFLAGS"
4158 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4159 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4160 echo "configure:4161: checking for PLGetString in -lPropList" >&5
4161 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 ac_save_LIBS
="$LIBS"
4166 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4167 cat > conftest.
$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4179 if { (eval echo configure
:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.
$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS
="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4196 echo "$ac_t""no" 1>&6
4200 LDFLAGS
="$LDFLAGS_old"
4202 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4204 CPPFLAGS_old
="$CPPFLAGS"
4205 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4206 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4207 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4208 echo "configure:4209: checking for proplist.h" >&5
4209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 cat > conftest.
$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 #include <proplist.h>
4217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4218 { (eval echo configure
:4219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4220 if test -z "$ac_err"; then
4222 eval "ac_cv_header_$ac_safe=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.
$ac_ext >&5
4228 eval "ac_cv_header_$ac_safe=no"
4232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4236 echo "$ac_t""no" 1>&6
4239 CPPFLAGS
="$CPPFLAGS_old"
4241 if test "x$ac_cv_header_proplist_h" = xyes
; then
4246 if test "x$LIBPL" = "x"; then
4248 echo "ERROR!!! libPropList is not installed, or could not be found."
4249 echo " Window Maker requires libPropList to build."
4250 echo " Please read INSTALL to find where you can find libPropList,"
4251 echo " and install it first."
4252 echo " If you already have it installed, try using the"
4253 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4254 echo " --with-libs-from flag to tell configure where the library"
4255 echo " is installed and"
4257 echo " --with-incs-from flag to tell configure where the header"
4258 echo " files are installed"
4272 # Check whether --enable-xpm or --disable-xpm was given.
4273 if test "${enable_xpm+set}" = set; then
4274 enableval
="$enable_xpm"
4281 if test "$xpm" = yes; then
4283 LDFLAGS_old
="$LDFLAGS"
4284 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4285 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4286 echo "configure:4287: checking for XpmCreatePixmapFromData in -lXpm" >&5
4287 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS
="$LIBS"
4292 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char XpmCreatePixmapFromData();
4302 XpmCreatePixmapFromData()
4305 if { (eval echo configure
:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS
="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4322 echo "$ac_t""no" 1>&6
4326 LDFLAGS
="$LDFLAGS_old"
4329 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4331 CPPFLAGS_old
="$CPPFLAGS"
4332 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4333 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4335 echo "configure:4336: checking for X11/xpm.h" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.
$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <X11/xpm.h>
4344 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure
:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4349 eval "ac_cv_header_$ac_safe=yes"
4352 echo "configure: failed program was:" >&5
4353 cat conftest.
$ac_ext >&5
4355 eval "ac_cv_header_$ac_safe=no"
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4363 echo "$ac_t""no" 1>&6
4366 CPPFLAGS
="$CPPFLAGS_old"
4368 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4369 GFXLIBS
="$GFXLIBS -lXpm"
4371 cat >> confdefs.h
<<\EOF
4376 supported_gfx
="builtin-XPM"
4392 # Check whether --enable-png or --disable-png was given.
4393 if test "${enable_png+set}" = set; then
4394 enableval
="$enable_png"
4402 if test "$png" = yes ; then
4404 LDFLAGS_old
="$LDFLAGS"
4405 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4406 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4407 echo "configure:4408: checking for png_get_valid in -lpng" >&5
4408 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 ac_save_LIBS
="$LIBS"
4413 LIBS
="-lpng -lz -lm $LIBS"
4414 cat > conftest.
$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4420 char png_get_valid();
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4436 LIBS
="$ac_save_LIBS"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4443 echo "$ac_t""no" 1>&6
4447 LDFLAGS
="$LDFLAGS_old"
4450 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4452 CPPFLAGS_old
="$CPPFLAGS"
4453 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4454 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4456 echo "configure:4457: checking for png.h" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure
:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4470 eval "ac_cv_header_$ac_safe=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 eval "ac_cv_header_$ac_safe=no"
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4484 echo "$ac_t""no" 1>&6
4487 CPPFLAGS
="$CPPFLAGS_old"
4489 if test "x$ac_cv_header_png_h" = xyes
; then
4490 GFXLIBS
="$GFXLIBS -lpng -lz"
4491 supported_gfx
="$supported_gfx PNG"
4492 cat >> confdefs.h
<<\EOF
4502 # Check whether --enable-jpeg or --disable-jpeg was given.
4503 if test "${enable_jpeg+set}" = set; then
4504 enableval
="$enable_jpeg"
4511 if test "$jpeg" = yes; then
4513 LDFLAGS_old
="$LDFLAGS"
4514 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4515 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4516 echo "configure:4517: checking for jpeg_destroy_compress in -ljpeg" >&5
4517 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 ac_save_LIBS
="$LIBS"
4523 cat > conftest.
$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529 char jpeg_destroy_compress();
4532 jpeg_destroy_compress()
4535 if { (eval echo configure
:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4537 eval "ac_cv_lib_$ac_lib_var=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.
$ac_ext >&5
4542 eval "ac_cv_lib_$ac_lib_var=no"
4545 LIBS
="$ac_save_LIBS"
4548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4552 echo "$ac_t""no" 1>&6
4556 LDFLAGS
="$LDFLAGS_old"
4559 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4561 CPPFLAGS_old
="$CPPFLAGS"
4562 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4563 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4565 echo "configure:4566: checking for jpeglib.h" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <jpeglib.h>
4574 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4575 { (eval echo configure
:4576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4576 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4577 if test -z "$ac_err"; then
4579 eval "ac_cv_header_$ac_safe=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.
$ac_ext >&5
4585 eval "ac_cv_header_$ac_safe=no"
4589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4593 echo "$ac_t""no" 1>&6
4596 CPPFLAGS
="$CPPFLAGS_old"
4598 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4599 GFXLIBS
="$GFXLIBS -ljpeg"
4600 supported_gfx
="$supported_gfx JPEG"
4601 cat >> confdefs.h
<<\EOF
4611 # Check whether --enable-gif or --disable-gif was given.
4612 if test "${enable_gif+set}" = set; then
4613 enableval
="$enable_gif"
4620 if test "$gif" = yes; then
4623 LDFLAGS_old
="$LDFLAGS"
4624 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4625 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4626 echo "configure:4627: checking for DGifOpenFileName in -lungif" >&5
4627 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS
="$LIBS"
4632 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4633 cat > conftest.
$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char DGifOpenFileName();
4645 if { (eval echo configure
:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS
="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4662 echo "$ac_t""no" 1>&6
4666 LDFLAGS
="$LDFLAGS_old"
4668 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4671 if test "x$my_libname" = x
; then
4673 LDFLAGS_old
="$LDFLAGS"
4674 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4675 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4676 echo "configure:4677: checking for DGifOpenFileName in -lgif" >&5
4677 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4681 ac_save_LIBS
="$LIBS"
4682 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689 char DGifOpenFileName();
4695 if { (eval echo configure
:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4697 eval "ac_cv_lib_$ac_lib_var=yes"
4699 echo "configure: failed program was:" >&5
4700 cat conftest.
$ac_ext >&5
4702 eval "ac_cv_lib_$ac_lib_var=no"
4705 LIBS
="$ac_save_LIBS"
4708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4712 echo "$ac_t""no" 1>&6
4716 LDFLAGS
="$LDFLAGS_old"
4718 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
4723 if test "$my_libname" != x
; then
4725 CPPFLAGS_old
="$CPPFLAGS"
4726 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4727 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4729 echo "configure:4730: checking for gif_lib.h" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.
$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <gif_lib.h>
4738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure
:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4743 eval "ac_cv_header_$ac_safe=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.
$ac_ext >&5
4749 eval "ac_cv_header_$ac_safe=no"
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4757 echo "$ac_t""no" 1>&6
4760 CPPFLAGS
="$CPPFLAGS_old"
4762 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
4763 GFXLIBS
="$GFXLIBS -l$my_libname"
4764 supported_gfx
="$supported_gfx GIF"
4765 cat >> confdefs.h
<<\EOF
4775 # Check whether --enable-tiff or --disable-tiff was given.
4776 if test "${enable_tiff+set}" = set; then
4777 enableval
="$enable_tiff"
4785 # TIFF can optionally have JPEG and/or zlib support. Must find out
4786 # when they are supported so that correct library flags are passed during
4787 # detection and linkage
4790 # By default use xpm icons if tiff is not found.
4794 if test "$tif" = yes; then
4797 LDFLAGS_old
="$LDFLAGS"
4798 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4799 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4800 echo "configure:4801: checking for TIFFGetVersion in -ltiff" >&5
4801 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 ac_save_LIBS
="$LIBS"
4806 LIBS
="-ltiff -lm $LIBS"
4807 cat > conftest.
$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char TIFFGetVersion();
4819 if { (eval echo configure
:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4826 eval "ac_cv_lib_$ac_lib_var=no"
4829 LIBS
="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4836 echo "$ac_t""no" 1>&6
4840 LDFLAGS
="$LDFLAGS_old"
4842 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
4845 unset ac_cv_lib_tiff_TIFFGetVersion
4846 if test "x$my_libname" = x
; then
4848 LDFLAGS_old
="$LDFLAGS"
4849 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4850 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4851 echo "configure:4852: checking for TIFFGetVersion in -ltiff" >&5
4852 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 ac_save_LIBS
="$LIBS"
4857 LIBS
="-ltiff -lz -lm $LIBS"
4858 cat > conftest.
$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4864 char TIFFGetVersion();
4870 if { (eval echo configure
:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4872 eval "ac_cv_lib_$ac_lib_var=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4877 eval "ac_cv_lib_$ac_lib_var=no"
4880 LIBS
="$ac_save_LIBS"
4883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4887 echo "$ac_t""no" 1>&6
4891 LDFLAGS
="$LDFLAGS_old"
4893 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
4894 my_libname
="-ltiff -lz"
4898 if test "x$my_libname" = x
; then
4900 LDFLAGS_old
="$LDFLAGS"
4901 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4902 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4903 echo "configure:4904: checking for TIFFGetVersion in -ltiff34" >&5
4904 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS
="$LIBS"
4909 LIBS
="-ltiff34 -lm $LIBS"
4910 cat > conftest.
$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4916 char TIFFGetVersion();
4922 if { (eval echo configure
:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.
$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS
="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4939 echo "$ac_t""no" 1>&6
4943 LDFLAGS
="$LDFLAGS_old"
4945 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
4946 my_libname
="-ltiff34"
4951 # why the heck does debian name libtiff this way!?
4953 if test "x$my_libname" = x
; then
4955 LDFLAGS_old
="$LDFLAGS"
4956 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4957 echo $ac_n "checking for TIFFGetVersion in -ltiff3g""... $ac_c" 1>&6
4958 echo "configure:4959: checking for TIFFGetVersion in -ltiff3g" >&5
4959 ac_lib_var
=`echo tiff3g'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 ac_save_LIBS
="$LIBS"
4964 LIBS
="-ltiff3g -lm $LIBS"
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char TIFFGetVersion();
4977 if { (eval echo configure
:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS
="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4994 echo "$ac_t""no" 1>&6
4998 LDFLAGS
="$LDFLAGS_old"
5000 if test "x$ac_cv_lib_tiff3g_TIFFGetVersion" = xyes
; then
5001 my_libname
="-ltiff3g"
5005 if test "x$my_libname" != x
; then
5007 CPPFLAGS_old
="$CPPFLAGS"
5008 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5009 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5010 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5011 echo "configure:5012: checking for tiffio.h" >&5
5012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5021 { (eval echo configure
:5022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5022 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5023 if test -z "$ac_err"; then
5025 eval "ac_cv_header_$ac_safe=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.
$ac_ext >&5
5031 eval "ac_cv_header_$ac_safe=no"
5035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5039 echo "$ac_t""no" 1>&6
5042 CPPFLAGS
="$CPPFLAGS_old"
5044 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5045 GFXLIBS
="$my_libname $GFXLIBS"
5047 supported_gfx
="$supported_gfx TIFF"
5048 cat >> confdefs.h
<<\EOF
5056 LIBRARY_SEARCH_PATH
="$lib_search_path"
5057 HEADER_SEARCH_PATH
="$inc_search_path"
5069 # Check whether --enable-debug or --disable-debug was given.
5070 if test "${enable_debug+set}" = set; then
5071 enableval
="$enable_debug"
5078 if test "$enable_debug" = yes; then
5080 # Efence makes things too slow. Add it by hand in the Makefiles
5081 # if it is really needed.
5082 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5088 # Check whether --enable-sound or --disable-sound was given.
5089 if test "${enable_sound+set}" = set; then
5090 enableval
="$enable_sound"
5096 if test "$sound" = yes; then
5097 cat >> confdefs.h
<<\EOF
5104 # AC_PREFIX_PROGRAM(wmaker)
5106 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5107 if test "${with_pixmapdir+set}" = set; then
5108 withval
="$with_pixmapdir"
5113 if test "x$with_pixmapdir" != "x"; then
5114 pixmapdir
=$with_pixmapdir
5116 pixmapdir
=`eval echo ${datadir}/pixmaps`
5119 cat >> confdefs.h
<<EOF
5120 #define PIXMAPDIR "$pixmapdir"
5124 pkgdatadir
=`eval echo $datadir`
5125 cat >> confdefs.h
<<EOF
5126 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5130 sysconfdir
=`eval echo $sysconfdir`
5131 cat >> confdefs.h
<<EOF
5132 #define SYSCONFDIR "$sysconfdir/WindowMaker"
5140 # Check whether --with-appspath or --without-appspath was given.
5141 if test "${with_appspath+set}" = set; then
5142 withval
="$with_appspath"
5147 if test "x$appspath" = "x"; then
5148 gnustepdir
='$(prefix)/GNUstep'
5150 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5151 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5152 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5155 with_appspath
=$gnustepdir/Apps
5158 wprefsdir
=$with_appspath/WPrefs.app
5164 # Check whether --enable-single-icon or --disable-single-icon was given.
5165 if test "${enable_single_icon+set}" = set; then
5166 enableval
="$enable_single_icon"
5167 if test "$enableval" = yes; then
5168 cat >> confdefs.h
<<\EOF
5169 #define REDUCE_APPICONS 1
5181 cat > confcache
<<\EOF
5182 # This file is a shell script that caches the results of configure
5183 # tests run on this system so they can be shared between configure
5184 # scripts and configure runs. It is not useful on other systems.
5185 # If it contains results you don't want to keep, you may remove or edit it.
5187 # By default, configure uses ./config.cache as the cache file,
5188 # creating it if it does not exist already. You can give configure
5189 # the --cache-file=FILE option to use a different cache file; that is
5190 # what configure does when it calls configure scripts in
5191 # subdirectories, so they share the cache.
5192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5193 # config.status only pays attention to the cache file if you give it the
5194 # --recheck option to rerun configure.
5197 # The following way of writing the cache mishandles newlines in values,
5198 # but we know of no workaround that is simple, portable, and efficient.
5199 # So, don't put newlines in cache variables' values.
5200 # Ultrix sh set writes to stderr and can't be redirected directly,
5201 # and sets the high bit in the cache file unless we assign to the vars.
5203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5205 # `set' does not quote correctly, so add quotes (double-quote substitution
5206 # turns \\\\ into \\, and sed turns \\ into \).
5208 -e "s/'/'\\\\''/g" \
5209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5212 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5216 if cmp -s $cache_file confcache
; then
5219 if test -w $cache_file; then
5220 echo "updating cache $cache_file"
5221 cat confcache
> $cache_file
5223 echo "not updating unwritable cache $cache_file"
5228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5230 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5231 # Let make expand exec_prefix.
5232 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5234 # Any assignment to VPATH causes Sun make to only execute
5235 # the first set of double-colon rules, so remove it if not needed.
5236 # If there is a colon in the path, we need to keep it.
5237 if test "x$srcdir" = x.
; then
5238 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5243 DEFS
=-DHAVE_CONFIG_H
5245 # Without the "./", some shells look in PATH for config.status.
5246 : ${CONFIG_STATUS=./config.status}
5248 echo creating
$CONFIG_STATUS
5249 rm -f $CONFIG_STATUS
5250 cat > $CONFIG_STATUS <<EOF
5252 # Generated automatically by configure.
5253 # Run this file to recreate the current configuration.
5254 # This directory was configured as follows,
5255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5257 # $0 $ac_configure_args
5259 # Compiler output produced by configure, useful for debugging
5260 # configure, is in ./config.log if it exists.
5262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5265 case "\$ac_option" in
5266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5272 -help | --help | --hel | --he | --h)
5273 echo "\$ac_cs_usage"; exit 0 ;;
5274 *) echo "\$ac_cs_usage"; exit 1 ;;
5278 ac_given_srcdir=$srcdir
5279 ac_given_INSTALL="$INSTALL"
5281 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5282 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5283 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5284 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5285 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5286 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5287 WindowMaker/Themes/Makefile \
5288 WindowMaker/Themes/Night.themed/Makefile \
5289 WindowMaker/Themes/Checker.themed/Makefile \
5290 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5291 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5293 cat >> $CONFIG_STATUS <<EOF
5295 # Protect against being on the right side of a sed subst in config.status.
5296 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5297 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5301 s%@CFLAGS@%$CFLAGS%g
5302 s%@CPPFLAGS@%$CPPFLAGS%g
5303 s%@CXXFLAGS@%$CXXFLAGS%g
5304 s%@FFLAGS@%$FFLAGS%g
5306 s%@LDFLAGS@%$LDFLAGS%g
5308 s%@exec_prefix@%$exec_prefix%g
5309 s%@prefix@%$prefix%g
5310 s%@program_transform_name@%$program_transform_name%g
5311 s%@bindir@%$bindir%g
5312 s%@sbindir@%$sbindir%g
5313 s%@libexecdir@%$libexecdir%g
5314 s%@datadir@%$datadir%g
5315 s%@sysconfdir@%$sysconfdir%g
5316 s%@sharedstatedir@%$sharedstatedir%g
5317 s%@localstatedir@%$localstatedir%g
5318 s%@libdir@%$libdir%g
5319 s%@includedir@%$includedir%g
5320 s%@oldincludedir@%$oldincludedir%g
5321 s%@infodir@%$infodir%g
5322 s%@mandir@%$mandir%g
5323 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5324 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5325 s%@INSTALL_DATA@%$INSTALL_DATA%g
5326 s%@PACKAGE@%$PACKAGE%g
5327 s%@VERSION@%$VERSION%g
5328 s%@ACLOCAL@%$ACLOCAL%g
5329 s%@AUTOCONF@%$AUTOCONF%g
5330 s%@AUTOMAKE@%$AUTOMAKE%g
5331 s%@AUTOHEADER@%$AUTOHEADER%g
5332 s%@MAKEINFO@%$MAKEINFO%g
5333 s%@SET_MAKE@%$SET_MAKE%g
5335 s%@host_alias@%$host_alias%g
5336 s%@host_cpu@%$host_cpu%g
5337 s%@host_vendor@%$host_vendor%g
5338 s%@host_os@%$host_os%g
5339 s%@RANLIB@%$RANLIB%g
5344 s%@LIBTOOL@%$LIBTOOL%g
5346 s%@ALLOCA@%$ALLOCA%g
5347 s%@CPP_PATH@%$CPP_PATH%g
5348 s%@XGETTEXT@%$XGETTEXT%g
5349 s%@INTLIBS@%$INTLIBS%g
5350 s%@NLSDIR@%$NLSDIR%g
5351 s%@MOFILES@%$MOFILES%g
5352 s%@WPMOFILES@%$WPMOFILES%g
5354 s%@X_CFLAGS@%$X_CFLAGS%g
5355 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5356 s%@X_LIBS@%$X_LIBS%g
5357 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5359 s%@XCFLAGS@%$XCFLAGS%g
5360 s%@XLFLAGS@%$XLFLAGS%g
5362 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5363 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5364 s%@GFXLIBS@%$GFXLIBS%g
5365 s%@ICONEXT@%$ICONEXT%g
5366 s%@DFLAGS@%$DFLAGS%g
5367 s%@wprefsdir@%$wprefsdir%g
5372 cat >> $CONFIG_STATUS <<\EOF
5374 # Split the substitutions into bite-sized pieces for seds with
5375 # small command number limits, like on Digital OSF/1 and HP-UX.
5376 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5377 ac_file
=1 # Number of current file.
5378 ac_beg
=1 # First line for current file.
5379 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5382 while $ac_more_lines; do
5383 if test $ac_beg -gt 1; then
5384 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5386 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5388 if test ! -s conftest.s
$ac_file; then
5390 rm -f conftest.s
$ac_file
5392 if test -z "$ac_sed_cmds"; then
5393 ac_sed_cmds
="sed -f conftest.s$ac_file"
5395 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5397 ac_file
=`expr $ac_file + 1`
5399 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5402 if test -z "$ac_sed_cmds"; then
5407 cat >> $CONFIG_STATUS <<EOF
5409 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5410 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5411 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5412 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5413 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5414 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5415 WindowMaker/Themes/Makefile \
5416 WindowMaker/Themes/Night.themed/Makefile \
5417 WindowMaker/Themes/Checker.themed/Makefile \
5418 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5419 WPrefs.app/po/Makefile "}
5421 cat >> $CONFIG_STATUS <<\EOF
5422 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5425 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5426 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5427 *) ac_file_in
="${ac_file}.in" ;;
5430 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5432 # Remove last slash and all that follows it. Not all systems have dirname.
5433 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5434 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5435 # The file is in a subdirectory.
5436 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5437 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5438 # A "../" for each directory in $ac_dir_suffix.
5439 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5441 ac_dir_suffix
= ac_dots
=
5444 case "$ac_given_srcdir" in
5446 if test -z "$ac_dots"; then top_srcdir
=.
5447 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5448 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5450 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5451 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5454 case "$ac_given_INSTALL" in
5455 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5456 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5459 echo creating
"$ac_file"
5461 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5463 *Makefile
*) ac_comsub
="1i\\
5464 # $configure_input" ;;
5468 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5470 s%@configure_input@%$configure_input%g
5471 s%@srcdir@%$srcdir%g
5472 s%@top_srcdir@%$top_srcdir%g
5473 s%@INSTALL@%$INSTALL%g
5474 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5478 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5479 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5481 # ac_d sets the value in "#define NAME VALUE" lines.
5482 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5483 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5486 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5487 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5488 ac_uB
='\([ ]\)%\1#\2define\3'
5491 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5492 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5493 ac_eB
='$%\1#\2define\3'
5497 if test "${CONFIG_HEADERS+set}" != set; then
5499 cat >> $CONFIG_STATUS <<EOF
5500 CONFIG_HEADERS="src/config.h"
5502 cat >> $CONFIG_STATUS <<\EOF
5504 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5507 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5508 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5509 *) ac_file_in
="${ac_file}.in" ;;
5512 echo creating
$ac_file
5514 rm -f conftest.frag conftest.
in conftest.out
5515 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5516 cat $ac_file_inputs > conftest.
in
5520 # Transform confdefs.h into a sed script conftest.vals that substitutes
5521 # the proper values into config.h.in to produce config.h. And first:
5522 # Protect against being on the right side of a sed subst in config.status.
5523 # Protect against being in an unquoted here document in config.status.
5525 cat > conftest.hdr
<<\EOF
5528 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5532 sed -n -f conftest.hdr confdefs.h > conftest.vals
5535 # This sed command replaces #undef with comments. This is necessary, for
5536 # example, in the case of _POSIX_SOURCE, which is predefined and required
5537 # on some systems where configure will not decide to define it.
5538 cat >> conftest.vals <<\EOF
5539 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5542 # Break up conftest.vals because some shells have a limit on
5543 # the size of here documents, and old seds have small limits too.
5548 ac_lines=`grep -c . conftest.vals
`
5549 # grep -c gives empty output for an empty file on some AIX systems.
5550 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5551 # Write a limited-size here document to conftest.frag.
5552 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5553 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5555 sed -f conftest.frag conftest.in > conftest.out
5557 mv conftest.out conftest.in
5559 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5561 mv conftest.tail conftest.vals
5565 cat >> $CONFIG_STATUS <<\EOF
5566 rm -f conftest.frag conftest.h
5567 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5568 cat conftest.in >> conftest.h
5570 if cmp -s $ac_file conftest.h 2>/dev/null; then
5571 echo "$ac_file is unchanged"
5574 # Remove last slash and all that follows it. Not all systems have dirname.
5575 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5577 # The file is in a subdirectory.
5578 test ! -d "$ac_dir" && mkdir "$ac_dir"
5581 mv conftest.h $ac_file
5586 cat >> $CONFIG_STATUS <<EOF
5590 cat >> $CONFIG_STATUS <<\EOF
5591 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5595 chmod +x $CONFIG_STATUS
5596 rm -fr confdefs* $ac_clean_files
5597 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5605 cat <<EOF >get-wraster-flags
5609 exec_prefix=\$prefix
5611 WCFLAGS="-I\$prefix/include $inc_search_path"
5612 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5613 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5615 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--lflags#rp# #lp#--libs#rp#"
5617 if test \$# -eq 0; then
5618 echo "\${usage}" 1>&2
5622 while test \$# -gt 0; do
5634 echo "\${usage}" 1>&2
5644 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5646 chmod 755 wrlib/get-wraster-flags
5647 rm -f get-wraster-flags
5651 supported_gfx="$supported_gfx builtin-PPM"
5653 if test "x$MOFILES" = "x"; then
5661 echo "Window Maker was configured as follows:"
5663 echo "Installation path prefix: $prefix"
5664 echo "Installation path prefix for binaries: $_bindir"
5665 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5666 echo "Graphic format libraries: $supported_gfx"
5667 echo "Sound support: $sound"
5668 echo "Translated message files to install: $mof"
5669 if test "x$MOFILES" != "x"; then
5670 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5674 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5675 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5677 echo "JPEG support will not be included because the JPEG library is"
5678 echo "not installed correctly or was not found. Background images"
5679 echo "from themes will not display as they usually are JPEG files."
5681 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"