3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-libs-from pass compiler flags to look for libraries"
27 --with-incs-from pass compiler flags to look for header files"
29 --with-nlsdir=PATH specify where the locale stuff should go "
31 --enable-gnome enable stuff needed for GNOME "
33 --enable-kde enable support for KDE window manager (kwm) hints "
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
37 --enable-lite disable some stuff (dont use it) "
39 --with-x use the X Window System"
41 --disable-locale disable use of X locale support"
43 --enable-modelock XKB keyboard language status support"
45 --disable-shape disable shaped window extension support"
47 --disable-shm disable usage of MIT-SHM extension"
49 --disable-xpm disable use of XPM pixmaps through libXpm"
51 --disable-png disable PNG support through libpng"
53 --disable-jpeg disable JPEG support through libjpeg"
55 --disable-gif disable GIF support through libgif or libungif"
57 --disable-tiff disable use of TIFF images through libtiff"
59 --enable-debug enable debugging "
61 --disable-sound disable sound support "
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
65 --with-appspath=PATH specify the directory for GNUstep applications"
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file
=.
/config.cache
86 program_transform_name
=s
,x
,x
,
94 bindir
='${exec_prefix}/bin'
95 sbindir
='${exec_prefix}/sbin'
96 libexecdir
='${exec_prefix}/libexec'
97 datadir
='${prefix}/share'
98 sysconfdir
='${prefix}/etc'
99 sharedstatedir
='${prefix}/com'
100 localstatedir
='${prefix}/var'
101 libdir
='${exec_prefix}/lib'
102 includedir
='${prefix}/include'
103 oldincludedir
='/usr/include'
104 infodir
='${prefix}/info'
105 mandir
='${prefix}/man'
107 # Initialize some other variables.
110 SHELL
=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
126 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 # Accept the important Cygnus configure options, so we can diagnose typos.
134 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
136 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
137 bindir
="$ac_optarg" ;;
139 -build |
--build |
--buil |
--bui |
--bu)
141 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
142 build
="$ac_optarg" ;;
144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
146 ac_prev
=cache_file
;;
147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
149 cache_file
="$ac_optarg" ;;
151 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
153 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
155 datadir
="$ac_optarg" ;;
157 -disable-* |
--disable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* |
--enable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
180 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
181 |
--exec |
--exe |
--ex)
182 ac_prev
=exec_prefix
;;
183 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
184 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
185 |
--exec=* |
--exe=* |
--ex=*)
186 exec_prefix
="$ac_optarg" ;;
188 -gas |
--gas |
--ga |
--g)
189 # Obsolete; use --with-gas.
192 -help |
--help |
--hel |
--he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
247 -host |
--host |
--hos |
--ho)
249 -host=* |
--host=* |
--hos=* |
--ho=*)
252 -includedir |
--includedir |
--includedi |
--included |
--include \
253 |
--includ |
--inclu |
--incl |
--inc)
254 ac_prev
=includedir
;;
255 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
256 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
257 includedir
="$ac_optarg" ;;
259 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
261 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
262 infodir
="$ac_optarg" ;;
264 -libdir |
--libdir |
--libdi |
--libd)
266 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
267 libdir
="$ac_optarg" ;;
269 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
270 |
--libexe |
--libex |
--libe)
271 ac_prev
=libexecdir
;;
272 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
273 |
--libexe=* |
--libex=* |
--libe=*)
274 libexecdir
="$ac_optarg" ;;
276 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
277 |
--localstate |
--localstat |
--localsta |
--localst \
278 |
--locals |
--local |
--loca |
--loc |
--lo)
279 ac_prev
=localstatedir
;;
280 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
281 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
282 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
283 localstatedir
="$ac_optarg" ;;
285 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
287 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
288 mandir
="$ac_optarg" ;;
291 # Obsolete; use --without-fp.
294 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
298 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
299 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
302 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
303 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
304 |
--oldin |
--oldi |
--old |
--ol |
--o)
305 ac_prev
=oldincludedir
;;
306 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
307 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
308 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
309 oldincludedir
="$ac_optarg" ;;
311 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
313 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
314 prefix
="$ac_optarg" ;;
316 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
317 |
--program-pre |
--program-pr |
--program-p)
318 ac_prev
=program_prefix
;;
319 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
320 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
321 program_prefix
="$ac_optarg" ;;
323 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
324 |
--program-suf |
--program-su |
--program-s)
325 ac_prev
=program_suffix
;;
326 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
327 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
328 program_suffix
="$ac_optarg" ;;
330 -program-transform-name |
--program-transform-name \
331 |
--program-transform-nam |
--program-transform-na \
332 |
--program-transform-n |
--program-transform- \
333 |
--program-transform |
--program-transfor \
334 |
--program-transfo |
--program-transf \
335 |
--program-trans |
--program-tran \
336 |
--progr-tra |
--program-tr |
--program-t)
337 ac_prev
=program_transform_name
;;
338 -program-transform-name=* |
--program-transform-name=* \
339 |
--program-transform-nam=* |
--program-transform-na=* \
340 |
--program-transform-n=* |
--program-transform-=* \
341 |
--program-transform=* |
--program-transfor=* \
342 |
--program-transfo=* |
--program-transf=* \
343 |
--program-trans=* |
--program-tran=* \
344 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
345 program_transform_name
="$ac_optarg" ;;
347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
348 |
-silent |
--silent |
--silen |
--sile |
--sil)
351 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
353 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
355 sbindir
="$ac_optarg" ;;
357 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
358 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
359 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
361 ac_prev
=sharedstatedir
;;
362 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
363 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
364 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
366 sharedstatedir
="$ac_optarg" ;;
368 -site |
--site |
--sit)
370 -site=* |
--site=* |
--sit=*)
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=src
/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE
; then
540 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
586 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
622 for ac_dir
in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
625 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
630 for ac_prog
in ginstall scoinst
install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
634 # AIX install. It has an incompatible calling convention.
637 ac_cv_path_install
="$ac_dir/$ac_prog -c"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL
="$ac_cv_path_install"
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL
="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
672 echo timestamp
> conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
679 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
682 set X
`ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s
,x
,x
,; then
707 program_transform_name
=
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED
> conftestsed
711 s
,\\,\\\\,g
; s
,\$
,$$
,g
713 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
716 test "$program_prefix" != NONE
&&
717 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE
&&
720 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 cat > conftestmake
<<\EOF
733 @
echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_
${ac_make}_set
=yes
740 eval ac_cv_prog_make_
${ac_make}_set
=no
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
748 echo "$ac_t""no" 1>&6
749 SET_MAKE
="MAKE=${MAKE-make}"
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
758 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
760 cat >> confdefs.h
<<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h
<<EOF
765 #define VERSION "$VERSION"
770 missing_dir
=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
778 echo "$ac_t""found" 1>&6
780 ACLOCAL
="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
791 echo "$ac_t""found" 1>&6
793 AUTOCONF
="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
804 echo "$ac_t""found" 1>&6
806 AUTOMAKE
="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
816 AUTOHEADER
=autoheader
817 echo "$ac_t""found" 1>&6
819 AUTOHEADER
="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
830 echo "$ac_t""found" 1>&6
832 MAKEINFO
="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval
="$enable_shared"
843 yes) enable_shared
=yes ;;
844 no
) enable_shared
=no
;;
847 # Look at the argument we got. We use all the common list separators.
848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
849 for pkg
in $enableval; do
850 if test "X$pkg" = "X$p"; then
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval
="$enable_static"
866 yes) enable_static
=yes ;;
867 no
) enable_static
=no
;;
870 # Look at the argument we got. We use all the common list separators.
871 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
872 for pkg
in $enableval; do
873 if test "X$pkg" = "X$p"; then
884 # Check whether --enable-fast-install or --disable-fast-install was given.
885 if test "${enable_fast_install+set}" = set; then
886 enableval
="$enable_fast_install"
889 yes) enable_fast_install
=yes ;;
890 no
) enable_fast_install
=no
;;
892 enable_fast_install
=no
893 # Look at the argument we got. We use all the common list separators.
894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
895 for pkg
in $enableval; do
896 if test "X$pkg" = "X$p"; then
897 enable_fast_install
=yes
904 enable_fast_install
=yes
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
917 case "$host_alias" in
921 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 *) host_alias
=$nonopt ;;
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
934 echo $ac_n "checking build system type""... $ac_c" 1>&6
935 echo "configure:936: checking build system type" >&5
938 case "$build_alias" in
941 NONE
) build_alias
=$host_alias ;;
942 *) build_alias
=$nonopt ;;
946 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
947 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$build" 1>&6
952 # Extract the first word of "ranlib", so it can be a program name with args.
953 set dummy ranlib
; ac_word
=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
964 for ac_dir
in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir
=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_RANLIB
="ranlib"
972 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
975 RANLIB
="$ac_cv_prog_RANLIB"
976 if test -n "$RANLIB"; then
977 echo "$ac_t""$RANLIB" 1>&6
979 echo "$ac_t""no" 1>&6
982 # Extract the first word of "gcc", so it can be a program name with args.
983 set dummy gcc
; ac_word
=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 if test -n "$CC"; then
990 ac_cv_prog_CC
="$CC" # Let the user override the test.
992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
994 for ac_dir
in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir
=.
996 if test -f $ac_dir/$ac_word; then
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1008 echo "$ac_t""no" 1>&6
1011 if test -z "$CC"; then
1012 # Extract the first word of "cc", so it can be a program name with args.
1013 set dummy cc
; ac_word
=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 if test -n "$CC"; then
1020 ac_cv_prog_CC
="$CC" # Let the user override the test.
1022 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1025 for ac_dir
in $ac_dummy; do
1026 test -z "$ac_dir" && ac_dir
=.
1027 if test -f $ac_dir/$ac_word; then
1028 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1029 ac_prog_rejected
=yes
1037 if test $ac_prog_rejected = yes; then
1038 # We found a bogon in the path, so make sure we never use it.
1039 set dummy
$ac_cv_prog_CC
1041 if test $# -gt 0; then
1042 # We chose a different compiler from the bogus one.
1043 # However, it has the same basename, so the bogon will be chosen
1044 # first if we set CC to just the basename; use the full file name.
1046 set dummy
"$ac_dir/$ac_word" "$@"
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 case "`uname -s`" in
1063 # Extract the first word of "cl", so it can be a program name with args.
1064 set dummy cl
; ac_word
=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC
="$CC" # Let the user override the test.
1073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1075 for ac_dir
in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir
=.
1077 if test -f $ac_dir/$ac_word; then
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1089 echo "$ac_t""no" 1>&6
1094 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp
='$CPP $CPPFLAGS'
1103 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling
=$ac_cv_prog_cc_cross
1107 cat > conftest.
$ac_ext << EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1114 if { (eval echo configure
:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1115 ac_cv_prog_cc_works
=yes
1116 # If we can't run a trivial program, we are probably using a cross compiler.
1117 if (.
/conftest
; exit) 2>/dev
/null
; then
1118 ac_cv_prog_cc_cross
=no
1120 ac_cv_prog_cc_cross
=yes
1123 echo "configure: failed program was:" >&5
1124 cat conftest.
$ac_ext >&5
1125 ac_cv_prog_cc_works
=no
1129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130 ac_cpp
='$CPP $CPPFLAGS'
1131 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133 cross_compiling
=$ac_cv_prog_cc_cross
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no
; then
1137 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling
=$ac_cv_prog_cc_cross
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.c
<<EOF
1154 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1169 ac_test_CFLAGS
="${CFLAGS+set}"
1170 ac_save_CFLAGS
="$CFLAGS"
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS
="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1197 if test "$GCC" = yes; then
1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1205 if test "${with_gnu_ld+set}" = set; then
1206 withval
="$with_gnu_ld"
1207 test "$withval" = no || with_gnu_ld
=yes
1213 if test "$ac_cv_prog_gcc" = yes; then
1214 # Check if gcc -print-prog-name=ld gives a path.
1215 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1216 echo "configure:1217: checking for ld used by GCC" >&5
1217 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1219 # Accept absolute paths.
1220 [\\/]* |
[A-Za-z
]:[\\/]*)
1221 re_direlt
='/[^/][^/]*/\.\./'
1222 # Canonicalize the path of ld
1223 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1224 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1225 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1227 test -z "$LD" && LD
="$ac_prog"
1230 # If it fails, then pretend we aren't using GCC.
1234 # If it is relative, then search for the first ld in PATH.
1238 elif test "$with_gnu_ld" = yes; then
1239 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1240 echo "configure:1241: checking for GNU ld" >&5
1242 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for non-GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 if test -z "$LD"; then
1249 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1250 for ac_dir
in $PATH; do
1251 test -z "$ac_dir" && ac_dir
=.
1252 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1253 ac_cv_path_LD
="$ac_dir/$ac_prog"
1254 # Check to see if the program is GNU ld. I'd rather use --version,
1255 # but apparently some GNU ld's only accept -v.
1256 # Break only if it was the GNU/non-GNU ld that we prefer.
1257 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1258 test "$with_gnu_ld" != no
&& break
1260 test "$with_gnu_ld" != yes && break
1266 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1271 if test -n "$LD"; then
1272 echo "$ac_t""$LD" 1>&6
1274 echo "$ac_t""no" 1>&6
1276 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1278 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1279 echo "configure:1280: checking if the linker ($LD) is GNU ld" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1284 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1285 ac_cv_prog_gnu_ld
=yes
1287 ac_cv_prog_gnu_ld
=no
1291 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1294 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1295 echo "configure:1296: checking for BSD-compatible nm" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -n "$NM"; then
1300 # Let the user override the test.
1303 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1304 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1305 test -z "$ac_dir" && ac_dir
=.
1306 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1307 # Check to see if the nm accepts a BSD-compat flag.
1308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1309 # nm: unknown option "B" ignored
1310 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1311 ac_cv_path_NM
="$ac_dir/nm -B"
1313 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1314 ac_cv_path_NM
="$ac_dir/nm -p"
1317 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1318 continue # so that we can try to find one that supports BSD flags
1323 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1328 echo "$ac_t""$NM" 1>&6
1331 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ln -s works" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1337 if ln -s X conftestdata
2>/dev
/null
1340 ac_cv_prog_LN_S
="ln -s"
1345 LN_S
="$ac_cv_prog_LN_S"
1346 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1347 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1353 # Check for any special flags to pass to ltconfig.
1354 libtool_flags
="--cache-file=$cache_file"
1355 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1356 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1357 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1358 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1359 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1363 if test "${enable_libtool_lock+set}" = set; then
1364 enableval
="$enable_libtool_lock"
1368 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1369 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1371 # Some flags need to be propagated to the compiler or linker for good
1375 # Find out which ABI we are using.
1376 echo '#line 1377 "configure"' > conftest.
$ac_ext
1377 if { (eval echo configure
:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 case "`/usr/bin/file conftest.o`" in
1394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1395 SAVE_CFLAGS
="$CFLAGS"
1396 CFLAGS
="$CFLAGS -belf"
1397 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether the C compiler needs -belf" >&5
1399 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1410 if { (eval echo configure
:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1412 lt_cv_cc_needs_belf
=yes
1414 echo "configure: failed program was:" >&5
1415 cat conftest.
$ac_ext >&5
1417 lt_cv_cc_needs_belf
=no
1422 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1423 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1424 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1425 CFLAGS
="$SAVE_CFLAGS"
1433 # Save cache, so that ltconfig can load it
1434 cat > confcache
<<\EOF
1435 # This file is a shell script that caches the results of configure
1436 # tests run on this system so they can be shared between configure
1437 # scripts and configure runs. It is not useful on other systems.
1438 # If it contains results you don't want to keep, you may remove or edit it.
1440 # By default, configure uses ./config.cache as the cache file,
1441 # creating it if it does not exist already. You can give configure
1442 # the --cache-file=FILE option to use a different cache file; that is
1443 # what configure does when it calls configure scripts in
1444 # subdirectories, so they share the cache.
1445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1446 # config.status only pays attention to the cache file if you give it the
1447 # --recheck option to rerun configure.
1450 # The following way of writing the cache mishandles newlines in values,
1451 # but we know of no workaround that is simple, portable, and efficient.
1452 # So, don't put newlines in cache variables' values.
1453 # Ultrix sh set writes to stderr and can't be redirected directly,
1454 # and sets the high bit in the cache file unless we assign to the vars.
1456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1458 # `set' does not quote correctly, so add quotes (double-quote substitution
1459 # turns \\\\ into \\, and sed turns \\ into \).
1461 -e "s/'/'\\\\''/g" \
1462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1465 # `set' quotes correctly as required by POSIX, so do not add quotes.
1466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1469 if cmp -s $cache_file confcache
; then
1472 if test -w $cache_file; then
1473 echo "updating cache $cache_file"
1474 cat confcache
> $cache_file
1476 echo "not updating unwritable cache $cache_file"
1482 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1483 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1484 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1485 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1486 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1488 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1489 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1491 # Reload cache, that may have been modified by ltconfig
1492 if test -r "$cache_file"; then
1493 echo "loading cache $cache_file"
1496 echo "creating cache $cache_file"
1501 # This can be used to rebuild libtool when needed
1502 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1504 # Always use our own libtool.
1505 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1507 # Redirect the config.log output again, so that the ltconfig log is not
1508 # clobbered by the next message.
1509 exec 5>>.
/config.log
1512 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1513 # Turn around -rpath problem with libtool 1.0c
1514 # This define should be improbable enough to not conflict with anything
1517 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1518 sed < libtool
> libtool-2 \
1519 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1520 mv libtool-2 libtool
1533 # Make sure we can run config.sub.
1534 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1535 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1538 echo $ac_n "checking host system type""... $ac_c" 1>&6
1539 echo "configure:1540: checking host system type" >&5
1542 case "$host_alias" in
1546 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1547 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1549 *) host_alias
=$nonopt ;;
1553 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1554 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 echo "$ac_t""$host" 1>&6
1561 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1562 echo "configure:1563: checking for POSIXized ISC" >&5
1563 if test -d /etc
/conf
/kconfig.d
&&
1564 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1566 echo "$ac_t""yes" 1>&6
1567 ISC
=yes # If later tests want to check for ISC.
1568 cat >> confdefs.h
<<\EOF
1569 #define _POSIX_SOURCE 1
1572 if test "$GCC" = yes; then
1578 echo "$ac_t""no" 1>&6
1582 # Extract the first word of "gcc", so it can be a program name with args.
1583 set dummy gcc
; ac_word
=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 if test -n "$CC"; then
1590 ac_cv_prog_CC
="$CC" # Let the user override the test.
1592 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1594 for ac_dir
in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir
=.
1596 if test -f $ac_dir/$ac_word; then
1605 if test -n "$CC"; then
1606 echo "$ac_t""$CC" 1>&6
1608 echo "$ac_t""no" 1>&6
1611 if test -z "$CC"; then
1612 # Extract the first word of "cc", so it can be a program name with args.
1613 set dummy cc
; ac_word
=$2
1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_word" >&5
1616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC
="$CC" # Let the user override the test.
1622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1625 for ac_dir
in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir
=.
1627 if test -f $ac_dir/$ac_word; then
1628 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1629 ac_prog_rejected
=yes
1637 if test $ac_prog_rejected = yes; then
1638 # We found a bogon in the path, so make sure we never use it.
1639 set dummy
$ac_cv_prog_CC
1641 if test $# -gt 0; then
1642 # We chose a different compiler from the bogus one.
1643 # However, it has the same basename, so the bogon will be chosen
1644 # first if we set CC to just the basename; use the full file name.
1646 set dummy
"$ac_dir/$ac_word" "$@"
1654 if test -n "$CC"; then
1655 echo "$ac_t""$CC" 1>&6
1657 echo "$ac_t""no" 1>&6
1660 if test -z "$CC"; then
1661 case "`uname -s`" in
1663 # Extract the first word of "cl", so it can be a program name with args.
1664 set dummy cl
; ac_word
=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5
1667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC
="$CC" # Let the user override the test.
1673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1675 for ac_dir
in $ac_dummy; do
1676 test -z "$ac_dir" && ac_dir
=.
1677 if test -f $ac_dir/$ac_word; then
1686 if test -n "$CC"; then
1687 echo "$ac_t""$CC" 1>&6
1689 echo "$ac_t""no" 1>&6
1694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1702 ac_cpp
='$CPP $CPPFLAGS'
1703 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1704 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1705 cross_compiling
=$ac_cv_prog_cc_cross
1707 cat > conftest.
$ac_ext << EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1714 if { (eval echo configure
:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1715 ac_cv_prog_cc_works
=yes
1716 # If we can't run a trivial program, we are probably using a cross compiler.
1717 if (.
/conftest
; exit) 2>/dev
/null
; then
1718 ac_cv_prog_cc_cross
=no
1720 ac_cv_prog_cc_cross
=yes
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1725 ac_cv_prog_cc_works
=no
1729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1730 ac_cpp
='$CPP $CPPFLAGS'
1731 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1732 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1733 cross_compiling
=$ac_cv_prog_cc_cross
1735 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1736 if test $ac_cv_prog_cc_works = no
; then
1737 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1741 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1742 cross_compiling
=$ac_cv_prog_cc_cross
1744 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1745 echo "configure:1746: checking whether we are using GNU C" >&5
1746 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 cat > conftest.c
<<EOF
1754 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1761 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1763 if test $ac_cv_prog_gcc = yes; then
1769 ac_test_CFLAGS
="${CFLAGS+set}"
1770 ac_save_CFLAGS
="$CFLAGS"
1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5
1774 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 echo 'void f(){}' > conftest.c
1778 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1787 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1788 if test "$ac_test_CFLAGS" = set; then
1789 CFLAGS
="$ac_save_CFLAGS"
1790 elif test $ac_cv_prog_cc_g = yes; then
1791 if test "$GCC" = yes; then
1797 if test "$GCC" = yes; then
1805 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether ln -s works" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1811 if ln -s X conftestdata
2>/dev
/null
1814 ac_cv_prog_LN_S
="ln -s"
1819 LN_S
="$ac_cv_prog_LN_S"
1820 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1821 echo "$ac_t""yes" 1>&6
1823 echo "$ac_t""no" 1>&6
1826 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1827 echo "configure:1828: checking how to run the C preprocessor" >&5
1828 # On Suns, sometimes $CPP names a directory.
1829 if test -n "$CPP" && test -d "$CPP"; then
1832 if test -z "$CPP"; then
1833 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 # This must be in double quotes, not single quotes, because CPP may get
1837 # substituted into the Makefile and "${CC-cc}" will confuse make.
1839 # On the NeXT, cc -E runs the code through the compiler's parser,
1840 # not just through cpp.
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure
:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1854 echo "configure: failed program was:" >&5
1855 cat conftest.
$ac_ext >&5
1857 CPP
="${CC-cc} -E -traditional-cpp"
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure
:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1874 CPP
="${CC-cc} -nologo -E"
1875 cat > conftest.
$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1881 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure
:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1898 ac_cv_prog_CPP
="$CPP"
1900 CPP
="$ac_cv_prog_CPP"
1902 ac_cv_prog_CPP
="$CPP"
1904 echo "$ac_t""$CPP" 1>&6
1906 if test $ac_cv_prog_gcc = yes; then
1907 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether ${CC-cc} needs -traditional" >&5
1909 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 ac_pattern
="Autoconf.*'x'"
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "$ac_pattern" >/dev
/null
2>&1; then
1922 ac_cv_prog_gcc_traditional
=yes
1925 ac_cv_prog_gcc_traditional
=no
1930 if test $ac_cv_prog_gcc_traditional = no
; then
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1938 egrep "$ac_pattern" >/dev
/null
2>&1; then
1940 ac_cv_prog_gcc_traditional
=yes
1947 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1948 if test $ac_cv_prog_gcc_traditional = yes; then
1949 CC
="$CC -traditional"
1956 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1957 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1960 _bindir
=`eval echo $bindir`
1961 _bindir
=`eval echo $_bindir`
1963 _libdir
=`eval echo $libdir`
1964 _libdir
=`eval echo $_libdir`
1965 lib_search_path
="-L$_libdir"
1967 inc_search_path
=`eval echo $includedir`
1968 inc_search_path
="-I`eval echo $inc_search_path`"
1973 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1974 echo "configure:1975: checking for RedHat system" >&5
1975 wm_check_flag
='no :)'
1977 if test -f /etc
/redhat-release
; then
1981 echo "$ac_t""$wm_check_flag" 1>&6
1985 if test "$wm_check_flag" = yes; then
1987 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1990 # Check old wmaker from RedHat
1992 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1993 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1994 echo "configure:1995: checking for multiple installed wmaker versions" >&5
1995 if test -f /usr
/X11R
6/bin
/wmaker
; then
1996 echo "$ac_t""uh oh" 1>&6
2001 echo "$ac_t""no apparent problems" 1>&6
2005 # Check for infamous en_RN bug
2006 # Wont work because autoconf will change LANG in the beginning of the
2010 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
2012 #if test "x$LANG" = xen_RN; then
2013 #AC_MSG_RESULT(uh oh)
2014 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
2015 #locale. Please unset it or you will have mysterious problems when
2016 #using various software packages.])
2019 #AC_MSG_RESULT(no problem)
2022 # If binary installation path is /usr/local/bin, check if it's in PATH
2024 if test "$_bindir" = "/usr/local/bin"; then
2025 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
2026 echo "configure:2027: checking if /usr/local/bin is in the search PATH" >&5
2028 rh_missing_usr_local_bin
=yes
2032 if test "x$i" = "x/usr/local/bin"; then
2034 rh_missing_usr_local_bin
=no
2039 if test "$wm_check_flag" = no
; then
2040 echo "$ac_t""uh oh" 1>&6
2043 echo "$ac_t""no problem" 1>&6
2047 # If library installation path is /usr/local/lib,
2048 # check if it's in /etc/ld.so.conf
2050 if test "$_libdir" = "/usr/local/lib"; then
2052 rh_missing_usr_local_lib
=no
2053 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
2054 echo "configure:2055: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
2055 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
2056 test "$?" -eq 0 && wm_check_flag
=no
2057 if test "$wm_check_flag" = no
; then
2058 echo "$ac_t""uh oh" 1>&6
2059 rh_missing_usr_local_lib
=yes
2062 echo "$ac_t""no problem" 1>&6
2066 # Check for symbolic links
2068 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
2069 echo "configure:2070: checking for /usr/include/X11 symbolic link" >&5
2070 rh_missing_usr_include_x11
=no
2071 if test -d "/usr/include/X11"; then
2072 echo "$ac_t""found" 1>&6
2074 echo "$ac_t""uh oh" 1>&6
2075 rh_missing_usr_include_x11
=yes
2080 # Check for /lib/cpp
2082 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
2083 echo "configure:2084: checking for /lib/cpp" >&5
2084 rh_missing_lib_cpp
=no
2085 if test -f "/lib/cpp"; then
2086 echo "$ac_t""found" 1>&6
2088 echo "$ac_t""uh oh" 1>&6
2089 rh_missing_lib_cpp
=yes
2098 # Check whether --with-libs-from or --without-libs-from was given.
2099 if test "${with_libs_from+set}" = set; then
2100 withval
="$with_libs_from"
2101 lib_search_path
="$withval $lib_search_path"
2105 # Check whether --with-incs-from or --without-incs-from was given.
2106 if test "${with_incs_from+set}" = set; then
2107 withval
="$with_incs_from"
2108 inc_search_path
="$withval $inc_search_path"
2114 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2115 echo "configure:2116: checking for vprintf" >&5
2116 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char vprintf(); below. */
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2143 if { (eval echo configure
:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2145 eval "ac_cv_func_vprintf=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.
$ac_ext >&5
2150 eval "ac_cv_func_vprintf=no"
2155 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 cat >> confdefs.h
<<\EOF
2158 #define HAVE_VPRINTF 1
2162 echo "$ac_t""no" 1>&6
2165 if test "$ac_cv_func_vprintf" != yes; then
2166 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2167 echo "configure:2168: checking for _doprnt" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char _doprnt(); below. */
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2195 if { (eval echo configure
:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2197 eval "ac_cv_func__doprnt=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_func__doprnt=no"
2207 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 cat >> confdefs.h
<<\EOF
2210 #define HAVE_DOPRNT 1
2214 echo "$ac_t""no" 1>&6
2219 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2220 # for constant arguments. Useless!
2221 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2222 echo "configure:2223: checking for working alloca.h" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 char *p = alloca(2 * sizeof(int));
2234 if { (eval echo configure
:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2236 ac_cv_header_alloca_h
=yes
2238 echo "configure: failed program was:" >&5
2239 cat conftest.
$ac_ext >&5
2241 ac_cv_header_alloca_h
=no
2246 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2247 if test $ac_cv_header_alloca_h = yes; then
2248 cat >> confdefs.h
<<\EOF
2249 #define HAVE_ALLOCA_H 1
2254 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2255 echo "configure:2256: checking for alloca" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2264 # define alloca __builtin_alloca
2267 # include <malloc.h>
2268 # define alloca _alloca
2271 # include <alloca.h>
2276 # ifndef alloca /* predefined by HP cc +Olibcalls */
2285 char *p = (char *) alloca(1);
2288 if { (eval echo configure
:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2290 ac_cv_func_alloca_works
=yes
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 ac_cv_func_alloca_works
=no
2300 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2301 if test $ac_cv_func_alloca_works = yes; then
2302 cat >> confdefs.h
<<\EOF
2303 #define HAVE_ALLOCA 1
2308 if test $ac_cv_func_alloca_works = no
; then
2309 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2310 # that cause trouble. Some versions do not even contain alloca or
2311 # contain a buggy version. If you still want to use their alloca,
2312 # use ar to extract alloca.o from them instead of compiling alloca.c.
2313 ALLOCA
=alloca.
${ac_objext}
2314 cat >> confdefs.h
<<\EOF
2319 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2320 echo "configure:2321: checking whether alloca needs Cray hooks" >&5
2321 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.
$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #if defined(CRAY) && ! defined(CRAY2)
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "webecray" >/dev
/null
2>&1; then
2346 echo "$ac_t""$ac_cv_os_cray" 1>&6
2347 if test $ac_cv_os_cray = yes; then
2348 for ac_func
in _getb67 GETB67 getb67
; do
2349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_func" >&5
2351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $ac_func(); below. */
2360 /* Override any gcc2 internal prototype to avoid an error. */
2361 /* We use char because int might match the return type of a gcc2
2362 builtin and then its argument prototype would still apply. */
2367 /* The GNU C library defines this for functions which it implements
2368 to always fail with ENOSYS. Some functions are actually named
2369 something starting with __ and the normal name is an alias. */
2370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2378 if { (eval echo configure
:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2380 eval "ac_cv_func_$ac_func=yes"
2382 echo "configure: failed program was:" >&5
2383 cat conftest.
$ac_ext >&5
2385 eval "ac_cv_func_$ac_func=no"
2390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 cat >> confdefs.h
<<EOF
2393 #define CRAY_STACKSEG_END $ac_func
2398 echo "$ac_t""no" 1>&6
2404 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2405 echo "configure:2406: checking stack direction for C alloca" >&5
2406 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test "$cross_compiling" = yes; then
2410 ac_cv_c_stack_direction
=0
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 find_stack_direction ()
2417 static char *addr = 0;
2422 return find_stack_direction ();
2425 return (&dummy > addr) ? 1 : -1;
2429 exit (find_stack_direction() < 0);
2432 if { (eval echo configure
:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2434 ac_cv_c_stack_direction
=1
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2439 ac_cv_c_stack_direction
=-1
2446 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2447 cat >> confdefs.h
<<EOF
2448 #define STACK_DIRECTION $ac_cv_c_stack_direction
2453 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2456 echo "configure:2457: checking for $ac_func" >&5
2457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 /* System header to define __stub macros and hopefully few prototypes,
2464 which can conflict with char $ac_func(); below. */
2466 /* Override any gcc2 internal prototype to avoid an error. */
2467 /* We use char because int might match the return type of a gcc2
2468 builtin and then its argument prototype would still apply. */
2473 /* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2484 if { (eval echo configure
:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2486 eval "ac_cv_func_$ac_func=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2491 eval "ac_cv_func_$ac_func=no"
2496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2499 cat >> confdefs.h
<<EOF
2500 #define $ac_tr_func 1
2504 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2514 echo "configure:2515: checking for dlopen" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char dlopen(); below. */
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 /* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2542 if { (eval echo configure
:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2544 eval "ac_cv_func_dlopen=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 eval "ac_cv_func_dlopen=no"
2554 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2558 echo "$ac_t""no" 1>&6
2559 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2560 echo "configure:2561: checking for dlopen in -ldl" >&5
2561 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 ac_save_LIBS
="$LIBS"
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2579 if { (eval echo configure
:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2581 eval "ac_cv_lib_$ac_lib_var=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.
$ac_ext >&5
2586 eval "ac_cv_lib_$ac_lib_var=no"
2589 LIBS
="$ac_save_LIBS"
2592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 DLLIBS
="-ldl" HAVEDL
="yes"
2596 echo "$ac_t""no" 1>&6
2603 if test "x$HAVEDL" = xyes
; then
2604 for ac_hdr
in dlfcn.h
2606 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_hdr" >&5
2609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 cat > conftest.
$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2617 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2618 { (eval echo configure
:2619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2619 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2620 if test -z "$ac_err"; then
2622 eval "ac_cv_header_$ac_safe=yes"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 eval "ac_cv_header_$ac_safe=no"
2632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2635 cat >> confdefs.h
<<EOF
2636 #define $ac_tr_hdr 1
2640 echo "$ac_t""no" 1>&6
2648 if test "x$CPP_PATH" = x
; then
2649 # Extract the first word of "cpp", so it can be a program name with args.
2650 set dummy cpp
; ac_word
=$2
2651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_word" >&5
2653 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2658 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2661 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2665 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2666 for ac_dir
in $ac_dummy; do
2667 test -z "$ac_dir" && ac_dir
=.
2668 if test -f $ac_dir/$ac_word; then
2669 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2674 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2678 CPP_PATH
="$ac_cv_path_CPP_PATH"
2679 if test -n "$CPP_PATH"; then
2680 echo "$ac_t""$CPP_PATH" 1>&6
2682 echo "$ac_t""no" 1>&6
2687 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2688 if test "$GCC" = "yes"; then
2689 CPP_PATH
="gcc -E -x c"
2691 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2692 CPP_PATH
="$CPP_PATH -B"
2694 echo "cpp, the C preprocessor was not found in your system."
2695 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2700 cat >> confdefs.h
<<EOF
2701 #define CPP_PATH "$CPP_PATH"
2707 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2708 echo "configure:2709: checking for sys/wait.h that is POSIX.1 compatible" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <sys/types.h>
2716 #include <sys/wait.h>
2718 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2721 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2726 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 ac_cv_header_sys_wait_h
=yes
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 ac_cv_header_sys_wait_h
=no
2741 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2742 if test $ac_cv_header_sys_wait_h = yes; then
2743 cat >> confdefs.h
<<\EOF
2744 #define HAVE_SYS_WAIT_H 1
2749 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2750 echo "configure:2751: checking whether time.h and sys/time.h may both be included" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <sys/types.h>
2758 #include <sys/time.h>
2764 if { (eval echo configure
:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 ac_cv_header_time
=yes
2768 echo "configure: failed program was:" >&5
2769 cat conftest.
$ac_ext >&5
2771 ac_cv_header_time
=no
2776 echo "$ac_t""$ac_cv_header_time" 1>&6
2777 if test $ac_cv_header_time = yes; then
2778 cat >> confdefs.h
<<\EOF
2779 #define TIME_WITH_SYS_TIME 1
2784 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2785 libintl.h sys
/select.h poll.h
2787 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_hdr" >&5
2790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.
$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2798 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2799 { (eval echo configure
:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2800 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2801 if test -z "$ac_err"; then
2803 eval "ac_cv_header_$ac_safe=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.
$ac_ext >&5
2809 eval "ac_cv_header_$ac_safe=no"
2813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2816 cat >> confdefs.h
<<EOF
2817 #define $ac_tr_hdr 1
2821 echo "$ac_t""no" 1>&6
2828 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <sys/types.h>
2838 /* NetBSD declares sys_siglist in unistd.h. */
2839 #ifdef HAVE_UNISTD_H
2843 char *msg = *(sys_siglist + 1);
2846 if { (eval echo configure
:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2848 ac_cv_decl_sys_siglist
=yes
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 ac_cv_decl_sys_siglist
=no
2858 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2859 if test $ac_cv_decl_sys_siglist = yes; then
2860 cat >> confdefs.h
<<\EOF
2861 #define SYS_SIGLIST_DECLARED 1
2866 echo $ac_n "checking for working const""... $ac_c" 1>&6
2867 echo "configure:2868: checking for working const" >&5
2868 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2877 /* Ultrix mips cc rejects this. */
2878 typedef int charset[2]; const charset x;
2879 /* SunOS 4.1.1 cc rejects this. */
2880 char const *const *ccp;
2882 /* NEC SVR4.0.2 mips cc rejects this. */
2883 struct point {int x, y;};
2884 static struct point const zero = {0,0};
2885 /* AIX XL C 1.02.0.0 rejects this.
2886 It does not let you subtract one const X* pointer from another in an arm
2887 of an if-expression whose if-part is not a constant expression */
2888 const char *g = "string";
2889 ccp = &g + (g ? g-g : 0);
2890 /* HPUX 7.0 cc rejects these. */
2893 ccp = (char const *const *) p;
2894 { /* SCO 3.2v4 cc rejects this. */
2896 char const *s = 0 ? (char *) 0 : (char const *) 0;
2900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2902 const int *foo = &x[0];
2905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2906 typedef const int *iptr;
2910 { /* AIX XL C 1.02.0.0 rejects this saying
2911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2912 struct s { int j; const int *ap[3]; };
2913 struct s *b; b->j = 5;
2915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2921 if { (eval echo configure
:2922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2925 echo "configure: failed program was:" >&5
2926 cat conftest.
$ac_ext >&5
2933 echo "$ac_t""$ac_cv_c_const" 1>&6
2934 if test $ac_cv_c_const = no
; then
2935 cat >> confdefs.h
<<\EOF
2943 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2944 echo "configure:2945: checking return type of signal handlers" >&5
2945 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2957 extern "C" void (*signal (int, void (*)(int)))(int);
2959 void (*signal ()) ();
2966 if { (eval echo configure
:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 ac_cv_type_signal
=void
2970 echo "configure: failed program was:" >&5
2971 cat conftest.
$ac_ext >&5
2973 ac_cv_type_signal
=int
2978 echo "$ac_t""$ac_cv_type_signal" 1>&6
2979 cat >> confdefs.h
<<EOF
2980 #define RETSIGTYPE $ac_cv_type_signal
2993 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2994 echo "configure:2995: checking for gettext" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char gettext(); below. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_gettext) || defined (__stub___gettext)
3022 if { (eval echo configure
:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3024 eval "ac_cv_func_gettext=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.
$ac_ext >&5
3029 eval "ac_cv_func_gettext=no"
3034 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3038 echo "$ac_t""no" 1>&6
3039 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3040 echo "configure:3041: checking for gettext in -lintl" >&5
3041 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 ac_save_LIBS
="$LIBS"
3047 cat > conftest.
$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* Override any gcc2 internal prototype to avoid an error. */
3051 /* We use char because int might match the return type of a gcc2
3052 builtin and then its argument prototype would still apply. */
3059 if { (eval echo configure
:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3061 eval "ac_cv_lib_$ac_lib_var=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.
$ac_ext >&5
3066 eval "ac_cv_lib_$ac_lib_var=no"
3069 LIBS
="$ac_save_LIBS"
3072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3074 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
3076 echo "$ac_t""no" 1>&6
3083 # Extract the first word of "xgettext", so it can be a program name with args.
3084 set dummy xgettext
; ac_word
=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$XGETTEXT"; then
3091 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
3093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3095 for ac_dir
in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir
=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_XGETTEXT
="xgettext"
3105 XGETTEXT
="$ac_cv_prog_XGETTEXT"
3106 if test -n "$XGETTEXT"; then
3107 echo "$ac_t""$XGETTEXT" 1>&6
3109 echo "$ac_t""no" 1>&6
3113 if test "$XGETTEXT" != ""; then
3114 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
3115 echo "xgettext isn't GNU version"
3120 if test "$LINGUAS" != ""; then
3121 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3122 cat >> confdefs.h
<<\EOF
3127 # if test "$LINGUAS" = ""; then
3128 # ling=` (cd src/po; /bin/ls *.po) `
3129 # for l in $ling; do
3130 # lcode=`basename $l .po`
3131 # LINGUAS="$LINGUAS $lcode"
3134 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3138 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3149 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
3150 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru"
3152 for lang
in $LINGUAS; do
3154 for l
in $supported_locales; do
3155 if test "$l" = "$lang"; then
3160 if test "$ok" = 1; then
3161 MOFILES
="$MOFILES $lang.mo"
3163 echo "Locale $lang is not supported."
3166 for l
in $supported_wprefs_locales; do
3167 if test "$l" = "$lang"; then
3172 if test "$ok" = 1; then
3173 WPMOFILES
="$WPMOFILES $lang.mo"
3181 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3182 echo "configure:3183: checking for setlocale in -lxpg4" >&5
3183 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 ac_save_LIBS
="$LIBS"
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 /* We use char because int might match the return type of a gcc2
3194 builtin and then its argument prototype would still apply. */
3201 if { (eval echo configure
:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3203 eval "ac_cv_lib_$ac_lib_var=yes"
3205 echo "configure: failed program was:" >&5
3206 cat conftest.
$ac_ext >&5
3208 eval "ac_cv_lib_$ac_lib_var=no"
3211 LIBS
="$ac_save_LIBS"
3214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3218 echo "$ac_t""no" 1>&6
3227 # Check whether --with-nlsdir or --without-nlsdir was given.
3228 if test "${with_nlsdir+set}" = set; then
3229 withval
="$with_nlsdir"
3235 if test "x$NLSDIR" = "x"; then
3236 if test "x$with_nlsdir" != "x"; then
3239 NLSDIR
='$(prefix)/lib/locale'
3255 # Check whether --enable-gnome or --disable-gnome was given.
3256 if test "${enable_gnome+set}" = set; then
3257 enableval
="$enable_gnome"
3258 if test x
$enableval = xyes
; then
3259 cat >> confdefs.h
<<\EOF
3260 #define GNOME_STUFF 1
3269 # Check whether --enable-kde or --disable-kde was given.
3270 if test "${enable_kde+set}" = set; then
3271 enableval
="$enable_kde"
3272 if test x
$enableval = xyes
; then
3273 cat >> confdefs.h
<<\EOF
3283 # Check whether --enable-openlook or --disable-openlook was given.
3284 if test "${enable_openlook+set}" = set; then
3285 enableval
="$enable_openlook"
3286 if test x
$enableval = xyes
; then
3287 cat >> confdefs.h
<<\EOF
3288 #define OLWM_HINTS 1
3297 # Check whether --enable-lite or --disable-lite was given.
3298 if test "${enable_lite+set}" = set; then
3299 enableval
="$enable_lite"
3300 if test x
$enableval = xyes
; then
3302 cat >> confdefs.h
<<\EOF
3314 # If we find X, set shell vars x_includes and x_libraries to the
3315 # paths, otherwise set no_x=yes.
3316 # Uses ac_ vars as temps to allow command line to override cache and checks.
3317 # --without-x overrides everything else, but does not touch the cache.
3318 echo $ac_n "checking for X""... $ac_c" 1>&6
3319 echo "configure:3320: checking for X" >&5
3321 # Check whether --with-x or --without-x was given.
3322 if test "${with_x+set}" = set; then
3327 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3328 if test "x$with_x" = xno
; then
3329 # The user explicitly disabled X.
3332 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3333 # Both variables are already set.
3336 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 # One or both of the vars are not set, and there is no cached value.
3340 ac_x_includes
=NO ac_x_libraries
=NO
3342 if mkdir conftestdir
; then
3344 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3345 cat > Imakefile
<<'EOF'
3347 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3349 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3351 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3352 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3353 for ac_extension
in a so sl
; do
3354 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3355 test -f $ac_im_libdir/libX11.
$ac_extension; then
3356 ac_im_usrlibdir
=$ac_im_libdir; break
3359 # Screen out bogus values from the imake configuration. They are
3360 # bogus both because they are the default anyway, and because
3361 # using them would break gcc on systems where it needs fixed includes.
3362 case "$ac_im_incroot" in
3364 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3366 case "$ac_im_usrlibdir" in
3368 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3375 if test "$ac_x_includes" = NO
; then
3376 # Guess where to find include files, by looking for this one X11 .h file.
3377 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3379 # First, try using that file with no special directory specified.
3380 cat > conftest.
$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <$x_direct_test_include>
3385 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3386 { (eval echo configure
:3387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3387 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3388 if test -z "$ac_err"; then
3390 # We can compile using X headers with no special include directory.
3394 echo "configure: failed program was:" >&5
3395 cat conftest.
$ac_ext >&5
3397 # Look for the header file in a standard set of common directories.
3398 # Check X11 before X11Rn because it is often a symlink to the current release.
3401 /usr
/X11R
6/include \
3402 /usr
/X11R
5/include \
3403 /usr
/X11R
4/include \
3406 /usr
/include
/X11R6 \
3407 /usr
/include
/X11R5 \
3408 /usr
/include
/X11R4 \
3410 /usr
/local
/X11
/include \
3411 /usr
/local
/X11R
6/include \
3412 /usr
/local
/X11R
5/include \
3413 /usr
/local
/X11R
4/include \
3415 /usr
/local
/include
/X11 \
3416 /usr
/local
/include
/X11R6 \
3417 /usr
/local
/include
/X11R5 \
3418 /usr
/local
/include
/X11R4 \
3422 /usr
/XFree86
/include
/X11 \
3425 /usr
/local
/include \
3426 /usr
/unsupported
/include \
3427 /usr
/athena
/include \
3428 /usr
/local
/x11r
5/include \
3429 /usr
/lpp
/Xamples
/include \
3431 /usr
/openwin
/include \
3432 /usr
/openwin
/share
/include \
3435 if test -r "$ac_dir/$x_direct_test_include"; then
3436 ac_x_includes
=$ac_dir
3442 fi # $ac_x_includes = NO
3444 if test "$ac_x_libraries" = NO
; then
3445 # Check for the libraries.
3447 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3448 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3450 # See if we find them without any special options.
3451 # Don't add to $LIBS permanently.
3452 ac_save_LIBS
="$LIBS"
3453 LIBS
="-l$x_direct_test_library $LIBS"
3454 cat > conftest.
$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3459 ${x_direct_test_function}()
3462 if { (eval echo configure
:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3464 LIBS
="$ac_save_LIBS"
3465 # We can link X programs with no special library path.
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 LIBS
="$ac_save_LIBS"
3472 # First see if replacing the include by lib works.
3473 # Check X11 before X11Rn because it is often a symlink to the current release.
3474 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3485 /usr
/local
/X11
/lib \
3486 /usr
/local
/X11R
6/lib \
3487 /usr
/local
/X11R
5/lib \
3488 /usr
/local
/X11R
4/lib \
3490 /usr
/local
/lib
/X11 \
3491 /usr
/local
/lib
/X11R6 \
3492 /usr
/local
/lib
/X11R5 \
3493 /usr
/local
/lib
/X11R4 \
3497 /usr
/XFree86
/lib
/X11 \
3501 /usr
/unsupported
/lib \
3503 /usr
/local
/x11r
5/lib \
3504 /usr
/lpp
/Xamples
/lib \
3508 /usr
/openwin
/share
/lib \
3511 for ac_extension
in a so sl
; do
3512 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3513 ac_x_libraries
=$ac_dir
3520 fi # $ac_x_libraries = NO
3522 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3523 # Didn't find X anywhere. Cache the known absence of X.
3524 ac_cv_have_x
="have_x=no"
3526 # Record where we found X for the cache.
3527 ac_cv_have_x
="have_x=yes \
3528 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3532 eval "$ac_cv_have_x"
3535 if test "$have_x" != yes; then
3536 echo "$ac_t""$have_x" 1>&6
3539 # If each of the values was on the command line, it overrides each guess.
3540 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3541 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3542 # Update the cache value to reflect the command line values.
3543 ac_cv_have_x
="have_x=yes \
3544 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3545 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3548 if test "$no_x" = yes; then
3549 # Not all programs may use this symbol, but it does not hurt to define it.
3550 cat >> confdefs.h
<<\EOF
3551 #define X_DISPLAY_MISSING 1
3554 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3556 if test -n "$x_includes"; then
3557 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3560 # It would also be nice to do this for all -L options, not just this one.
3561 if test -n "$x_libraries"; then
3562 X_LIBS
="$X_LIBS -L$x_libraries"
3563 # For Solaris; some versions of Sun CC require a space after -R and
3564 # others require no space. Words are not sufficient . . . .
3565 case "`(uname -sr) 2>/dev/null`" in
3567 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3568 echo "configure:3569: checking whether -R must be followed by a space" >&5
3569 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3578 if { (eval echo configure
:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3582 echo "configure: failed program was:" >&5
3583 cat conftest.
$ac_ext >&5
3588 if test $ac_R_nospace = yes; then
3589 echo "$ac_t""no" 1>&6
3590 X_LIBS
="$X_LIBS -R$x_libraries"
3592 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3601 if { (eval echo configure
:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3605 echo "configure: failed program was:" >&5
3606 cat conftest.
$ac_ext >&5
3611 if test $ac_R_space = yes; then
3612 echo "$ac_t""yes" 1>&6
3613 X_LIBS
="$X_LIBS -R $x_libraries"
3615 echo "$ac_t""neither works" 1>&6
3618 LIBS
="$ac_xsave_LIBS"
3622 # Check for system-dependent libraries X programs must link with.
3623 # Do this before checking for the system-independent R6 libraries
3624 # (-lICE), since we may need -lsocket or whatever for X linking.
3626 if test "$ISC" = yes; then
3627 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3629 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3630 # libraries were built with DECnet support. And karl@cs.umb.edu says
3631 # the Alpha needs dnet_stub (dnet does not exist).
3632 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3633 echo "configure:3634: checking for dnet_ntoa in -ldnet" >&5
3634 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_save_LIBS
="$LIBS"
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3652 if { (eval echo configure
:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3656 echo "configure: failed program was:" >&5
3657 cat conftest.
$ac_ext >&5
3659 eval "ac_cv_lib_$ac_lib_var=no"
3662 LIBS
="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3669 echo "$ac_t""no" 1>&6
3672 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3673 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3674 echo "configure:3675: checking for dnet_ntoa in -ldnet_stub" >&5
3675 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS
="$LIBS"
3680 LIBS
="-ldnet_stub $LIBS"
3681 cat > conftest.
$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS
="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3710 echo "$ac_t""no" 1>&6
3715 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3716 # to get the SysV transport functions.
3717 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3719 # The nsl library prevents programs from opening the X display
3720 # on Irix 5.2, according to dickey@clark.net.
3721 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3722 echo "configure:3723: checking for gethostbyname" >&5
3723 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* System header to define __stub macros and hopefully few prototypes,
3730 which can conflict with char gethostbyname(); below. */
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735 char gethostbyname();
3739 /* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3750 if { (eval echo configure
:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3752 eval "ac_cv_func_gethostbyname=yes"
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3757 eval "ac_cv_func_gethostbyname=no"
3762 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3766 echo "$ac_t""no" 1>&6
3769 if test $ac_cv_func_gethostbyname = no
; then
3770 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3771 echo "configure:3772: checking for gethostbyname in -lnsl" >&5
3772 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS
="$LIBS"
3778 cat > conftest.
$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3784 char gethostbyname();
3790 if { (eval echo configure
:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS
="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3807 echo "$ac_t""no" 1>&6
3812 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3813 # socket/setsockopt and other routines are undefined under SCO ODT
3814 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3815 # on later versions), says simon@lia.di.epfl.ch: it contains
3816 # gethostby* variants that don't use the nameserver (or something).
3817 # -lsocket must be given before -lnsl if both are needed.
3818 # We assume that if connect needs -lnsl, so does gethostbyname.
3819 echo $ac_n "checking for connect""... $ac_c" 1>&6
3820 echo "configure:3821: checking for connect" >&5
3821 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* System header to define __stub macros and hopefully few prototypes,
3828 which can conflict with char connect(); below. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 /* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3837 /* The GNU C library defines this for functions which it implements
3838 to always fail with ENOSYS. Some functions are actually named
3839 something starting with __ and the normal name is an alias. */
3840 #if defined (__stub_connect) || defined (__stub___connect)
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3850 eval "ac_cv_func_connect=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 eval "ac_cv_func_connect=no"
3860 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3864 echo "$ac_t""no" 1>&6
3867 if test $ac_cv_func_connect = no
; then
3868 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3869 echo "configure:3870: checking for connect in -lsocket" >&5
3870 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS
="$LIBS"
3875 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3876 cat > conftest.
$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
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. */
3888 if { (eval echo configure
:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3890 eval "ac_cv_lib_$ac_lib_var=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.
$ac_ext >&5
3895 eval "ac_cv_lib_$ac_lib_var=no"
3898 LIBS
="$ac_save_LIBS"
3901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3903 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3905 echo "$ac_t""no" 1>&6
3910 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3911 echo $ac_n "checking for remove""... $ac_c" 1>&6
3912 echo "configure:3913: checking for remove" >&5
3913 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 cat > conftest.
$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 /* System header to define __stub macros and hopefully few prototypes,
3920 which can conflict with char remove(); below. */
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3929 /* The GNU C library defines this for functions which it implements
3930 to always fail with ENOSYS. Some functions are actually named
3931 something starting with __ and the normal name is an alias. */
3932 #if defined (__stub_remove) || defined (__stub___remove)
3940 if { (eval echo configure
:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3942 eval "ac_cv_func_remove=yes"
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 eval "ac_cv_func_remove=no"
3952 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3956 echo "$ac_t""no" 1>&6
3959 if test $ac_cv_func_remove = no
; then
3960 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3961 echo "configure:3962: checking for remove in -lposix" >&5
3962 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 ac_save_LIBS
="$LIBS"
3967 LIBS
="-lposix $LIBS"
3968 cat > conftest.
$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3980 if { (eval echo configure
:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3982 eval "ac_cv_lib_$ac_lib_var=yes"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3987 eval "ac_cv_lib_$ac_lib_var=no"
3990 LIBS
="$ac_save_LIBS"
3993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3997 echo "$ac_t""no" 1>&6
4002 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4003 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4004 echo "configure:4005: checking for shmat" >&5
4005 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.
$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 /* System header to define __stub macros and hopefully few prototypes,
4012 which can conflict with char shmat(); below. */
4014 /* Override any gcc2 internal prototype to avoid an error. */
4015 /* We use char because int might match the return type of a gcc2
4016 builtin and then its argument prototype would still apply. */
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_shmat) || defined (__stub___shmat)
4032 if { (eval echo configure
:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4034 eval "ac_cv_func_shmat=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.
$ac_ext >&5
4039 eval "ac_cv_func_shmat=no"
4044 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4045 echo "$ac_t""yes" 1>&6
4048 echo "$ac_t""no" 1>&6
4051 if test $ac_cv_func_shmat = no
; then
4052 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4053 echo "configure:4054: checking for shmat in -lipc" >&5
4054 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_save_LIBS
="$LIBS"
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4072 if { (eval echo configure
:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.
$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS
="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4089 echo "$ac_t""no" 1>&6
4095 # Check for libraries that X11R6 Xt/Xaw programs need.
4096 ac_save_LDFLAGS
="$LDFLAGS"
4097 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4098 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4099 # check for ICE first), but we must link in the order -lSM -lICE or
4100 # we get undefined symbols. So assume we have SM if we have ICE.
4101 # These have to be linked with before -lX11, unlike the other
4102 # libraries we check for below, so use a different variable.
4103 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4104 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4105 echo "configure:4106: checking for IceConnectionNumber in -lICE" >&5
4106 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 ac_save_LIBS
="$LIBS"
4111 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4112 cat > conftest.
$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4118 char IceConnectionNumber();
4121 IceConnectionNumber()
4124 if { (eval echo configure
:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS
="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4141 echo "$ac_t""no" 1>&6
4144 LDFLAGS
="$ac_save_LDFLAGS"
4149 X_LIBRARY_PATH
=$x_libraries
4155 XLIBS
="-lX11 $X_EXTRA_LIBS"
4158 lib_search_path
="$lib_search_path $XLFLAGS"
4159 inc_search_path
="$inc_search_path $XCFLAGS"
4167 # Check whether --enable-locale or --disable-locale was given.
4168 if test "${enable_locale+set}" = set; then
4169 enableval
="$enable_locale"
4174 if test "$use_locale" = yes; then
4175 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4176 echo "configure:4177: checking for _Xsetlocale in -lX11" >&5
4177 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 ac_save_LIBS
="$LIBS"
4182 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4183 cat > conftest.
$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4195 if { (eval echo configure
:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 eval "ac_cv_lib_$ac_lib_var=no"
4205 LIBS
="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 cat >> confdefs.h
<<\EOF
4215 echo "$ac_t""no" 1>&6
4221 # Check whether --enable-modelock or --disable-modelock was given.
4222 if test "${enable_modelock+set}" = set; then
4223 enableval
="$enable_modelock"
4224 cat >> confdefs.h
<<\EOF
4225 #define XKB_MODELOCK 1
4234 # Check whether --enable-shape or --disable-shape was given.
4235 if test "${enable_shape+set}" = set; then
4236 enableval
="$enable_shape"
4245 if test "$shape" = yes; then
4246 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4247 echo "configure:4248: checking for XShapeSelectInput in -lXext" >&5
4248 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS
="$LIBS"
4253 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char XShapeSelectInput();
4266 if { (eval echo configure
:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS
="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 XLIBS
="-lXext $XLIBS"
4283 cat >> confdefs.h
<<\EOF
4288 echo "$ac_t""no" 1>&6
4296 # Check whether --enable-shm or --disable-shm was given.
4297 if test "${enable_shm+set}" = set; then
4298 enableval
="$enable_shm"
4305 if test "$shm" = yes; then
4306 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4307 echo "configure:4308: checking for XShmAttach in -lXext" >&5
4308 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 ac_save_LIBS
="$LIBS"
4313 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4326 if { (eval echo configure
:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4333 eval "ac_cv_lib_$ac_lib_var=no"
4336 LIBS
="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4343 echo "$ac_t""no" 1>&6
4348 if test "$ok" = yes; then
4349 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4350 echo "configure:4351: checking for shmget" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char shmget(); below. */
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_shmget) || defined (__stub___shmget)
4378 if { (eval echo configure
:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4380 eval "ac_cv_func_shmget=yes"
4382 echo "configure: failed program was:" >&5
4383 cat conftest.
$ac_ext >&5
4385 eval "ac_cv_func_shmget=no"
4390 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4394 echo "$ac_t""no" 1>&6
4400 if test "$ok" = yes; then
4401 if test "$added_xext" = no
; then
4402 XLIBS
="-lXext $XLIBS"
4404 cat >> confdefs.h
<<\EOF
4424 LDFLAGS_old
="$LDFLAGS"
4425 LDFLAGS
="$LDFLAGS $lib_search_path"
4426 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4427 echo "configure:4428: checking for PLGetString in -lPropList" >&5
4428 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS
="$LIBS"
4433 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4446 if { (eval echo configure
:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS
="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4463 echo "$ac_t""no" 1>&6
4467 LDFLAGS
="$LDFLAGS_old"
4469 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4471 CPPFLAGS_old
="$CPPFLAGS"
4472 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4473 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4475 echo "configure:4476: checking for proplist.h" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.
$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <proplist.h>
4484 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure
:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4489 eval "ac_cv_header_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 eval "ac_cv_header_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4503 echo "$ac_t""no" 1>&6
4506 CPPFLAGS
="$CPPFLAGS_old"
4508 if test "x$ac_cv_header_proplist_h" = xyes
; then
4513 if test "x$LIBPL" = "x"; then
4515 echo "ERROR!!! libPropList is not installed, or could not be found."
4516 echo " Window Maker requires libPropList to build."
4517 echo " Please read INSTALL to find where you can find libPropList,"
4518 echo " and install it first."
4519 echo " If you already have it installed, try using the"
4520 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4521 echo " --with-libs-from flag to tell configure where the library"
4522 echo " is installed and"
4524 echo " --with-incs-from flag to tell configure where the header"
4525 echo " files are installed"
4539 # Check whether --enable-xpm or --disable-xpm was given.
4540 if test "${enable_xpm+set}" = set; then
4541 enableval
="$enable_xpm"
4548 if test "$xpm" = yes; then
4550 LDFLAGS_old
="$LDFLAGS"
4551 LDFLAGS
="$LDFLAGS $lib_search_path"
4552 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4553 echo "configure:4554: checking for XpmCreatePixmapFromData in -lXpm" >&5
4554 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS
="$LIBS"
4559 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char XpmCreatePixmapFromData();
4569 XpmCreatePixmapFromData()
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 eval "ac_cv_lib_$ac_lib_var=no"
4582 LIBS
="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4589 echo "$ac_t""no" 1>&6
4593 LDFLAGS
="$LDFLAGS_old"
4596 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4598 CPPFLAGS_old
="$CPPFLAGS"
4599 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4600 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4601 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4602 echo "configure:4603: checking for X11/xpm.h" >&5
4603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.
$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 #include <X11/xpm.h>
4611 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4612 { (eval echo configure
:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4613 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4614 if test -z "$ac_err"; then
4616 eval "ac_cv_header_$ac_safe=yes"
4619 echo "configure: failed program was:" >&5
4620 cat conftest.
$ac_ext >&5
4622 eval "ac_cv_header_$ac_safe=no"
4626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4630 echo "$ac_t""no" 1>&6
4633 CPPFLAGS
="$CPPFLAGS_old"
4635 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4636 GFXLIBS
="$GFXLIBS -lXpm"
4638 cat >> confdefs.h
<<\EOF
4643 supported_gfx
="builtin-XPM"
4659 # Check whether --enable-png or --disable-png was given.
4660 if test "${enable_png+set}" = set; then
4661 enableval
="$enable_png"
4669 if test "$png" = yes ; then
4671 LDFLAGS_old
="$LDFLAGS"
4672 LDFLAGS
="$LDFLAGS $lib_search_path"
4673 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4674 echo "configure:4675: checking for png_get_valid in -lpng" >&5
4675 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 ac_save_LIBS
="$LIBS"
4680 LIBS
="-lpng -lz -lm $LIBS"
4681 cat > conftest.
$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4687 char png_get_valid();
4693 if { (eval echo configure
:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4695 eval "ac_cv_lib_$ac_lib_var=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.
$ac_ext >&5
4700 eval "ac_cv_lib_$ac_lib_var=no"
4703 LIBS
="$ac_save_LIBS"
4706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4710 echo "$ac_t""no" 1>&6
4714 LDFLAGS
="$LDFLAGS_old"
4717 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4719 CPPFLAGS_old
="$CPPFLAGS"
4720 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4721 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for png.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.
$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure
:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.
$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4751 echo "$ac_t""no" 1>&6
4754 CPPFLAGS
="$CPPFLAGS_old"
4756 if test "x$ac_cv_header_png_h" = xyes
; then
4757 GFXLIBS
="$GFXLIBS -lpng -lz"
4758 supported_gfx
="$supported_gfx PNG"
4759 cat >> confdefs.h
<<\EOF
4770 # Check whether --enable-jpeg or --disable-jpeg was given.
4771 if test "${enable_jpeg+set}" = set; then
4772 enableval
="$enable_jpeg"
4779 if test "$jpeg" = yes; then
4781 LDFLAGS_old
="$LDFLAGS"
4782 LDFLAGS
="$LDFLAGS $lib_search_path"
4783 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4784 echo "configure:4785: checking for jpeg_destroy_compress in -ljpeg" >&5
4785 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 ac_save_LIBS
="$LIBS"
4791 cat > conftest.
$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4797 char jpeg_destroy_compress();
4800 jpeg_destroy_compress()
4803 if { (eval echo configure
:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4805 eval "ac_cv_lib_$ac_lib_var=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.
$ac_ext >&5
4810 eval "ac_cv_lib_$ac_lib_var=no"
4813 LIBS
="$ac_save_LIBS"
4816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4820 echo "$ac_t""no" 1>&6
4824 LDFLAGS
="$LDFLAGS_old"
4827 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4832 CPPFLAGS_old
="$CPPFLAGS"
4833 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4834 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4835 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4836 echo "configure:4837: checking for jpeglib.h" >&5
4837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.
$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 #include <jpeglib.h>
4845 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4846 { (eval echo configure
:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4847 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4848 if test -z "$ac_err"; then
4850 eval "ac_cv_header_$ac_safe=yes"
4853 echo "configure: failed program was:" >&5
4854 cat conftest.
$ac_ext >&5
4856 eval "ac_cv_header_$ac_safe=no"
4860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4864 echo "$ac_t""no" 1>&6
4867 CPPFLAGS
="$CPPFLAGS_old"
4869 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4870 GFXLIBS
="$GFXLIBS -ljpeg"
4871 supported_gfx
="$supported_gfx JPEG"
4872 cat >> confdefs.h
<<\EOF
4882 # Check whether --enable-gif or --disable-gif was given.
4883 if test "${enable_gif+set}" = set; then
4884 enableval
="$enable_gif"
4891 if test "$gif" = yes; then
4894 LDFLAGS_old
="$LDFLAGS"
4895 LDFLAGS
="$LDFLAGS $lib_search_path"
4896 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4897 echo "configure:4898: checking for DGifOpenFileName in -lungif" >&5
4898 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS
="$LIBS"
4903 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char DGifOpenFileName();
4916 if { (eval echo configure
:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.
$ac_ext >&5
4923 eval "ac_cv_lib_$ac_lib_var=no"
4926 LIBS
="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4933 echo "$ac_t""no" 1>&6
4937 LDFLAGS
="$LDFLAGS_old"
4939 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4942 if test "x$my_libname" = x
; then
4944 LDFLAGS_old
="$LDFLAGS"
4945 LDFLAGS
="$LDFLAGS $lib_search_path"
4946 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4947 echo "configure:4948: checking for DGifOpenFileName in -lgif" >&5
4948 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 ac_save_LIBS
="$LIBS"
4953 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4954 cat > conftest.
$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char DGifOpenFileName();
4966 if { (eval echo configure
:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4968 eval "ac_cv_lib_$ac_lib_var=yes"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 eval "ac_cv_lib_$ac_lib_var=no"
4976 LIBS
="$ac_save_LIBS"
4979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4983 echo "$ac_t""no" 1>&6
4987 LDFLAGS
="$LDFLAGS_old"
4989 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
4994 if test "$my_libname" != x
; then
4996 CPPFLAGS_old
="$CPPFLAGS"
4997 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4998 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4999 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5000 echo "configure:5001: checking for gif_lib.h" >&5
5001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.
$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <gif_lib.h>
5009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure
:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 eval "ac_cv_header_$ac_safe=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.
$ac_ext >&5
5020 eval "ac_cv_header_$ac_safe=no"
5024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5028 echo "$ac_t""no" 1>&6
5031 CPPFLAGS
="$CPPFLAGS_old"
5033 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
5034 GFXLIBS
="$GFXLIBS $my_libname"
5035 supported_gfx
="$supported_gfx GIF"
5036 cat >> confdefs.h
<<\EOF
5046 # Check whether --enable-tiff or --disable-tiff was given.
5047 if test "${enable_tiff+set}" = set; then
5048 enableval
="$enable_tiff"
5056 # TIFF can optionally have JPEG and/or zlib support. Must find out
5057 # when they are supported so that correct library flags are passed during
5058 # detection and linkage
5061 # By default use xpm icons if tiff is not found.
5065 if test "$tif" = yes; then
5068 LDFLAGS_old
="$LDFLAGS"
5069 LDFLAGS
="$LDFLAGS $lib_search_path"
5070 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5071 echo "configure:5072: checking for TIFFGetVersion in -ltiff" >&5
5072 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 ac_save_LIBS
="$LIBS"
5077 LIBS
="-ltiff -lm $LIBS"
5078 cat > conftest.
$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084 char TIFFGetVersion();
5090 if { (eval echo configure
:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5092 eval "ac_cv_lib_$ac_lib_var=yes"
5094 echo "configure: failed program was:" >&5
5095 cat conftest.
$ac_ext >&5
5097 eval "ac_cv_lib_$ac_lib_var=no"
5100 LIBS
="$ac_save_LIBS"
5103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5107 echo "$ac_t""no" 1>&6
5111 LDFLAGS
="$LDFLAGS_old"
5113 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5116 unset ac_cv_lib_tiff_TIFFGetVersion
5117 if test "x$my_libname" = x
; then
5119 LDFLAGS_old
="$LDFLAGS"
5120 LDFLAGS
="$LDFLAGS $lib_search_path"
5121 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5122 echo "configure:5123: checking for TIFFGetVersion in -ltiff" >&5
5123 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 ac_save_LIBS
="$LIBS"
5128 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
5129 cat > conftest.
$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5135 char TIFFGetVersion();
5141 if { (eval echo configure
:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5143 eval "ac_cv_lib_$ac_lib_var=yes"
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 eval "ac_cv_lib_$ac_lib_var=no"
5151 LIBS
="$ac_save_LIBS"
5154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5158 echo "$ac_t""no" 1>&6
5162 LDFLAGS
="$LDFLAGS_old"
5164 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5165 my_libname
="-ltiff -lz"
5169 if test "x$my_libname" = x
; then
5171 LDFLAGS_old
="$LDFLAGS"
5172 LDFLAGS
="$LDFLAGS $lib_search_path"
5173 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5174 echo "configure:5175: checking for TIFFGetVersion in -ltiff34" >&5
5175 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 ac_save_LIBS
="$LIBS"
5180 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5181 cat > conftest.
$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5187 char TIFFGetVersion();
5193 if { (eval echo configure
:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5195 eval "ac_cv_lib_$ac_lib_var=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5200 eval "ac_cv_lib_$ac_lib_var=no"
5203 LIBS
="$ac_save_LIBS"
5206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5210 echo "$ac_t""no" 1>&6
5214 LDFLAGS
="$LDFLAGS_old"
5216 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5217 my_libname
="-ltiff34"
5222 if test "x$my_libname" != x
; then
5224 CPPFLAGS_old
="$CPPFLAGS"
5225 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5226 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5227 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5228 echo "configure:5229: checking for tiffio.h" >&5
5229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.
$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5238 { (eval echo configure
:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5240 if test -z "$ac_err"; then
5242 eval "ac_cv_header_$ac_safe=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5248 eval "ac_cv_header_$ac_safe=no"
5252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5256 echo "$ac_t""no" 1>&6
5259 CPPFLAGS
="$CPPFLAGS_old"
5261 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5262 GFXLIBS
="$my_libname $GFXLIBS"
5264 supported_gfx
="$supported_gfx TIFF"
5265 cat >> confdefs.h
<<\EOF
5273 LIBRARY_SEARCH_PATH
="$lib_search_path"
5274 HEADER_SEARCH_PATH
="$inc_search_path"
5286 # Check whether --enable-debug or --disable-debug was given.
5287 if test "${enable_debug+set}" = set; then
5288 enableval
="$enable_debug"
5295 if test "$enable_debug" = yes; then
5297 # Efence makes things too slow. Add it by hand in the Makefiles
5298 # if it is really needed.
5299 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5305 # Check whether --enable-sound or --disable-sound was given.
5306 if test "${enable_sound+set}" = set; then
5307 enableval
="$enable_sound"
5313 if test "$sound" = yes; then
5314 cat >> confdefs.h
<<\EOF
5321 # AC_PREFIX_PROGRAM(wmaker)
5323 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5324 if test "${with_pixmapdir+set}" = set; then
5325 withval
="$with_pixmapdir"
5330 if test "x$with_pixmapdir" != "x"; then
5331 pixmapdir
=$with_pixmapdir
5333 pixmapdir
=`eval echo ${datadir}/pixmaps`
5336 cat >> confdefs.h
<<EOF
5337 #define PIXMAPDIR "$pixmapdir"
5341 pkgdatadir
=`eval echo $datadir`
5342 cat >> confdefs.h
<<EOF
5343 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5347 _sysconfdir
=`eval echo $sysconfdir`
5348 cat >> confdefs.h
<<EOF
5349 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5357 # Check whether --with-appspath or --without-appspath was given.
5358 if test "${with_appspath+set}" = set; then
5359 withval
="$with_appspath"
5364 if test "x$appspath" = "x"; then
5365 gnustepdir
='$(prefix)/GNUstep'
5367 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5368 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5369 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5372 with_appspath
=$gnustepdir/Apps
5375 wprefsdir
=$with_appspath/WPrefs.app
5381 # Check whether --enable-single-icon or --disable-single-icon was given.
5382 if test "${enable_single_icon+set}" = set; then
5383 enableval
="$enable_single_icon"
5384 if test "$enableval" = yes; then
5385 cat >> confdefs.h
<<\EOF
5386 #define REDUCE_APPICONS 1
5394 # Check whether --enable-usermenu or --disable-usermenu was given.
5395 if test "${enable_usermenu+set}" = set; then
5396 enableval
="$enable_usermenu"
5397 if test "$enableval" = yes; then
5398 cat >> confdefs.h
<<\EOF
5411 cat > confcache
<<\EOF
5412 # This file is a shell script that caches the results of configure
5413 # tests run on this system so they can be shared between configure
5414 # scripts and configure runs. It is not useful on other systems.
5415 # If it contains results you don't want to keep, you may remove or edit it.
5417 # By default, configure uses ./config.cache as the cache file,
5418 # creating it if it does not exist already. You can give configure
5419 # the --cache-file=FILE option to use a different cache file; that is
5420 # what configure does when it calls configure scripts in
5421 # subdirectories, so they share the cache.
5422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5423 # config.status only pays attention to the cache file if you give it the
5424 # --recheck option to rerun configure.
5427 # The following way of writing the cache mishandles newlines in values,
5428 # but we know of no workaround that is simple, portable, and efficient.
5429 # So, don't put newlines in cache variables' values.
5430 # Ultrix sh set writes to stderr and can't be redirected directly,
5431 # and sets the high bit in the cache file unless we assign to the vars.
5433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5435 # `set' does not quote correctly, so add quotes (double-quote substitution
5436 # turns \\\\ into \\, and sed turns \\ into \).
5438 -e "s/'/'\\\\''/g" \
5439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5442 # `set' quotes correctly as required by POSIX, so do not add quotes.
5443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5446 if cmp -s $cache_file confcache
; then
5449 if test -w $cache_file; then
5450 echo "updating cache $cache_file"
5451 cat confcache
> $cache_file
5453 echo "not updating unwritable cache $cache_file"
5458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5460 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5461 # Let make expand exec_prefix.
5462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5464 # Any assignment to VPATH causes Sun make to only execute
5465 # the first set of double-colon rules, so remove it if not needed.
5466 # If there is a colon in the path, we need to keep it.
5467 if test "x$srcdir" = x.
; then
5468 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5473 DEFS
=-DHAVE_CONFIG_H
5475 # Without the "./", some shells look in PATH for config.status.
5476 : ${CONFIG_STATUS=./config.status}
5478 echo creating
$CONFIG_STATUS
5479 rm -f $CONFIG_STATUS
5480 cat > $CONFIG_STATUS <<EOF
5482 # Generated automatically by configure.
5483 # Run this file to recreate the current configuration.
5484 # This directory was configured as follows,
5485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5487 # $0 $ac_configure_args
5489 # Compiler output produced by configure, useful for debugging
5490 # configure, is in ./config.log if it exists.
5492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5495 case "\$ac_option" in
5496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5502 -help | --help | --hel | --he | --h)
5503 echo "\$ac_cs_usage"; exit 0 ;;
5504 *) echo "\$ac_cs_usage"; exit 1 ;;
5508 ac_given_srcdir=$srcdir
5509 ac_given_INSTALL="$INSTALL"
5511 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5512 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5513 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5514 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5515 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5516 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5517 WindowMaker/Themes/Makefile \
5518 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5519 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5521 cat >> $CONFIG_STATUS <<EOF
5523 # Protect against being on the right side of a sed subst in config.status.
5524 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5525 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5529 s%@CFLAGS@%$CFLAGS%g
5530 s%@CPPFLAGS@%$CPPFLAGS%g
5531 s%@CXXFLAGS@%$CXXFLAGS%g
5532 s%@FFLAGS@%$FFLAGS%g
5534 s%@LDFLAGS@%$LDFLAGS%g
5536 s%@exec_prefix@%$exec_prefix%g
5537 s%@prefix@%$prefix%g
5538 s%@program_transform_name@%$program_transform_name%g
5539 s%@bindir@%$bindir%g
5540 s%@sbindir@%$sbindir%g
5541 s%@libexecdir@%$libexecdir%g
5542 s%@datadir@%$datadir%g
5543 s%@sysconfdir@%$sysconfdir%g
5544 s%@sharedstatedir@%$sharedstatedir%g
5545 s%@localstatedir@%$localstatedir%g
5546 s%@libdir@%$libdir%g
5547 s%@includedir@%$includedir%g
5548 s%@oldincludedir@%$oldincludedir%g
5549 s%@infodir@%$infodir%g
5550 s%@mandir@%$mandir%g
5551 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5552 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5553 s%@INSTALL_DATA@%$INSTALL_DATA%g
5554 s%@PACKAGE@%$PACKAGE%g
5555 s%@VERSION@%$VERSION%g
5556 s%@ACLOCAL@%$ACLOCAL%g
5557 s%@AUTOCONF@%$AUTOCONF%g
5558 s%@AUTOMAKE@%$AUTOMAKE%g
5559 s%@AUTOHEADER@%$AUTOHEADER%g
5560 s%@MAKEINFO@%$MAKEINFO%g
5561 s%@SET_MAKE@%$SET_MAKE%g
5563 s%@host_alias@%$host_alias%g
5564 s%@host_cpu@%$host_cpu%g
5565 s%@host_vendor@%$host_vendor%g
5566 s%@host_os@%$host_os%g
5568 s%@build_alias@%$build_alias%g
5569 s%@build_cpu@%$build_cpu%g
5570 s%@build_vendor@%$build_vendor%g
5571 s%@build_os@%$build_os%g
5572 s%@RANLIB@%$RANLIB%g
5577 s%@LIBTOOL@%$LIBTOOL%g
5579 s%@ALLOCA@%$ALLOCA%g
5580 s%@CPP_PATH@%$CPP_PATH%g
5581 s%@XGETTEXT@%$XGETTEXT%g
5582 s%@DLLIBS@%$DLLIBS%g
5583 s%@INTLIBS@%$INTLIBS%g
5584 s%@NLSDIR@%$NLSDIR%g
5585 s%@MOFILES@%$MOFILES%g
5586 s%@WPMOFILES@%$WPMOFILES%g
5588 s%@X_CFLAGS@%$X_CFLAGS%g
5589 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5590 s%@X_LIBS@%$X_LIBS%g
5591 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5592 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5594 s%@XCFLAGS@%$XCFLAGS%g
5595 s%@XLFLAGS@%$XLFLAGS%g
5597 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5598 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5599 s%@GFXLIBS@%$GFXLIBS%g
5600 s%@ICONEXT@%$ICONEXT%g
5601 s%@DFLAGS@%$DFLAGS%g
5602 s%@wprefsdir@%$wprefsdir%g
5607 cat >> $CONFIG_STATUS <<\EOF
5609 # Split the substitutions into bite-sized pieces for seds with
5610 # small command number limits, like on Digital OSF/1 and HP-UX.
5611 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5612 ac_file
=1 # Number of current file.
5613 ac_beg
=1 # First line for current file.
5614 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5617 while $ac_more_lines; do
5618 if test $ac_beg -gt 1; then
5619 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5621 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5623 if test ! -s conftest.s
$ac_file; then
5625 rm -f conftest.s
$ac_file
5627 if test -z "$ac_sed_cmds"; then
5628 ac_sed_cmds
="sed -f conftest.s$ac_file"
5630 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5632 ac_file
=`expr $ac_file + 1`
5634 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5637 if test -z "$ac_sed_cmds"; then
5642 cat >> $CONFIG_STATUS <<EOF
5644 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5645 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5646 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5647 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5648 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5649 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5650 WindowMaker/Themes/Makefile \
5651 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5652 WPrefs.app/po/Makefile "}
5654 cat >> $CONFIG_STATUS <<\EOF
5655 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5658 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5659 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5660 *) ac_file_in
="${ac_file}.in" ;;
5663 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5665 # Remove last slash and all that follows it. Not all systems have dirname.
5666 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5668 # The file is in a subdirectory.
5669 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5670 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5671 # A "../" for each directory in $ac_dir_suffix.
5672 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5674 ac_dir_suffix
= ac_dots
=
5677 case "$ac_given_srcdir" in
5679 if test -z "$ac_dots"; then top_srcdir
=.
5680 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5681 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5683 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5684 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5687 case "$ac_given_INSTALL" in
5688 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5689 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5692 echo creating
"$ac_file"
5694 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5696 *Makefile
*) ac_comsub
="1i\\
5697 # $configure_input" ;;
5701 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5703 s%@configure_input@%$configure_input%g
5704 s%@srcdir@%$srcdir%g
5705 s%@top_srcdir@%$top_srcdir%g
5706 s%@INSTALL@%$INSTALL%g
5707 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5714 # ac_d sets the value in "#define NAME VALUE" lines.
5715 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5716 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5720 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5721 ac_uB
='\([ ]\)%\1#\2define\3'
5724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5725 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5726 ac_eB
='$%\1#\2define\3'
5730 if test "${CONFIG_HEADERS+set}" != set; then
5732 cat >> $CONFIG_STATUS <<EOF
5733 CONFIG_HEADERS="src/config.h"
5735 cat >> $CONFIG_STATUS <<\EOF
5737 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5740 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5741 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5742 *) ac_file_in
="${ac_file}.in" ;;
5745 echo creating
$ac_file
5747 rm -f conftest.frag conftest.
in conftest.out
5748 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5749 cat $ac_file_inputs > conftest.
in
5753 # Transform confdefs.h into a sed script conftest.vals that substitutes
5754 # the proper values into config.h.in to produce config.h. And first:
5755 # Protect against being on the right side of a sed subst in config.status.
5756 # Protect against being in an unquoted here document in config.status.
5758 cat > conftest.hdr
<<\EOF
5761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5765 sed -n -f conftest.hdr confdefs.h > conftest.vals
5768 # This sed command replaces #undef with comments. This is necessary, for
5769 # example, in the case of _POSIX_SOURCE, which is predefined and required
5770 # on some systems where configure will not decide to define it.
5771 cat >> conftest.vals <<\EOF
5772 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5775 # Break up conftest.vals because some shells have a limit on
5776 # the size of here documents, and old seds have small limits too.
5781 ac_lines=`grep -c . conftest.vals
`
5782 # grep -c gives empty output for an empty file on some AIX systems.
5783 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5784 # Write a limited-size here document to conftest.frag.
5785 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5786 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5788 sed -f conftest.frag conftest.in > conftest.out
5790 mv conftest.out conftest.in
5792 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5794 mv conftest.tail conftest.vals
5798 cat >> $CONFIG_STATUS <<\EOF
5799 rm -f conftest.frag conftest.h
5800 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5801 cat conftest.in >> conftest.h
5803 if cmp -s $ac_file conftest.h 2>/dev/null; then
5804 echo "$ac_file is unchanged"
5807 # Remove last slash and all that follows it. Not all systems have dirname.
5808 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5810 # The file is in a subdirectory.
5811 test ! -d "$ac_dir" && mkdir "$ac_dir"
5814 mv conftest.h $ac_file
5819 cat >> $CONFIG_STATUS <<EOF
5823 cat >> $CONFIG_STATUS <<\EOF
5824 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5828 chmod +x $CONFIG_STATUS
5829 rm -fr confdefs* $ac_clean_files
5830 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5838 cat <<EOF >get-wraster-flags
5842 exec_prefix=\$prefix
5844 WCFLAGS="-I\$prefix/include $inc_search_path"
5845 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5846 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5848 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5850 if test \$# -eq 0; then
5851 echo "\${usage}" 1>&2
5855 while test \$# -gt 0; do
5867 echo "\${usage}" 1>&2
5877 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5879 chmod 755 wrlib/get-wraster-flags
5880 rm -f get-wraster-flags
5884 supported_gfx="$supported_gfx builtin-PPM"
5886 if test "x$MOFILES" = "x"; then
5894 echo "Window Maker was configured as follows:"
5896 echo "Installation path prefix: $prefix"
5897 echo "Installation path prefix for binaries: $_bindir"
5898 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5899 echo "Graphic format libraries: $supported_gfx"
5900 echo "Sound support: $sound"
5901 echo "Translated message files to install: $mof"
5902 if test "x$MOFILES" != "x"; then
5903 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5907 if test "$rh_is_redhat" = yes; then
5908 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5910 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5911 I have done some checks for Red-Hat-specific bugs, and I found some
5912 problems. Please read the INSTALL file regarding Red Hat, resolve
5913 the problems, and try to run configure again.
5915 Here are the problems I found:
5917 if test "x$rh_old_wmaker" = xyes; then
5918 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5919 echo "Description: You seem to have an old version of Window Maker"
5920 echo " installed in /usr/X11R6/bin. It is recommended"
5921 echo " that you uninstall any previously installed"
5922 echo " packages of WindowMaker before installing a new one."
5925 if test "x$rh_missing_usr_local_bin" = xyes; then
5926 echo "Problem: PATH is missing /usr/local/bin."
5927 echo "Description: Your PATH environment variable does not appear to"
5928 echo " contain the directory /usr/local/bin. Please add it."
5931 if test "x$rh_missing_usr_local_lib" = xyes; then
5932 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5933 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5934 echo " the directory /usr/local/lib. Please add it."
5937 if test "x$rh_missing_usr_x11" = xyes; then
5938 echo "Problem: Missing /usr/X11 symbolic link."
5939 echo "Description: Your system is missing a symbolic link from"
5940 echo " /usr/X11R6 to /usr/X11. Please create one."
5943 if test "x$rh_missing_usr_include_x11" = xyes; then
5944 echo "Problem: Missing /usr/include/X11 symbolic link."
5945 echo "Description: Your system is missing a symbolic link from"
5946 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5947 echo " Please create one."
5950 if test "x$rh_missing_lib_cpp" = xyes; then
5951 echo "Problem: Missing /lib/cpp symbolic link."
5952 echo "Description: Your system is missing a symbolic link from the"
5953 echo " cpp (C preprocessor) program to /lib/cpp."
5954 echo " Please create one."
5957 if test "x$bugs_found" = xyes; then
5958 { echo "configure: error: One or more of the problems above can potentially
5959 cause Window Maker not to install or run properly. Please resolve
5960 the problems and try to run configure again." 1>&2; exit 1; }
5962 elif test "x$mins_found" = xyes; then
5963 echo "configure: warning: The problems above may or may not cause Window Maker
5964 not to install or run properly. If you have any problems during
5965 installation or execution, please resolve the problems and try to
5966 install Window Maker again." 1>&2
5971 echo "You appear to have a system packaged by Red Hat, but I could"
5972 echo "not find any Red-Hat-specific problems that I know about."
5978 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5979 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5981 echo "JPEG support will not be included because the JPEG library is"
5982 echo "not installed correctly or was not found. Background images"
5983 echo "from themes will not display as they usually are JPEG files."
5985 echo "To fix, download and install the jpeg library and/or make sure you"
5986 echo "installed all jpeg related packages, like jpeg-devel."
5988 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"