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 :)'
1817 if test -f /etc
/redhat-release
; then
1821 echo "$ac_t""$wm_check_flag" 1>&6
1825 if test "$wm_check_flag" = yes; then
1827 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1830 # Check old wmaker from RedHat
1832 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1833 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1834 echo "configure:1835: checking for multiple installed wmaker versions" >&5
1835 if test -f /usr
/X11R
6/bin
/wmaker
; then
1836 echo "$ac_t""uh oh" 1>&6
1841 echo "$ac_t""no apparent problems" 1>&6
1845 # Check for infamous en_RN bug
1846 # Wont work because autoconf will change LANG in the beginning of the
1850 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
1852 #if test "x$LANG" = xen_RN; then
1853 #AC_MSG_RESULT(uh oh)
1854 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
1855 #locale. Please unset it or you will have mysterious problems when
1856 #using various software packages.])
1859 #AC_MSG_RESULT(no problem)
1862 # If binary installation path is /usr/local/bin, check if it's in PATH
1864 if test "$_bindir" = "/usr/local/bin"; then
1865 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
1866 echo "configure:1867: checking if /usr/local/bin is in the search PATH" >&5
1868 rh_missing_usr_local_bin
=yes
1872 if test "x$i" = "x/usr/local/bin"; then
1874 rh_missing_usr_local_bin
=no
1879 if test "$wm_check_flag" = no
; then
1880 echo "$ac_t""uh oh" 1>&6
1883 echo "$ac_t""no problem" 1>&6
1887 # If library installation path is /usr/local/lib,
1888 # check if it's in /etc/ld.so.conf
1890 if test "$_libdir" = "/usr/local/lib"; then
1892 rh_missing_usr_local_lib
=no
1893 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
1894 echo "configure:1895: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
1895 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
1896 test "$?" -eq 0 && wm_check_flag
=no
1897 if test "$wm_check_flag" = no
; then
1898 echo "$ac_t""uh oh" 1>&6
1899 rh_missing_usr_local_lib
=yes
1902 echo "$ac_t""no problem" 1>&6
1906 # Check for symbolic links
1908 echo $ac_n "checking for /usr/X11 symbolic link""... $ac_c" 1>&6
1909 echo "configure:1910: checking for /usr/X11 symbolic link" >&5
1910 rh_missing_usr_x11
=no
1911 if test -d "/usr/X11"; then
1912 echo "$ac_t""found" 1>&6
1914 echo "$ac_t""uh oh" 1>&6
1915 rh_missing_usr_x11
=yes
1918 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
1919 echo "configure:1920: checking for /usr/include/X11 symbolic link" >&5
1920 rh_missing_usr_include_x11
=no
1921 if test -d "/usr/include/X11"; then
1922 echo "$ac_t""found" 1>&6
1924 echo "$ac_t""uh oh" 1>&6
1925 rh_missing_usr_include_x11
=yes
1930 # Check for /lib/cpp
1932 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
1933 echo "configure:1934: checking for /lib/cpp" >&5
1934 rh_missing_lib_cpp
=no
1935 if test -f "/lib/cpp"; then
1936 echo "$ac_t""found" 1>&6
1938 echo "$ac_t""uh oh" 1>&6
1939 rh_missing_lib_cpp
=yes
1948 # Check whether --with-libs-from or --without-libs-from was given.
1949 if test "${with_libs_from+set}" = set; then
1950 withval
="$with_libs_from"
1951 lib_search_path
="$withval $lib_search_path"
1955 # Check whether --with-incs-from or --without-incs-from was given.
1956 if test "${with_incs_from+set}" = set; then
1957 withval
="$with_incs_from"
1958 inc_search_path
="$withval $inc_search_path"
1964 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1965 echo "configure:1966: checking for vprintf" >&5
1966 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char vprintf(); below. */
1975 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1993 if { (eval echo configure
:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1995 eval "ac_cv_func_vprintf=yes"
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2000 eval "ac_cv_func_vprintf=no"
2005 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 cat >> confdefs.h
<<\EOF
2008 #define HAVE_VPRINTF 1
2012 echo "$ac_t""no" 1>&6
2015 if test "$ac_cv_func_vprintf" != yes; then
2016 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2017 echo "configure:2018: checking for _doprnt" >&5
2018 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char _doprnt(); below. */
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2034 /* The GNU C library defines this for functions which it implements
2035 to always fail with ENOSYS. Some functions are actually named
2036 something starting with __ and the normal name is an alias. */
2037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2045 if { (eval echo configure
:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2047 eval "ac_cv_func__doprnt=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2052 eval "ac_cv_func__doprnt=no"
2057 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2059 cat >> confdefs.h
<<\EOF
2060 #define HAVE_DOPRNT 1
2064 echo "$ac_t""no" 1>&6
2069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2070 # for constant arguments. Useless!
2071 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2072 echo "configure:2073: checking for working alloca.h" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 char *p = alloca(2 * sizeof(int));
2084 if { (eval echo configure
:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2086 ac_cv_header_alloca_h
=yes
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2091 ac_cv_header_alloca_h
=no
2096 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2097 if test $ac_cv_header_alloca_h = yes; then
2098 cat >> confdefs.h
<<\EOF
2099 #define HAVE_ALLOCA_H 1
2104 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2105 echo "configure:2106: checking for alloca" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2114 # define alloca __builtin_alloca
2117 # include <malloc.h>
2118 # define alloca _alloca
2121 # include <alloca.h>
2126 # ifndef alloca /* predefined by HP cc +Olibcalls */
2135 char *p = (char *) alloca(1);
2138 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2140 ac_cv_func_alloca_works
=yes
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 ac_cv_func_alloca_works
=no
2150 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2151 if test $ac_cv_func_alloca_works = yes; then
2152 cat >> confdefs.h
<<\EOF
2153 #define HAVE_ALLOCA 1
2158 if test $ac_cv_func_alloca_works = no
; then
2159 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2160 # that cause trouble. Some versions do not even contain alloca or
2161 # contain a buggy version. If you still want to use their alloca,
2162 # use ar to extract alloca.o from them instead of compiling alloca.c.
2163 ALLOCA
=alloca.
${ac_objext}
2164 cat >> confdefs.h
<<\EOF
2169 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether alloca needs Cray hooks" >&5
2171 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #if defined(CRAY) && ! defined(CRAY2)
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "webecray" >/dev
/null
2>&1; then
2196 echo "$ac_t""$ac_cv_os_cray" 1>&6
2197 if test $ac_cv_os_cray = yes; then
2198 for ac_func
in _getb67 GETB67 getb67
; do
2199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_func" >&5
2201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* System header to define __stub macros and hopefully few prototypes,
2208 which can conflict with char $ac_func(); below. */
2210 /* Override any gcc2 internal prototype to avoid an error. */
2211 /* We use char because int might match the return type of a gcc2
2212 builtin and then its argument prototype would still apply. */
2217 /* The GNU C library defines this for functions which it implements
2218 to always fail with ENOSYS. Some functions are actually named
2219 something starting with __ and the normal name is an alias. */
2220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2228 if { (eval echo configure
:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2230 eval "ac_cv_func_$ac_func=yes"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 eval "ac_cv_func_$ac_func=no"
2240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 cat >> confdefs.h
<<EOF
2243 #define CRAY_STACKSEG_END $ac_func
2248 echo "$ac_t""no" 1>&6
2254 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2255 echo "configure:2256: checking stack direction for C alloca" >&5
2256 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 if test "$cross_compiling" = yes; then
2260 ac_cv_c_stack_direction
=0
2262 cat > conftest.
$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 find_stack_direction ()
2267 static char *addr = 0;
2272 return find_stack_direction ();
2275 return (&dummy > addr) ? 1 : -1;
2279 exit (find_stack_direction() < 0);
2282 if { (eval echo configure
:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2284 ac_cv_c_stack_direction
=1
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 ac_cv_c_stack_direction
=-1
2296 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2297 cat >> confdefs.h
<<EOF
2298 #define STACK_DIRECTION $ac_cv_c_stack_direction
2303 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_func" >&5
2307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $ac_func(); below. */
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2323 /* The GNU C library defines this for functions which it implements
2324 to always fail with ENOSYS. Some functions are actually named
2325 something starting with __ and the normal name is an alias. */
2326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2334 if { (eval echo configure
:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2336 eval "ac_cv_func_$ac_func=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.
$ac_ext >&5
2341 eval "ac_cv_func_$ac_func=no"
2346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2349 cat >> confdefs.h
<<EOF
2350 #define $ac_tr_func 1
2354 echo "$ac_t""no" 1>&6
2363 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2364 echo "configure:2365: checking for dlopen" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.
$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char dlopen(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2392 if { (eval echo configure
:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2394 eval "ac_cv_func_dlopen=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2399 eval "ac_cv_func_dlopen=no"
2404 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2408 echo "$ac_t""no" 1>&6
2409 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2410 echo "configure:2411: checking for dlopen in -ldl" >&5
2411 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 ac_save_LIBS
="$LIBS"
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* Override any gcc2 internal prototype to avoid an error. */
2421 /* We use char because int might match the return type of a gcc2
2422 builtin and then its argument prototype would still apply. */
2429 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2431 eval "ac_cv_lib_$ac_lib_var=yes"
2433 echo "configure: failed program was:" >&5
2434 cat conftest.
$ac_ext >&5
2436 eval "ac_cv_lib_$ac_lib_var=no"
2439 LIBS
="$ac_save_LIBS"
2442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2444 DLLIBS
="-ldl" HAVEDL
="yes"
2446 echo "$ac_t""no" 1>&6
2453 if test "x$HAVEDL" = xyes
; then
2454 for ac_hdr
in dlfcn.h
2456 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_hdr" >&5
2459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2467 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2468 { (eval echo configure
:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2469 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2470 if test -z "$ac_err"; then
2472 eval "ac_cv_header_$ac_safe=yes"
2475 echo "configure: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2478 eval "ac_cv_header_$ac_safe=no"
2482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2483 echo "$ac_t""yes" 1>&6
2484 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2485 cat >> confdefs.h
<<EOF
2486 #define $ac_tr_hdr 1
2490 echo "$ac_t""no" 1>&6
2498 if test "x$CPP_PATH" = x
; then
2499 # Extract the first word of "cpp", so it can be a program name with args.
2500 set dummy cpp
; ac_word
=$2
2501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_word" >&5
2503 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2508 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2511 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2515 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2516 for ac_dir
in $ac_dummy; do
2517 test -z "$ac_dir" && ac_dir
=.
2518 if test -f $ac_dir/$ac_word; then
2519 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2524 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2528 CPP_PATH
="$ac_cv_path_CPP_PATH"
2529 if test -n "$CPP_PATH"; then
2530 echo "$ac_t""$CPP_PATH" 1>&6
2532 echo "$ac_t""no" 1>&6
2537 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2538 if test "$GCC" = "yes"; then
2539 CPP_PATH
="gcc -E -x c"
2541 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2542 CPP_PATH
="$CPP_PATH -B"
2544 echo "cpp, the C preprocessor was not found in your system."
2545 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2550 cat >> confdefs.h
<<EOF
2551 #define CPP_PATH "$CPP_PATH"
2557 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2558 echo "configure:2559: checking for sys/wait.h that is POSIX.1 compatible" >&5
2559 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+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>
2566 #include <sys/wait.h>
2568 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2571 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2576 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2579 if { (eval echo configure
:2580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2581 ac_cv_header_sys_wait_h
=yes
2583 echo "configure: failed program was:" >&5
2584 cat conftest.
$ac_ext >&5
2586 ac_cv_header_sys_wait_h
=no
2591 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2592 if test $ac_cv_header_sys_wait_h = yes; then
2593 cat >> confdefs.h
<<\EOF
2594 #define HAVE_SYS_WAIT_H 1
2599 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2600 echo "configure:2601: checking whether time.h and sys/time.h may both be included" >&5
2601 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #include <sys/types.h>
2608 #include <sys/time.h>
2614 if { (eval echo configure
:2615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2616 ac_cv_header_time
=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2621 ac_cv_header_time
=no
2626 echo "$ac_t""$ac_cv_header_time" 1>&6
2627 if test $ac_cv_header_time = yes; then
2628 cat >> confdefs.h
<<\EOF
2629 #define TIME_WITH_SYS_TIME 1
2634 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2635 libintl.h sys
/select.h poll.h
2637 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_hdr" >&5
2640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure
:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2653 eval "ac_cv_header_$ac_safe=yes"
2656 echo "configure: failed program was:" >&5
2657 cat conftest.
$ac_ext >&5
2659 eval "ac_cv_header_$ac_safe=no"
2663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2666 cat >> confdefs.h
<<EOF
2667 #define $ac_tr_hdr 1
2671 echo "$ac_t""no" 1>&6
2678 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2679 echo "configure:2680: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2680 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 cat > conftest.
$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 #include <sys/types.h>
2688 /* NetBSD declares sys_siglist in unistd.h. */
2689 #ifdef HAVE_UNISTD_H
2693 char *msg = *(sys_siglist + 1);
2696 if { (eval echo configure
:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2698 ac_cv_decl_sys_siglist
=yes
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 ac_cv_decl_sys_siglist
=no
2708 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2709 if test $ac_cv_decl_sys_siglist = yes; then
2710 cat >> confdefs.h
<<\EOF
2711 #define SYS_SIGLIST_DECLARED 1
2716 echo $ac_n "checking for working const""... $ac_c" 1>&6
2717 echo "configure:2718: checking for working const" >&5
2718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2727 /* Ultrix mips cc rejects this. */
2728 typedef int charset[2]; const charset x;
2729 /* SunOS 4.1.1 cc rejects this. */
2730 char const *const *ccp;
2732 /* NEC SVR4.0.2 mips cc rejects this. */
2733 struct point {int x, y;};
2734 static struct point const zero = {0,0};
2735 /* AIX XL C 1.02.0.0 rejects this.
2736 It does not let you subtract one const X* pointer from another in an arm
2737 of an if-expression whose if-part is not a constant expression */
2738 const char *g = "string";
2739 ccp = &g + (g ? g-g : 0);
2740 /* HPUX 7.0 cc rejects these. */
2743 ccp = (char const *const *) p;
2744 { /* SCO 3.2v4 cc rejects this. */
2746 char const *s = 0 ? (char *) 0 : (char const *) 0;
2750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2752 const int *foo = &x[0];
2755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2756 typedef const int *iptr;
2760 { /* AIX XL C 1.02.0.0 rejects this saying
2761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2762 struct s { int j; const int *ap[3]; };
2763 struct s *b; b->j = 5;
2765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2771 if { (eval echo configure
:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 echo "configure: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2783 echo "$ac_t""$ac_cv_c_const" 1>&6
2784 if test $ac_cv_c_const = no
; then
2785 cat >> confdefs.h
<<\EOF
2793 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2794 echo "configure:2795: checking return type of signal handlers" >&5
2795 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 #include <sys/types.h>
2807 extern "C" void (*signal (int, void (*)(int)))(int);
2809 void (*signal ()) ();
2816 if { (eval echo configure
:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 ac_cv_type_signal
=void
2820 echo "configure: failed program was:" >&5
2821 cat conftest.
$ac_ext >&5
2823 ac_cv_type_signal
=int
2828 echo "$ac_t""$ac_cv_type_signal" 1>&6
2829 cat >> confdefs.h
<<EOF
2830 #define RETSIGTYPE $ac_cv_type_signal
2843 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2844 echo "configure:2845: checking for gettext" >&5
2845 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.
$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char gettext(); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2861 /* The GNU C library defines this for functions which it implements
2862 to always fail with ENOSYS. Some functions are actually named
2863 something starting with __ and the normal name is an alias. */
2864 #if defined (__stub_gettext) || defined (__stub___gettext)
2872 if { (eval echo configure
:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2874 eval "ac_cv_func_gettext=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_func_gettext=no"
2884 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2888 echo "$ac_t""no" 1>&6
2889 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2890 echo "configure:2891: checking for gettext in -lintl" >&5
2891 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 ac_save_LIBS
="$LIBS"
2897 cat > conftest.
$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 /* Override any gcc2 internal prototype to avoid an error. */
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2909 if { (eval echo configure
:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2911 eval "ac_cv_lib_$ac_lib_var=yes"
2913 echo "configure: failed program was:" >&5
2914 cat conftest.
$ac_ext >&5
2916 eval "ac_cv_lib_$ac_lib_var=no"
2919 LIBS
="$ac_save_LIBS"
2922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2926 echo "$ac_t""no" 1>&6
2933 # Extract the first word of "xgettext", so it can be a program name with args.
2934 set dummy xgettext
; ac_word
=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 if test -n "$XGETTEXT"; then
2941 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2943 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2945 for ac_dir
in $ac_dummy; do
2946 test -z "$ac_dir" && ac_dir
=.
2947 if test -f $ac_dir/$ac_word; then
2948 ac_cv_prog_XGETTEXT
="xgettext"
2955 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2956 if test -n "$XGETTEXT"; then
2957 echo "$ac_t""$XGETTEXT" 1>&6
2959 echo "$ac_t""no" 1>&6
2963 if test "$XGETTEXT" != ""; then
2964 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2965 echo "xgettext isn't GNU version"
2970 if test "$LINGUAS" != ""; then
2971 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2972 cat >> confdefs.h
<<\EOF
2977 # if test "$LINGUAS" = ""; then
2978 # ling=` (cd src/po; /bin/ls *.po) `
2979 # for l in $ling; do
2980 # lcode=`basename $l .po`
2981 # LINGUAS="$LINGUAS $lcode"
2984 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2988 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2999 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"
3000 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es"
3002 for lang
in $LINGUAS; do
3004 for l
in $supported_locales; do
3005 if test "$l" = "$lang"; then
3010 if test "$ok" = 1; then
3011 MOFILES
="$MOFILES $lang.mo"
3013 echo "Locale $lang is not supported."
3016 for l
in $supported_wprefs_locales; do
3017 if test "$l" = "$lang"; then
3022 if test "$ok" = 1; then
3023 WPMOFILES
="$WPMOFILES $lang.mo"
3029 # Check whether --enable-kanji or --disable-kanji was given.
3030 if test "${enable_kanji+set}" = set; then
3031 enableval
="$enable_kanji"
3038 if test "$enable_kanji" = yes; then
3041 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3042 echo "configure:3043: checking for setlocale in -lxpg4" >&5
3043 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 ac_save_LIBS
="$LIBS"
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 /* Override any gcc2 internal prototype to avoid an error. */
3053 /* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3061 if { (eval echo configure
:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3068 eval "ac_cv_lib_$ac_lib_var=no"
3071 LIBS
="$ac_save_LIBS"
3074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3078 echo "$ac_t""no" 1>&6
3084 cat >> confdefs.h
<<\EOF
3092 # Check whether --with-nlsdir or --without-nlsdir was given.
3093 if test "${with_nlsdir+set}" = set; then
3094 withval
="$with_nlsdir"
3100 if test "x$NLSDIR" = "x"; then
3101 if test "x$with_nlsdir" != "x"; then
3104 NLSDIR
='$(prefix)/lib/locale'
3120 # Check whether --enable-gnome or --disable-gnome was given.
3121 if test "${enable_gnome+set}" = set; then
3122 enableval
="$enable_gnome"
3123 if test x
$enableval = xyes
; then
3124 cat >> confdefs.h
<<\EOF
3125 #define GNOME_STUFF 1
3134 # Check whether --enable-kde or --disable-kde was given.
3135 if test "${enable_kde+set}" = set; then
3136 enableval
="$enable_kde"
3137 if test x
$enableval = xyes
; then
3138 cat >> confdefs.h
<<\EOF
3148 # Check whether --enable-openlook or --disable-openlook was given.
3149 if test "${enable_openlook+set}" = set; then
3150 enableval
="$enable_openlook"
3151 if test x
$enableval = xyes
; then
3152 cat >> confdefs.h
<<\EOF
3153 #define OLWM_HINTS 1
3162 # Check whether --enable-lite or --disable-lite was given.
3163 if test "${enable_lite+set}" = set; then
3164 enableval
="$enable_lite"
3165 if test x
$enableval = xyes
; then
3167 cat >> confdefs.h
<<\EOF
3179 # If we find X, set shell vars x_includes and x_libraries to the
3180 # paths, otherwise set no_x=yes.
3181 # Uses ac_ vars as temps to allow command line to override cache and checks.
3182 # --without-x overrides everything else, but does not touch the cache.
3183 echo $ac_n "checking for X""... $ac_c" 1>&6
3184 echo "configure:3185: checking for X" >&5
3186 # Check whether --with-x or --without-x was given.
3187 if test "${with_x+set}" = set; then
3192 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3193 if test "x$with_x" = xno
; then
3194 # The user explicitly disabled X.
3197 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3198 # Both variables are already set.
3201 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 # One or both of the vars are not set, and there is no cached value.
3205 ac_x_includes
=NO ac_x_libraries
=NO
3207 if mkdir conftestdir
; then
3209 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3210 cat > Imakefile
<<'EOF'
3212 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3214 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3216 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3217 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3218 for ac_extension
in a so sl
; do
3219 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3220 test -f $ac_im_libdir/libX11.
$ac_extension; then
3221 ac_im_usrlibdir
=$ac_im_libdir; break
3224 # Screen out bogus values from the imake configuration. They are
3225 # bogus both because they are the default anyway, and because
3226 # using them would break gcc on systems where it needs fixed includes.
3227 case "$ac_im_incroot" in
3229 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3231 case "$ac_im_usrlibdir" in
3233 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3240 if test "$ac_x_includes" = NO
; then
3241 # Guess where to find include files, by looking for this one X11 .h file.
3242 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3244 # First, try using that file with no special directory specified.
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <$x_direct_test_include>
3250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3251 { (eval echo configure
:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3253 if test -z "$ac_err"; then
3255 # We can compile using X headers with no special include directory.
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 # Look for the header file in a standard set of common directories.
3263 # Check X11 before X11Rn because it is often a symlink to the current release.
3266 /usr
/X11R
6/include \
3267 /usr
/X11R
5/include \
3268 /usr
/X11R
4/include \
3271 /usr
/include
/X11R6 \
3272 /usr
/include
/X11R5 \
3273 /usr
/include
/X11R4 \
3275 /usr
/local
/X11
/include \
3276 /usr
/local
/X11R
6/include \
3277 /usr
/local
/X11R
5/include \
3278 /usr
/local
/X11R
4/include \
3280 /usr
/local
/include
/X11 \
3281 /usr
/local
/include
/X11R6 \
3282 /usr
/local
/include
/X11R5 \
3283 /usr
/local
/include
/X11R4 \
3287 /usr
/XFree86
/include
/X11 \
3290 /usr
/local
/include \
3291 /usr
/unsupported
/include \
3292 /usr
/athena
/include \
3293 /usr
/local
/x11r
5/include \
3294 /usr
/lpp
/Xamples
/include \
3296 /usr
/openwin
/include \
3297 /usr
/openwin
/share
/include \
3300 if test -r "$ac_dir/$x_direct_test_include"; then
3301 ac_x_includes
=$ac_dir
3307 fi # $ac_x_includes = NO
3309 if test "$ac_x_libraries" = NO
; then
3310 # Check for the libraries.
3312 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3313 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3315 # See if we find them without any special options.
3316 # Don't add to $LIBS permanently.
3317 ac_save_LIBS
="$LIBS"
3318 LIBS
="-l$x_direct_test_library $LIBS"
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3324 ${x_direct_test_function}()
3327 if { (eval echo configure
:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3329 LIBS
="$ac_save_LIBS"
3330 # We can link X programs with no special library path.
3333 echo "configure: failed program was:" >&5
3334 cat conftest.
$ac_ext >&5
3336 LIBS
="$ac_save_LIBS"
3337 # First see if replacing the include by lib works.
3338 # Check X11 before X11Rn because it is often a symlink to the current release.
3339 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3350 /usr
/local
/X11
/lib \
3351 /usr
/local
/X11R
6/lib \
3352 /usr
/local
/X11R
5/lib \
3353 /usr
/local
/X11R
4/lib \
3355 /usr
/local
/lib
/X11 \
3356 /usr
/local
/lib
/X11R6 \
3357 /usr
/local
/lib
/X11R5 \
3358 /usr
/local
/lib
/X11R4 \
3362 /usr
/XFree86
/lib
/X11 \
3366 /usr
/unsupported
/lib \
3368 /usr
/local
/x11r
5/lib \
3369 /usr
/lpp
/Xamples
/lib \
3373 /usr
/openwin
/share
/lib \
3376 for ac_extension
in a so sl
; do
3377 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3378 ac_x_libraries
=$ac_dir
3385 fi # $ac_x_libraries = NO
3387 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3388 # Didn't find X anywhere. Cache the known absence of X.
3389 ac_cv_have_x
="have_x=no"
3391 # Record where we found X for the cache.
3392 ac_cv_have_x
="have_x=yes \
3393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3397 eval "$ac_cv_have_x"
3400 if test "$have_x" != yes; then
3401 echo "$ac_t""$have_x" 1>&6
3404 # If each of the values was on the command line, it overrides each guess.
3405 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3406 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3407 # Update the cache value to reflect the command line values.
3408 ac_cv_have_x
="have_x=yes \
3409 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3410 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3413 if test "$no_x" = yes; then
3414 # Not all programs may use this symbol, but it does not hurt to define it.
3415 cat >> confdefs.h
<<\EOF
3416 #define X_DISPLAY_MISSING 1
3419 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3421 if test -n "$x_includes"; then
3422 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3425 # It would also be nice to do this for all -L options, not just this one.
3426 if test -n "$x_libraries"; then
3427 X_LIBS
="$X_LIBS -L$x_libraries"
3428 # For Solaris; some versions of Sun CC require a space after -R and
3429 # others require no space. Words are not sufficient . . . .
3430 case "`(uname -sr) 2>/dev/null`" in
3432 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3433 echo "configure:3434: checking whether -R must be followed by a space" >&5
3434 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3443 if { (eval echo configure
:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3453 if test $ac_R_nospace = yes; then
3454 echo "$ac_t""no" 1>&6
3455 X_LIBS
="$X_LIBS -R$x_libraries"
3457 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3466 if { (eval echo configure
:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3476 if test $ac_R_space = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 X_LIBS
="$X_LIBS -R $x_libraries"
3480 echo "$ac_t""neither works" 1>&6
3483 LIBS
="$ac_xsave_LIBS"
3487 # Check for system-dependent libraries X programs must link with.
3488 # Do this before checking for the system-independent R6 libraries
3489 # (-lICE), since we may need -lsocket or whatever for X linking.
3491 if test "$ISC" = yes; then
3492 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3494 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3495 # libraries were built with DECnet support. And karl@cs.umb.edu says
3496 # the Alpha needs dnet_stub (dnet does not exist).
3497 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3498 echo "configure:3499: checking for dnet_ntoa in -ldnet" >&5
3499 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 ac_save_LIBS
="$LIBS"
3505 cat > conftest.
$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 /* Override any gcc2 internal prototype to avoid an error. */
3509 /* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3517 if { (eval echo configure
:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3519 eval "ac_cv_lib_$ac_lib_var=yes"
3521 echo "configure: failed program was:" >&5
3522 cat conftest.
$ac_ext >&5
3524 eval "ac_cv_lib_$ac_lib_var=no"
3527 LIBS
="$ac_save_LIBS"
3530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3531 echo "$ac_t""yes" 1>&6
3532 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3534 echo "$ac_t""no" 1>&6
3537 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3538 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3539 echo "configure:3540: checking for dnet_ntoa in -ldnet_stub" >&5
3540 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 ac_save_LIBS
="$LIBS"
3545 LIBS
="-ldnet_stub $LIBS"
3546 cat > conftest.
$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3558 if { (eval echo configure
:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3560 eval "ac_cv_lib_$ac_lib_var=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.
$ac_ext >&5
3565 eval "ac_cv_lib_$ac_lib_var=no"
3568 LIBS
="$ac_save_LIBS"
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3573 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3575 echo "$ac_t""no" 1>&6
3580 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3581 # to get the SysV transport functions.
3582 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3584 # The nsl library prevents programs from opening the X display
3585 # on Irix 5.2, according to dickey@clark.net.
3586 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3587 echo "configure:3588: checking for gethostbyname" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* System header to define __stub macros and hopefully few prototypes,
3595 which can conflict with char gethostbyname(); below. */
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char gethostbyname();
3604 /* The GNU C library defines this for functions which it implements
3605 to always fail with ENOSYS. Some functions are actually named
3606 something starting with __ and the normal name is an alias. */
3607 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3615 if { (eval echo configure
:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3617 eval "ac_cv_func_gethostbyname=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3622 eval "ac_cv_func_gethostbyname=no"
3627 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3631 echo "$ac_t""no" 1>&6
3634 if test $ac_cv_func_gethostbyname = no
; then
3635 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3636 echo "configure:3637: checking for gethostbyname in -lnsl" >&5
3637 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 ac_save_LIBS
="$LIBS"
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3649 char gethostbyname();
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 eval "ac_cv_lib_$ac_lib_var=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 eval "ac_cv_lib_$ac_lib_var=no"
3665 LIBS
="$ac_save_LIBS"
3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3672 echo "$ac_t""no" 1>&6
3677 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3678 # socket/setsockopt and other routines are undefined under SCO ODT
3679 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3680 # on later versions), says simon@lia.di.epfl.ch: it contains
3681 # gethostby* variants that don't use the nameserver (or something).
3682 # -lsocket must be given before -lnsl if both are needed.
3683 # We assume that if connect needs -lnsl, so does gethostbyname.
3684 echo $ac_n "checking for connect""... $ac_c" 1>&6
3685 echo "configure:3686: checking for connect" >&5
3686 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 /* System header to define __stub macros and hopefully few prototypes,
3693 which can conflict with char connect(); below. */
3695 /* Override any gcc2 internal prototype to avoid an error. */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3702 /* The GNU C library defines this for functions which it implements
3703 to always fail with ENOSYS. Some functions are actually named
3704 something starting with __ and the normal name is an alias. */
3705 #if defined (__stub_connect) || defined (__stub___connect)
3713 if { (eval echo configure
:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3715 eval "ac_cv_func_connect=yes"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 eval "ac_cv_func_connect=no"
3725 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3729 echo "$ac_t""no" 1>&6
3732 if test $ac_cv_func_connect = no
; then
3733 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3734 echo "configure:3735: checking for connect in -lsocket" >&5
3735 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 ac_save_LIBS
="$LIBS"
3740 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3741 cat > conftest.
$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 /* Override any gcc2 internal prototype to avoid an error. */
3745 /* We use char because int might match the return type of a gcc2
3746 builtin and then its argument prototype would still apply. */
3753 if { (eval echo configure
:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3755 eval "ac_cv_lib_$ac_lib_var=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 eval "ac_cv_lib_$ac_lib_var=no"
3763 LIBS
="$ac_save_LIBS"
3766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3768 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3770 echo "$ac_t""no" 1>&6
3775 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3776 echo $ac_n "checking for remove""... $ac_c" 1>&6
3777 echo "configure:3778: checking for remove" >&5
3778 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 cat > conftest.
$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 /* System header to define __stub macros and hopefully few prototypes,
3785 which can conflict with char remove(); below. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3794 /* The GNU C library defines this for functions which it implements
3795 to always fail with ENOSYS. Some functions are actually named
3796 something starting with __ and the normal name is an alias. */
3797 #if defined (__stub_remove) || defined (__stub___remove)
3805 if { (eval echo configure
:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3807 eval "ac_cv_func_remove=yes"
3809 echo "configure: failed program was:" >&5
3810 cat conftest.
$ac_ext >&5
3812 eval "ac_cv_func_remove=no"
3817 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3821 echo "$ac_t""no" 1>&6
3824 if test $ac_cv_func_remove = no
; then
3825 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3826 echo "configure:3827: checking for remove in -lposix" >&5
3827 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 ac_save_LIBS
="$LIBS"
3832 LIBS
="-lposix $LIBS"
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3845 if { (eval echo configure
:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3847 eval "ac_cv_lib_$ac_lib_var=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 eval "ac_cv_lib_$ac_lib_var=no"
3855 LIBS
="$ac_save_LIBS"
3858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3859 echo "$ac_t""yes" 1>&6
3860 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3862 echo "$ac_t""no" 1>&6
3867 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3868 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3869 echo "configure:3870: checking for shmat" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.
$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char shmat(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_shmat) || defined (__stub___shmat)
3897 if { (eval echo configure
:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3899 eval "ac_cv_func_shmat=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 eval "ac_cv_func_shmat=no"
3909 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3913 echo "$ac_t""no" 1>&6
3916 if test $ac_cv_func_shmat = no
; then
3917 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3918 echo "configure:3919: checking for shmat in -lipc" >&5
3919 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 ac_save_LIBS
="$LIBS"
3925 cat > conftest.
$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* Override any gcc2 internal prototype to avoid an error. */
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3937 if { (eval echo configure
:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3939 eval "ac_cv_lib_$ac_lib_var=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 eval "ac_cv_lib_$ac_lib_var=no"
3947 LIBS
="$ac_save_LIBS"
3950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3951 echo "$ac_t""yes" 1>&6
3952 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3954 echo "$ac_t""no" 1>&6
3960 # Check for libraries that X11R6 Xt/Xaw programs need.
3961 ac_save_LDFLAGS
="$LDFLAGS"
3962 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3963 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3964 # check for ICE first), but we must link in the order -lSM -lICE or
3965 # we get undefined symbols. So assume we have SM if we have ICE.
3966 # These have to be linked with before -lX11, unlike the other
3967 # libraries we check for below, so use a different variable.
3968 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3969 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3970 echo "configure:3971: checking for IceConnectionNumber in -lICE" >&5
3971 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 ac_save_LIBS
="$LIBS"
3976 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3977 cat > conftest.
$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char IceConnectionNumber();
3986 IceConnectionNumber()
3989 if { (eval echo configure
:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3991 eval "ac_cv_lib_$ac_lib_var=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 eval "ac_cv_lib_$ac_lib_var=no"
3999 LIBS
="$ac_save_LIBS"
4002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4006 echo "$ac_t""no" 1>&6
4009 LDFLAGS
="$ac_save_LDFLAGS"
4018 XLIBS
="-lX11 $X_EXTRA_LIBS"
4021 lib_search_path
="$lib_search_path $XLFLAGS"
4022 inc_search_path
="$inc_search_path $XCFLAGS"
4026 # Check whether --enable-locale or --disable-locale was given.
4027 if test "${enable_locale+set}" = set; then
4028 enableval
="$enable_locale"
4033 if test "$use_locale" = yes; then
4034 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4035 echo "configure:4036: checking for _Xsetlocale in -lX11" >&5
4036 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 ac_save_LIBS
="$LIBS"
4041 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4054 if { (eval echo configure
:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4056 eval "ac_cv_lib_$ac_lib_var=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.
$ac_ext >&5
4061 eval "ac_cv_lib_$ac_lib_var=no"
4064 LIBS
="$ac_save_LIBS"
4067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 cat >> confdefs.h
<<\EOF
4074 echo "$ac_t""no" 1>&6
4080 # Check whether --enable-modelock or --disable-modelock was given.
4081 if test "${enable_modelock+set}" = set; then
4082 enableval
="$enable_modelock"
4083 cat >> confdefs.h
<<\EOF
4084 #define XKB_MODELOCK 1
4093 # Check whether --enable-shape or --disable-shape was given.
4094 if test "${enable_shape+set}" = set; then
4095 enableval
="$enable_shape"
4104 if test "$shape" = yes; then
4105 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4106 echo "configure:4107: checking for XShapeSelectInput in -lXext" >&5
4107 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 ac_save_LIBS
="$LIBS"
4112 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */
4119 char XShapeSelectInput();
4125 if { (eval echo configure
:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4127 eval "ac_cv_lib_$ac_lib_var=yes"
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4132 eval "ac_cv_lib_$ac_lib_var=no"
4135 LIBS
="$ac_save_LIBS"
4138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4140 XLIBS
="-lXext $XLIBS"
4142 cat >> confdefs.h
<<\EOF
4147 echo "$ac_t""no" 1>&6
4155 # Check whether --enable-shm or --disable-shm was given.
4156 if test "${enable_shm+set}" = set; then
4157 enableval
="$enable_shm"
4164 if test "$shm" = yes; then
4165 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4166 echo "configure:4167: checking for XShmAttach in -lXext" >&5
4167 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 ac_save_LIBS
="$LIBS"
4172 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4173 cat > conftest.
$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4185 if { (eval echo configure
:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4187 eval "ac_cv_lib_$ac_lib_var=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.
$ac_ext >&5
4192 eval "ac_cv_lib_$ac_lib_var=no"
4195 LIBS
="$ac_save_LIBS"
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4202 echo "$ac_t""no" 1>&6
4207 if test "$ok" = yes; then
4208 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4209 echo "configure:4210: checking for shmget" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.
$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char shmget(); below. */
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_shmget) || defined (__stub___shmget)
4237 if { (eval echo configure
:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4239 eval "ac_cv_func_shmget=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.
$ac_ext >&5
4244 eval "ac_cv_func_shmget=no"
4249 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4253 echo "$ac_t""no" 1>&6
4259 if test "$ok" = yes; then
4260 if test "$added_xext" = no
; then
4261 XLIBS
="-lXext $XLIBS"
4263 cat >> confdefs.h
<<\EOF
4283 LDFLAGS_old
="$LDFLAGS"
4284 LDFLAGS
="$LDFLAGS $lib_search_path"
4285 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4286 echo "configure:4287: checking for PLGetString in -lPropList" >&5
4287 ac_lib_var
=`echo PropList'_'PLGetString | 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
="-lPropList $X_EXTRA_LIBS $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. */
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"
4328 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4330 CPPFLAGS_old
="$CPPFLAGS"
4331 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4332 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4334 echo "configure:4335: checking for proplist.h" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <proplist.h>
4343 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure
:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 eval "ac_cv_header_$ac_safe=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4354 eval "ac_cv_header_$ac_safe=no"
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4362 echo "$ac_t""no" 1>&6
4365 CPPFLAGS
="$CPPFLAGS_old"
4367 if test "x$ac_cv_header_proplist_h" = xyes
; then
4372 if test "x$LIBPL" = "x"; then
4374 echo "ERROR!!! libPropList is not installed, or could not be found."
4375 echo " Window Maker requires libPropList to build."
4376 echo " Please read INSTALL to find where you can find libPropList,"
4377 echo " and install it first."
4378 echo " If you already have it installed, try using the"
4379 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4380 echo " --with-libs-from flag to tell configure where the library"
4381 echo " is installed and"
4383 echo " --with-incs-from flag to tell configure where the header"
4384 echo " files are installed"
4398 # Check whether --enable-xpm or --disable-xpm was given.
4399 if test "${enable_xpm+set}" = set; then
4400 enableval
="$enable_xpm"
4407 if test "$xpm" = yes; then
4409 LDFLAGS_old
="$LDFLAGS"
4410 LDFLAGS
="$LDFLAGS $lib_search_path"
4411 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4412 echo "configure:4413: checking for XpmCreatePixmapFromData in -lXpm" >&5
4413 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 ac_save_LIBS
="$LIBS"
4418 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4425 char XpmCreatePixmapFromData();
4428 XpmCreatePixmapFromData()
4431 if { (eval echo configure
:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.
$ac_ext >&5
4438 eval "ac_cv_lib_$ac_lib_var=no"
4441 LIBS
="$ac_save_LIBS"
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4448 echo "$ac_t""no" 1>&6
4452 LDFLAGS
="$LDFLAGS_old"
4455 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4457 CPPFLAGS_old
="$CPPFLAGS"
4458 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4459 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4460 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4461 echo "configure:4462: checking for X11/xpm.h" >&5
4462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 #include <X11/xpm.h>
4470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4471 { (eval echo configure
:4472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4473 if test -z "$ac_err"; then
4475 eval "ac_cv_header_$ac_safe=yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 eval "ac_cv_header_$ac_safe=no"
4485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4489 echo "$ac_t""no" 1>&6
4492 CPPFLAGS
="$CPPFLAGS_old"
4494 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4495 GFXLIBS
="$GFXLIBS -lXpm"
4497 cat >> confdefs.h
<<\EOF
4502 supported_gfx
="builtin-XPM"
4518 # Check whether --enable-png or --disable-png was given.
4519 if test "${enable_png+set}" = set; then
4520 enableval
="$enable_png"
4528 if test "$png" = yes ; then
4530 LDFLAGS_old
="$LDFLAGS"
4531 LDFLAGS
="$LDFLAGS $lib_search_path"
4532 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4533 echo "configure:4534: checking for png_get_valid in -lpng" >&5
4534 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 ac_save_LIBS
="$LIBS"
4539 LIBS
="-lpng -lz -lm $LIBS"
4540 cat > conftest.
$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4546 char png_get_valid();
4552 if { (eval echo configure
:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.
$ac_ext >&5
4559 eval "ac_cv_lib_$ac_lib_var=no"
4562 LIBS
="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4569 echo "$ac_t""no" 1>&6
4573 LDFLAGS
="$LDFLAGS_old"
4576 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4578 CPPFLAGS_old
="$CPPFLAGS"
4579 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4580 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4581 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4582 echo "configure:4583: checking for png.h" >&5
4583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 cat > conftest.
$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4591 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4592 { (eval echo configure
:4593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4593 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4594 if test -z "$ac_err"; then
4596 eval "ac_cv_header_$ac_safe=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4602 eval "ac_cv_header_$ac_safe=no"
4606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4610 echo "$ac_t""no" 1>&6
4613 CPPFLAGS
="$CPPFLAGS_old"
4615 if test "x$ac_cv_header_png_h" = xyes
; then
4616 GFXLIBS
="$GFXLIBS -lpng -lz"
4617 supported_gfx
="$supported_gfx PNG"
4618 cat >> confdefs.h
<<\EOF
4629 # Check whether --enable-jpeg or --disable-jpeg was given.
4630 if test "${enable_jpeg+set}" = set; then
4631 enableval
="$enable_jpeg"
4638 if test "$jpeg" = yes; then
4640 LDFLAGS_old
="$LDFLAGS"
4641 LDFLAGS
="$LDFLAGS $lib_search_path"
4642 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4643 echo "configure:4644: checking for jpeg_destroy_compress in -ljpeg" >&5
4644 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 ac_save_LIBS
="$LIBS"
4650 cat > conftest.
$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4656 char jpeg_destroy_compress();
4659 jpeg_destroy_compress()
4662 if { (eval echo configure
:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4664 eval "ac_cv_lib_$ac_lib_var=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_lib_$ac_lib_var=no"
4672 LIBS
="$ac_save_LIBS"
4675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4679 echo "$ac_t""no" 1>&6
4683 LDFLAGS
="$LDFLAGS_old"
4686 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4691 CPPFLAGS_old
="$CPPFLAGS"
4692 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4693 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4694 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4695 echo "configure:4696: checking for jpeglib.h" >&5
4696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 cat > conftest.
$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <jpeglib.h>
4704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4705 { (eval echo configure
:4706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4707 if test -z "$ac_err"; then
4709 eval "ac_cv_header_$ac_safe=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4715 eval "ac_cv_header_$ac_safe=no"
4719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4723 echo "$ac_t""no" 1>&6
4726 CPPFLAGS
="$CPPFLAGS_old"
4728 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4729 GFXLIBS
="$GFXLIBS -ljpeg"
4730 supported_gfx
="$supported_gfx JPEG"
4731 cat >> confdefs.h
<<\EOF
4741 # Check whether --enable-gif or --disable-gif was given.
4742 if test "${enable_gif+set}" = set; then
4743 enableval
="$enable_gif"
4750 if test "$gif" = yes; then
4753 LDFLAGS_old
="$LDFLAGS"
4754 LDFLAGS
="$LDFLAGS $lib_search_path"
4755 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4756 echo "configure:4757: checking for DGifOpenFileName in -lungif" >&5
4757 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 ac_save_LIBS
="$LIBS"
4762 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4763 cat > conftest.
$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4766 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char DGifOpenFileName();
4775 if { (eval echo configure
:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4777 eval "ac_cv_lib_$ac_lib_var=yes"
4779 echo "configure: failed program was:" >&5
4780 cat conftest.
$ac_ext >&5
4782 eval "ac_cv_lib_$ac_lib_var=no"
4785 LIBS
="$ac_save_LIBS"
4788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4792 echo "$ac_t""no" 1>&6
4796 LDFLAGS
="$LDFLAGS_old"
4798 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4801 if test "x$my_libname" = x
; then
4803 LDFLAGS_old
="$LDFLAGS"
4804 LDFLAGS
="$LDFLAGS $lib_search_path"
4805 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4806 echo "configure:4807: checking for DGifOpenFileName in -lgif" >&5
4807 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 ac_save_LIBS
="$LIBS"
4812 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4813 cat > conftest.
$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819 char DGifOpenFileName();
4825 if { (eval echo configure
:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4827 eval "ac_cv_lib_$ac_lib_var=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.
$ac_ext >&5
4832 eval "ac_cv_lib_$ac_lib_var=no"
4835 LIBS
="$ac_save_LIBS"
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4842 echo "$ac_t""no" 1>&6
4846 LDFLAGS
="$LDFLAGS_old"
4848 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
4853 if test "$my_libname" != x
; then
4855 CPPFLAGS_old
="$CPPFLAGS"
4856 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4857 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4859 echo "configure:4860: checking for gif_lib.h" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 #include <gif_lib.h>
4868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure
:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4887 echo "$ac_t""no" 1>&6
4890 CPPFLAGS
="$CPPFLAGS_old"
4892 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
4893 GFXLIBS
="$GFXLIBS $my_libname"
4894 supported_gfx
="$supported_gfx GIF"
4895 cat >> confdefs.h
<<\EOF
4905 # Check whether --enable-tiff or --disable-tiff was given.
4906 if test "${enable_tiff+set}" = set; then
4907 enableval
="$enable_tiff"
4915 # TIFF can optionally have JPEG and/or zlib support. Must find out
4916 # when they are supported so that correct library flags are passed during
4917 # detection and linkage
4920 # By default use xpm icons if tiff is not found.
4924 if test "$tif" = yes; then
4927 LDFLAGS_old
="$LDFLAGS"
4928 LDFLAGS
="$LDFLAGS $lib_search_path"
4929 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4930 echo "configure:4931: checking for TIFFGetVersion in -ltiff" >&5
4931 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 ac_save_LIBS
="$LIBS"
4936 LIBS
="-ltiff -lm $LIBS"
4937 cat > conftest.
$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 /* We use char because int might match the return type of a gcc2
4942 builtin and then its argument prototype would still apply. */
4943 char TIFFGetVersion();
4949 if { (eval echo configure
:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4951 eval "ac_cv_lib_$ac_lib_var=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4956 eval "ac_cv_lib_$ac_lib_var=no"
4959 LIBS
="$ac_save_LIBS"
4962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4966 echo "$ac_t""no" 1>&6
4970 LDFLAGS
="$LDFLAGS_old"
4972 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
4975 unset ac_cv_lib_tiff_TIFFGetVersion
4976 if test "x$my_libname" = x
; then
4978 LDFLAGS_old
="$LDFLAGS"
4979 LDFLAGS
="$LDFLAGS $lib_search_path"
4980 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4981 echo "configure:4982: checking for TIFFGetVersion in -ltiff" >&5
4982 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 ac_save_LIBS
="$LIBS"
4987 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
4988 cat > conftest.
$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
4994 char TIFFGetVersion();
5000 if { (eval echo configure
:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.
$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5010 LIBS
="$ac_save_LIBS"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5017 echo "$ac_t""no" 1>&6
5021 LDFLAGS
="$LDFLAGS_old"
5023 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5024 my_libname
="-ltiff -lz"
5028 if test "x$my_libname" = x
; then
5030 LDFLAGS_old
="$LDFLAGS"
5031 LDFLAGS
="$LDFLAGS $lib_search_path"
5032 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5033 echo "configure:5034: checking for TIFFGetVersion in -ltiff34" >&5
5034 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 ac_save_LIBS
="$LIBS"
5039 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5040 cat > conftest.
$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046 char TIFFGetVersion();
5052 if { (eval echo configure
:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5054 eval "ac_cv_lib_$ac_lib_var=yes"
5056 echo "configure: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5059 eval "ac_cv_lib_$ac_lib_var=no"
5062 LIBS
="$ac_save_LIBS"
5065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5066 echo "$ac_t""yes" 1>&6
5069 echo "$ac_t""no" 1>&6
5073 LDFLAGS
="$LDFLAGS_old"
5075 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5076 my_libname
="-ltiff34"
5081 if test "x$my_libname" != x
; then
5083 CPPFLAGS_old
="$CPPFLAGS"
5084 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5085 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5086 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5087 echo "configure:5088: checking for tiffio.h" >&5
5088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 cat > conftest.
$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5096 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5097 { (eval echo configure
:5098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5098 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5099 if test -z "$ac_err"; then
5101 eval "ac_cv_header_$ac_safe=yes"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.
$ac_ext >&5
5107 eval "ac_cv_header_$ac_safe=no"
5111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5115 echo "$ac_t""no" 1>&6
5118 CPPFLAGS
="$CPPFLAGS_old"
5120 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5121 GFXLIBS
="$my_libname $GFXLIBS"
5123 supported_gfx
="$supported_gfx TIFF"
5124 cat >> confdefs.h
<<\EOF
5132 LIBRARY_SEARCH_PATH
="$lib_search_path"
5133 HEADER_SEARCH_PATH
="$inc_search_path"
5145 # Check whether --enable-debug or --disable-debug was given.
5146 if test "${enable_debug+set}" = set; then
5147 enableval
="$enable_debug"
5154 if test "$enable_debug" = yes; then
5156 # Efence makes things too slow. Add it by hand in the Makefiles
5157 # if it is really needed.
5158 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5164 # Check whether --enable-sound or --disable-sound was given.
5165 if test "${enable_sound+set}" = set; then
5166 enableval
="$enable_sound"
5172 if test "$sound" = yes; then
5173 cat >> confdefs.h
<<\EOF
5180 # AC_PREFIX_PROGRAM(wmaker)
5182 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5183 if test "${with_pixmapdir+set}" = set; then
5184 withval
="$with_pixmapdir"
5189 if test "x$with_pixmapdir" != "x"; then
5190 pixmapdir
=$with_pixmapdir
5192 pixmapdir
=`eval echo ${datadir}/pixmaps`
5195 cat >> confdefs.h
<<EOF
5196 #define PIXMAPDIR "$pixmapdir"
5200 pkgdatadir
=`eval echo $datadir`
5201 cat >> confdefs.h
<<EOF
5202 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5206 _sysconfdir
=`eval echo $sysconfdir`
5207 cat >> confdefs.h
<<EOF
5208 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5216 # Check whether --with-appspath or --without-appspath was given.
5217 if test "${with_appspath+set}" = set; then
5218 withval
="$with_appspath"
5223 if test "x$appspath" = "x"; then
5224 gnustepdir
='$(prefix)/GNUstep'
5226 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5227 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5228 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5231 with_appspath
=$gnustepdir/Apps
5234 wprefsdir
=$with_appspath/WPrefs.app
5240 # Check whether --enable-single-icon or --disable-single-icon was given.
5241 if test "${enable_single_icon+set}" = set; then
5242 enableval
="$enable_single_icon"
5243 if test "$enableval" = yes; then
5244 cat >> confdefs.h
<<\EOF
5245 #define REDUCE_APPICONS 1
5257 cat > confcache
<<\EOF
5258 # This file is a shell script that caches the results of configure
5259 # tests run on this system so they can be shared between configure
5260 # scripts and configure runs. It is not useful on other systems.
5261 # If it contains results you don't want to keep, you may remove or edit it.
5263 # By default, configure uses ./config.cache as the cache file,
5264 # creating it if it does not exist already. You can give configure
5265 # the --cache-file=FILE option to use a different cache file; that is
5266 # what configure does when it calls configure scripts in
5267 # subdirectories, so they share the cache.
5268 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5269 # config.status only pays attention to the cache file if you give it the
5270 # --recheck option to rerun configure.
5273 # The following way of writing the cache mishandles newlines in values,
5274 # but we know of no workaround that is simple, portable, and efficient.
5275 # So, don't put newlines in cache variables' values.
5276 # Ultrix sh set writes to stderr and can't be redirected directly,
5277 # and sets the high bit in the cache file unless we assign to the vars.
5279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5281 # `set' does not quote correctly, so add quotes (double-quote substitution
5282 # turns \\\\ into \\, and sed turns \\ into \).
5284 -e "s/'/'\\\\''/g" \
5285 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5288 # `set' quotes correctly as required by POSIX, so do not add quotes.
5289 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5292 if cmp -s $cache_file confcache
; then
5295 if test -w $cache_file; then
5296 echo "updating cache $cache_file"
5297 cat confcache
> $cache_file
5299 echo "not updating unwritable cache $cache_file"
5304 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5306 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5307 # Let make expand exec_prefix.
5308 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5310 # Any assignment to VPATH causes Sun make to only execute
5311 # the first set of double-colon rules, so remove it if not needed.
5312 # If there is a colon in the path, we need to keep it.
5313 if test "x$srcdir" = x.
; then
5314 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5317 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5319 DEFS
=-DHAVE_CONFIG_H
5321 # Without the "./", some shells look in PATH for config.status.
5322 : ${CONFIG_STATUS=./config.status}
5324 echo creating
$CONFIG_STATUS
5325 rm -f $CONFIG_STATUS
5326 cat > $CONFIG_STATUS <<EOF
5328 # Generated automatically by configure.
5329 # Run this file to recreate the current configuration.
5330 # This directory was configured as follows,
5331 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5333 # $0 $ac_configure_args
5335 # Compiler output produced by configure, useful for debugging
5336 # configure, is in ./config.log if it exists.
5338 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5341 case "\$ac_option" in
5342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5343 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5344 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5345 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5346 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5348 -help | --help | --hel | --he | --h)
5349 echo "\$ac_cs_usage"; exit 0 ;;
5350 *) echo "\$ac_cs_usage"; exit 1 ;;
5354 ac_given_srcdir=$srcdir
5355 ac_given_INSTALL="$INSTALL"
5357 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5358 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5359 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5360 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5361 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5362 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5363 WindowMaker/Themes/Makefile \
5364 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5365 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5367 cat >> $CONFIG_STATUS <<EOF
5369 # Protect against being on the right side of a sed subst in config.status.
5370 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5371 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5375 s%@CFLAGS@%$CFLAGS%g
5376 s%@CPPFLAGS@%$CPPFLAGS%g
5377 s%@CXXFLAGS@%$CXXFLAGS%g
5378 s%@FFLAGS@%$FFLAGS%g
5380 s%@LDFLAGS@%$LDFLAGS%g
5382 s%@exec_prefix@%$exec_prefix%g
5383 s%@prefix@%$prefix%g
5384 s%@program_transform_name@%$program_transform_name%g
5385 s%@bindir@%$bindir%g
5386 s%@sbindir@%$sbindir%g
5387 s%@libexecdir@%$libexecdir%g
5388 s%@datadir@%$datadir%g
5389 s%@sysconfdir@%$sysconfdir%g
5390 s%@sharedstatedir@%$sharedstatedir%g
5391 s%@localstatedir@%$localstatedir%g
5392 s%@libdir@%$libdir%g
5393 s%@includedir@%$includedir%g
5394 s%@oldincludedir@%$oldincludedir%g
5395 s%@infodir@%$infodir%g
5396 s%@mandir@%$mandir%g
5397 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5398 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5399 s%@INSTALL_DATA@%$INSTALL_DATA%g
5400 s%@PACKAGE@%$PACKAGE%g
5401 s%@VERSION@%$VERSION%g
5402 s%@ACLOCAL@%$ACLOCAL%g
5403 s%@AUTOCONF@%$AUTOCONF%g
5404 s%@AUTOMAKE@%$AUTOMAKE%g
5405 s%@AUTOHEADER@%$AUTOHEADER%g
5406 s%@MAKEINFO@%$MAKEINFO%g
5407 s%@SET_MAKE@%$SET_MAKE%g
5409 s%@host_alias@%$host_alias%g
5410 s%@host_cpu@%$host_cpu%g
5411 s%@host_vendor@%$host_vendor%g
5412 s%@host_os@%$host_os%g
5413 s%@RANLIB@%$RANLIB%g
5418 s%@LIBTOOL@%$LIBTOOL%g
5420 s%@ALLOCA@%$ALLOCA%g
5421 s%@CPP_PATH@%$CPP_PATH%g
5422 s%@XGETTEXT@%$XGETTEXT%g
5423 s%@DLLIBS@%$DLLIBS%g
5424 s%@INTLIBS@%$INTLIBS%g
5425 s%@NLSDIR@%$NLSDIR%g
5426 s%@MOFILES@%$MOFILES%g
5427 s%@WPMOFILES@%$WPMOFILES%g
5429 s%@X_CFLAGS@%$X_CFLAGS%g
5430 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5431 s%@X_LIBS@%$X_LIBS%g
5432 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5434 s%@XCFLAGS@%$XCFLAGS%g
5435 s%@XLFLAGS@%$XLFLAGS%g
5437 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5438 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5439 s%@GFXLIBS@%$GFXLIBS%g
5440 s%@ICONEXT@%$ICONEXT%g
5441 s%@DFLAGS@%$DFLAGS%g
5442 s%@wprefsdir@%$wprefsdir%g
5447 cat >> $CONFIG_STATUS <<\EOF
5449 # Split the substitutions into bite-sized pieces for seds with
5450 # small command number limits, like on Digital OSF/1 and HP-UX.
5451 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5452 ac_file
=1 # Number of current file.
5453 ac_beg
=1 # First line for current file.
5454 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5457 while $ac_more_lines; do
5458 if test $ac_beg -gt 1; then
5459 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5461 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5463 if test ! -s conftest.s
$ac_file; then
5465 rm -f conftest.s
$ac_file
5467 if test -z "$ac_sed_cmds"; then
5468 ac_sed_cmds
="sed -f conftest.s$ac_file"
5470 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5472 ac_file
=`expr $ac_file + 1`
5474 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5477 if test -z "$ac_sed_cmds"; then
5482 cat >> $CONFIG_STATUS <<EOF
5484 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5485 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5486 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5487 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5488 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5489 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5490 WindowMaker/Themes/Makefile \
5491 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5492 WPrefs.app/po/Makefile "}
5494 cat >> $CONFIG_STATUS <<\EOF
5495 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5498 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5499 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5500 *) ac_file_in
="${ac_file}.in" ;;
5503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5505 # Remove last slash and all that follows it. Not all systems have dirname.
5506 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5508 # The file is in a subdirectory.
5509 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5510 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5511 # A "../" for each directory in $ac_dir_suffix.
5512 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5514 ac_dir_suffix
= ac_dots
=
5517 case "$ac_given_srcdir" in
5519 if test -z "$ac_dots"; then top_srcdir
=.
5520 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5521 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5523 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5524 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5527 case "$ac_given_INSTALL" in
5528 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5529 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5532 echo creating
"$ac_file"
5534 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5536 *Makefile
*) ac_comsub
="1i\\
5537 # $configure_input" ;;
5541 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5543 s%@configure_input@%$configure_input%g
5544 s%@srcdir@%$srcdir%g
5545 s%@top_srcdir@%$top_srcdir%g
5546 s%@INSTALL@%$INSTALL%g
5547 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5554 # ac_d sets the value in "#define NAME VALUE" lines.
5555 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5556 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5560 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5561 ac_uB
='\([ ]\)%\1#\2define\3'
5564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5565 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5566 ac_eB
='$%\1#\2define\3'
5570 if test "${CONFIG_HEADERS+set}" != set; then
5572 cat >> $CONFIG_STATUS <<EOF
5573 CONFIG_HEADERS="src/config.h"
5575 cat >> $CONFIG_STATUS <<\EOF
5577 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5580 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5581 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5582 *) ac_file_in
="${ac_file}.in" ;;
5585 echo creating
$ac_file
5587 rm -f conftest.frag conftest.
in conftest.out
5588 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5589 cat $ac_file_inputs > conftest.
in
5593 # Transform confdefs.h into a sed script conftest.vals that substitutes
5594 # the proper values into config.h.in to produce config.h. And first:
5595 # Protect against being on the right side of a sed subst in config.status.
5596 # Protect against being in an unquoted here document in config.status.
5598 cat > conftest.hdr
<<\EOF
5601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5605 sed -n -f conftest.hdr confdefs.h > conftest.vals
5608 # This sed command replaces #undef with comments. This is necessary, for
5609 # example, in the case of _POSIX_SOURCE, which is predefined and required
5610 # on some systems where configure will not decide to define it.
5611 cat >> conftest.vals <<\EOF
5612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5615 # Break up conftest.vals because some shells have a limit on
5616 # the size of here documents, and old seds have small limits too.
5621 ac_lines=`grep -c . conftest.vals
`
5622 # grep -c gives empty output for an empty file on some AIX systems.
5623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5624 # Write a limited-size here document to conftest.frag.
5625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5628 sed -f conftest.frag conftest.in > conftest.out
5630 mv conftest.out conftest.in
5632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5634 mv conftest.tail conftest.vals
5638 cat >> $CONFIG_STATUS <<\EOF
5639 rm -f conftest.frag conftest.h
5640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5641 cat conftest.in >> conftest.h
5643 if cmp -s $ac_file conftest.h 2>/dev/null; then
5644 echo "$ac_file is unchanged"
5647 # Remove last slash and all that follows it. Not all systems have dirname.
5648 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5650 # The file is in a subdirectory.
5651 test ! -d "$ac_dir" && mkdir "$ac_dir"
5654 mv conftest.h $ac_file
5659 cat >> $CONFIG_STATUS <<EOF
5663 cat >> $CONFIG_STATUS <<\EOF
5664 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5668 chmod +x $CONFIG_STATUS
5669 rm -fr confdefs* $ac_clean_files
5670 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5678 cat <<EOF >get-wraster-flags
5682 exec_prefix=\$prefix
5684 WCFLAGS="-I\$prefix/include $inc_search_path"
5685 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5686 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5688 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--lflags#rp# #lp#--libs#rp#"
5690 if test \$# -eq 0; then
5691 echo "\${usage}" 1>&2
5695 while test \$# -gt 0; do
5707 echo "\${usage}" 1>&2
5717 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5719 chmod 755 wrlib/get-wraster-flags
5720 rm -f get-wraster-flags
5724 supported_gfx="$supported_gfx builtin-PPM"
5726 if test "x$MOFILES" = "x"; then
5734 echo "Window Maker was configured as follows:"
5736 echo "Installation path prefix: $prefix"
5737 echo "Installation path prefix for binaries: $_bindir"
5738 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5739 echo "Graphic format libraries: $supported_gfx"
5740 echo "Sound support: $sound"
5741 echo "Translated message files to install: $mof"
5742 if test "x$MOFILES" != "x"; then
5743 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5747 if test "$rh_is_redhat" = yes; then
5748 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5750 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5751 I have done some checks for Red-Hat-specific bugs, and I found some
5752 problems. Please read the INSTALL file regarding Red Hat, resolve
5753 the problems, and try to run configure again.
5755 Here are the problems I found:
5757 if test "x$rh_old_wmaker" = xyes; then
5758 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5759 echo "Description: You seem to have an old version of Window Maker"
5760 echo " installed in /usr/X11R6/bin. It is recommended"
5761 echo " that you uninstall any previously installed"
5762 echo " packages of WindowMaker before installing a new one."
5765 if test "x$rh_missing_usr_local_bin" = xyes; then
5766 echo "Problem: PATH is missing /usr/local/bin."
5767 echo "Description: Your PATH environment variable does not appear to"
5768 echo " contain the directory /usr/local/bin. Please add it."
5771 if test "x$rh_missing_usr_local_lib" = xyes; then
5772 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5773 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5774 echo " the directory /usr/local/lib. Please add it."
5777 if test "x$rh_missing_usr_x11" = xyes; then
5778 echo "Problem: Missing /usr/X11 symbolic link."
5779 echo "Description: Your system is missing a symbolic link from"
5780 echo " /usr/X11R6 to /usr/X11. Please create one."
5783 if test "x$rh_missing_usr_include_x11" = xyes; then
5784 echo "Problem: Missing /usr/include/X11 symbolic link."
5785 echo "Description: Your system is missing a symbolic link from"
5786 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5787 echo " Please create one."
5790 if test "x$rh_missing_lib_cpp" = xyes; then
5791 echo "Problem: Missing /lib/cpp symbolic link."
5792 echo "Description: Your system is missing a symbolic link from the"
5793 echo " cpp (C preprocessor) program to /lib/cpp."
5794 echo " Please create one."
5797 if test "x$bugs_found" = xyes; then
5798 { echo "configure: error: One or more of the problems above can potentially
5799 cause Window Maker not to install or run properly. Please resolve
5800 the problems and try to run configure again." 1>&2; exit 1; }
5802 elif test "x$mins_found" = xyes; then
5803 echo "configure: warning: The problems above may or may not cause Window Maker
5804 not to install or run properly. If you have any problems during
5805 installation or execution, please resolve the problems and try to
5806 install Window Maker again." 1>&2
5811 echo "You appear to have a system packaged by Red Hat, but I could"
5812 echo "not find any Red-Hat-specific problems that I know about."
5818 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5819 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5821 echo "JPEG support will not be included because the JPEG library is"
5822 echo "not installed correctly or was not found. Background images"
5823 echo "from themes will not display as they usually are JPEG files."
5825 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"