3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-libs-from pass compiler flags to look for libraries"
27 --with-incs-from pass compiler flags to look for header files"
29 --with-nlsdir=PATH specify where the locale stuff should go "
31 --enable-gnome enable stuff needed for GNOME "
33 --enable-kde enable support for KDE window manager (kwm) hints "
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
37 --enable-lite disable some stuff (dont use it) "
39 --with-x use the X Window System"
41 --disable-locale disable use of X locale support"
43 --enable-modelock XKB keyboard language status support"
45 --disable-shape disable shaped window extension support"
47 --disable-shm disable usage of MIT-SHM extension"
49 --disable-xpm disable use of XPM pixmaps through libXpm"
51 --disable-png disable PNG support through libpng"
53 --disable-jpeg disable JPEG support through libjpeg"
55 --disable-gif disable GIF support through libgif or libungif"
57 --disable-tiff disable use of TIFF images through libtiff"
59 --enable-debug enable debugging "
61 --disable-sound disable sound support "
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
65 --with-appspath=PATH specify the directory for GNUstep applications"
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file
=.
/config.cache
86 program_transform_name
=s
,x
,x
,
94 bindir
='${exec_prefix}/bin'
95 sbindir
='${exec_prefix}/sbin'
96 libexecdir
='${exec_prefix}/libexec'
97 datadir
='${prefix}/share'
98 sysconfdir
='${prefix}/etc'
99 sharedstatedir
='${prefix}/com'
100 localstatedir
='${prefix}/var'
101 libdir
='${exec_prefix}/lib'
102 includedir
='${prefix}/include'
103 oldincludedir
='/usr/include'
104 infodir
='${prefix}/info'
105 mandir
='${prefix}/man'
107 # Initialize some other variables.
110 SHELL
=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
126 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 # Accept the important Cygnus configure options, so we can diagnose typos.
134 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
136 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
137 bindir
="$ac_optarg" ;;
139 -build |
--build |
--buil |
--bui |
--bu)
141 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
142 build
="$ac_optarg" ;;
144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
146 ac_prev
=cache_file
;;
147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
149 cache_file
="$ac_optarg" ;;
151 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
153 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
155 datadir
="$ac_optarg" ;;
157 -disable-* |
--disable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* |
--enable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
180 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
181 |
--exec |
--exe |
--ex)
182 ac_prev
=exec_prefix
;;
183 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
184 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
185 |
--exec=* |
--exe=* |
--ex=*)
186 exec_prefix
="$ac_optarg" ;;
188 -gas |
--gas |
--ga |
--g)
189 # Obsolete; use --with-gas.
192 -help |
--help |
--hel |
--he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
247 -host |
--host |
--hos |
--ho)
249 -host=* |
--host=* |
--hos=* |
--ho=*)
252 -includedir |
--includedir |
--includedi |
--included |
--include \
253 |
--includ |
--inclu |
--incl |
--inc)
254 ac_prev
=includedir
;;
255 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
256 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
257 includedir
="$ac_optarg" ;;
259 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
261 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
262 infodir
="$ac_optarg" ;;
264 -libdir |
--libdir |
--libdi |
--libd)
266 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
267 libdir
="$ac_optarg" ;;
269 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
270 |
--libexe |
--libex |
--libe)
271 ac_prev
=libexecdir
;;
272 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
273 |
--libexe=* |
--libex=* |
--libe=*)
274 libexecdir
="$ac_optarg" ;;
276 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
277 |
--localstate |
--localstat |
--localsta |
--localst \
278 |
--locals |
--local |
--loca |
--loc |
--lo)
279 ac_prev
=localstatedir
;;
280 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
281 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
282 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
283 localstatedir
="$ac_optarg" ;;
285 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
287 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
288 mandir
="$ac_optarg" ;;
291 # Obsolete; use --without-fp.
294 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
298 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
299 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
302 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
303 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
304 |
--oldin |
--oldi |
--old |
--ol |
--o)
305 ac_prev
=oldincludedir
;;
306 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
307 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
308 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
309 oldincludedir
="$ac_optarg" ;;
311 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
313 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
314 prefix
="$ac_optarg" ;;
316 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
317 |
--program-pre |
--program-pr |
--program-p)
318 ac_prev
=program_prefix
;;
319 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
320 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
321 program_prefix
="$ac_optarg" ;;
323 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
324 |
--program-suf |
--program-su |
--program-s)
325 ac_prev
=program_suffix
;;
326 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
327 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
328 program_suffix
="$ac_optarg" ;;
330 -program-transform-name |
--program-transform-name \
331 |
--program-transform-nam |
--program-transform-na \
332 |
--program-transform-n |
--program-transform- \
333 |
--program-transform |
--program-transfor \
334 |
--program-transfo |
--program-transf \
335 |
--program-trans |
--program-tran \
336 |
--progr-tra |
--program-tr |
--program-t)
337 ac_prev
=program_transform_name
;;
338 -program-transform-name=* |
--program-transform-name=* \
339 |
--program-transform-nam=* |
--program-transform-na=* \
340 |
--program-transform-n=* |
--program-transform-=* \
341 |
--program-transform=* |
--program-transfor=* \
342 |
--program-transfo=* |
--program-transf=* \
343 |
--program-trans=* |
--program-tran=* \
344 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
345 program_transform_name
="$ac_optarg" ;;
347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
348 |
-silent |
--silent |
--silen |
--sile |
--sil)
351 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
353 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
355 sbindir
="$ac_optarg" ;;
357 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
358 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
359 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
361 ac_prev
=sharedstatedir
;;
362 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
363 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
364 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
366 sharedstatedir
="$ac_optarg" ;;
368 -site |
--site |
--sit)
370 -site=* |
--site=* |
--sit=*)
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=src
/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE
; then
540 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
586 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
622 for ac_dir
in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
625 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
630 for ac_prog
in ginstall scoinst
install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
634 # AIX install. It has an incompatible calling convention.
637 ac_cv_path_install
="$ac_dir/$ac_prog -c"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL
="$ac_cv_path_install"
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL
="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
672 echo timestamp
> conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
679 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
682 set X
`ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s
,x
,x
,; then
707 program_transform_name
=
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED
> conftestsed
711 s
,\\,\\\\,g
; s
,\$
,$$
,g
713 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
716 test "$program_prefix" != NONE
&&
717 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE
&&
720 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 cat > conftestmake
<<\EOF
733 @
echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_
${ac_make}_set
=yes
740 eval ac_cv_prog_make_
${ac_make}_set
=no
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
748 echo "$ac_t""no" 1>&6
749 SET_MAKE
="MAKE=${MAKE-make}"
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
758 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
760 cat >> confdefs.h
<<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h
<<EOF
765 #define VERSION "$VERSION"
770 missing_dir
=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
778 echo "$ac_t""found" 1>&6
780 ACLOCAL
="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
791 echo "$ac_t""found" 1>&6
793 AUTOCONF
="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
804 echo "$ac_t""found" 1>&6
806 AUTOMAKE
="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
816 AUTOHEADER
=autoheader
817 echo "$ac_t""found" 1>&6
819 AUTOHEADER
="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
830 echo "$ac_t""found" 1>&6
832 MAKEINFO
="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval
="$enable_shared"
843 yes) enable_shared
=yes ;;
844 no
) enable_shared
=no
;;
847 # Look at the argument we got. We use all the common list separators.
848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
849 for pkg
in $enableval; do
850 if test "X$pkg" = "X$p"; then
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval
="$enable_static"
866 yes) enable_static
=yes ;;
867 no
) enable_static
=no
;;
870 # Look at the argument we got. We use all the common list separators.
871 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
872 for pkg
in $enableval; do
873 if test "X$pkg" = "X$p"; then
884 # Check whether --enable-fast-install or --disable-fast-install was given.
885 if test "${enable_fast_install+set}" = set; then
886 enableval
="$enable_fast_install"
889 yes) enable_fast_install
=yes ;;
890 no
) enable_fast_install
=no
;;
892 enable_fast_install
=no
893 # Look at the argument we got. We use all the common list separators.
894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
895 for pkg
in $enableval; do
896 if test "X$pkg" = "X$p"; then
897 enable_fast_install
=yes
904 enable_fast_install
=yes
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
917 case "$host_alias" in
921 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 *) host_alias
=$nonopt ;;
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
934 echo $ac_n "checking build system type""... $ac_c" 1>&6
935 echo "configure:936: checking build system type" >&5
938 case "$build_alias" in
941 NONE
) build_alias
=$host_alias ;;
942 *) build_alias
=$nonopt ;;
946 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
947 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$build" 1>&6
952 # Extract the first word of "ranlib", so it can be a program name with args.
953 set dummy ranlib
; ac_word
=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
964 for ac_dir
in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir
=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_RANLIB
="ranlib"
972 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
975 RANLIB
="$ac_cv_prog_RANLIB"
976 if test -n "$RANLIB"; then
977 echo "$ac_t""$RANLIB" 1>&6
979 echo "$ac_t""no" 1>&6
982 # Extract the first word of "gcc", so it can be a program name with args.
983 set dummy gcc
; ac_word
=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 if test -n "$CC"; then
990 ac_cv_prog_CC
="$CC" # Let the user override the test.
992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
994 for ac_dir
in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir
=.
996 if test -f $ac_dir/$ac_word; then
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1008 echo "$ac_t""no" 1>&6
1011 if test -z "$CC"; then
1012 # Extract the first word of "cc", so it can be a program name with args.
1013 set dummy cc
; ac_word
=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 if test -n "$CC"; then
1020 ac_cv_prog_CC
="$CC" # Let the user override the test.
1022 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1025 for ac_dir
in $ac_dummy; do
1026 test -z "$ac_dir" && ac_dir
=.
1027 if test -f $ac_dir/$ac_word; then
1028 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1029 ac_prog_rejected
=yes
1037 if test $ac_prog_rejected = yes; then
1038 # We found a bogon in the path, so make sure we never use it.
1039 set dummy
$ac_cv_prog_CC
1041 if test $# -gt 0; then
1042 # We chose a different compiler from the bogus one.
1043 # However, it has the same basename, so the bogon will be chosen
1044 # first if we set CC to just the basename; use the full file name.
1046 set dummy
"$ac_dir/$ac_word" "$@"
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 case "`uname -s`" in
1063 # Extract the first word of "cl", so it can be a program name with args.
1064 set dummy cl
; ac_word
=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC
="$CC" # Let the user override the test.
1073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1075 for ac_dir
in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir
=.
1077 if test -f $ac_dir/$ac_word; then
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1089 echo "$ac_t""no" 1>&6
1094 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp
='$CPP $CPPFLAGS'
1103 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling
=$ac_cv_prog_cc_cross
1107 cat > conftest.
$ac_ext << EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1114 if { (eval echo configure
:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1115 ac_cv_prog_cc_works
=yes
1116 # If we can't run a trivial program, we are probably using a cross compiler.
1117 if (.
/conftest
; exit) 2>/dev
/null
; then
1118 ac_cv_prog_cc_cross
=no
1120 ac_cv_prog_cc_cross
=yes
1123 echo "configure: failed program was:" >&5
1124 cat conftest.
$ac_ext >&5
1125 ac_cv_prog_cc_works
=no
1129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130 ac_cpp
='$CPP $CPPFLAGS'
1131 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133 cross_compiling
=$ac_cv_prog_cc_cross
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no
; then
1137 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling
=$ac_cv_prog_cc_cross
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.c
<<EOF
1154 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1169 ac_test_CFLAGS
="${CFLAGS+set}"
1170 ac_save_CFLAGS
="$CFLAGS"
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS
="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1197 if test "$GCC" = yes; then
1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1205 if test "${with_gnu_ld+set}" = set; then
1206 withval
="$with_gnu_ld"
1207 test "$withval" = no || with_gnu_ld
=yes
1213 if test "$ac_cv_prog_gcc" = yes; then
1214 # Check if gcc -print-prog-name=ld gives a path.
1215 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1216 echo "configure:1217: checking for ld used by GCC" >&5
1217 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1219 # Accept absolute paths.
1220 [\\/]* |
[A-Za-z
]:[\\/]*)
1221 re_direlt
='/[^/][^/]*/\.\./'
1222 # Canonicalize the path of ld
1223 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1224 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1225 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1227 test -z "$LD" && LD
="$ac_prog"
1230 # If it fails, then pretend we aren't using GCC.
1234 # If it is relative, then search for the first ld in PATH.
1238 elif test "$with_gnu_ld" = yes; then
1239 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1240 echo "configure:1241: checking for GNU ld" >&5
1242 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for non-GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 if test -z "$LD"; then
1249 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1250 for ac_dir
in $PATH; do
1251 test -z "$ac_dir" && ac_dir
=.
1252 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1253 ac_cv_path_LD
="$ac_dir/$ac_prog"
1254 # Check to see if the program is GNU ld. I'd rather use --version,
1255 # but apparently some GNU ld's only accept -v.
1256 # Break only if it was the GNU/non-GNU ld that we prefer.
1257 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1258 test "$with_gnu_ld" != no
&& break
1260 test "$with_gnu_ld" != yes && break
1266 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1271 if test -n "$LD"; then
1272 echo "$ac_t""$LD" 1>&6
1274 echo "$ac_t""no" 1>&6
1276 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1278 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1279 echo "configure:1280: checking if the linker ($LD) is GNU ld" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1284 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1285 ac_cv_prog_gnu_ld
=yes
1287 ac_cv_prog_gnu_ld
=no
1291 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1294 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1295 echo "configure:1296: checking for BSD-compatible nm" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -n "$NM"; then
1300 # Let the user override the test.
1303 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1304 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1305 test -z "$ac_dir" && ac_dir
=.
1306 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1307 # Check to see if the nm accepts a BSD-compat flag.
1308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1309 # nm: unknown option "B" ignored
1310 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1311 ac_cv_path_NM
="$ac_dir/nm -B"
1313 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1314 ac_cv_path_NM
="$ac_dir/nm -p"
1317 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1318 continue # so that we can try to find one that supports BSD flags
1323 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1328 echo "$ac_t""$NM" 1>&6
1331 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ln -s works" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1337 if ln -s X conftestdata
2>/dev
/null
1340 ac_cv_prog_LN_S
="ln -s"
1345 LN_S
="$ac_cv_prog_LN_S"
1346 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1347 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1353 # Check for any special flags to pass to ltconfig.
1354 libtool_flags
="--cache-file=$cache_file"
1355 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1356 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1357 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1358 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1359 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1363 if test "${enable_libtool_lock+set}" = set; then
1364 enableval
="$enable_libtool_lock"
1368 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1369 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1371 # Some flags need to be propagated to the compiler or linker for good
1375 # Find out which ABI we are using.
1376 echo '#line 1377 "configure"' > conftest.
$ac_ext
1377 if { (eval echo configure
:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 case "`/usr/bin/file conftest.o`" in
1394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1395 SAVE_CFLAGS
="$CFLAGS"
1396 CFLAGS
="$CFLAGS -belf"
1397 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether the C compiler needs -belf" >&5
1399 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1410 if { (eval echo configure
:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1412 lt_cv_cc_needs_belf
=yes
1414 echo "configure: failed program was:" >&5
1415 cat conftest.
$ac_ext >&5
1417 lt_cv_cc_needs_belf
=no
1422 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1423 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1424 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1425 CFLAGS
="$SAVE_CFLAGS"
1433 # Save cache, so that ltconfig can load it
1434 cat > confcache
<<\EOF
1435 # This file is a shell script that caches the results of configure
1436 # tests run on this system so they can be shared between configure
1437 # scripts and configure runs. It is not useful on other systems.
1438 # If it contains results you don't want to keep, you may remove or edit it.
1440 # By default, configure uses ./config.cache as the cache file,
1441 # creating it if it does not exist already. You can give configure
1442 # the --cache-file=FILE option to use a different cache file; that is
1443 # what configure does when it calls configure scripts in
1444 # subdirectories, so they share the cache.
1445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1446 # config.status only pays attention to the cache file if you give it the
1447 # --recheck option to rerun configure.
1450 # The following way of writing the cache mishandles newlines in values,
1451 # but we know of no workaround that is simple, portable, and efficient.
1452 # So, don't put newlines in cache variables' values.
1453 # Ultrix sh set writes to stderr and can't be redirected directly,
1454 # and sets the high bit in the cache file unless we assign to the vars.
1456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1458 # `set' does not quote correctly, so add quotes (double-quote substitution
1459 # turns \\\\ into \\, and sed turns \\ into \).
1461 -e "s/'/'\\\\''/g" \
1462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1465 # `set' quotes correctly as required by POSIX, so do not add quotes.
1466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1469 if cmp -s $cache_file confcache
; then
1472 if test -w $cache_file; then
1473 echo "updating cache $cache_file"
1474 cat confcache
> $cache_file
1476 echo "not updating unwritable cache $cache_file"
1482 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1483 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1484 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1485 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1486 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1488 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1489 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1491 # Reload cache, that may have been modified by ltconfig
1492 if test -r "$cache_file"; then
1493 echo "loading cache $cache_file"
1496 echo "creating cache $cache_file"
1501 # This can be used to rebuild libtool when needed
1502 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1504 # Always use our own libtool.
1505 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1507 # Redirect the config.log output again, so that the ltconfig log is not
1508 # clobbered by the next message.
1509 exec 5>>.
/config.log
1512 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1513 # Turn around -rpath problem with libtool 1.0c
1514 # This define should be improbable enough to not conflict with anything
1517 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1518 sed < libtool
> libtool-2 \
1519 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1520 mv libtool-2 libtool
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`"
1976 # Check whether --with-libs-from or --without-libs-from was given.
1977 if test "${with_libs_from+set}" = set; then
1978 withval
="$with_libs_from"
1979 lib_search_path
="$withval $lib_search_path"
1983 # Check whether --with-incs-from or --without-incs-from was given.
1984 if test "${with_incs_from+set}" = set; then
1985 withval
="$with_incs_from"
1986 inc_search_path
="$withval $inc_search_path"
1992 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1993 echo "configure:1994: checking for vprintf" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char vprintf(); below. */
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 /* We use char because int might match the return type of a gcc2
2005 builtin and then its argument prototype would still apply. */
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2021 if { (eval echo configure
:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2023 eval "ac_cv_func_vprintf=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2028 eval "ac_cv_func_vprintf=no"
2033 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2035 cat >> confdefs.h
<<\EOF
2036 #define HAVE_VPRINTF 1
2040 echo "$ac_t""no" 1>&6
2043 if test "$ac_cv_func_vprintf" != yes; then
2044 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2045 echo "configure:2046: checking for _doprnt" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.
$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char _doprnt(); below. */
2055 /* Override any gcc2 internal prototype to avoid an error. */
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2062 /* The GNU C library defines this for functions which it implements
2063 to always fail with ENOSYS. Some functions are actually named
2064 something starting with __ and the normal name is an alias. */
2065 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2073 if { (eval echo configure
:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2075 eval "ac_cv_func__doprnt=yes"
2077 echo "configure: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2080 eval "ac_cv_func__doprnt=no"
2085 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 cat >> confdefs.h
<<\EOF
2088 #define HAVE_DOPRNT 1
2092 echo "$ac_t""no" 1>&6
2097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2098 # for constant arguments. Useless!
2099 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2100 echo "configure:2101: checking for working alloca.h" >&5
2101 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 cat > conftest.
$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2109 char *p = alloca(2 * sizeof(int));
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2114 ac_cv_header_alloca_h
=yes
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 ac_cv_header_alloca_h
=no
2124 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2125 if test $ac_cv_header_alloca_h = yes; then
2126 cat >> confdefs.h
<<\EOF
2127 #define HAVE_ALLOCA_H 1
2132 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2133 echo "configure:2134: checking for alloca" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.
$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2142 # define alloca __builtin_alloca
2145 # include <malloc.h>
2146 # define alloca _alloca
2149 # include <alloca.h>
2154 # ifndef alloca /* predefined by HP cc +Olibcalls */
2163 char *p = (char *) alloca(1);
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2168 ac_cv_func_alloca_works
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 ac_cv_func_alloca_works
=no
2178 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2179 if test $ac_cv_func_alloca_works = yes; then
2180 cat >> confdefs.h
<<\EOF
2181 #define HAVE_ALLOCA 1
2186 if test $ac_cv_func_alloca_works = no
; then
2187 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2188 # that cause trouble. Some versions do not even contain alloca or
2189 # contain a buggy version. If you still want to use their alloca,
2190 # use ar to extract alloca.o from them instead of compiling alloca.c.
2191 ALLOCA
=alloca.
${ac_objext}
2192 cat >> confdefs.h
<<\EOF
2197 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether alloca needs Cray hooks" >&5
2199 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 #if defined(CRAY) && ! defined(CRAY2)
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "webecray" >/dev
/null
2>&1; then
2224 echo "$ac_t""$ac_cv_os_cray" 1>&6
2225 if test $ac_cv_os_cray = yes; then
2226 for ac_func
in _getb67 GETB67 getb67
; do
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2258 eval "ac_cv_func_$ac_func=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_func_$ac_func=no"
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 cat >> confdefs.h
<<EOF
2271 #define CRAY_STACKSEG_END $ac_func
2276 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2283 echo "configure:2284: checking stack direction for C alloca" >&5
2284 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 if test "$cross_compiling" = yes; then
2288 ac_cv_c_stack_direction
=0
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 find_stack_direction ()
2295 static char *addr = 0;
2300 return find_stack_direction ();
2303 return (&dummy > addr) ? 1 : -1;
2307 exit (find_stack_direction() < 0);
2310 if { (eval echo configure
:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2312 ac_cv_c_stack_direction
=1
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 ac_cv_c_stack_direction
=-1
2324 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2325 cat >> confdefs.h
<<EOF
2326 #define STACK_DIRECTION $ac_cv_c_stack_direction
2331 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_func" >&5
2335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* System header to define __stub macros and hopefully few prototypes,
2342 which can conflict with char $ac_func(); below. */
2344 /* Override any gcc2 internal prototype to avoid an error. */
2345 /* We use char because int might match the return type of a gcc2
2346 builtin and then its argument prototype would still apply. */
2351 /* The GNU C library defines this for functions which it implements
2352 to always fail with ENOSYS. Some functions are actually named
2353 something starting with __ and the normal name is an alias. */
2354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2362 if { (eval echo configure
:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2364 eval "ac_cv_func_$ac_func=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.
$ac_ext >&5
2369 eval "ac_cv_func_$ac_func=no"
2374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2377 cat >> confdefs.h
<<EOF
2378 #define $ac_tr_func 1
2382 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2392 echo "configure:2393: checking for dlopen" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char dlopen(); below. */
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2420 if { (eval echo configure
:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2422 eval "ac_cv_func_dlopen=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.
$ac_ext >&5
2427 eval "ac_cv_func_dlopen=no"
2432 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2436 echo "$ac_t""no" 1>&6
2437 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2438 echo "configure:2439: checking for dlopen in -ldl" >&5
2439 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_save_LIBS
="$LIBS"
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* Override any gcc2 internal prototype to avoid an error. */
2449 /* We use char because int might match the return type of a gcc2
2450 builtin and then its argument prototype would still apply. */
2457 if { (eval echo configure
:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2459 eval "ac_cv_lib_$ac_lib_var=yes"
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2464 eval "ac_cv_lib_$ac_lib_var=no"
2467 LIBS
="$ac_save_LIBS"
2470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2472 DLLIBS
="-ldl" HAVEDL
="yes"
2474 echo "$ac_t""no" 1>&6
2481 if test "x$HAVEDL" = xyes
; then
2482 for ac_hdr
in dlfcn.h
2484 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_hdr" >&5
2487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2490 cat > conftest.
$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2496 { (eval echo configure
:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2498 if test -z "$ac_err"; then
2500 eval "ac_cv_header_$ac_safe=yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2506 eval "ac_cv_header_$ac_safe=no"
2510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2513 cat >> confdefs.h
<<EOF
2514 #define $ac_tr_hdr 1
2518 echo "$ac_t""no" 1>&6
2526 if test "x$CPP_PATH" = x
; then
2527 # Extract the first word of "cpp", so it can be a program name with args.
2528 set dummy cpp
; ac_word
=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2536 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2539 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2543 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2544 for ac_dir
in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir
=.
2546 if test -f $ac_dir/$ac_word; then
2547 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2552 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2556 CPP_PATH
="$ac_cv_path_CPP_PATH"
2557 if test -n "$CPP_PATH"; then
2558 echo "$ac_t""$CPP_PATH" 1>&6
2560 echo "$ac_t""no" 1>&6
2565 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2566 if test "$GCC" = "yes"; then
2567 CPP_PATH
="gcc -E -x c"
2569 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2570 CPP_PATH
="$CPP_PATH -B"
2572 echo "cpp, the C preprocessor was not found in your system."
2573 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2578 cat >> confdefs.h
<<EOF
2579 #define CPP_PATH "$CPP_PATH"
2585 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2586 echo "configure:2587: checking for sys/wait.h that is POSIX.1 compatible" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2594 #include <sys/wait.h>
2596 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2599 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2607 if { (eval echo configure
:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2609 ac_cv_header_sys_wait_h
=yes
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 ac_cv_header_sys_wait_h
=no
2619 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2620 if test $ac_cv_header_sys_wait_h = yes; then
2621 cat >> confdefs.h
<<\EOF
2622 #define HAVE_SYS_WAIT_H 1
2627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2628 echo "configure:2629: checking whether time.h and sys/time.h may both be included" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.
$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <sys/types.h>
2636 #include <sys/time.h>
2642 if { (eval echo configure
:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 ac_cv_header_time
=yes
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2649 ac_cv_header_time
=no
2654 echo "$ac_t""$ac_cv_header_time" 1>&6
2655 if test $ac_cv_header_time = yes; then
2656 cat >> confdefs.h
<<\EOF
2657 #define TIME_WITH_SYS_TIME 1
2662 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2663 libintl.h sys
/select.h poll.h
2665 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_hdr" >&5
2668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.
$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure
:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2681 eval "ac_cv_header_$ac_safe=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2687 eval "ac_cv_header_$ac_safe=no"
2691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2694 cat >> confdefs.h
<<EOF
2695 #define $ac_tr_hdr 1
2699 echo "$ac_t""no" 1>&6
2706 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2707 echo "configure:2708: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2708 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 cat > conftest.
$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <sys/types.h>
2716 /* NetBSD declares sys_siglist in unistd.h. */
2717 #ifdef HAVE_UNISTD_H
2721 char *msg = *(sys_siglist + 1);
2724 if { (eval echo configure
:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2726 ac_cv_decl_sys_siglist
=yes
2728 echo "configure: failed program was:" >&5
2729 cat conftest.
$ac_ext >&5
2731 ac_cv_decl_sys_siglist
=no
2736 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2737 if test $ac_cv_decl_sys_siglist = yes; then
2738 cat >> confdefs.h
<<\EOF
2739 #define SYS_SIGLIST_DECLARED 1
2744 echo $ac_n "checking for working const""... $ac_c" 1>&6
2745 echo "configure:2746: checking for working const" >&5
2746 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 cat > conftest.
$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2755 /* Ultrix mips cc rejects this. */
2756 typedef int charset[2]; const charset x;
2757 /* SunOS 4.1.1 cc rejects this. */
2758 char const *const *ccp;
2760 /* NEC SVR4.0.2 mips cc rejects this. */
2761 struct point {int x, y;};
2762 static struct point const zero = {0,0};
2763 /* AIX XL C 1.02.0.0 rejects this.
2764 It does not let you subtract one const X* pointer from another in an arm
2765 of an if-expression whose if-part is not a constant expression */
2766 const char *g = "string";
2767 ccp = &g + (g ? g-g : 0);
2768 /* HPUX 7.0 cc rejects these. */
2771 ccp = (char const *const *) p;
2772 { /* SCO 3.2v4 cc rejects this. */
2774 char const *s = 0 ? (char *) 0 : (char const *) 0;
2778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2780 const int *foo = &x[0];
2783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2784 typedef const int *iptr;
2788 { /* AIX XL C 1.02.0.0 rejects this saying
2789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2790 struct s { int j; const int *ap[3]; };
2791 struct s *b; b->j = 5;
2793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2799 if { (eval echo configure
:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2803 echo "configure: failed program was:" >&5
2804 cat conftest.
$ac_ext >&5
2811 echo "$ac_t""$ac_cv_c_const" 1>&6
2812 if test $ac_cv_c_const = no
; then
2813 cat >> confdefs.h
<<\EOF
2821 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2822 echo "configure:2823: checking return type of signal handlers" >&5
2823 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <sys/types.h>
2835 extern "C" void (*signal (int, void (*)(int)))(int);
2837 void (*signal ()) ();
2844 if { (eval echo configure
:2845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2846 ac_cv_type_signal
=void
2848 echo "configure: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2851 ac_cv_type_signal
=int
2856 echo "$ac_t""$ac_cv_type_signal" 1>&6
2857 cat >> confdefs.h
<<EOF
2858 #define RETSIGTYPE $ac_cv_type_signal
2871 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2872 echo "configure:2873: checking for gettext" >&5
2873 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* System header to define __stub macros and hopefully few prototypes,
2880 which can conflict with char gettext(); below. */
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub_gettext) || defined (__stub___gettext)
2900 if { (eval echo configure
:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2902 eval "ac_cv_func_gettext=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2907 eval "ac_cv_func_gettext=no"
2912 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2916 echo "$ac_t""no" 1>&6
2917 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2918 echo "configure:2919: checking for gettext in -lintl" >&5
2919 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 ac_save_LIBS
="$LIBS"
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 /* Override any gcc2 internal prototype to avoid an error. */
2929 /* We use char because int might match the return type of a gcc2
2930 builtin and then its argument prototype would still apply. */
2937 if { (eval echo configure
:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2939 eval "ac_cv_lib_$ac_lib_var=yes"
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 eval "ac_cv_lib_$ac_lib_var=no"
2947 LIBS
="$ac_save_LIBS"
2950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2954 echo "$ac_t""no" 1>&6
2961 # Extract the first word of "xgettext", so it can be a program name with args.
2962 set dummy xgettext
; ac_word
=$2
2963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_word" >&5
2965 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 if test -n "$XGETTEXT"; then
2969 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2973 for ac_dir
in $ac_dummy; do
2974 test -z "$ac_dir" && ac_dir
=.
2975 if test -f $ac_dir/$ac_word; then
2976 ac_cv_prog_XGETTEXT
="xgettext"
2983 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2984 if test -n "$XGETTEXT"; then
2985 echo "$ac_t""$XGETTEXT" 1>&6
2987 echo "$ac_t""no" 1>&6
2991 if test "$XGETTEXT" != ""; then
2992 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2993 echo "xgettext isn't GNU version"
2998 if test "$LINGUAS" != ""; then
2999 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3000 cat >> confdefs.h
<<\EOF
3005 # if test "$LINGUAS" = ""; then
3006 # ling=` (cd src/po; /bin/ls *.po) `
3007 # for l in $ling; do
3008 # lcode=`basename $l .po`
3009 # LINGUAS="$LINGUAS $lcode"
3012 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3016 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3027 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"
3028 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3030 for lang
in $LINGUAS; do
3032 for l
in $supported_locales; do
3033 if test "$l" = "$lang"; then
3038 if test "$ok" = 1; then
3039 MOFILES
="$MOFILES $lang.mo"
3041 echo "Locale $lang is not supported."
3044 for l
in $supported_wprefs_locales; do
3045 if test "$l" = "$lang"; then
3050 if test "$ok" = 1; then
3051 WPMOFILES
="$WPMOFILES $lang.mo"
3059 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3060 echo "configure:3061: checking for setlocale in -lxpg4" >&5
3061 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 ac_save_LIBS
="$LIBS"
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3079 if { (eval echo configure
:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3081 eval "ac_cv_lib_$ac_lib_var=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3086 eval "ac_cv_lib_$ac_lib_var=no"
3089 LIBS
="$ac_save_LIBS"
3092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3093 echo "$ac_t""yes" 1>&6
3096 echo "$ac_t""no" 1>&6
3105 # Check whether --with-nlsdir or --without-nlsdir was given.
3106 if test "${with_nlsdir+set}" = set; then
3107 withval
="$with_nlsdir"
3113 if test "x$NLSDIR" = "x"; then
3114 if test "x$with_nlsdir" != "x"; then
3117 NLSDIR
='$(prefix)/lib/locale'
3133 # Check whether --enable-gnome or --disable-gnome was given.
3134 if test "${enable_gnome+set}" = set; then
3135 enableval
="$enable_gnome"
3136 if test x
$enableval = xyes
; then
3137 cat >> confdefs.h
<<\EOF
3138 #define GNOME_STUFF 1
3147 # Check whether --enable-kde or --disable-kde was given.
3148 if test "${enable_kde+set}" = set; then
3149 enableval
="$enable_kde"
3150 if test x
$enableval = xyes
; then
3151 cat >> confdefs.h
<<\EOF
3161 # Check whether --enable-openlook or --disable-openlook was given.
3162 if test "${enable_openlook+set}" = set; then
3163 enableval
="$enable_openlook"
3164 if test x
$enableval = xyes
; then
3165 cat >> confdefs.h
<<\EOF
3166 #define OLWM_HINTS 1
3175 # Check whether --enable-lite or --disable-lite was given.
3176 if test "${enable_lite+set}" = set; then
3177 enableval
="$enable_lite"
3178 if test x
$enableval = xyes
; then
3180 cat >> confdefs.h
<<\EOF
3192 # If we find X, set shell vars x_includes and x_libraries to the
3193 # paths, otherwise set no_x=yes.
3194 # Uses ac_ vars as temps to allow command line to override cache and checks.
3195 # --without-x overrides everything else, but does not touch the cache.
3196 echo $ac_n "checking for X""... $ac_c" 1>&6
3197 echo "configure:3198: checking for X" >&5
3199 # Check whether --with-x or --without-x was given.
3200 if test "${with_x+set}" = set; then
3205 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3206 if test "x$with_x" = xno
; then
3207 # The user explicitly disabled X.
3210 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3211 # Both variables are already set.
3214 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 # One or both of the vars are not set, and there is no cached value.
3218 ac_x_includes
=NO ac_x_libraries
=NO
3220 if mkdir conftestdir
; then
3222 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3223 cat > Imakefile
<<'EOF'
3225 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3227 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3229 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3230 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3231 for ac_extension
in a so sl
; do
3232 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3233 test -f $ac_im_libdir/libX11.
$ac_extension; then
3234 ac_im_usrlibdir
=$ac_im_libdir; break
3237 # Screen out bogus values from the imake configuration. They are
3238 # bogus both because they are the default anyway, and because
3239 # using them would break gcc on systems where it needs fixed includes.
3240 case "$ac_im_incroot" in
3242 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3244 case "$ac_im_usrlibdir" in
3246 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3253 if test "$ac_x_includes" = NO
; then
3254 # Guess where to find include files, by looking for this one X11 .h file.
3255 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3257 # First, try using that file with no special directory specified.
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 #include <$x_direct_test_include>
3263 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264 { (eval echo configure
:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266 if test -z "$ac_err"; then
3268 # We can compile using X headers with no special include directory.
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 # Look for the header file in a standard set of common directories.
3276 # Check X11 before X11Rn because it is often a symlink to the current release.
3279 /usr
/X11R
6/include \
3280 /usr
/X11R
5/include \
3281 /usr
/X11R
4/include \
3284 /usr
/include
/X11R6 \
3285 /usr
/include
/X11R5 \
3286 /usr
/include
/X11R4 \
3288 /usr
/local
/X11
/include \
3289 /usr
/local
/X11R
6/include \
3290 /usr
/local
/X11R
5/include \
3291 /usr
/local
/X11R
4/include \
3293 /usr
/local
/include
/X11 \
3294 /usr
/local
/include
/X11R6 \
3295 /usr
/local
/include
/X11R5 \
3296 /usr
/local
/include
/X11R4 \
3300 /usr
/XFree86
/include
/X11 \
3303 /usr
/local
/include \
3304 /usr
/unsupported
/include \
3305 /usr
/athena
/include \
3306 /usr
/local
/x11r
5/include \
3307 /usr
/lpp
/Xamples
/include \
3309 /usr
/openwin
/include \
3310 /usr
/openwin
/share
/include \
3313 if test -r "$ac_dir/$x_direct_test_include"; then
3314 ac_x_includes
=$ac_dir
3320 fi # $ac_x_includes = NO
3322 if test "$ac_x_libraries" = NO
; then
3323 # Check for the libraries.
3325 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3326 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3328 # See if we find them without any special options.
3329 # Don't add to $LIBS permanently.
3330 ac_save_LIBS
="$LIBS"
3331 LIBS
="-l$x_direct_test_library $LIBS"
3332 cat > conftest.
$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3337 ${x_direct_test_function}()
3340 if { (eval echo configure
:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3342 LIBS
="$ac_save_LIBS"
3343 # We can link X programs with no special library path.
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 LIBS
="$ac_save_LIBS"
3350 # First see if replacing the include by lib works.
3351 # Check X11 before X11Rn because it is often a symlink to the current release.
3352 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3363 /usr
/local
/X11
/lib \
3364 /usr
/local
/X11R
6/lib \
3365 /usr
/local
/X11R
5/lib \
3366 /usr
/local
/X11R
4/lib \
3368 /usr
/local
/lib
/X11 \
3369 /usr
/local
/lib
/X11R6 \
3370 /usr
/local
/lib
/X11R5 \
3371 /usr
/local
/lib
/X11R4 \
3375 /usr
/XFree86
/lib
/X11 \
3379 /usr
/unsupported
/lib \
3381 /usr
/local
/x11r
5/lib \
3382 /usr
/lpp
/Xamples
/lib \
3386 /usr
/openwin
/share
/lib \
3389 for ac_extension
in a so sl
; do
3390 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3391 ac_x_libraries
=$ac_dir
3398 fi # $ac_x_libraries = NO
3400 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3401 # Didn't find X anywhere. Cache the known absence of X.
3402 ac_cv_have_x
="have_x=no"
3404 # Record where we found X for the cache.
3405 ac_cv_have_x
="have_x=yes \
3406 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3410 eval "$ac_cv_have_x"
3413 if test "$have_x" != yes; then
3414 echo "$ac_t""$have_x" 1>&6
3417 # If each of the values was on the command line, it overrides each guess.
3418 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3419 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3420 # Update the cache value to reflect the command line values.
3421 ac_cv_have_x
="have_x=yes \
3422 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3423 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3426 if test "$no_x" = yes; then
3427 # Not all programs may use this symbol, but it does not hurt to define it.
3428 cat >> confdefs.h
<<\EOF
3429 #define X_DISPLAY_MISSING 1
3432 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3434 if test -n "$x_includes"; then
3435 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3438 # It would also be nice to do this for all -L options, not just this one.
3439 if test -n "$x_libraries"; then
3440 X_LIBS
="$X_LIBS -L$x_libraries"
3441 # For Solaris; some versions of Sun CC require a space after -R and
3442 # others require no space. Words are not sufficient . . . .
3443 case "`(uname -sr) 2>/dev/null`" in
3445 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3446 echo "configure:3447: checking whether -R must be followed by a space" >&5
3447 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3456 if { (eval echo configure
:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3460 echo "configure: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3466 if test $ac_R_nospace = yes; then
3467 echo "$ac_t""no" 1>&6
3468 X_LIBS
="$X_LIBS -R$x_libraries"
3470 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3471 cat > conftest.
$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3483 echo "configure: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3489 if test $ac_R_space = yes; then
3490 echo "$ac_t""yes" 1>&6
3491 X_LIBS
="$X_LIBS -R $x_libraries"
3493 echo "$ac_t""neither works" 1>&6
3496 LIBS
="$ac_xsave_LIBS"
3500 # Check for system-dependent libraries X programs must link with.
3501 # Do this before checking for the system-independent R6 libraries
3502 # (-lICE), since we may need -lsocket or whatever for X linking.
3504 if test "$ISC" = yes; then
3505 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3507 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3508 # libraries were built with DECnet support. And karl@cs.umb.edu says
3509 # the Alpha needs dnet_stub (dnet does not exist).
3510 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3511 echo "configure:3512: checking for dnet_ntoa in -ldnet" >&5
3512 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS
="$LIBS"
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure
:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS
="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3547 echo "$ac_t""no" 1>&6
3550 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3551 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3552 echo "configure:3553: checking for dnet_ntoa in -ldnet_stub" >&5
3553 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS
="$LIBS"
3558 LIBS
="-ldnet_stub $LIBS"
3559 cat > conftest.
$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure
:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.
$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS
="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3588 echo "$ac_t""no" 1>&6
3593 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3594 # to get the SysV transport functions.
3595 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3597 # The nsl library prevents programs from opening the X display
3598 # on Irix 5.2, according to dickey@clark.net.
3599 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3600 echo "configure:3601: checking for gethostbyname" >&5
3601 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.
$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* System header to define __stub macros and hopefully few prototypes,
3608 which can conflict with char gethostbyname(); below. */
3610 /* Override any gcc2 internal prototype to avoid an error. */
3611 /* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3613 char gethostbyname();
3617 /* The GNU C library defines this for functions which it implements
3618 to always fail with ENOSYS. Some functions are actually named
3619 something starting with __ and the normal name is an alias. */
3620 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3628 if { (eval echo configure
:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3630 eval "ac_cv_func_gethostbyname=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.
$ac_ext >&5
3635 eval "ac_cv_func_gethostbyname=no"
3640 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3644 echo "$ac_t""no" 1>&6
3647 if test $ac_cv_func_gethostbyname = no
; then
3648 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3649 echo "configure:3650: checking for gethostbyname in -lnsl" >&5
3650 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 ac_save_LIBS
="$LIBS"
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3662 char gethostbyname();
3668 if { (eval echo configure
:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3670 eval "ac_cv_lib_$ac_lib_var=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 eval "ac_cv_lib_$ac_lib_var=no"
3678 LIBS
="$ac_save_LIBS"
3681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3682 echo "$ac_t""yes" 1>&6
3683 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3685 echo "$ac_t""no" 1>&6
3690 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3691 # socket/setsockopt and other routines are undefined under SCO ODT
3692 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3693 # on later versions), says simon@lia.di.epfl.ch: it contains
3694 # gethostby* variants that don't use the nameserver (or something).
3695 # -lsocket must be given before -lnsl if both are needed.
3696 # We assume that if connect needs -lnsl, so does gethostbyname.
3697 echo $ac_n "checking for connect""... $ac_c" 1>&6
3698 echo "configure:3699: checking for connect" >&5
3699 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char connect(); below. */
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3715 /* The GNU C library defines this for functions which it implements
3716 to always fail with ENOSYS. Some functions are actually named
3717 something starting with __ and the normal name is an alias. */
3718 #if defined (__stub_connect) || defined (__stub___connect)
3726 if { (eval echo configure
:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3728 eval "ac_cv_func_connect=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.
$ac_ext >&5
3733 eval "ac_cv_func_connect=no"
3738 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3742 echo "$ac_t""no" 1>&6
3745 if test $ac_cv_func_connect = no
; then
3746 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3747 echo "configure:3748: checking for connect in -lsocket" >&5
3748 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 ac_save_LIBS
="$LIBS"
3753 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3754 cat > conftest.
$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3766 if { (eval echo configure
:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3768 eval "ac_cv_lib_$ac_lib_var=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.
$ac_ext >&5
3773 eval "ac_cv_lib_$ac_lib_var=no"
3776 LIBS
="$ac_save_LIBS"
3779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3783 echo "$ac_t""no" 1>&6
3788 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3789 echo $ac_n "checking for remove""... $ac_c" 1>&6
3790 echo "configure:3791: checking for remove" >&5
3791 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 /* System header to define __stub macros and hopefully few prototypes,
3798 which can conflict with char remove(); below. */
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3807 /* The GNU C library defines this for functions which it implements
3808 to always fail with ENOSYS. Some functions are actually named
3809 something starting with __ and the normal name is an alias. */
3810 #if defined (__stub_remove) || defined (__stub___remove)
3818 if { (eval echo configure
:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3820 eval "ac_cv_func_remove=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.
$ac_ext >&5
3825 eval "ac_cv_func_remove=no"
3830 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3834 echo "$ac_t""no" 1>&6
3837 if test $ac_cv_func_remove = no
; then
3838 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3839 echo "configure:3840: checking for remove in -lposix" >&5
3840 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3844 ac_save_LIBS
="$LIBS"
3845 LIBS
="-lposix $LIBS"
3846 cat > conftest.
$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 /* Override any gcc2 internal prototype to avoid an error. */
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3858 if { (eval echo configure
:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3860 eval "ac_cv_lib_$ac_lib_var=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.
$ac_ext >&5
3865 eval "ac_cv_lib_$ac_lib_var=no"
3868 LIBS
="$ac_save_LIBS"
3871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3872 echo "$ac_t""yes" 1>&6
3873 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3875 echo "$ac_t""no" 1>&6
3880 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3881 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3882 echo "configure:3883: checking for shmat" >&5
3883 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char shmat(); below. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_shmat) || defined (__stub___shmat)
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3912 eval "ac_cv_func_shmat=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 eval "ac_cv_func_shmat=no"
3922 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3926 echo "$ac_t""no" 1>&6
3929 if test $ac_cv_func_shmat = no
; then
3930 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3931 echo "configure:3932: checking for shmat in -lipc" >&5
3932 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 ac_save_LIBS
="$LIBS"
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3950 if { (eval echo configure
:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 eval "ac_cv_lib_$ac_lib_var=no"
3960 LIBS
="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3967 echo "$ac_t""no" 1>&6
3973 # Check for libraries that X11R6 Xt/Xaw programs need.
3974 ac_save_LDFLAGS
="$LDFLAGS"
3975 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3976 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3977 # check for ICE first), but we must link in the order -lSM -lICE or
3978 # we get undefined symbols. So assume we have SM if we have ICE.
3979 # These have to be linked with before -lX11, unlike the other
3980 # libraries we check for below, so use a different variable.
3981 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3982 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3983 echo "configure:3984: checking for IceConnectionNumber in -lICE" >&5
3984 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 ac_save_LIBS
="$LIBS"
3989 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3990 cat > conftest.
$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char IceConnectionNumber();
3999 IceConnectionNumber()
4002 if { (eval echo configure
:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 eval "ac_cv_lib_$ac_lib_var=no"
4012 LIBS
="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4019 echo "$ac_t""no" 1>&6
4022 LDFLAGS
="$ac_save_LDFLAGS"
4028 { echo "configure: error: The path for the X11 files not found!
4029 Make sure you have X and it's headers and libraries (the -devel packages
4030 in Linux) installed." 1>&2; exit 1; }
4033 X_LIBRARY_PATH
=$x_libraries
4039 XLIBS
="-lX11 $X_EXTRA_LIBS"
4042 lib_search_path
="$lib_search_path $XLFLAGS"
4043 inc_search_path
="$inc_search_path $XCFLAGS"
4051 # Check whether --enable-locale or --disable-locale was given.
4052 if test "${enable_locale+set}" = set; then
4053 enableval
="$enable_locale"
4058 if test "$use_locale" = yes; then
4059 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4060 echo "configure:4061: checking for _Xsetlocale in -lX11" >&5
4061 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 ac_save_LIBS
="$LIBS"
4066 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4067 cat > conftest.
$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4079 if { (eval echo configure
:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4081 eval "ac_cv_lib_$ac_lib_var=yes"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4086 eval "ac_cv_lib_$ac_lib_var=no"
4089 LIBS
="$ac_save_LIBS"
4092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 cat >> confdefs.h
<<\EOF
4099 echo "$ac_t""no" 1>&6
4105 # Check whether --enable-modelock or --disable-modelock was given.
4106 if test "${enable_modelock+set}" = set; then
4107 enableval
="$enable_modelock"
4108 cat >> confdefs.h
<<\EOF
4109 #define XKB_MODELOCK 1
4118 # Check whether --enable-shape or --disable-shape was given.
4119 if test "${enable_shape+set}" = set; then
4120 enableval
="$enable_shape"
4129 if test "$shape" = yes; then
4130 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4131 echo "configure:4132: checking for XShapeSelectInput in -lXext" >&5
4132 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 ac_save_LIBS
="$LIBS"
4137 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4138 cat > conftest.
$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char XShapeSelectInput();
4150 if { (eval echo configure
:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4152 eval "ac_cv_lib_$ac_lib_var=yes"
4154 echo "configure: failed program was:" >&5
4155 cat conftest.
$ac_ext >&5
4157 eval "ac_cv_lib_$ac_lib_var=no"
4160 LIBS
="$ac_save_LIBS"
4163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4164 echo "$ac_t""yes" 1>&6
4165 XLIBS
="-lXext $XLIBS"
4167 cat >> confdefs.h
<<\EOF
4172 echo "$ac_t""no" 1>&6
4180 # Check whether --enable-shm or --disable-shm was given.
4181 if test "${enable_shm+set}" = set; then
4182 enableval
="$enable_shm"
4189 if test "$shm" = yes; then
4190 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4191 echo "configure:4192: checking for XShmAttach in -lXext" >&5
4192 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_save_LIBS
="$LIBS"
4197 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4198 cat > conftest.
$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4210 if { (eval echo configure
:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4212 eval "ac_cv_lib_$ac_lib_var=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.
$ac_ext >&5
4217 eval "ac_cv_lib_$ac_lib_var=no"
4220 LIBS
="$ac_save_LIBS"
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4227 echo "$ac_t""no" 1>&6
4232 if test "$ok" = yes; then
4233 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4234 echo "configure:4235: checking for shmget" >&5
4235 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 cat > conftest.
$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 /* System header to define __stub macros and hopefully few prototypes,
4242 which can conflict with char shmget(); below. */
4244 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4251 /* The GNU C library defines this for functions which it implements
4252 to always fail with ENOSYS. Some functions are actually named
4253 something starting with __ and the normal name is an alias. */
4254 #if defined (__stub_shmget) || defined (__stub___shmget)
4262 if { (eval echo configure
:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4264 eval "ac_cv_func_shmget=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4269 eval "ac_cv_func_shmget=no"
4274 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4278 echo "$ac_t""no" 1>&6
4284 if test "$ok" = yes; then
4285 if test "$added_xext" = no
; then
4286 XLIBS
="-lXext $XLIBS"
4288 cat >> confdefs.h
<<\EOF
4308 LDFLAGS_old
="$LDFLAGS"
4309 LDFLAGS
="$LDFLAGS $lib_search_path"
4310 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4311 echo "configure:4312: checking for PLGetString in -lPropList" >&5
4312 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 ac_save_LIBS
="$LIBS"
4317 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4330 if { (eval echo configure
:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4332 eval "ac_cv_lib_$ac_lib_var=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4337 eval "ac_cv_lib_$ac_lib_var=no"
4340 LIBS
="$ac_save_LIBS"
4343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4347 echo "$ac_t""no" 1>&6
4351 LDFLAGS
="$LDFLAGS_old"
4353 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4355 CPPFLAGS_old
="$CPPFLAGS"
4356 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4357 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4358 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4359 echo "configure:4360: checking for proplist.h" >&5
4360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.
$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <proplist.h>
4368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4369 { (eval echo configure
:4370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4370 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4371 if test -z "$ac_err"; then
4373 eval "ac_cv_header_$ac_safe=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.
$ac_ext >&5
4379 eval "ac_cv_header_$ac_safe=no"
4383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4387 echo "$ac_t""no" 1>&6
4390 CPPFLAGS
="$CPPFLAGS_old"
4392 if test "x$ac_cv_header_proplist_h" = xyes
; then
4397 if test "x$LIBPL" = "x"; then
4399 echo "ERROR!!! libPropList is not installed, or could not be found."
4400 echo " Window Maker requires libPropList to build."
4401 echo " Please read INSTALL to find where you can find libPropList,"
4402 echo " and install it first."
4403 if test x
$W_SYSTEM = xLinux
; then
4404 echo " If you're using some prepackaged version of libPropList,"
4405 echo " make sure you install it's \"development\" package as well."
4407 echo " If you already have it installed, try using the"
4408 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4409 echo " --with-libs-from flag to tell configure where the library"
4410 echo " is installed and"
4412 echo " --with-incs-from flag to tell configure where the header"
4413 echo " files are installed"
4427 # Check whether --enable-xpm or --disable-xpm was given.
4428 if test "${enable_xpm+set}" = set; then
4429 enableval
="$enable_xpm"
4436 if test "$xpm" = yes; then
4438 LDFLAGS_old
="$LDFLAGS"
4439 LDFLAGS
="$LDFLAGS $lib_search_path"
4440 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4441 echo "configure:4442: checking for XpmCreatePixmapFromData in -lXpm" >&5
4442 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 ac_save_LIBS
="$LIBS"
4447 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4454 char XpmCreatePixmapFromData();
4457 XpmCreatePixmapFromData()
4460 if { (eval echo configure
:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4462 eval "ac_cv_lib_$ac_lib_var=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 eval "ac_cv_lib_$ac_lib_var=no"
4470 LIBS
="$ac_save_LIBS"
4473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4477 echo "$ac_t""no" 1>&6
4481 LDFLAGS
="$LDFLAGS_old"
4484 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4486 CPPFLAGS_old
="$CPPFLAGS"
4487 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4488 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4489 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4490 echo "configure:4491: checking for X11/xpm.h" >&5
4491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.
$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 #include <X11/xpm.h>
4499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4500 { (eval echo configure
:4501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4502 if test -z "$ac_err"; then
4504 eval "ac_cv_header_$ac_safe=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.
$ac_ext >&5
4510 eval "ac_cv_header_$ac_safe=no"
4514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4518 echo "$ac_t""no" 1>&6
4521 CPPFLAGS
="$CPPFLAGS_old"
4523 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4524 GFXLIBS
="$GFXLIBS -lXpm"
4526 cat >> confdefs.h
<<\EOF
4531 supported_gfx
="builtin-XPM"
4547 # Check whether --enable-png or --disable-png was given.
4548 if test "${enable_png+set}" = set; then
4549 enableval
="$enable_png"
4557 if test "$png" = yes ; then
4559 LDFLAGS_old
="$LDFLAGS"
4560 LDFLAGS
="$LDFLAGS $lib_search_path"
4561 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4562 echo "configure:4563: checking for png_get_valid in -lpng" >&5
4563 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 ac_save_LIBS
="$LIBS"
4568 LIBS
="-lpng -lz -lm $LIBS"
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4575 char png_get_valid();
4581 if { (eval echo configure
:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4583 eval "ac_cv_lib_$ac_lib_var=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.
$ac_ext >&5
4588 eval "ac_cv_lib_$ac_lib_var=no"
4591 LIBS
="$ac_save_LIBS"
4594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4598 echo "$ac_t""no" 1>&6
4602 LDFLAGS
="$LDFLAGS_old"
4605 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4607 CPPFLAGS_old
="$CPPFLAGS"
4608 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4609 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4610 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4611 echo "configure:4612: checking for png.h" >&5
4612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.
$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4621 { (eval echo configure
:4622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4623 if test -z "$ac_err"; then
4625 eval "ac_cv_header_$ac_safe=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.
$ac_ext >&5
4631 eval "ac_cv_header_$ac_safe=no"
4635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4639 echo "$ac_t""no" 1>&6
4642 CPPFLAGS
="$CPPFLAGS_old"
4644 if test "x$ac_cv_header_png_h" = xyes
; then
4645 GFXLIBS
="$GFXLIBS -lpng -lz"
4646 supported_gfx
="$supported_gfx PNG"
4647 cat >> confdefs.h
<<\EOF
4658 # Check whether --enable-jpeg or --disable-jpeg was given.
4659 if test "${enable_jpeg+set}" = set; then
4660 enableval
="$enable_jpeg"
4667 if test "$jpeg" = yes; then
4669 LDFLAGS_old
="$LDFLAGS"
4670 LDFLAGS
="$LDFLAGS $lib_search_path"
4671 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4672 echo "configure:4673: checking for jpeg_destroy_compress in -ljpeg" >&5
4673 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 ac_save_LIBS
="$LIBS"
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4685 char jpeg_destroy_compress();
4688 jpeg_destroy_compress()
4691 if { (eval echo configure
:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4693 eval "ac_cv_lib_$ac_lib_var=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 eval "ac_cv_lib_$ac_lib_var=no"
4701 LIBS
="$ac_save_LIBS"
4704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4708 echo "$ac_t""no" 1>&6
4712 LDFLAGS
="$LDFLAGS_old"
4715 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4720 CPPFLAGS_old
="$CPPFLAGS"
4721 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4722 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4724 echo "configure:4725: checking for jpeglib.h" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <jpeglib.h>
4733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure
:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4738 eval "ac_cv_header_$ac_safe=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.
$ac_ext >&5
4744 eval "ac_cv_header_$ac_safe=no"
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4752 echo "$ac_t""no" 1>&6
4755 CPPFLAGS
="$CPPFLAGS_old"
4757 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4758 GFXLIBS
="$GFXLIBS -ljpeg"
4759 supported_gfx
="$supported_gfx JPEG"
4760 cat >> confdefs.h
<<\EOF
4770 # Check whether --enable-gif or --disable-gif was given.
4771 if test "${enable_gif+set}" = set; then
4772 enableval
="$enable_gif"
4779 if test "$gif" = yes; then
4782 LDFLAGS_old
="$LDFLAGS"
4783 LDFLAGS
="$LDFLAGS $lib_search_path"
4784 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4785 echo "configure:4786: checking for DGifOpenFileName in -lungif" >&5
4786 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS
="$LIBS"
4791 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char DGifOpenFileName();
4804 if { (eval echo configure
:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4806 eval "ac_cv_lib_$ac_lib_var=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_lib_$ac_lib_var=no"
4814 LIBS
="$ac_save_LIBS"
4817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4821 echo "$ac_t""no" 1>&6
4825 LDFLAGS
="$LDFLAGS_old"
4827 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4830 if test "x$my_libname" = x
; then
4832 LDFLAGS_old
="$LDFLAGS"
4833 LDFLAGS
="$LDFLAGS $lib_search_path"
4834 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4835 echo "configure:4836: checking for DGifOpenFileName in -lgif" >&5
4836 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_save_LIBS
="$LIBS"
4841 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4842 cat > conftest.
$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char DGifOpenFileName();
4854 if { (eval echo configure
:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS
="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4871 echo "$ac_t""no" 1>&6
4875 LDFLAGS
="$LDFLAGS_old"
4877 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
4882 if test "$my_libname" != x
; then
4884 CPPFLAGS_old
="$CPPFLAGS"
4885 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4886 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4887 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4888 echo "configure:4889: checking for gif_lib.h" >&5
4889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 cat > conftest.
$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 #include <gif_lib.h>
4897 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4898 { (eval echo configure
:4899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4899 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4900 if test -z "$ac_err"; then
4902 eval "ac_cv_header_$ac_safe=yes"
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 eval "ac_cv_header_$ac_safe=no"
4912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4916 echo "$ac_t""no" 1>&6
4919 CPPFLAGS
="$CPPFLAGS_old"
4921 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
4922 GFXLIBS
="$GFXLIBS $my_libname"
4923 supported_gfx
="$supported_gfx GIF"
4924 cat >> confdefs.h
<<\EOF
4934 # Check whether --enable-tiff or --disable-tiff was given.
4935 if test "${enable_tiff+set}" = set; then
4936 enableval
="$enable_tiff"
4944 # TIFF can optionally have JPEG and/or zlib support. Must find out
4945 # when they are supported so that correct library flags are passed during
4946 # detection and linkage
4949 # By default use xpm icons if tiff is not found.
4953 if test "$tif" = yes; then
4956 LDFLAGS_old
="$LDFLAGS"
4957 LDFLAGS
="$LDFLAGS $lib_search_path"
4958 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4959 echo "configure:4960: checking for TIFFGetVersion in -ltiff" >&5
4960 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 ac_save_LIBS
="$LIBS"
4965 LIBS
="-ltiff -lm $LIBS"
4966 cat > conftest.
$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4972 char TIFFGetVersion();
4978 if { (eval echo configure
:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4980 eval "ac_cv_lib_$ac_lib_var=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4985 eval "ac_cv_lib_$ac_lib_var=no"
4988 LIBS
="$ac_save_LIBS"
4991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4995 echo "$ac_t""no" 1>&6
4999 LDFLAGS
="$LDFLAGS_old"
5001 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5004 unset ac_cv_lib_tiff_TIFFGetVersion
5005 if test "x$my_libname" = x
; then
5007 LDFLAGS_old
="$LDFLAGS"
5008 LDFLAGS
="$LDFLAGS $lib_search_path"
5009 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5010 echo "configure:5011: checking for TIFFGetVersion in -ltiff" >&5
5011 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 ac_save_LIBS
="$LIBS"
5016 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char TIFFGetVersion();
5029 if { (eval echo configure
:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5031 eval "ac_cv_lib_$ac_lib_var=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.
$ac_ext >&5
5036 eval "ac_cv_lib_$ac_lib_var=no"
5039 LIBS
="$ac_save_LIBS"
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5046 echo "$ac_t""no" 1>&6
5050 LDFLAGS
="$LDFLAGS_old"
5052 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5053 my_libname
="-ltiff -lz"
5057 if test "x$my_libname" = x
; then
5059 LDFLAGS_old
="$LDFLAGS"
5060 LDFLAGS
="$LDFLAGS $lib_search_path"
5061 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5062 echo "configure:5063: checking for TIFFGetVersion in -ltiff34" >&5
5063 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 ac_save_LIBS
="$LIBS"
5068 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5069 cat > conftest.
$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5075 char TIFFGetVersion();
5081 if { (eval echo configure
:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5083 eval "ac_cv_lib_$ac_lib_var=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5088 eval "ac_cv_lib_$ac_lib_var=no"
5091 LIBS
="$ac_save_LIBS"
5094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5098 echo "$ac_t""no" 1>&6
5102 LDFLAGS
="$LDFLAGS_old"
5104 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5105 my_libname
="-ltiff34"
5110 if test "x$my_libname" != x
; then
5112 CPPFLAGS_old
="$CPPFLAGS"
5113 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5114 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5115 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5116 echo "configure:5117: checking for tiffio.h" >&5
5117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5125 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5126 { (eval echo configure
:5127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5127 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5128 if test -z "$ac_err"; then
5130 eval "ac_cv_header_$ac_safe=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5136 eval "ac_cv_header_$ac_safe=no"
5140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5144 echo "$ac_t""no" 1>&6
5147 CPPFLAGS
="$CPPFLAGS_old"
5149 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5150 GFXLIBS
="$my_libname $GFXLIBS"
5152 supported_gfx
="$supported_gfx TIFF"
5153 cat >> confdefs.h
<<\EOF
5161 LIBRARY_SEARCH_PATH
="$lib_search_path"
5162 HEADER_SEARCH_PATH
="$inc_search_path"
5174 # Check whether --enable-debug or --disable-debug was given.
5175 if test "${enable_debug+set}" = set; then
5176 enableval
="$enable_debug"
5183 if test "$enable_debug" = yes; then
5185 # Efence makes things too slow. Add it by hand in the Makefiles
5186 # if it is really needed.
5187 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5189 DFLAGS
="-DWITHOUT_NANA"
5195 # Check whether --enable-sound or --disable-sound was given.
5196 if test "${enable_sound+set}" = set; then
5197 enableval
="$enable_sound"
5203 if test "$sound" = yes; then
5204 cat >> confdefs.h
<<\EOF
5211 # AC_PREFIX_PROGRAM(wmaker)
5213 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5214 if test "${with_pixmapdir+set}" = set; then
5215 withval
="$with_pixmapdir"
5220 if test "x$with_pixmapdir" != "x"; then
5221 pixmapdir
=$with_pixmapdir
5223 pixmapdir
=`eval echo ${datadir}/pixmaps`
5226 cat >> confdefs.h
<<EOF
5227 #define PIXMAPDIR "$pixmapdir"
5231 pkgdatadir
=`eval echo $datadir`
5232 cat >> confdefs.h
<<EOF
5233 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5237 _sysconfdir
=`eval echo $sysconfdir`
5238 cat >> confdefs.h
<<EOF
5239 #define SYSCONFDIR "$_sysconfdir"
5247 # Check whether --with-appspath or --without-appspath was given.
5248 if test "${with_appspath+set}" = set; then
5249 withval
="$with_appspath"
5254 if test "x$appspath" = "x"; then
5255 gnustepdir
='$(prefix)/GNUstep'
5257 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5258 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5259 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5262 with_appspath
=$gnustepdir/Apps
5265 wprefsdir
=$with_appspath/WPrefs.app
5271 # Check whether --enable-single-icon or --disable-single-icon was given.
5272 if test "${enable_single_icon+set}" = set; then
5273 enableval
="$enable_single_icon"
5274 if test "$enableval" = yes; then
5275 cat >> confdefs.h
<<\EOF
5276 #define REDUCE_APPICONS 1
5284 # Check whether --enable-usermenu or --disable-usermenu was given.
5285 if test "${enable_usermenu+set}" = set; then
5286 enableval
="$enable_usermenu"
5287 if test "$enableval" = yes; then
5288 cat >> confdefs.h
<<\EOF
5301 cat > confcache
<<\EOF
5302 # This file is a shell script that caches the results of configure
5303 # tests run on this system so they can be shared between configure
5304 # scripts and configure runs. It is not useful on other systems.
5305 # If it contains results you don't want to keep, you may remove or edit it.
5307 # By default, configure uses ./config.cache as the cache file,
5308 # creating it if it does not exist already. You can give configure
5309 # the --cache-file=FILE option to use a different cache file; that is
5310 # what configure does when it calls configure scripts in
5311 # subdirectories, so they share the cache.
5312 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5313 # config.status only pays attention to the cache file if you give it the
5314 # --recheck option to rerun configure.
5317 # The following way of writing the cache mishandles newlines in values,
5318 # but we know of no workaround that is simple, portable, and efficient.
5319 # So, don't put newlines in cache variables' values.
5320 # Ultrix sh set writes to stderr and can't be redirected directly,
5321 # and sets the high bit in the cache file unless we assign to the vars.
5323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5325 # `set' does not quote correctly, so add quotes (double-quote substitution
5326 # turns \\\\ into \\, and sed turns \\ into \).
5328 -e "s/'/'\\\\''/g" \
5329 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5332 # `set' quotes correctly as required by POSIX, so do not add quotes.
5333 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5336 if cmp -s $cache_file confcache
; then
5339 if test -w $cache_file; then
5340 echo "updating cache $cache_file"
5341 cat confcache
> $cache_file
5343 echo "not updating unwritable cache $cache_file"
5348 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5350 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5351 # Let make expand exec_prefix.
5352 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5354 # Any assignment to VPATH causes Sun make to only execute
5355 # the first set of double-colon rules, so remove it if not needed.
5356 # If there is a colon in the path, we need to keep it.
5357 if test "x$srcdir" = x.
; then
5358 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5361 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5363 DEFS
=-DHAVE_CONFIG_H
5365 # Without the "./", some shells look in PATH for config.status.
5366 : ${CONFIG_STATUS=./config.status}
5368 echo creating
$CONFIG_STATUS
5369 rm -f $CONFIG_STATUS
5370 cat > $CONFIG_STATUS <<EOF
5372 # Generated automatically by configure.
5373 # Run this file to recreate the current configuration.
5374 # This directory was configured as follows,
5375 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5377 # $0 $ac_configure_args
5379 # Compiler output produced by configure, useful for debugging
5380 # configure, is in ./config.log if it exists.
5382 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5385 case "\$ac_option" in
5386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5387 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5388 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5389 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5390 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5392 -help | --help | --hel | --he | --h)
5393 echo "\$ac_cs_usage"; exit 0 ;;
5394 *) echo "\$ac_cs_usage"; exit 1 ;;
5398 ac_given_srcdir=$srcdir
5399 ac_given_INSTALL="$INSTALL"
5401 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5402 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5403 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5404 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5405 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5406 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5407 WindowMaker/Themes/Makefile \
5408 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5409 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5411 cat >> $CONFIG_STATUS <<EOF
5413 # Protect against being on the right side of a sed subst in config.status.
5414 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5415 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5419 s%@CFLAGS@%$CFLAGS%g
5420 s%@CPPFLAGS@%$CPPFLAGS%g
5421 s%@CXXFLAGS@%$CXXFLAGS%g
5422 s%@FFLAGS@%$FFLAGS%g
5424 s%@LDFLAGS@%$LDFLAGS%g
5426 s%@exec_prefix@%$exec_prefix%g
5427 s%@prefix@%$prefix%g
5428 s%@program_transform_name@%$program_transform_name%g
5429 s%@bindir@%$bindir%g
5430 s%@sbindir@%$sbindir%g
5431 s%@libexecdir@%$libexecdir%g
5432 s%@datadir@%$datadir%g
5433 s%@sysconfdir@%$sysconfdir%g
5434 s%@sharedstatedir@%$sharedstatedir%g
5435 s%@localstatedir@%$localstatedir%g
5436 s%@libdir@%$libdir%g
5437 s%@includedir@%$includedir%g
5438 s%@oldincludedir@%$oldincludedir%g
5439 s%@infodir@%$infodir%g
5440 s%@mandir@%$mandir%g
5441 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5442 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5443 s%@INSTALL_DATA@%$INSTALL_DATA%g
5444 s%@PACKAGE@%$PACKAGE%g
5445 s%@VERSION@%$VERSION%g
5446 s%@ACLOCAL@%$ACLOCAL%g
5447 s%@AUTOCONF@%$AUTOCONF%g
5448 s%@AUTOMAKE@%$AUTOMAKE%g
5449 s%@AUTOHEADER@%$AUTOHEADER%g
5450 s%@MAKEINFO@%$MAKEINFO%g
5451 s%@SET_MAKE@%$SET_MAKE%g
5453 s%@host_alias@%$host_alias%g
5454 s%@host_cpu@%$host_cpu%g
5455 s%@host_vendor@%$host_vendor%g
5456 s%@host_os@%$host_os%g
5458 s%@build_alias@%$build_alias%g
5459 s%@build_cpu@%$build_cpu%g
5460 s%@build_vendor@%$build_vendor%g
5461 s%@build_os@%$build_os%g
5462 s%@RANLIB@%$RANLIB%g
5467 s%@LIBTOOL@%$LIBTOOL%g
5469 s%@ALLOCA@%$ALLOCA%g
5470 s%@CPP_PATH@%$CPP_PATH%g
5471 s%@XGETTEXT@%$XGETTEXT%g
5472 s%@DLLIBS@%$DLLIBS%g
5473 s%@INTLIBS@%$INTLIBS%g
5474 s%@NLSDIR@%$NLSDIR%g
5475 s%@MOFILES@%$MOFILES%g
5476 s%@WPMOFILES@%$WPMOFILES%g
5478 s%@X_CFLAGS@%$X_CFLAGS%g
5479 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5480 s%@X_LIBS@%$X_LIBS%g
5481 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5482 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5484 s%@XCFLAGS@%$XCFLAGS%g
5485 s%@XLFLAGS@%$XLFLAGS%g
5487 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5488 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5489 s%@GFXLIBS@%$GFXLIBS%g
5490 s%@ICONEXT@%$ICONEXT%g
5491 s%@DFLAGS@%$DFLAGS%g
5492 s%@wprefsdir@%$wprefsdir%g
5497 cat >> $CONFIG_STATUS <<\EOF
5499 # Split the substitutions into bite-sized pieces for seds with
5500 # small command number limits, like on Digital OSF/1 and HP-UX.
5501 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5502 ac_file
=1 # Number of current file.
5503 ac_beg
=1 # First line for current file.
5504 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5507 while $ac_more_lines; do
5508 if test $ac_beg -gt 1; then
5509 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5511 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5513 if test ! -s conftest.s
$ac_file; then
5515 rm -f conftest.s
$ac_file
5517 if test -z "$ac_sed_cmds"; then
5518 ac_sed_cmds
="sed -f conftest.s$ac_file"
5520 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5522 ac_file
=`expr $ac_file + 1`
5524 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5527 if test -z "$ac_sed_cmds"; then
5532 cat >> $CONFIG_STATUS <<EOF
5534 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5535 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5536 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5537 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5538 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5539 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5540 WindowMaker/Themes/Makefile \
5541 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5542 WPrefs.app/po/Makefile "}
5544 cat >> $CONFIG_STATUS <<\EOF
5545 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5548 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5549 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5550 *) ac_file_in
="${ac_file}.in" ;;
5553 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5555 # Remove last slash and all that follows it. Not all systems have dirname.
5556 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5557 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5558 # The file is in a subdirectory.
5559 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5560 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5561 # A "../" for each directory in $ac_dir_suffix.
5562 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5564 ac_dir_suffix
= ac_dots
=
5567 case "$ac_given_srcdir" in
5569 if test -z "$ac_dots"; then top_srcdir
=.
5570 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5571 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5573 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5574 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5577 case "$ac_given_INSTALL" in
5578 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5579 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5582 echo creating
"$ac_file"
5584 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5586 *Makefile
*) ac_comsub
="1i\\
5587 # $configure_input" ;;
5591 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5593 s%@configure_input@%$configure_input%g
5594 s%@srcdir@%$srcdir%g
5595 s%@top_srcdir@%$top_srcdir%g
5596 s%@INSTALL@%$INSTALL%g
5597 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5601 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5602 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5604 # ac_d sets the value in "#define NAME VALUE" lines.
5605 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5606 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5609 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5610 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5611 ac_uB
='\([ ]\)%\1#\2define\3'
5614 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5615 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5616 ac_eB
='$%\1#\2define\3'
5620 if test "${CONFIG_HEADERS+set}" != set; then
5622 cat >> $CONFIG_STATUS <<EOF
5623 CONFIG_HEADERS="src/config.h"
5625 cat >> $CONFIG_STATUS <<\EOF
5627 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5630 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5631 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5632 *) ac_file_in
="${ac_file}.in" ;;
5635 echo creating
$ac_file
5637 rm -f conftest.frag conftest.
in conftest.out
5638 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5639 cat $ac_file_inputs > conftest.
in
5643 # Transform confdefs.h into a sed script conftest.vals that substitutes
5644 # the proper values into config.h.in to produce config.h. And first:
5645 # Protect against being on the right side of a sed subst in config.status.
5646 # Protect against being in an unquoted here document in config.status.
5648 cat > conftest.hdr
<<\EOF
5651 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5655 sed -n -f conftest.hdr confdefs.h > conftest.vals
5658 # This sed command replaces #undef with comments. This is necessary, for
5659 # example, in the case of _POSIX_SOURCE, which is predefined and required
5660 # on some systems where configure will not decide to define it.
5661 cat >> conftest.vals <<\EOF
5662 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5665 # Break up conftest.vals because some shells have a limit on
5666 # the size of here documents, and old seds have small limits too.
5671 ac_lines=`grep -c . conftest.vals
`
5672 # grep -c gives empty output for an empty file on some AIX systems.
5673 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5674 # Write a limited-size here document to conftest.frag.
5675 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5676 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5678 sed -f conftest.frag conftest.in > conftest.out
5680 mv conftest.out conftest.in
5682 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5684 mv conftest.tail conftest.vals
5688 cat >> $CONFIG_STATUS <<\EOF
5689 rm -f conftest.frag conftest.h
5690 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5691 cat conftest.in >> conftest.h
5693 if cmp -s $ac_file conftest.h 2>/dev/null; then
5694 echo "$ac_file is unchanged"
5697 # Remove last slash and all that follows it. Not all systems have dirname.
5698 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5700 # The file is in a subdirectory.
5701 test ! -d "$ac_dir" && mkdir "$ac_dir"
5704 mv conftest.h $ac_file
5709 cat >> $CONFIG_STATUS <<EOF
5713 cat >> $CONFIG_STATUS <<\EOF
5714 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5718 chmod +x $CONFIG_STATUS
5719 rm -fr confdefs* $ac_clean_files
5720 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5728 cat <<EOF >get-wraster-flags
5732 exec_prefix=\$prefix
5734 WCFLAGS="-I\$prefix/include $inc_search_path"
5735 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5736 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5738 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5740 if test \$# -eq 0; then
5741 echo "\${usage}" 1>&2
5745 while test \$# -gt 0; do
5757 echo "\${usage}" 1>&2
5767 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5769 chmod 755 wrlib/get-wraster-flags
5770 rm -f get-wraster-flags
5774 supported_gfx="$supported_gfx builtin-PPM"
5776 if test "x$MOFILES" = "x"; then
5784 echo "Window Maker was configured as follows:"
5786 echo "Installation path prefix: $prefix"
5787 echo "Installation path prefix for binaries: $_bindir"
5788 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5789 echo "Graphic format libraries: $supported_gfx"
5790 echo "Sound support: $sound"
5791 echo "Translated message files to install: $mof"
5792 if test "x$MOFILES" != "x"; then
5793 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5797 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5798 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5800 echo "JPEG support will not be included because the JPEG library is"
5801 echo "not installed correctly or was not found. Background images"
5802 echo "from themes will not display as they usually are JPEG files."
5804 echo "To fix, download and install the jpeg library and/or make sure you"
5805 echo "installed all jpeg related packages, SPECIALLY the development packages"
5806 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
5808 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"