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 --enable-kanji multibyte character support (kanji, Korean etc.)"
31 --with-nlsdir=PATH specify where the locale stuff should go "
33 --enable-gnome enable stuff needed for GNOME "
35 --enable-kde enable support for KDE window manager (kwm) hints "
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
39 --enable-lite disable some stuff (dont use it) "
41 --with-x use the X Window System"
43 --disable-locale disable use of X locale support"
45 --enable-modelock XKB keyboard language status support"
47 --disable-shape disable shaped window extension support"
49 --disable-shm disable usage of MIT-SHM extension"
51 --disable-xpm disable use of XPM pixmaps through libXpm"
53 --disable-png disable PNG support through libpng"
55 --disable-jpeg disable JPEG support through libjpeg"
57 --disable-gif disable GIF support through libgif or libungif"
59 --disable-tiff disable use of TIFF images through libtiff"
61 --enable-debug enable debugging "
63 --disable-sound disable sound support "
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
67 --with-appspath=PATH specify the directory for GNUstep applications"
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 --enable-usermenu user defined menus for applications
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=src
/WindowMaker.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
588 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
589 if test -f $ac_dir/install-sh
; then
591 ac_install_sh
="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh
; then
595 ac_install_sh
="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 ac_config_guess
=$ac_aux_dir/config.guess
603 ac_config_sub
=$ac_aux_dir/config.sub
604 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
606 # Find a good install program. We prefer a C program (faster),
607 # so one script is as good as another. But avoid the broken or
608 # incompatible versions:
609 # SysV /etc/install, /usr/sbin/install
610 # SunOS /usr/etc/install
613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616 # ./install, which can be erroneously created by make from ./install.sh.
617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618 echo "configure:619: checking for a BSD compatible install" >&5
619 if test -z "$INSTALL"; then
620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
624 for ac_dir
in $PATH; do
625 # Account for people who put trailing slashes in PATH elements.
627 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
629 # OSF1 and SCO ODT 3.0 have their own names for install.
630 # Don't use installbsd from OSF since it installs stuff as root
632 for ac_prog
in ginstall scoinst
install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
636 # AIX install. It has an incompatible calling convention.
639 ac_cv_path_install
="$ac_dir/$ac_prog -c"
650 if test "${ac_cv_path_install+set}" = set; then
651 INSTALL
="$ac_cv_path_install"
653 # As a last resort, use the slow shell script. We don't cache a
654 # path for INSTALL within a source directory, because that will
655 # break other packages using the cache if that directory is
656 # removed, or if the path is relative.
657 INSTALL
="$ac_install_sh"
660 echo "$ac_t""$INSTALL" 1>&6
662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663 # It thinks the first close brace ends the variable substitution.
664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
668 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671 echo "configure:672: checking whether build environment is sane" >&5
674 echo timestamp
> conftestfile
675 # Do `set' in a subshell so we don't clobber the current shell's
676 # arguments. Must try -L first in case configure is actually a
677 # symlink; some systems play weird games with the mod time of symlinks
678 # (eg FreeBSD returns the mod time of the symlink's containing
681 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682 if test "$*" = "X"; then
684 set X
`ls -t $srcdir/configure conftestfile`
686 if test "$*" != "X $srcdir/configure conftestfile" \
687 && test "$*" != "X conftestfile $srcdir/configure"; then
689 # If neither matched, then we have a broken ls. This can happen
690 # if, for instance, CONFIG_SHELL is bash and it inherits a
691 # broken ls alias from the environment. This has actually
692 # happened. Such a system could not be considered "sane".
693 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
694 alias in your environment" 1>&2; exit 1; }
697 test "$2" = conftestfile
703 { echo "configure: error: newly created file is older than distributed files!
704 Check your system clock" 1>&2; exit 1; }
707 echo "$ac_t""yes" 1>&6
708 if test "$program_transform_name" = s
,x
,x
,; then
709 program_transform_name
=
711 # Double any \ or $. echo might interpret backslashes.
712 cat <<\EOF_SED
> conftestsed
713 s
,\\,\\\\,g
; s
,\$
,$$
,g
715 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
718 test "$program_prefix" != NONE
&&
719 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
720 # Use a double $ so make ignores it.
721 test "$program_suffix" != NONE
&&
722 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
724 # sed with no file args requires a program.
725 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftestmake
<<\EOF
735 @
echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_
${ac_make}_set
=yes
742 eval ac_cv_prog_make_
${ac_make}_set
=no
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
750 echo "$ac_t""no" 1>&6
751 SET_MAKE
="MAKE=${MAKE-make}"
759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
760 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
762 cat >> confdefs.h
<<EOF
763 #define PACKAGE "$PACKAGE"
766 cat >> confdefs.h
<<EOF
767 #define VERSION "$VERSION"
772 missing_dir
=`cd $ac_aux_dir && pwd`
773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
774 echo "configure:775: checking for working aclocal" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
780 echo "$ac_t""found" 1>&6
782 ACLOCAL
="$missing_dir/missing aclocal"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
787 echo "configure:788: checking for working autoconf" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
793 echo "$ac_t""found" 1>&6
795 AUTOCONF
="$missing_dir/missing autoconf"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
800 echo "configure:801: checking for working automake" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
806 echo "$ac_t""found" 1>&6
808 AUTOMAKE
="$missing_dir/missing automake"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoheader" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
818 AUTOHEADER
=autoheader
819 echo "$ac_t""found" 1>&6
821 AUTOHEADER
="$missing_dir/missing autoheader"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
826 echo "configure:827: checking for working makeinfo" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
832 echo "$ac_t""found" 1>&6
834 MAKEINFO
="$missing_dir/missing makeinfo"
835 echo "$ac_t""missing" 1>&6
840 # Check whether --enable-shared or --disable-shared was given.
841 if test "${enable_shared+set}" = set; then
842 enableval
="$enable_shared"
845 yes) enable_shared
=yes ;;
846 no
) enable_shared
=no
;;
849 # Look at the argument we got. We use all the common list separators.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
851 for pkg
in $enableval; do
852 if test "X$pkg" = "X$p"; then
863 # Check whether --enable-static or --disable-static was given.
864 if test "${enable_static+set}" = set; then
865 enableval
="$enable_static"
868 yes) enable_static
=yes ;;
869 no
) enable_static
=no
;;
872 # Look at the argument we got. We use all the common list separators.
873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
874 for pkg
in $enableval; do
875 if test "X$pkg" = "X$p"; then
886 # Check whether --enable-fast-install or --disable-fast-install was given.
887 if test "${enable_fast_install+set}" = set; then
888 enableval
="$enable_fast_install"
891 yes) enable_fast_install
=yes ;;
892 no
) enable_fast_install
=no
;;
894 enable_fast_install
=no
895 # Look at the argument we got. We use all the common list separators.
896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
897 for pkg
in $enableval; do
898 if test "X$pkg" = "X$p"; then
899 enable_fast_install
=yes
906 enable_fast_install
=yes
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
919 case "$host_alias" in
923 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
926 *) host_alias
=$nonopt ;;
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking build system type""... $ac_c" 1>&6
937 echo "configure:938: checking build system type" >&5
940 case "$build_alias" in
943 NONE
) build_alias
=$host_alias ;;
944 *) build_alias
=$nonopt ;;
948 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
949 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$build" 1>&6
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib
; ac_word
=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
966 for ac_dir
in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir
=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB
="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
977 RANLIB
="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
984 # Extract the first word of "gcc", so it can be a program name with args.
985 set dummy gcc
; ac_word
=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC
="$CC" # Let the user override the test.
994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
996 for ac_dir
in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir
=.
998 if test -f $ac_dir/$ac_word; then
1007 if test -n "$CC"; then
1008 echo "$ac_t""$CC" 1>&6
1010 echo "$ac_t""no" 1>&6
1013 if test -z "$CC"; then
1014 # Extract the first word of "cc", so it can be a program name with args.
1015 set dummy cc
; ac_word
=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC
="$CC" # Let the user override the test.
1024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1027 for ac_dir
in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir
=.
1029 if test -f $ac_dir/$ac_word; then
1030 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1031 ac_prog_rejected
=yes
1039 if test $ac_prog_rejected = yes; then
1040 # We found a bogon in the path, so make sure we never use it.
1041 set dummy
$ac_cv_prog_CC
1043 if test $# -gt 0; then
1044 # We chose a different compiler from the bogus one.
1045 # However, it has the same basename, so the bogon will be chosen
1046 # first if we set CC to just the basename; use the full file name.
1048 set dummy
"$ac_dir/$ac_word" "$@"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 case "`uname -s`" in
1065 # Extract the first word of "cl", so it can be a program name with args.
1066 set dummy cl
; ac_word
=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC
="$CC" # Let the user override the test.
1075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1091 echo "$ac_t""no" 1>&6
1096 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp
='$CPP $CPPFLAGS'
1105 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling
=$ac_cv_prog_cc_cross
1109 cat > conftest.
$ac_ext << EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1116 if { (eval echo configure
:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1117 ac_cv_prog_cc_works
=yes
1118 # If we can't run a trivial program, we are probably using a cross compiler.
1119 if (.
/conftest
; exit) 2>/dev
/null
; then
1120 ac_cv_prog_cc_cross
=no
1122 ac_cv_prog_cc_cross
=yes
1125 echo "configure: failed program was:" >&5
1126 cat conftest.
$ac_ext >&5
1127 ac_cv_prog_cc_works
=no
1131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp
='$CPP $CPPFLAGS'
1133 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling
=$ac_cv_prog_cc_cross
1137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1138 if test $ac_cv_prog_cc_works = no
; then
1139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1144 cross_compiling
=$ac_cv_prog_cc_cross
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.c
<<EOF
1156 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS
="${CFLAGS+set}"
1172 ac_save_CFLAGS
="$CFLAGS"
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS
="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1199 if test "$GCC" = yes; then
1206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1207 if test "${with_gnu_ld+set}" = set; then
1208 withval
="$with_gnu_ld"
1209 test "$withval" = no || with_gnu_ld
=yes
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 # Check if gcc -print-prog-name=ld gives a path.
1217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ld used by GCC" >&5
1219 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1221 # Accept absolute paths.
1222 [\\/]* |
[A-Za-z
]:[\\/]*)
1223 re_direlt
='/[^/][^/]*/\.\./'
1224 # Canonicalize the path of ld
1225 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1226 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1227 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1229 test -z "$LD" && LD
="$ac_prog"
1232 # If it fails, then pretend we aren't using GCC.
1236 # If it is relative, then search for the first ld in PATH.
1240 elif test "$with_gnu_ld" = yes; then
1241 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking for GNU ld" >&5
1244 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking for non-GNU ld" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -z "$LD"; then
1251 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir
in $PATH; do
1253 test -z "$ac_dir" && ac_dir
=.
1254 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1255 ac_cv_path_LD
="$ac_dir/$ac_prog"
1256 # Check to see if the program is GNU ld. I'd rather use --version,
1257 # but apparently some GNU ld's only accept -v.
1258 # Break only if it was the GNU/non-GNU ld that we prefer.
1259 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1260 test "$with_gnu_ld" != no
&& break
1262 test "$with_gnu_ld" != yes && break
1268 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1273 if test -n "$LD"; then
1274 echo "$ac_t""$LD" 1>&6
1276 echo "$ac_t""no" 1>&6
1278 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1280 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1281 echo "configure:1282: checking if the linker ($LD) is GNU ld" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1286 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1287 ac_cv_prog_gnu_ld
=yes
1289 ac_cv_prog_gnu_ld
=no
1293 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1296 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1297 echo "configure:1298: checking for BSD-compatible nm" >&5
1298 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -n "$NM"; then
1302 # Let the user override the test.
1305 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1306 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1307 test -z "$ac_dir" && ac_dir
=.
1308 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1309 # Check to see if the nm accepts a BSD-compat flag.
1310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1311 # nm: unknown option "B" ignored
1312 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1313 ac_cv_path_NM
="$ac_dir/nm -B"
1315 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1316 ac_cv_path_NM
="$ac_dir/nm -p"
1319 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1320 continue # so that we can try to find one that supports BSD flags
1325 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1330 echo "$ac_t""$NM" 1>&6
1333 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether ln -s works" >&5
1335 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1339 if ln -s X conftestdata
2>/dev
/null
1342 ac_cv_prog_LN_S
="ln -s"
1347 LN_S
="$ac_cv_prog_LN_S"
1348 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1349 echo "$ac_t""yes" 1>&6
1351 echo "$ac_t""no" 1>&6
1355 # Check for any special flags to pass to ltconfig.
1356 libtool_flags
="--cache-file=$cache_file"
1357 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1358 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1359 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1360 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1361 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1364 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1365 if test "${enable_libtool_lock+set}" = set; then
1366 enableval
="$enable_libtool_lock"
1370 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1371 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1373 # Some flags need to be propagated to the compiler or linker for good
1377 # Find out which ABI we are using.
1378 echo '#line 1379 "configure"' > conftest.
$ac_ext
1379 if { (eval echo configure
:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 case "`/usr/bin/file conftest.o`" in
1396 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1397 SAVE_CFLAGS
="$CFLAGS"
1398 CFLAGS
="$CFLAGS -belf"
1399 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether the C compiler needs -belf" >&5
1401 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1412 if { (eval echo configure
:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1414 lt_cv_cc_needs_belf
=yes
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1419 lt_cv_cc_needs_belf
=no
1424 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1425 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1427 CFLAGS
="$SAVE_CFLAGS"
1435 # Save cache, so that ltconfig can load it
1436 cat > confcache
<<\EOF
1437 # This file is a shell script that caches the results of configure
1438 # tests run on this system so they can be shared between configure
1439 # scripts and configure runs. It is not useful on other systems.
1440 # If it contains results you don't want to keep, you may remove or edit it.
1442 # By default, configure uses ./config.cache as the cache file,
1443 # creating it if it does not exist already. You can give configure
1444 # the --cache-file=FILE option to use a different cache file; that is
1445 # what configure does when it calls configure scripts in
1446 # subdirectories, so they share the cache.
1447 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1448 # config.status only pays attention to the cache file if you give it the
1449 # --recheck option to rerun configure.
1452 # The following way of writing the cache mishandles newlines in values,
1453 # but we know of no workaround that is simple, portable, and efficient.
1454 # So, don't put newlines in cache variables' values.
1455 # Ultrix sh set writes to stderr and can't be redirected directly,
1456 # and sets the high bit in the cache file unless we assign to the vars.
1458 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1460 # `set' does not quote correctly, so add quotes (double-quote substitution
1461 # turns \\\\ into \\, and sed turns \\ into \).
1463 -e "s/'/'\\\\''/g" \
1464 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1467 # `set' quotes correctly as required by POSIX, so do not add quotes.
1468 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1471 if cmp -s $cache_file confcache
; then
1474 if test -w $cache_file; then
1475 echo "updating cache $cache_file"
1476 cat confcache
> $cache_file
1478 echo "not updating unwritable cache $cache_file"
1484 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1485 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1486 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1487 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1488 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1489 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1490 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1491 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1493 # Reload cache, that may have been modified by ltconfig
1494 if test -r "$cache_file"; then
1495 echo "loading cache $cache_file"
1498 echo "creating cache $cache_file"
1503 # This can be used to rebuild libtool when needed
1504 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1506 # Always use our own libtool.
1507 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1509 # Redirect the config.log output again, so that the ltconfig log is not
1510 # clobbered by the next message.
1511 exec 5>>.
/config.log
1514 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1515 # Turn around -rpath problem with libtool 1.0c
1516 # This define should be improbable enough to not conflict with anything
1519 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1520 sed < libtool
> libtool-2 \
1521 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1522 mv libtool-2 libtool
1535 # Make sure we can run config.sub.
1536 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1537 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1540 echo $ac_n "checking host system type""... $ac_c" 1>&6
1541 echo "configure:1542: checking host system type" >&5
1544 case "$host_alias" in
1548 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1549 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1551 *) host_alias
=$nonopt ;;
1555 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1556 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$ac_t""$host" 1>&6
1563 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1564 echo "configure:1565: checking for POSIXized ISC" >&5
1565 if test -d /etc
/conf
/kconfig.d
&&
1566 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1568 echo "$ac_t""yes" 1>&6
1569 ISC
=yes # If later tests want to check for ISC.
1570 cat >> confdefs.h
<<\EOF
1571 #define _POSIX_SOURCE 1
1574 if test "$GCC" = yes; then
1580 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc
; ac_word
=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC
="$CC" # Let the user override the test.
1594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1596 for ac_dir
in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir
=.
1598 if test -f $ac_dir/$ac_word; then
1607 if test -n "$CC"; then
1608 echo "$ac_t""$CC" 1>&6
1610 echo "$ac_t""no" 1>&6
1613 if test -z "$CC"; then
1614 # Extract the first word of "cc", so it can be a program name with args.
1615 set dummy cc
; ac_word
=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5
1618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC
="$CC" # Let the user override the test.
1624 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1627 for ac_dir
in $ac_dummy; do
1628 test -z "$ac_dir" && ac_dir
=.
1629 if test -f $ac_dir/$ac_word; then
1630 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1631 ac_prog_rejected
=yes
1639 if test $ac_prog_rejected = yes; then
1640 # We found a bogon in the path, so make sure we never use it.
1641 set dummy
$ac_cv_prog_CC
1643 if test $# -gt 0; then
1644 # We chose a different compiler from the bogus one.
1645 # However, it has the same basename, so the bogon will be chosen
1646 # first if we set CC to just the basename; use the full file name.
1648 set dummy
"$ac_dir/$ac_word" "$@"
1656 if test -n "$CC"; then
1657 echo "$ac_t""$CC" 1>&6
1659 echo "$ac_t""no" 1>&6
1662 if test -z "$CC"; then
1663 case "`uname -s`" in
1665 # Extract the first word of "cl", so it can be a program name with args.
1666 set dummy cl
; ac_word
=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC
="$CC" # Let the user override the test.
1675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1677 for ac_dir
in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir
=.
1679 if test -f $ac_dir/$ac_word; then
1688 if test -n "$CC"; then
1689 echo "$ac_t""$CC" 1>&6
1691 echo "$ac_t""no" 1>&6
1696 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1699 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1700 echo "configure:1701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp
='$CPP $CPPFLAGS'
1705 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling
=$ac_cv_prog_cc_cross
1709 cat > conftest.
$ac_ext << EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 if { (eval echo configure
:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1717 ac_cv_prog_cc_works
=yes
1718 # If we can't run a trivial program, we are probably using a cross compiler.
1719 if (.
/conftest
; exit) 2>/dev
/null
; then
1720 ac_cv_prog_cc_cross
=no
1722 ac_cv_prog_cc_cross
=yes
1725 echo "configure: failed program was:" >&5
1726 cat conftest.
$ac_ext >&5
1727 ac_cv_prog_cc_works
=no
1731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1732 ac_cpp
='$CPP $CPPFLAGS'
1733 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1734 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1735 cross_compiling
=$ac_cv_prog_cc_cross
1737 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1738 if test $ac_cv_prog_cc_works = no
; then
1739 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1742 echo "configure:1743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1743 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1744 cross_compiling
=$ac_cv_prog_cc_cross
1746 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether we are using GNU C" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 cat > conftest.c
<<EOF
1756 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1765 if test $ac_cv_prog_gcc = yes; then
1771 ac_test_CFLAGS
="${CFLAGS+set}"
1772 ac_save_CFLAGS
="$CFLAGS"
1774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether ${CC-cc} accepts -g" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 echo 'void f(){}' > conftest.c
1780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1790 if test "$ac_test_CFLAGS" = set; then
1791 CFLAGS
="$ac_save_CFLAGS"
1792 elif test $ac_cv_prog_cc_g = yes; then
1793 if test "$GCC" = yes; then
1799 if test "$GCC" = yes; then
1807 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ln -s works" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1813 if ln -s X conftestdata
2>/dev
/null
1816 ac_cv_prog_LN_S
="ln -s"
1821 LN_S
="$ac_cv_prog_LN_S"
1822 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1823 echo "$ac_t""yes" 1>&6
1825 echo "$ac_t""no" 1>&6
1828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1829 echo "configure:1830: checking how to run the C preprocessor" >&5
1830 # On Suns, sometimes $CPP names a directory.
1831 if test -n "$CPP" && test -d "$CPP"; then
1834 if test -z "$CPP"; then
1835 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 # This must be in double quotes, not single quotes, because CPP may get
1839 # substituted into the Makefile and "${CC-cc}" will confuse make.
1841 # On the NeXT, cc -E runs the code through the compiler's parser,
1842 # not just through cpp.
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1849 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure
:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1859 CPP
="${CC-cc} -E -traditional-cpp"
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure
:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.
$ac_ext >&5
1876 CPP
="${CC-cc} -nologo -E"
1877 cat > conftest.
$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1883 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1884 { (eval echo configure
:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1885 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1886 if test -z "$ac_err"; then
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1900 ac_cv_prog_CPP
="$CPP"
1902 CPP
="$ac_cv_prog_CPP"
1904 ac_cv_prog_CPP
="$CPP"
1906 echo "$ac_t""$CPP" 1>&6
1908 if test $ac_cv_prog_gcc = yes; then
1909 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether ${CC-cc} needs -traditional" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 ac_pattern
="Autoconf.*'x'"
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1922 egrep "$ac_pattern" >/dev
/null
2>&1; then
1924 ac_cv_prog_gcc_traditional
=yes
1927 ac_cv_prog_gcc_traditional
=no
1932 if test $ac_cv_prog_gcc_traditional = no
; then
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "$ac_pattern" >/dev
/null
2>&1; then
1942 ac_cv_prog_gcc_traditional
=yes
1949 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1950 if test $ac_cv_prog_gcc_traditional = yes; then
1951 CC
="$CC -traditional"
1958 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1959 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1962 _bindir
=`eval echo $bindir`
1963 _bindir
=`eval echo $_bindir`
1965 _libdir
=`eval echo $libdir`
1966 _libdir
=`eval echo $_libdir`
1967 lib_search_path
="-L$_libdir"
1969 inc_search_path
=`eval echo $includedir`
1970 inc_search_path
="-I`eval echo $inc_search_path`"
1975 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1976 echo "configure:1977: checking for RedHat system" >&5
1977 wm_check_flag
='no :)'
1979 if test -f /etc
/redhat-release
; then
1983 echo "$ac_t""$wm_check_flag" 1>&6
1987 if test "$wm_check_flag" = yes; then
1989 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1992 # Check old wmaker from RedHat
1994 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1995 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1996 echo "configure:1997: checking for multiple installed wmaker versions" >&5
1997 if test -f /usr
/X11R
6/bin
/wmaker
; then
1998 echo "$ac_t""uh oh" 1>&6
2003 echo "$ac_t""no apparent problems" 1>&6
2007 # Check for infamous en_RN bug
2008 # Wont work because autoconf will change LANG in the beginning of the
2012 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
2014 #if test "x$LANG" = xen_RN; then
2015 #AC_MSG_RESULT(uh oh)
2016 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
2017 #locale. Please unset it or you will have mysterious problems when
2018 #using various software packages.])
2021 #AC_MSG_RESULT(no problem)
2024 # If binary installation path is /usr/local/bin, check if it's in PATH
2026 if test "$_bindir" = "/usr/local/bin"; then
2027 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
2028 echo "configure:2029: checking if /usr/local/bin is in the search PATH" >&5
2030 rh_missing_usr_local_bin
=yes
2034 if test "x$i" = "x/usr/local/bin"; then
2036 rh_missing_usr_local_bin
=no
2041 if test "$wm_check_flag" = no
; then
2042 echo "$ac_t""uh oh" 1>&6
2045 echo "$ac_t""no problem" 1>&6
2049 # If library installation path is /usr/local/lib,
2050 # check if it's in /etc/ld.so.conf
2052 if test "$_libdir" = "/usr/local/lib"; then
2054 rh_missing_usr_local_lib
=no
2055 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
2056 echo "configure:2057: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
2057 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
2058 test "$?" -eq 0 && wm_check_flag
=no
2059 if test "$wm_check_flag" = no
; then
2060 echo "$ac_t""uh oh" 1>&6
2061 rh_missing_usr_local_lib
=yes
2064 echo "$ac_t""no problem" 1>&6
2068 # Check for symbolic links
2070 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
2071 echo "configure:2072: checking for /usr/include/X11 symbolic link" >&5
2072 rh_missing_usr_include_x11
=no
2073 if test -d "/usr/include/X11"; then
2074 echo "$ac_t""found" 1>&6
2076 echo "$ac_t""uh oh" 1>&6
2077 rh_missing_usr_include_x11
=yes
2082 # Check for /lib/cpp
2084 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
2085 echo "configure:2086: checking for /lib/cpp" >&5
2086 rh_missing_lib_cpp
=no
2087 if test -f "/lib/cpp"; then
2088 echo "$ac_t""found" 1>&6
2090 echo "$ac_t""uh oh" 1>&6
2091 rh_missing_lib_cpp
=yes
2100 # Check whether --with-libs-from or --without-libs-from was given.
2101 if test "${with_libs_from+set}" = set; then
2102 withval
="$with_libs_from"
2103 lib_search_path
="$withval $lib_search_path"
2107 # Check whether --with-incs-from or --without-incs-from was given.
2108 if test "${with_incs_from+set}" = set; then
2109 withval
="$with_incs_from"
2110 inc_search_path
="$withval $inc_search_path"
2116 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2117 echo "configure:2118: checking for vprintf" >&5
2118 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char vprintf(); below. */
2127 /* Override any gcc2 internal prototype to avoid an error. */
2128 /* We use char because int might match the return type of a gcc2
2129 builtin and then its argument prototype would still apply. */
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2145 if { (eval echo configure
:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2147 eval "ac_cv_func_vprintf=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2152 eval "ac_cv_func_vprintf=no"
2157 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 cat >> confdefs.h
<<\EOF
2160 #define HAVE_VPRINTF 1
2164 echo "$ac_t""no" 1>&6
2167 if test "$ac_cv_func_vprintf" != yes; then
2168 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2169 echo "configure:2170: checking for _doprnt" >&5
2170 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* System header to define __stub macros and hopefully few prototypes,
2177 which can conflict with char _doprnt(); below. */
2179 /* Override any gcc2 internal prototype to avoid an error. */
2180 /* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */
2186 /* The GNU C library defines this for functions which it implements
2187 to always fail with ENOSYS. Some functions are actually named
2188 something starting with __ and the normal name is an alias. */
2189 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2197 if { (eval echo configure
:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2199 eval "ac_cv_func__doprnt=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.
$ac_ext >&5
2204 eval "ac_cv_func__doprnt=no"
2209 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 cat >> confdefs.h
<<\EOF
2212 #define HAVE_DOPRNT 1
2216 echo "$ac_t""no" 1>&6
2221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2222 # for constant arguments. Useless!
2223 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2224 echo "configure:2225: checking for working alloca.h" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 char *p = alloca(2 * sizeof(int));
2236 if { (eval echo configure
:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2238 ac_cv_header_alloca_h
=yes
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 ac_cv_header_alloca_h
=no
2248 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2249 if test $ac_cv_header_alloca_h = yes; then
2250 cat >> confdefs.h
<<\EOF
2251 #define HAVE_ALLOCA_H 1
2256 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2257 echo "configure:2258: checking for alloca" >&5
2258 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2266 # define alloca __builtin_alloca
2269 # include <malloc.h>
2270 # define alloca _alloca
2273 # include <alloca.h>
2278 # ifndef alloca /* predefined by HP cc +Olibcalls */
2287 char *p = (char *) alloca(1);
2290 if { (eval echo configure
:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2292 ac_cv_func_alloca_works
=yes
2294 echo "configure: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2297 ac_cv_func_alloca_works
=no
2302 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2303 if test $ac_cv_func_alloca_works = yes; then
2304 cat >> confdefs.h
<<\EOF
2305 #define HAVE_ALLOCA 1
2310 if test $ac_cv_func_alloca_works = no
; then
2311 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2312 # that cause trouble. Some versions do not even contain alloca or
2313 # contain a buggy version. If you still want to use their alloca,
2314 # use ar to extract alloca.o from them instead of compiling alloca.c.
2315 ALLOCA
=alloca.
${ac_objext}
2316 cat >> confdefs.h
<<\EOF
2321 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether alloca needs Cray hooks" >&5
2323 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 cat > conftest.
$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 #if defined(CRAY) && ! defined(CRAY2)
2336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2337 egrep "webecray" >/dev
/null
2>&1; then
2348 echo "$ac_t""$ac_cv_os_cray" 1>&6
2349 if test $ac_cv_os_cray = yes; then
2350 for ac_func
in _getb67 GETB67 getb67
; do
2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_func" >&5
2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $ac_func(); below. */
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2369 /* The GNU C library defines this for functions which it implements
2370 to always fail with ENOSYS. Some functions are actually named
2371 something starting with __ and the normal name is an alias. */
2372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2380 if { (eval echo configure
:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2382 eval "ac_cv_func_$ac_func=yes"
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2387 eval "ac_cv_func_$ac_func=no"
2392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 cat >> confdefs.h
<<EOF
2395 #define CRAY_STACKSEG_END $ac_func
2400 echo "$ac_t""no" 1>&6
2406 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2407 echo "configure:2408: checking stack direction for C alloca" >&5
2408 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 if test "$cross_compiling" = yes; then
2412 ac_cv_c_stack_direction
=0
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 find_stack_direction ()
2419 static char *addr = 0;
2424 return find_stack_direction ();
2427 return (&dummy > addr) ? 1 : -1;
2431 exit (find_stack_direction() < 0);
2434 if { (eval echo configure
:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2436 ac_cv_c_stack_direction
=1
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 ac_cv_c_stack_direction
=-1
2448 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2449 cat >> confdefs.h
<<EOF
2450 #define STACK_DIRECTION $ac_cv_c_stack_direction
2455 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 eval "ac_cv_func_$ac_func=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 eval "ac_cv_func_$ac_func=no"
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h
<<EOF
2502 #define $ac_tr_func 1
2506 echo "$ac_t""no" 1>&6
2515 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2516 echo "configure:2517: checking for dlopen" >&5
2517 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.
$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* System header to define __stub macros and hopefully few prototypes,
2524 which can conflict with char dlopen(); below. */
2526 /* Override any gcc2 internal prototype to avoid an error. */
2527 /* We use char because int might match the return type of a gcc2
2528 builtin and then its argument prototype would still apply. */
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2544 if { (eval echo configure
:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2546 eval "ac_cv_func_dlopen=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 eval "ac_cv_func_dlopen=no"
2556 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2560 echo "$ac_t""no" 1>&6
2561 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2562 echo "configure:2563: checking for dlopen in -ldl" >&5
2563 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 ac_save_LIBS
="$LIBS"
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 /* We use char because int might match the return type of a gcc2
2574 builtin and then its argument prototype would still apply. */
2581 if { (eval echo configure
:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2583 eval "ac_cv_lib_$ac_lib_var=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.
$ac_ext >&5
2588 eval "ac_cv_lib_$ac_lib_var=no"
2591 LIBS
="$ac_save_LIBS"
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 DLLIBS
="-ldl" HAVEDL
="yes"
2598 echo "$ac_t""no" 1>&6
2605 if test "x$HAVEDL" = xyes
; then
2606 for ac_hdr
in dlfcn.h
2608 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure
:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2624 eval "ac_cv_header_$ac_safe=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2630 eval "ac_cv_header_$ac_safe=no"
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h
<<EOF
2638 #define $ac_tr_hdr 1
2642 echo "$ac_t""no" 1>&6
2650 if test "x$CPP_PATH" = x
; then
2651 # Extract the first word of "cpp", so it can be a program name with args.
2652 set dummy cpp
; ac_word
=$2
2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_word" >&5
2655 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2660 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2663 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2666 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2667 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2668 for ac_dir
in $ac_dummy; do
2669 test -z "$ac_dir" && ac_dir
=.
2670 if test -f $ac_dir/$ac_word; then
2671 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2676 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2680 CPP_PATH
="$ac_cv_path_CPP_PATH"
2681 if test -n "$CPP_PATH"; then
2682 echo "$ac_t""$CPP_PATH" 1>&6
2684 echo "$ac_t""no" 1>&6
2689 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2690 if test "$GCC" = "yes"; then
2691 CPP_PATH
="gcc -E -x c"
2693 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2694 CPP_PATH
="$CPP_PATH -B"
2696 echo "cpp, the C preprocessor was not found in your system."
2697 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2702 cat >> confdefs.h
<<EOF
2703 #define CPP_PATH "$CPP_PATH"
2709 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2710 echo "configure:2711: checking for sys/wait.h that is POSIX.1 compatible" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.
$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 #include <sys/types.h>
2718 #include <sys/wait.h>
2720 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2723 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2728 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2731 if { (eval echo configure
:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733 ac_cv_header_sys_wait_h
=yes
2735 echo "configure: failed program was:" >&5
2736 cat conftest.
$ac_ext >&5
2738 ac_cv_header_sys_wait_h
=no
2743 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2744 if test $ac_cv_header_sys_wait_h = yes; then
2745 cat >> confdefs.h
<<\EOF
2746 #define HAVE_SYS_WAIT_H 1
2751 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether time.h and sys/time.h may both be included" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <sys/types.h>
2760 #include <sys/time.h>
2766 if { (eval echo configure
:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2768 ac_cv_header_time
=yes
2770 echo "configure: failed program was:" >&5
2771 cat conftest.
$ac_ext >&5
2773 ac_cv_header_time
=no
2778 echo "$ac_t""$ac_cv_header_time" 1>&6
2779 if test $ac_cv_header_time = yes; then
2780 cat >> confdefs.h
<<\EOF
2781 #define TIME_WITH_SYS_TIME 1
2786 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2787 libintl.h sys
/select.h poll.h
2789 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.
$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2800 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure
:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 eval "ac_cv_header_$ac_safe=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2811 eval "ac_cv_header_$ac_safe=no"
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h
<<EOF
2819 #define $ac_tr_hdr 1
2823 echo "$ac_t""no" 1>&6
2830 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2831 echo "configure:2832: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2832 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #include <sys/types.h>
2840 /* NetBSD declares sys_siglist in unistd.h. */
2841 #ifdef HAVE_UNISTD_H
2845 char *msg = *(sys_siglist + 1);
2848 if { (eval echo configure
:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2850 ac_cv_decl_sys_siglist
=yes
2852 echo "configure: failed program was:" >&5
2853 cat conftest.
$ac_ext >&5
2855 ac_cv_decl_sys_siglist
=no
2860 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2861 if test $ac_cv_decl_sys_siglist = yes; then
2862 cat >> confdefs.h
<<\EOF
2863 #define SYS_SIGLIST_DECLARED 1
2868 echo $ac_n "checking for working const""... $ac_c" 1>&6
2869 echo "configure:2870: checking for working const" >&5
2870 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2879 /* Ultrix mips cc rejects this. */
2880 typedef int charset[2]; const charset x;
2881 /* SunOS 4.1.1 cc rejects this. */
2882 char const *const *ccp;
2884 /* NEC SVR4.0.2 mips cc rejects this. */
2885 struct point {int x, y;};
2886 static struct point const zero = {0,0};
2887 /* AIX XL C 1.02.0.0 rejects this.
2888 It does not let you subtract one const X* pointer from another in an arm
2889 of an if-expression whose if-part is not a constant expression */
2890 const char *g = "string";
2891 ccp = &g + (g ? g-g : 0);
2892 /* HPUX 7.0 cc rejects these. */
2895 ccp = (char const *const *) p;
2896 { /* SCO 3.2v4 cc rejects this. */
2898 char const *s = 0 ? (char *) 0 : (char const *) 0;
2902 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2904 const int *foo = &x[0];
2907 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2908 typedef const int *iptr;
2912 { /* AIX XL C 1.02.0.0 rejects this saying
2913 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2914 struct s { int j; const int *ap[3]; };
2915 struct s *b; b->j = 5;
2917 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2923 if { (eval echo configure
:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2935 echo "$ac_t""$ac_cv_c_const" 1>&6
2936 if test $ac_cv_c_const = no
; then
2937 cat >> confdefs.h
<<\EOF
2945 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2946 echo "configure:2947: checking return type of signal handlers" >&5
2947 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2959 extern "C" void (*signal (int, void (*)(int)))(int);
2961 void (*signal ()) ();
2968 if { (eval echo configure
:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2970 ac_cv_type_signal
=void
2972 echo "configure: failed program was:" >&5
2973 cat conftest.
$ac_ext >&5
2975 ac_cv_type_signal
=int
2980 echo "$ac_t""$ac_cv_type_signal" 1>&6
2981 cat >> confdefs.h
<<EOF
2982 #define RETSIGTYPE $ac_cv_type_signal
2995 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2996 echo "configure:2997: checking for gettext" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.
$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004 which can conflict with char gettext(); below. */
3006 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3013 /* The GNU C library defines this for functions which it implements
3014 to always fail with ENOSYS. Some functions are actually named
3015 something starting with __ and the normal name is an alias. */
3016 #if defined (__stub_gettext) || defined (__stub___gettext)
3024 if { (eval echo configure
:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3026 eval "ac_cv_func_gettext=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.
$ac_ext >&5
3031 eval "ac_cv_func_gettext=no"
3036 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3040 echo "$ac_t""no" 1>&6
3041 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3042 echo "configure:3043: checking for gettext in -lintl" >&5
3043 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 ac_save_LIBS
="$LIBS"
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 /* Override any gcc2 internal prototype to avoid an error. */
3053 /* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3061 if { (eval echo configure
:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3068 eval "ac_cv_lib_$ac_lib_var=no"
3071 LIBS
="$ac_save_LIBS"
3074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
3078 echo "$ac_t""no" 1>&6
3085 # Extract the first word of "xgettext", so it can be a program name with args.
3086 set dummy xgettext
; ac_word
=$2
3087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_word" >&5
3089 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 if test -n "$XGETTEXT"; then
3093 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
3095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3097 for ac_dir
in $ac_dummy; do
3098 test -z "$ac_dir" && ac_dir
=.
3099 if test -f $ac_dir/$ac_word; then
3100 ac_cv_prog_XGETTEXT
="xgettext"
3107 XGETTEXT
="$ac_cv_prog_XGETTEXT"
3108 if test -n "$XGETTEXT"; then
3109 echo "$ac_t""$XGETTEXT" 1>&6
3111 echo "$ac_t""no" 1>&6
3115 if test "$XGETTEXT" != ""; then
3116 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
3117 echo "xgettext isn't GNU version"
3122 if test "$LINGUAS" != ""; then
3123 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3124 cat >> confdefs.h
<<\EOF
3129 # if test "$LINGUAS" = ""; then
3130 # ling=` (cd src/po; /bin/ls *.po) `
3131 # for l in $ling; do
3132 # lcode=`basename $l .po`
3133 # LINGUAS="$LINGUAS $lcode"
3136 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3140 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3151 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"
3152 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it"
3154 for lang
in $LINGUAS; do
3156 for l
in $supported_locales; do
3157 if test "$l" = "$lang"; then
3162 if test "$ok" = 1; then
3163 MOFILES
="$MOFILES $lang.mo"
3165 echo "Locale $lang is not supported."
3168 for l
in $supported_wprefs_locales; do
3169 if test "$l" = "$lang"; then
3174 if test "$ok" = 1; then
3175 WPMOFILES
="$WPMOFILES $lang.mo"
3181 # Check whether --enable-kanji or --disable-kanji was given.
3182 if test "${enable_kanji+set}" = set; then
3183 enableval
="$enable_kanji"
3190 if test "$enable_kanji" = yes; then
3193 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3194 echo "configure:3195: checking for setlocale in -lxpg4" >&5
3195 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 ac_save_LIBS
="$LIBS"
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3213 if { (eval echo configure
:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.
$ac_ext >&5
3220 eval "ac_cv_lib_$ac_lib_var=no"
3223 LIBS
="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3230 echo "$ac_t""no" 1>&6
3236 cat >> confdefs.h
<<\EOF
3244 # Check whether --with-nlsdir or --without-nlsdir was given.
3245 if test "${with_nlsdir+set}" = set; then
3246 withval
="$with_nlsdir"
3252 if test "x$NLSDIR" = "x"; then
3253 if test "x$with_nlsdir" != "x"; then
3256 NLSDIR
='$(prefix)/lib/locale'
3272 # Check whether --enable-gnome or --disable-gnome was given.
3273 if test "${enable_gnome+set}" = set; then
3274 enableval
="$enable_gnome"
3275 if test x
$enableval = xyes
; then
3276 cat >> confdefs.h
<<\EOF
3277 #define GNOME_STUFF 1
3286 # Check whether --enable-kde or --disable-kde was given.
3287 if test "${enable_kde+set}" = set; then
3288 enableval
="$enable_kde"
3289 if test x
$enableval = xyes
; then
3290 cat >> confdefs.h
<<\EOF
3300 # Check whether --enable-openlook or --disable-openlook was given.
3301 if test "${enable_openlook+set}" = set; then
3302 enableval
="$enable_openlook"
3303 if test x
$enableval = xyes
; then
3304 cat >> confdefs.h
<<\EOF
3305 #define OLWM_HINTS 1
3314 # Check whether --enable-lite or --disable-lite was given.
3315 if test "${enable_lite+set}" = set; then
3316 enableval
="$enable_lite"
3317 if test x
$enableval = xyes
; then
3319 cat >> confdefs.h
<<\EOF
3331 # If we find X, set shell vars x_includes and x_libraries to the
3332 # paths, otherwise set no_x=yes.
3333 # Uses ac_ vars as temps to allow command line to override cache and checks.
3334 # --without-x overrides everything else, but does not touch the cache.
3335 echo $ac_n "checking for X""... $ac_c" 1>&6
3336 echo "configure:3337: checking for X" >&5
3338 # Check whether --with-x or --without-x was given.
3339 if test "${with_x+set}" = set; then
3344 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3345 if test "x$with_x" = xno
; then
3346 # The user explicitly disabled X.
3349 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3350 # Both variables are already set.
3353 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 # One or both of the vars are not set, and there is no cached value.
3357 ac_x_includes
=NO ac_x_libraries
=NO
3359 if mkdir conftestdir
; then
3361 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3362 cat > Imakefile
<<'EOF'
3364 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3366 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3368 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3369 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3370 for ac_extension
in a so sl
; do
3371 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3372 test -f $ac_im_libdir/libX11.
$ac_extension; then
3373 ac_im_usrlibdir
=$ac_im_libdir; break
3376 # Screen out bogus values from the imake configuration. They are
3377 # bogus both because they are the default anyway, and because
3378 # using them would break gcc on systems where it needs fixed includes.
3379 case "$ac_im_incroot" in
3381 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3383 case "$ac_im_usrlibdir" in
3385 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3392 if test "$ac_x_includes" = NO
; then
3393 # Guess where to find include files, by looking for this one X11 .h file.
3394 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3396 # First, try using that file with no special directory specified.
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <$x_direct_test_include>
3402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure
:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 # We can compile using X headers with no special include directory.
3411 echo "configure: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3414 # Look for the header file in a standard set of common directories.
3415 # Check X11 before X11Rn because it is often a symlink to the current release.
3418 /usr
/X11R
6/include \
3419 /usr
/X11R
5/include \
3420 /usr
/X11R
4/include \
3423 /usr
/include
/X11R6 \
3424 /usr
/include
/X11R5 \
3425 /usr
/include
/X11R4 \
3427 /usr
/local
/X11
/include \
3428 /usr
/local
/X11R
6/include \
3429 /usr
/local
/X11R
5/include \
3430 /usr
/local
/X11R
4/include \
3432 /usr
/local
/include
/X11 \
3433 /usr
/local
/include
/X11R6 \
3434 /usr
/local
/include
/X11R5 \
3435 /usr
/local
/include
/X11R4 \
3439 /usr
/XFree86
/include
/X11 \
3442 /usr
/local
/include \
3443 /usr
/unsupported
/include \
3444 /usr
/athena
/include \
3445 /usr
/local
/x11r
5/include \
3446 /usr
/lpp
/Xamples
/include \
3448 /usr
/openwin
/include \
3449 /usr
/openwin
/share
/include \
3452 if test -r "$ac_dir/$x_direct_test_include"; then
3453 ac_x_includes
=$ac_dir
3459 fi # $ac_x_includes = NO
3461 if test "$ac_x_libraries" = NO
; then
3462 # Check for the libraries.
3464 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3465 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3467 # See if we find them without any special options.
3468 # Don't add to $LIBS permanently.
3469 ac_save_LIBS
="$LIBS"
3470 LIBS
="-l$x_direct_test_library $LIBS"
3471 cat > conftest.
$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3476 ${x_direct_test_function}()
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3481 LIBS
="$ac_save_LIBS"
3482 # We can link X programs with no special library path.
3485 echo "configure: failed program was:" >&5
3486 cat conftest.
$ac_ext >&5
3488 LIBS
="$ac_save_LIBS"
3489 # First see if replacing the include by lib works.
3490 # Check X11 before X11Rn because it is often a symlink to the current release.
3491 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3502 /usr
/local
/X11
/lib \
3503 /usr
/local
/X11R
6/lib \
3504 /usr
/local
/X11R
5/lib \
3505 /usr
/local
/X11R
4/lib \
3507 /usr
/local
/lib
/X11 \
3508 /usr
/local
/lib
/X11R6 \
3509 /usr
/local
/lib
/X11R5 \
3510 /usr
/local
/lib
/X11R4 \
3514 /usr
/XFree86
/lib
/X11 \
3518 /usr
/unsupported
/lib \
3520 /usr
/local
/x11r
5/lib \
3521 /usr
/lpp
/Xamples
/lib \
3525 /usr
/openwin
/share
/lib \
3528 for ac_extension
in a so sl
; do
3529 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3530 ac_x_libraries
=$ac_dir
3537 fi # $ac_x_libraries = NO
3539 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3540 # Didn't find X anywhere. Cache the known absence of X.
3541 ac_cv_have_x
="have_x=no"
3543 # Record where we found X for the cache.
3544 ac_cv_have_x
="have_x=yes \
3545 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3549 eval "$ac_cv_have_x"
3552 if test "$have_x" != yes; then
3553 echo "$ac_t""$have_x" 1>&6
3556 # If each of the values was on the command line, it overrides each guess.
3557 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3558 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3559 # Update the cache value to reflect the command line values.
3560 ac_cv_have_x
="have_x=yes \
3561 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3562 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3565 if test "$no_x" = yes; then
3566 # Not all programs may use this symbol, but it does not hurt to define it.
3567 cat >> confdefs.h
<<\EOF
3568 #define X_DISPLAY_MISSING 1
3571 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3573 if test -n "$x_includes"; then
3574 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3577 # It would also be nice to do this for all -L options, not just this one.
3578 if test -n "$x_libraries"; then
3579 X_LIBS
="$X_LIBS -L$x_libraries"
3580 # For Solaris; some versions of Sun CC require a space after -R and
3581 # others require no space. Words are not sufficient . . . .
3582 case "`(uname -sr) 2>/dev/null`" in
3584 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3585 echo "configure:3586: checking whether -R must be followed by a space" >&5
3586 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3595 if { (eval echo configure
:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3599 echo "configure: failed program was:" >&5
3600 cat conftest.
$ac_ext >&5
3605 if test $ac_R_nospace = yes; then
3606 echo "$ac_t""no" 1>&6
3607 X_LIBS
="$X_LIBS -R$x_libraries"
3609 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3618 if { (eval echo configure
:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3628 if test $ac_R_space = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 X_LIBS
="$X_LIBS -R $x_libraries"
3632 echo "$ac_t""neither works" 1>&6
3635 LIBS
="$ac_xsave_LIBS"
3639 # Check for system-dependent libraries X programs must link with.
3640 # Do this before checking for the system-independent R6 libraries
3641 # (-lICE), since we may need -lsocket or whatever for X linking.
3643 if test "$ISC" = yes; then
3644 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3646 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3647 # libraries were built with DECnet support. And karl@cs.umb.edu says
3648 # the Alpha needs dnet_stub (dnet does not exist).
3649 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3650 echo "configure:3651: checking for dnet_ntoa in -ldnet" >&5
3651 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 ac_save_LIBS
="$LIBS"
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3669 if { (eval echo configure
:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3671 eval "ac_cv_lib_$ac_lib_var=yes"
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3676 eval "ac_cv_lib_$ac_lib_var=no"
3679 LIBS
="$ac_save_LIBS"
3682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3686 echo "$ac_t""no" 1>&6
3689 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3690 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3691 echo "configure:3692: checking for dnet_ntoa in -ldnet_stub" >&5
3692 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_save_LIBS
="$LIBS"
3697 LIBS
="-ldnet_stub $LIBS"
3698 cat > conftest.
$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3710 if { (eval echo configure
:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3712 eval "ac_cv_lib_$ac_lib_var=yes"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3717 eval "ac_cv_lib_$ac_lib_var=no"
3720 LIBS
="$ac_save_LIBS"
3723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3727 echo "$ac_t""no" 1>&6
3732 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3733 # to get the SysV transport functions.
3734 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3736 # The nsl library prevents programs from opening the X display
3737 # on Irix 5.2, according to dickey@clark.net.
3738 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3739 echo "configure:3740: checking for gethostbyname" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.
$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char gethostbyname(); below. */
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752 char gethostbyname();
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3767 if { (eval echo configure
:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3769 eval "ac_cv_func_gethostbyname=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.
$ac_ext >&5
3774 eval "ac_cv_func_gethostbyname=no"
3779 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3783 echo "$ac_t""no" 1>&6
3786 if test $ac_cv_func_gethostbyname = no
; then
3787 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3788 echo "configure:3789: checking for gethostbyname in -lnsl" >&5
3789 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 ac_save_LIBS
="$LIBS"
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3801 char gethostbyname();
3807 if { (eval echo configure
:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS
="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3824 echo "$ac_t""no" 1>&6
3829 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3830 # socket/setsockopt and other routines are undefined under SCO ODT
3831 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3832 # on later versions), says simon@lia.di.epfl.ch: it contains
3833 # gethostby* variants that don't use the nameserver (or something).
3834 # -lsocket must be given before -lnsl if both are needed.
3835 # We assume that if connect needs -lnsl, so does gethostbyname.
3836 echo $ac_n "checking for connect""... $ac_c" 1>&6
3837 echo "configure:3838: checking for connect" >&5
3838 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* System header to define __stub macros and hopefully few prototypes,
3845 which can conflict with char connect(); below. */
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3854 /* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857 #if defined (__stub_connect) || defined (__stub___connect)
3865 if { (eval echo configure
:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3867 eval "ac_cv_func_connect=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 eval "ac_cv_func_connect=no"
3877 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3878 echo "$ac_t""yes" 1>&6
3881 echo "$ac_t""no" 1>&6
3884 if test $ac_cv_func_connect = no
; then
3885 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3886 echo "configure:3887: checking for connect in -lsocket" >&5
3887 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 ac_save_LIBS
="$LIBS"
3892 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3893 cat > conftest.
$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3905 if { (eval echo configure
:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3907 eval "ac_cv_lib_$ac_lib_var=yes"
3909 echo "configure: failed program was:" >&5
3910 cat conftest.
$ac_ext >&5
3912 eval "ac_cv_lib_$ac_lib_var=no"
3915 LIBS
="$ac_save_LIBS"
3918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3922 echo "$ac_t""no" 1>&6
3927 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3928 echo $ac_n "checking for remove""... $ac_c" 1>&6
3929 echo "configure:3930: checking for remove" >&5
3930 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 cat > conftest.
$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3936 /* System header to define __stub macros and hopefully few prototypes,
3937 which can conflict with char remove(); below. */
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3946 /* The GNU C library defines this for functions which it implements
3947 to always fail with ENOSYS. Some functions are actually named
3948 something starting with __ and the normal name is an alias. */
3949 #if defined (__stub_remove) || defined (__stub___remove)
3957 if { (eval echo configure
:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3959 eval "ac_cv_func_remove=yes"
3961 echo "configure: failed program was:" >&5
3962 cat conftest.
$ac_ext >&5
3964 eval "ac_cv_func_remove=no"
3969 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3973 echo "$ac_t""no" 1>&6
3976 if test $ac_cv_func_remove = no
; then
3977 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3978 echo "configure:3979: checking for remove in -lposix" >&5
3979 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 ac_save_LIBS
="$LIBS"
3984 LIBS
="-lposix $LIBS"
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3997 if { (eval echo configure
:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3999 eval "ac_cv_lib_$ac_lib_var=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.
$ac_ext >&5
4004 eval "ac_cv_lib_$ac_lib_var=no"
4007 LIBS
="$ac_save_LIBS"
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4014 echo "$ac_t""no" 1>&6
4019 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4020 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4021 echo "configure:4022: checking for shmat" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.
$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char shmat(); below. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_shmat) || defined (__stub___shmat)
4049 if { (eval echo configure
:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4051 eval "ac_cv_func_shmat=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 eval "ac_cv_func_shmat=no"
4061 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4065 echo "$ac_t""no" 1>&6
4068 if test $ac_cv_func_shmat = no
; then
4069 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4070 echo "configure:4071: checking for shmat in -lipc" >&5
4071 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 ac_save_LIBS
="$LIBS"
4077 cat > conftest.
$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4089 if { (eval echo configure
:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4091 eval "ac_cv_lib_$ac_lib_var=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.
$ac_ext >&5
4096 eval "ac_cv_lib_$ac_lib_var=no"
4099 LIBS
="$ac_save_LIBS"
4102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4106 echo "$ac_t""no" 1>&6
4112 # Check for libraries that X11R6 Xt/Xaw programs need.
4113 ac_save_LDFLAGS
="$LDFLAGS"
4114 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4115 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4116 # check for ICE first), but we must link in the order -lSM -lICE or
4117 # we get undefined symbols. So assume we have SM if we have ICE.
4118 # These have to be linked with before -lX11, unlike the other
4119 # libraries we check for below, so use a different variable.
4120 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4121 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4122 echo "configure:4123: checking for IceConnectionNumber in -lICE" >&5
4123 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 ac_save_LIBS
="$LIBS"
4128 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char IceConnectionNumber();
4138 IceConnectionNumber()
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4143 eval "ac_cv_lib_$ac_lib_var=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 eval "ac_cv_lib_$ac_lib_var=no"
4151 LIBS
="$ac_save_LIBS"
4154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4158 echo "$ac_t""no" 1>&6
4161 LDFLAGS
="$ac_save_LDFLAGS"
4170 XLIBS
="-lX11 $X_EXTRA_LIBS"
4173 lib_search_path
="$lib_search_path $XLFLAGS"
4174 inc_search_path
="$inc_search_path $XCFLAGS"
4178 # Check whether --enable-locale or --disable-locale was given.
4179 if test "${enable_locale+set}" = set; then
4180 enableval
="$enable_locale"
4185 if test "$use_locale" = yes; then
4186 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4187 echo "configure:4188: checking for _Xsetlocale in -lX11" >&5
4188 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS
="$LIBS"
4193 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4206 if { (eval echo configure
:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.
$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS
="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 cat >> confdefs.h
<<\EOF
4226 echo "$ac_t""no" 1>&6
4232 # Check whether --enable-modelock or --disable-modelock was given.
4233 if test "${enable_modelock+set}" = set; then
4234 enableval
="$enable_modelock"
4235 cat >> confdefs.h
<<\EOF
4236 #define XKB_MODELOCK 1
4245 # Check whether --enable-shape or --disable-shape was given.
4246 if test "${enable_shape+set}" = set; then
4247 enableval
="$enable_shape"
4256 if test "$shape" = yes; then
4257 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4258 echo "configure:4259: checking for XShapeSelectInput in -lXext" >&5
4259 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS
="$LIBS"
4264 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char XShapeSelectInput();
4277 if { (eval echo configure
:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS
="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 XLIBS
="-lXext $XLIBS"
4294 cat >> confdefs.h
<<\EOF
4299 echo "$ac_t""no" 1>&6
4307 # Check whether --enable-shm or --disable-shm was given.
4308 if test "${enable_shm+set}" = set; then
4309 enableval
="$enable_shm"
4316 if test "$shm" = yes; then
4317 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4318 echo "configure:4319: checking for XShmAttach in -lXext" >&5
4319 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 ac_save_LIBS
="$LIBS"
4324 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_lib_$ac_lib_var=no"
4347 LIBS
="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4354 echo "$ac_t""no" 1>&6
4359 if test "$ok" = yes; then
4360 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4361 echo "configure:4362: checking for shmget" >&5
4362 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* System header to define __stub macros and hopefully few prototypes,
4369 which can conflict with char shmget(); below. */
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4378 /* The GNU C library defines this for functions which it implements
4379 to always fail with ENOSYS. Some functions are actually named
4380 something starting with __ and the normal name is an alias. */
4381 #if defined (__stub_shmget) || defined (__stub___shmget)
4389 if { (eval echo configure
:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4391 eval "ac_cv_func_shmget=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4396 eval "ac_cv_func_shmget=no"
4401 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4405 echo "$ac_t""no" 1>&6
4411 if test "$ok" = yes; then
4412 if test "$added_xext" = no
; then
4413 XLIBS
="-lXext $XLIBS"
4415 cat >> confdefs.h
<<\EOF
4435 LDFLAGS_old
="$LDFLAGS"
4436 LDFLAGS
="$LDFLAGS $lib_search_path"
4437 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4438 echo "configure:4439: checking for PLGetString in -lPropList" >&5
4439 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 ac_save_LIBS
="$LIBS"
4444 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4445 cat > conftest.
$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4457 if { (eval echo configure
:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4459 eval "ac_cv_lib_$ac_lib_var=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_lib_$ac_lib_var=no"
4467 LIBS
="$ac_save_LIBS"
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4474 echo "$ac_t""no" 1>&6
4478 LDFLAGS
="$LDFLAGS_old"
4480 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4482 CPPFLAGS_old
="$CPPFLAGS"
4483 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4484 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4485 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4486 echo "configure:4487: checking for proplist.h" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <proplist.h>
4495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4496 { (eval echo configure
:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4498 if test -z "$ac_err"; then
4500 eval "ac_cv_header_$ac_safe=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.
$ac_ext >&5
4506 eval "ac_cv_header_$ac_safe=no"
4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4514 echo "$ac_t""no" 1>&6
4517 CPPFLAGS
="$CPPFLAGS_old"
4519 if test "x$ac_cv_header_proplist_h" = xyes
; then
4524 if test "x$LIBPL" = "x"; then
4526 echo "ERROR!!! libPropList is not installed, or could not be found."
4527 echo " Window Maker requires libPropList to build."
4528 echo " Please read INSTALL to find where you can find libPropList,"
4529 echo " and install it first."
4530 echo " If you already have it installed, try using the"
4531 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4532 echo " --with-libs-from flag to tell configure where the library"
4533 echo " is installed and"
4535 echo " --with-incs-from flag to tell configure where the header"
4536 echo " files are installed"
4550 # Check whether --enable-xpm or --disable-xpm was given.
4551 if test "${enable_xpm+set}" = set; then
4552 enableval
="$enable_xpm"
4559 if test "$xpm" = yes; then
4561 LDFLAGS_old
="$LDFLAGS"
4562 LDFLAGS
="$LDFLAGS $lib_search_path"
4563 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4564 echo "configure:4565: checking for XpmCreatePixmapFromData in -lXpm" >&5
4565 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 ac_save_LIBS
="$LIBS"
4570 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4571 cat > conftest.
$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */
4577 char XpmCreatePixmapFromData();
4580 XpmCreatePixmapFromData()
4583 if { (eval echo configure
:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4585 eval "ac_cv_lib_$ac_lib_var=yes"
4587 echo "configure: failed program was:" >&5
4588 cat conftest.
$ac_ext >&5
4590 eval "ac_cv_lib_$ac_lib_var=no"
4593 LIBS
="$ac_save_LIBS"
4596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4600 echo "$ac_t""no" 1>&6
4604 LDFLAGS
="$LDFLAGS_old"
4607 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4609 CPPFLAGS_old
="$CPPFLAGS"
4610 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4611 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4613 echo "configure:4614: checking for X11/xpm.h" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.
$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 #include <X11/xpm.h>
4622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure
:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4625 if test -z "$ac_err"; then
4627 eval "ac_cv_header_$ac_safe=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.
$ac_ext >&5
4633 eval "ac_cv_header_$ac_safe=no"
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4641 echo "$ac_t""no" 1>&6
4644 CPPFLAGS
="$CPPFLAGS_old"
4646 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4647 GFXLIBS
="$GFXLIBS -lXpm"
4649 cat >> confdefs.h
<<\EOF
4654 supported_gfx
="builtin-XPM"
4670 # Check whether --enable-png or --disable-png was given.
4671 if test "${enable_png+set}" = set; then
4672 enableval
="$enable_png"
4680 if test "$png" = yes ; then
4682 LDFLAGS_old
="$LDFLAGS"
4683 LDFLAGS
="$LDFLAGS $lib_search_path"
4684 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4685 echo "configure:4686: checking for png_get_valid in -lpng" >&5
4686 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 ac_save_LIBS
="$LIBS"
4691 LIBS
="-lpng -lz -lm $LIBS"
4692 cat > conftest.
$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4698 char png_get_valid();
4704 if { (eval echo configure
:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4706 eval "ac_cv_lib_$ac_lib_var=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.
$ac_ext >&5
4711 eval "ac_cv_lib_$ac_lib_var=no"
4714 LIBS
="$ac_save_LIBS"
4717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4721 echo "$ac_t""no" 1>&6
4725 LDFLAGS
="$LDFLAGS_old"
4728 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4730 CPPFLAGS_old
="$CPPFLAGS"
4731 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4732 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4734 echo "configure:4735: checking for png.h" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.
$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure
:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4762 echo "$ac_t""no" 1>&6
4765 CPPFLAGS
="$CPPFLAGS_old"
4767 if test "x$ac_cv_header_png_h" = xyes
; then
4768 GFXLIBS
="$GFXLIBS -lpng -lz"
4769 supported_gfx
="$supported_gfx PNG"
4770 cat >> confdefs.h
<<\EOF
4781 # Check whether --enable-jpeg or --disable-jpeg was given.
4782 if test "${enable_jpeg+set}" = set; then
4783 enableval
="$enable_jpeg"
4790 if test "$jpeg" = yes; then
4792 LDFLAGS_old
="$LDFLAGS"
4793 LDFLAGS
="$LDFLAGS $lib_search_path"
4794 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4795 echo "configure:4796: checking for jpeg_destroy_compress in -ljpeg" >&5
4796 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 ac_save_LIBS
="$LIBS"
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char jpeg_destroy_compress();
4811 jpeg_destroy_compress()
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 eval "ac_cv_lib_$ac_lib_var=no"
4824 LIBS
="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4831 echo "$ac_t""no" 1>&6
4835 LDFLAGS
="$LDFLAGS_old"
4838 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4843 CPPFLAGS_old
="$CPPFLAGS"
4844 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4845 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4847 echo "configure:4848: checking for jpeglib.h" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.
$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <jpeglib.h>
4856 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure
:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4859 if test -z "$ac_err"; then
4861 eval "ac_cv_header_$ac_safe=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4867 eval "ac_cv_header_$ac_safe=no"
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4875 echo "$ac_t""no" 1>&6
4878 CPPFLAGS
="$CPPFLAGS_old"
4880 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4881 GFXLIBS
="$GFXLIBS -ljpeg"
4882 supported_gfx
="$supported_gfx JPEG"
4883 cat >> confdefs.h
<<\EOF
4893 # Check whether --enable-gif or --disable-gif was given.
4894 if test "${enable_gif+set}" = set; then
4895 enableval
="$enable_gif"
4902 if test "$gif" = yes; then
4905 LDFLAGS_old
="$LDFLAGS"
4906 LDFLAGS
="$LDFLAGS $lib_search_path"
4907 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4908 echo "configure:4909: checking for DGifOpenFileName in -lungif" >&5
4909 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 ac_save_LIBS
="$LIBS"
4914 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4915 cat > conftest.
$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char DGifOpenFileName();
4927 if { (eval echo configure
:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4929 eval "ac_cv_lib_$ac_lib_var=yes"
4931 echo "configure: failed program was:" >&5
4932 cat conftest.
$ac_ext >&5
4934 eval "ac_cv_lib_$ac_lib_var=no"
4937 LIBS
="$ac_save_LIBS"
4940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4944 echo "$ac_t""no" 1>&6
4948 LDFLAGS
="$LDFLAGS_old"
4950 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4953 if test "x$my_libname" = x
; then
4955 LDFLAGS_old
="$LDFLAGS"
4956 LDFLAGS
="$LDFLAGS $lib_search_path"
4957 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4958 echo "configure:4959: checking for DGifOpenFileName in -lgif" >&5
4959 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 ac_save_LIBS
="$LIBS"
4964 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char DGifOpenFileName();
4977 if { (eval echo configure
:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS
="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4994 echo "$ac_t""no" 1>&6
4998 LDFLAGS
="$LDFLAGS_old"
5000 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
5005 if test "$my_libname" != x
; then
5007 CPPFLAGS_old
="$CPPFLAGS"
5008 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5009 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5010 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5011 echo "configure:5012: checking for gif_lib.h" >&5
5012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 #include <gif_lib.h>
5020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5021 { (eval echo configure
:5022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5022 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5023 if test -z "$ac_err"; then
5025 eval "ac_cv_header_$ac_safe=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.
$ac_ext >&5
5031 eval "ac_cv_header_$ac_safe=no"
5035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5039 echo "$ac_t""no" 1>&6
5042 CPPFLAGS
="$CPPFLAGS_old"
5044 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
5045 GFXLIBS
="$GFXLIBS $my_libname"
5046 supported_gfx
="$supported_gfx GIF"
5047 cat >> confdefs.h
<<\EOF
5057 # Check whether --enable-tiff or --disable-tiff was given.
5058 if test "${enable_tiff+set}" = set; then
5059 enableval
="$enable_tiff"
5067 # TIFF can optionally have JPEG and/or zlib support. Must find out
5068 # when they are supported so that correct library flags are passed during
5069 # detection and linkage
5072 # By default use xpm icons if tiff is not found.
5076 if test "$tif" = yes; then
5079 LDFLAGS_old
="$LDFLAGS"
5080 LDFLAGS
="$LDFLAGS $lib_search_path"
5081 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5082 echo "configure:5083: checking for TIFFGetVersion in -ltiff" >&5
5083 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 ac_save_LIBS
="$LIBS"
5088 LIBS
="-ltiff -lm $LIBS"
5089 cat > conftest.
$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 /* Override any gcc2 internal prototype to avoid an error. */
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5095 char TIFFGetVersion();
5101 if { (eval echo configure
:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5103 eval "ac_cv_lib_$ac_lib_var=yes"
5105 echo "configure: failed program was:" >&5
5106 cat conftest.
$ac_ext >&5
5108 eval "ac_cv_lib_$ac_lib_var=no"
5111 LIBS
="$ac_save_LIBS"
5114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5118 echo "$ac_t""no" 1>&6
5122 LDFLAGS
="$LDFLAGS_old"
5124 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5127 unset ac_cv_lib_tiff_TIFFGetVersion
5128 if test "x$my_libname" = x
; then
5130 LDFLAGS_old
="$LDFLAGS"
5131 LDFLAGS
="$LDFLAGS $lib_search_path"
5132 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5133 echo "configure:5134: checking for TIFFGetVersion in -ltiff" >&5
5134 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 ac_save_LIBS
="$LIBS"
5139 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
5140 cat > conftest.
$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5146 char TIFFGetVersion();
5152 if { (eval echo configure
:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.
$ac_ext >&5
5159 eval "ac_cv_lib_$ac_lib_var=no"
5162 LIBS
="$ac_save_LIBS"
5165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6
5169 echo "$ac_t""no" 1>&6
5173 LDFLAGS
="$LDFLAGS_old"
5175 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5176 my_libname
="-ltiff -lz"
5180 if test "x$my_libname" = x
; then
5182 LDFLAGS_old
="$LDFLAGS"
5183 LDFLAGS
="$LDFLAGS $lib_search_path"
5184 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5185 echo "configure:5186: checking for TIFFGetVersion in -ltiff34" >&5
5186 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS
="$LIBS"
5191 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5192 cat > conftest.
$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char TIFFGetVersion();
5204 if { (eval echo configure
:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.
$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS
="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5221 echo "$ac_t""no" 1>&6
5225 LDFLAGS
="$LDFLAGS_old"
5227 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5228 my_libname
="-ltiff34"
5233 if test "x$my_libname" != x
; then
5235 CPPFLAGS_old
="$CPPFLAGS"
5236 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5237 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5238 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5239 echo "configure:5240: checking for tiffio.h" >&5
5240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 cat > conftest.
$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5249 { (eval echo configure
:5250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5251 if test -z "$ac_err"; then
5253 eval "ac_cv_header_$ac_safe=yes"
5256 echo "configure: failed program was:" >&5
5257 cat conftest.
$ac_ext >&5
5259 eval "ac_cv_header_$ac_safe=no"
5263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5267 echo "$ac_t""no" 1>&6
5270 CPPFLAGS
="$CPPFLAGS_old"
5272 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5273 GFXLIBS
="$my_libname $GFXLIBS"
5275 supported_gfx
="$supported_gfx TIFF"
5276 cat >> confdefs.h
<<\EOF
5284 LIBRARY_SEARCH_PATH
="$lib_search_path"
5285 HEADER_SEARCH_PATH
="$inc_search_path"
5297 # Check whether --enable-debug or --disable-debug was given.
5298 if test "${enable_debug+set}" = set; then
5299 enableval
="$enable_debug"
5306 if test "$enable_debug" = yes; then
5308 # Efence makes things too slow. Add it by hand in the Makefiles
5309 # if it is really needed.
5310 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5316 # Check whether --enable-sound or --disable-sound was given.
5317 if test "${enable_sound+set}" = set; then
5318 enableval
="$enable_sound"
5324 if test "$sound" = yes; then
5325 cat >> confdefs.h
<<\EOF
5332 # AC_PREFIX_PROGRAM(wmaker)
5334 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5335 if test "${with_pixmapdir+set}" = set; then
5336 withval
="$with_pixmapdir"
5341 if test "x$with_pixmapdir" != "x"; then
5342 pixmapdir
=$with_pixmapdir
5344 pixmapdir
=`eval echo ${datadir}/pixmaps`
5347 cat >> confdefs.h
<<EOF
5348 #define PIXMAPDIR "$pixmapdir"
5352 pkgdatadir
=`eval echo $datadir`
5353 cat >> confdefs.h
<<EOF
5354 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5358 _sysconfdir
=`eval echo $sysconfdir`
5359 cat >> confdefs.h
<<EOF
5360 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5368 # Check whether --with-appspath or --without-appspath was given.
5369 if test "${with_appspath+set}" = set; then
5370 withval
="$with_appspath"
5375 if test "x$appspath" = "x"; then
5376 gnustepdir
='$(prefix)/GNUstep'
5378 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5379 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5380 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5383 with_appspath
=$gnustepdir/Apps
5386 wprefsdir
=$with_appspath/WPrefs.app
5392 # Check whether --enable-single-icon or --disable-single-icon was given.
5393 if test "${enable_single_icon+set}" = set; then
5394 enableval
="$enable_single_icon"
5395 if test "$enableval" = yes; then
5396 cat >> confdefs.h
<<\EOF
5397 #define REDUCE_APPICONS 1
5405 # Check whether --enable-usermenu or --disable-usermenu was given.
5406 if test "${enable_usermenu+set}" = set; then
5407 enableval
="$enable_usermenu"
5408 if test "$enableval" = yes; then
5409 cat >> confdefs.h
<<\EOF
5422 cat > confcache
<<\EOF
5423 # This file is a shell script that caches the results of configure
5424 # tests run on this system so they can be shared between configure
5425 # scripts and configure runs. It is not useful on other systems.
5426 # If it contains results you don't want to keep, you may remove or edit it.
5428 # By default, configure uses ./config.cache as the cache file,
5429 # creating it if it does not exist already. You can give configure
5430 # the --cache-file=FILE option to use a different cache file; that is
5431 # what configure does when it calls configure scripts in
5432 # subdirectories, so they share the cache.
5433 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5434 # config.status only pays attention to the cache file if you give it the
5435 # --recheck option to rerun configure.
5438 # The following way of writing the cache mishandles newlines in values,
5439 # but we know of no workaround that is simple, portable, and efficient.
5440 # So, don't put newlines in cache variables' values.
5441 # Ultrix sh set writes to stderr and can't be redirected directly,
5442 # and sets the high bit in the cache file unless we assign to the vars.
5444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5446 # `set' does not quote correctly, so add quotes (double-quote substitution
5447 # turns \\\\ into \\, and sed turns \\ into \).
5449 -e "s/'/'\\\\''/g" \
5450 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5453 # `set' quotes correctly as required by POSIX, so do not add quotes.
5454 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5457 if cmp -s $cache_file confcache
; then
5460 if test -w $cache_file; then
5461 echo "updating cache $cache_file"
5462 cat confcache
> $cache_file
5464 echo "not updating unwritable cache $cache_file"
5469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5471 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5472 # Let make expand exec_prefix.
5473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5475 # Any assignment to VPATH causes Sun make to only execute
5476 # the first set of double-colon rules, so remove it if not needed.
5477 # If there is a colon in the path, we need to keep it.
5478 if test "x$srcdir" = x.
; then
5479 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5482 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5484 DEFS
=-DHAVE_CONFIG_H
5486 # Without the "./", some shells look in PATH for config.status.
5487 : ${CONFIG_STATUS=./config.status}
5489 echo creating
$CONFIG_STATUS
5490 rm -f $CONFIG_STATUS
5491 cat > $CONFIG_STATUS <<EOF
5493 # Generated automatically by configure.
5494 # Run this file to recreate the current configuration.
5495 # This directory was configured as follows,
5496 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5498 # $0 $ac_configure_args
5500 # Compiler output produced by configure, useful for debugging
5501 # configure, is in ./config.log if it exists.
5503 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5506 case "\$ac_option" in
5507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5508 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5509 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5510 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5511 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5513 -help | --help | --hel | --he | --h)
5514 echo "\$ac_cs_usage"; exit 0 ;;
5515 *) echo "\$ac_cs_usage"; exit 1 ;;
5519 ac_given_srcdir=$srcdir
5520 ac_given_INSTALL="$INSTALL"
5522 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5523 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5524 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5525 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5526 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5527 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5528 WindowMaker/Themes/Makefile \
5529 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5530 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5532 cat >> $CONFIG_STATUS <<EOF
5534 # Protect against being on the right side of a sed subst in config.status.
5535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5540 s%@CFLAGS@%$CFLAGS%g
5541 s%@CPPFLAGS@%$CPPFLAGS%g
5542 s%@CXXFLAGS@%$CXXFLAGS%g
5543 s%@FFLAGS@%$FFLAGS%g
5545 s%@LDFLAGS@%$LDFLAGS%g
5547 s%@exec_prefix@%$exec_prefix%g
5548 s%@prefix@%$prefix%g
5549 s%@program_transform_name@%$program_transform_name%g
5550 s%@bindir@%$bindir%g
5551 s%@sbindir@%$sbindir%g
5552 s%@libexecdir@%$libexecdir%g
5553 s%@datadir@%$datadir%g
5554 s%@sysconfdir@%$sysconfdir%g
5555 s%@sharedstatedir@%$sharedstatedir%g
5556 s%@localstatedir@%$localstatedir%g
5557 s%@libdir@%$libdir%g
5558 s%@includedir@%$includedir%g
5559 s%@oldincludedir@%$oldincludedir%g
5560 s%@infodir@%$infodir%g
5561 s%@mandir@%$mandir%g
5562 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5563 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5564 s%@INSTALL_DATA@%$INSTALL_DATA%g
5565 s%@PACKAGE@%$PACKAGE%g
5566 s%@VERSION@%$VERSION%g
5567 s%@ACLOCAL@%$ACLOCAL%g
5568 s%@AUTOCONF@%$AUTOCONF%g
5569 s%@AUTOMAKE@%$AUTOMAKE%g
5570 s%@AUTOHEADER@%$AUTOHEADER%g
5571 s%@MAKEINFO@%$MAKEINFO%g
5572 s%@SET_MAKE@%$SET_MAKE%g
5574 s%@host_alias@%$host_alias%g
5575 s%@host_cpu@%$host_cpu%g
5576 s%@host_vendor@%$host_vendor%g
5577 s%@host_os@%$host_os%g
5579 s%@build_alias@%$build_alias%g
5580 s%@build_cpu@%$build_cpu%g
5581 s%@build_vendor@%$build_vendor%g
5582 s%@build_os@%$build_os%g
5583 s%@RANLIB@%$RANLIB%g
5588 s%@LIBTOOL@%$LIBTOOL%g
5590 s%@ALLOCA@%$ALLOCA%g
5591 s%@CPP_PATH@%$CPP_PATH%g
5592 s%@XGETTEXT@%$XGETTEXT%g
5593 s%@DLLIBS@%$DLLIBS%g
5594 s%@INTLIBS@%$INTLIBS%g
5595 s%@NLSDIR@%$NLSDIR%g
5596 s%@MOFILES@%$MOFILES%g
5597 s%@WPMOFILES@%$WPMOFILES%g
5599 s%@X_CFLAGS@%$X_CFLAGS%g
5600 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5601 s%@X_LIBS@%$X_LIBS%g
5602 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5604 s%@XCFLAGS@%$XCFLAGS%g
5605 s%@XLFLAGS@%$XLFLAGS%g
5607 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5608 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5609 s%@GFXLIBS@%$GFXLIBS%g
5610 s%@ICONEXT@%$ICONEXT%g
5611 s%@DFLAGS@%$DFLAGS%g
5612 s%@wprefsdir@%$wprefsdir%g
5617 cat >> $CONFIG_STATUS <<\EOF
5619 # Split the substitutions into bite-sized pieces for seds with
5620 # small command number limits, like on Digital OSF/1 and HP-UX.
5621 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5622 ac_file
=1 # Number of current file.
5623 ac_beg
=1 # First line for current file.
5624 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5627 while $ac_more_lines; do
5628 if test $ac_beg -gt 1; then
5629 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5631 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5633 if test ! -s conftest.s
$ac_file; then
5635 rm -f conftest.s
$ac_file
5637 if test -z "$ac_sed_cmds"; then
5638 ac_sed_cmds
="sed -f conftest.s$ac_file"
5640 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5642 ac_file
=`expr $ac_file + 1`
5644 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5647 if test -z "$ac_sed_cmds"; then
5652 cat >> $CONFIG_STATUS <<EOF
5654 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5655 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5656 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5657 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5658 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5659 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5660 WindowMaker/Themes/Makefile \
5661 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5662 WPrefs.app/po/Makefile "}
5664 cat >> $CONFIG_STATUS <<\EOF
5665 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5668 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5669 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5670 *) ac_file_in
="${ac_file}.in" ;;
5673 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5675 # Remove last slash and all that follows it. Not all systems have dirname.
5676 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5678 # The file is in a subdirectory.
5679 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5680 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5681 # A "../" for each directory in $ac_dir_suffix.
5682 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5684 ac_dir_suffix
= ac_dots
=
5687 case "$ac_given_srcdir" in
5689 if test -z "$ac_dots"; then top_srcdir
=.
5690 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5691 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5693 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5694 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5697 case "$ac_given_INSTALL" in
5698 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5699 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5702 echo creating
"$ac_file"
5704 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5706 *Makefile
*) ac_comsub
="1i\\
5707 # $configure_input" ;;
5711 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5713 s%@configure_input@%$configure_input%g
5714 s%@srcdir@%$srcdir%g
5715 s%@top_srcdir@%$top_srcdir%g
5716 s%@INSTALL@%$INSTALL%g
5717 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5721 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5722 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5724 # ac_d sets the value in "#define NAME VALUE" lines.
5725 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5726 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5729 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5730 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5731 ac_uB
='\([ ]\)%\1#\2define\3'
5734 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5735 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5736 ac_eB
='$%\1#\2define\3'
5740 if test "${CONFIG_HEADERS+set}" != set; then
5742 cat >> $CONFIG_STATUS <<EOF
5743 CONFIG_HEADERS="src/config.h"
5745 cat >> $CONFIG_STATUS <<\EOF
5747 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5750 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5751 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5752 *) ac_file_in
="${ac_file}.in" ;;
5755 echo creating
$ac_file
5757 rm -f conftest.frag conftest.
in conftest.out
5758 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5759 cat $ac_file_inputs > conftest.
in
5763 # Transform confdefs.h into a sed script conftest.vals that substitutes
5764 # the proper values into config.h.in to produce config.h. And first:
5765 # Protect against being on the right side of a sed subst in config.status.
5766 # Protect against being in an unquoted here document in config.status.
5768 cat > conftest.hdr
<<\EOF
5771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5775 sed -n -f conftest.hdr confdefs.h > conftest.vals
5778 # This sed command replaces #undef with comments. This is necessary, for
5779 # example, in the case of _POSIX_SOURCE, which is predefined and required
5780 # on some systems where configure will not decide to define it.
5781 cat >> conftest.vals <<\EOF
5782 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5785 # Break up conftest.vals because some shells have a limit on
5786 # the size of here documents, and old seds have small limits too.
5791 ac_lines=`grep -c . conftest.vals
`
5792 # grep -c gives empty output for an empty file on some AIX systems.
5793 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5794 # Write a limited-size here document to conftest.frag.
5795 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5796 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5798 sed -f conftest.frag conftest.in > conftest.out
5800 mv conftest.out conftest.in
5802 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5804 mv conftest.tail conftest.vals
5808 cat >> $CONFIG_STATUS <<\EOF
5809 rm -f conftest.frag conftest.h
5810 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5811 cat conftest.in >> conftest.h
5813 if cmp -s $ac_file conftest.h 2>/dev/null; then
5814 echo "$ac_file is unchanged"
5817 # Remove last slash and all that follows it. Not all systems have dirname.
5818 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5820 # The file is in a subdirectory.
5821 test ! -d "$ac_dir" && mkdir "$ac_dir"
5824 mv conftest.h $ac_file
5829 cat >> $CONFIG_STATUS <<EOF
5833 cat >> $CONFIG_STATUS <<\EOF
5834 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5838 chmod +x $CONFIG_STATUS
5839 rm -fr confdefs* $ac_clean_files
5840 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5848 cat <<EOF >get-wraster-flags
5852 exec_prefix=\$prefix
5854 WCFLAGS="-I\$prefix/include $inc_search_path"
5855 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5856 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5858 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5860 if test \$# -eq 0; then
5861 echo "\${usage}" 1>&2
5865 while test \$# -gt 0; do
5877 echo "\${usage}" 1>&2
5887 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5889 chmod 755 wrlib/get-wraster-flags
5890 rm -f get-wraster-flags
5894 supported_gfx="$supported_gfx builtin-PPM"
5896 if test "x$MOFILES" = "x"; then
5904 echo "Window Maker was configured as follows:"
5906 echo "Installation path prefix: $prefix"
5907 echo "Installation path prefix for binaries: $_bindir"
5908 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5909 echo "Graphic format libraries: $supported_gfx"
5910 echo "Sound support: $sound"
5911 echo "Translated message files to install: $mof"
5912 if test "x$MOFILES" != "x"; then
5913 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5917 if test "$rh_is_redhat" = yes; then
5918 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5920 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5921 I have done some checks for Red-Hat-specific bugs, and I found some
5922 problems. Please read the INSTALL file regarding Red Hat, resolve
5923 the problems, and try to run configure again.
5925 Here are the problems I found:
5927 if test "x$rh_old_wmaker" = xyes; then
5928 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5929 echo "Description: You seem to have an old version of Window Maker"
5930 echo " installed in /usr/X11R6/bin. It is recommended"
5931 echo " that you uninstall any previously installed"
5932 echo " packages of WindowMaker before installing a new one."
5935 if test "x$rh_missing_usr_local_bin" = xyes; then
5936 echo "Problem: PATH is missing /usr/local/bin."
5937 echo "Description: Your PATH environment variable does not appear to"
5938 echo " contain the directory /usr/local/bin. Please add it."
5941 if test "x$rh_missing_usr_local_lib" = xyes; then
5942 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5943 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5944 echo " the directory /usr/local/lib. Please add it."
5947 if test "x$rh_missing_usr_x11" = xyes; then
5948 echo "Problem: Missing /usr/X11 symbolic link."
5949 echo "Description: Your system is missing a symbolic link from"
5950 echo " /usr/X11R6 to /usr/X11. Please create one."
5953 if test "x$rh_missing_usr_include_x11" = xyes; then
5954 echo "Problem: Missing /usr/include/X11 symbolic link."
5955 echo "Description: Your system is missing a symbolic link from"
5956 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5957 echo " Please create one."
5960 if test "x$rh_missing_lib_cpp" = xyes; then
5961 echo "Problem: Missing /lib/cpp symbolic link."
5962 echo "Description: Your system is missing a symbolic link from the"
5963 echo " cpp (C preprocessor) program to /lib/cpp."
5964 echo " Please create one."
5967 if test "x$bugs_found" = xyes; then
5968 { echo "configure: error: One or more of the problems above can potentially
5969 cause Window Maker not to install or run properly. Please resolve
5970 the problems and try to run configure again." 1>&2; exit 1; }
5972 elif test "x$mins_found" = xyes; then
5973 echo "configure: warning: The problems above may or may not cause Window Maker
5974 not to install or run properly. If you have any problems during
5975 installation or execution, please resolve the problems and try to
5976 install Window Maker again." 1>&2
5981 echo "You appear to have a system packaged by Red Hat, but I could"
5982 echo "not find any Red-Hat-specific problems that I know about."
5988 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5989 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5991 echo "JPEG support will not be included because the JPEG library is"
5992 echo "not installed correctly or was not found. Background images"
5993 echo "from themes will not display as they usually are JPEG files."
5995 echo "To fix, download and install the jpeg library and/or make sure you"
5996 echo "installed all jpeg related packages, like jpeg-devel."
5998 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"