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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --with-system-zlib use installed libz"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file
=.
/config.cache
33 program_transform_name
=s
,x
,x
,
41 bindir
='${exec_prefix}/bin'
42 sbindir
='${exec_prefix}/sbin'
43 libexecdir
='${exec_prefix}/libexec'
44 datadir
='${prefix}/share'
45 sysconfdir
='${prefix}/etc'
46 sharedstatedir
='${prefix}/com'
47 localstatedir
='${prefix}/var'
48 libdir
='${exec_prefix}/lib'
49 includedir
='${prefix}/include'
50 oldincludedir
='/usr/include'
51 infodir
='${prefix}/info'
52 mandir
='${prefix}/man'
54 # Initialize some other variables.
57 SHELL
=${CONFIG_SHELL-/bin/sh}
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
83 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
84 bindir
="$ac_optarg" ;;
86 -build |
--build |
--buil |
--bui |
--bu)
88 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
91 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
92 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
94 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
95 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
96 cache_file
="$ac_optarg" ;;
98 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
100 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
102 datadir
="$ac_optarg" ;;
104 -disable-* |
--disable-*)
105 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* |
--enable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
127 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
128 |
--exec |
--exe |
--ex)
129 ac_prev
=exec_prefix
;;
130 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
131 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
132 |
--exec=* |
--exe=* |
--ex=*)
133 exec_prefix
="$ac_optarg" ;;
135 -gas |
--gas |
--ga |
--g)
136 # Obsolete; use --with-gas.
139 -help |
--help |
--hel |
--he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host |
--host |
--hos |
--ho)
196 -host=* |
--host=* |
--hos=* |
--ho=*)
199 -includedir |
--includedir |
--includedi |
--included |
--include \
200 |
--includ |
--inclu |
--incl |
--inc)
201 ac_prev
=includedir
;;
202 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
203 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
204 includedir
="$ac_optarg" ;;
206 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
208 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
209 infodir
="$ac_optarg" ;;
211 -libdir |
--libdir |
--libdi |
--libd)
213 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
214 libdir
="$ac_optarg" ;;
216 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
217 |
--libexe |
--libex |
--libe)
218 ac_prev
=libexecdir
;;
219 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
220 |
--libexe=* |
--libex=* |
--libe=*)
221 libexecdir
="$ac_optarg" ;;
223 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
224 |
--localstate |
--localstat |
--localsta |
--localst \
225 |
--locals |
--local |
--loca |
--loc |
--lo)
226 ac_prev
=localstatedir
;;
227 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
228 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
229 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
230 localstatedir
="$ac_optarg" ;;
232 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
234 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
235 mandir
="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
245 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
246 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
249 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
250 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
251 |
--oldin |
--oldi |
--old |
--ol |
--o)
252 ac_prev
=oldincludedir
;;
253 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
254 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
255 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
256 oldincludedir
="$ac_optarg" ;;
258 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
260 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
261 prefix
="$ac_optarg" ;;
263 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
264 |
--program-pre |
--program-pr |
--program-p)
265 ac_prev
=program_prefix
;;
266 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
267 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
268 program_prefix
="$ac_optarg" ;;
270 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
271 |
--program-suf |
--program-su |
--program-s)
272 ac_prev
=program_suffix
;;
273 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
274 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
275 program_suffix
="$ac_optarg" ;;
277 -program-transform-name |
--program-transform-name \
278 |
--program-transform-nam |
--program-transform-na \
279 |
--program-transform-n |
--program-transform- \
280 |
--program-transform |
--program-transfor \
281 |
--program-transfo |
--program-transf \
282 |
--program-trans |
--program-tran \
283 |
--progr-tra |
--program-tr |
--program-t)
284 ac_prev
=program_transform_name
;;
285 -program-transform-name=* |
--program-transform-name=* \
286 |
--program-transform-nam=* |
--program-transform-na=* \
287 |
--program-transform-n=* |
--program-transform-=* \
288 |
--program-transform=* |
--program-transfor=* \
289 |
--program-transfo=* |
--program-transf=* \
290 |
--program-trans=* |
--program-tran=* \
291 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
292 program_transform_name
="$ac_optarg" ;;
294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
295 |
-silent |
--silent |
--silen |
--sile |
--sil)
298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
302 sbindir
="$ac_optarg" ;;
304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
308 ac_prev
=sharedstatedir
;;
309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
313 sharedstatedir
="$ac_optarg" ;;
315 -site |
--site |
--sit)
317 -site=* |
--site=* |
--sit=*)
320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
323 srcdir
="$ac_optarg" ;;
325 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
326 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
327 ac_prev
=sysconfdir
;;
328 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
329 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
330 sysconfdir
="$ac_optarg" ;;
332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
335 target
="$ac_optarg" ;;
337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
340 -version |
--version |
--versio |
--versi |
--vers)
341 echo "configure generated by autoconf version 2.13"
345 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package
=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* |
--without-*)
358 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
371 |
--x-incl |
--x-inc |
--x-in |
--x-i)
372 ac_prev
=x_includes
;;
373 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
374 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
375 x_includes
="$ac_optarg" ;;
377 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
378 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
379 ac_prev
=x_libraries
;;
380 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
381 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
382 x_libraries
="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE
; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
433 |
--no-cr |
--no-c) ;;
434 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
435 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
436 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest
* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file
=jartool.h
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted
=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted
=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE
; then
487 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file
in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp
='$CPP $CPPFLAGS'
510 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling
=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
525 ac_n
= ac_c
='\c' ac_t
=
530 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
531 if test -f $ac_dir/install-sh
; then
533 ac_install_sh
="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh
; then
537 ac_install_sh
="$ac_aux_dir/install.sh -c"
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
544 ac_config_guess
=$ac_aux_dir/config.guess
545 ac_config_sub
=$ac_aux_dir/config.sub
546 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
548 # Find a good install program. We prefer a C program (faster),
549 # so one script is as good as another. But avoid the broken or
550 # incompatible versions:
551 # SysV /etc/install, /usr/sbin/install
552 # SunOS /usr/etc/install
555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
558 # ./install, which can be erroneously created by make from ./install.sh.
559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
560 echo "configure:561: checking for a BSD compatible install" >&5
561 if test -z "$INSTALL"; then
562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
565 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
566 for ac_dir
in $PATH; do
567 # Account for people who put trailing slashes in PATH elements.
569 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
571 # OSF1 and SCO ODT 3.0 have their own names for install.
572 # Don't use installbsd from OSF since it installs stuff as root
574 for ac_prog
in ginstall scoinst
install; do
575 if test -f $ac_dir/$ac_prog; then
576 if test $ac_prog = install &&
577 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
578 # AIX install. It has an incompatible calling convention.
581 ac_cv_path_install
="$ac_dir/$ac_prog -c"
592 if test "${ac_cv_path_install+set}" = set; then
593 INSTALL
="$ac_cv_path_install"
595 # As a last resort, use the slow shell script. We don't cache a
596 # path for INSTALL within a source directory, because that will
597 # break other packages using the cache if that directory is
598 # removed, or if the path is relative.
599 INSTALL
="$ac_install_sh"
602 echo "$ac_t""$INSTALL" 1>&6
604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
605 # It thinks the first close brace ends the variable substitution.
606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
610 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
612 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
613 echo "configure:614: checking whether build environment is sane" >&5
616 echo timestamp
> conftestfile
617 # Do `set' in a subshell so we don't clobber the current shell's
618 # arguments. Must try -L first in case configure is actually a
619 # symlink; some systems play weird games with the mod time of symlinks
620 # (eg FreeBSD returns the mod time of the symlink's containing
623 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
624 if test "$*" = "X"; then
626 set X
`ls -t $srcdir/configure conftestfile`
628 if test "$*" != "X $srcdir/configure conftestfile" \
629 && test "$*" != "X conftestfile $srcdir/configure"; then
631 # If neither matched, then we have a broken ls. This can happen
632 # if, for instance, CONFIG_SHELL is bash and it inherits a
633 # broken ls alias from the environment. This has actually
634 # happened. Such a system could not be considered "sane".
635 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
636 alias in your environment" 1>&2; exit 1; }
639 test "$2" = conftestfile
645 { echo "configure: error: newly created file is older than distributed files!
646 Check your system clock" 1>&2; exit 1; }
649 echo "$ac_t""yes" 1>&6
650 if test "$program_transform_name" = s
,x
,x
,; then
651 program_transform_name
=
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED
> conftestsed
655 s
,\\,\\\\,g
; s
,\$
,$$
,g
657 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
660 test "$program_prefix" != NONE
&&
661 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
662 # Use a double $ so make ignores it.
663 test "$program_suffix" != NONE
&&
664 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
666 # sed with no file args requires a program.
667 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
669 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
670 echo "configure:671: checking whether ${MAKE-make} sets \${MAKE}" >&5
671 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
672 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 cat > conftestmake
<<\EOF
677 @
echo 'ac_maketemp="${MAKE}"'
679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
680 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
681 if test -n "$ac_maketemp"; then
682 eval ac_cv_prog_make_
${ac_make}_set
=yes
684 eval ac_cv_prog_make_
${ac_make}_set
=no
688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
689 echo "$ac_t""yes" 1>&6
692 echo "$ac_t""no" 1>&6
693 SET_MAKE
="MAKE=${MAKE-make}"
701 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
702 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
704 cat >> confdefs.h
<<EOF
705 #define PACKAGE "$PACKAGE"
708 cat >> confdefs.h
<<EOF
709 #define VERSION "$VERSION"
714 missing_dir
=`cd $ac_aux_dir && pwd`
715 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
716 echo "configure:717: checking for working aclocal" >&5
717 # Run test in a subshell; some versions of sh will print an error if
718 # an executable is not found, even if stderr is redirected.
719 # Redirect stdin to placate older versions of autoconf. Sigh.
720 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
722 echo "$ac_t""found" 1>&6
724 ACLOCAL
="$missing_dir/missing aclocal"
725 echo "$ac_t""missing" 1>&6
728 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
729 echo "configure:730: checking for working autoconf" >&5
730 # Run test in a subshell; some versions of sh will print an error if
731 # an executable is not found, even if stderr is redirected.
732 # Redirect stdin to placate older versions of autoconf. Sigh.
733 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
735 echo "$ac_t""found" 1>&6
737 AUTOCONF
="$missing_dir/missing autoconf"
738 echo "$ac_t""missing" 1>&6
741 echo $ac_n "checking for working automake""... $ac_c" 1>&6
742 echo "configure:743: checking for working automake" >&5
743 # Run test in a subshell; some versions of sh will print an error if
744 # an executable is not found, even if stderr is redirected.
745 # Redirect stdin to placate older versions of autoconf. Sigh.
746 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
748 echo "$ac_t""found" 1>&6
750 AUTOMAKE
="$missing_dir/missing automake"
751 echo "$ac_t""missing" 1>&6
754 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
755 echo "configure:756: checking for working autoheader" >&5
756 # Run test in a subshell; some versions of sh will print an error if
757 # an executable is not found, even if stderr is redirected.
758 # Redirect stdin to placate older versions of autoconf. Sigh.
759 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
760 AUTOHEADER
=autoheader
761 echo "$ac_t""found" 1>&6
763 AUTOHEADER
="$missing_dir/missing autoheader"
764 echo "$ac_t""missing" 1>&6
767 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
768 echo "configure:769: checking for working makeinfo" >&5
769 # Run test in a subshell; some versions of sh will print an error if
770 # an executable is not found, even if stderr is redirected.
771 # Redirect stdin to placate older versions of autoconf. Sigh.
772 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
774 echo "$ac_t""found" 1>&6
776 MAKEINFO
="$missing_dir/missing makeinfo"
777 echo "$ac_t""missing" 1>&6
785 # Extract the first word of "gcc", so it can be a program name with args.
786 set dummy gcc
; ac_word
=$2
787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788 echo "configure:789: checking for $ac_word" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 if test -n "$CC"; then
793 ac_cv_prog_CC
="$CC" # Let the user override the test.
795 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
797 for ac_dir
in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir
=.
799 if test -f $ac_dir/$ac_word; then
808 if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
811 echo "$ac_t""no" 1>&6
814 if test -z "$CC"; then
815 # Extract the first word of "cc", so it can be a program name with args.
816 set dummy cc
; ac_word
=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC
="$CC" # Let the user override the test.
825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
828 for ac_dir
in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir
=.
830 if test -f $ac_dir/$ac_word; then
831 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
840 if test $ac_prog_rejected = yes; then
841 # We found a bogon in the path, so make sure we never use it.
842 set dummy
$ac_cv_prog_CC
844 if test $# -gt 0; then
845 # We chose a different compiler from the bogus one.
846 # However, it has the same basename, so the bogon will be chosen
847 # first if we set CC to just the basename; use the full file name.
849 set dummy
"$ac_dir/$ac_word" "$@"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 if test -z "$CC"; then
866 # Extract the first word of "cl", so it can be a program name with args.
867 set dummy cl
; ac_word
=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC
="$CC" # Let the user override the test.
876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
878 for ac_dir
in $ac_dummy; do
879 test -z "$ac_dir" && ac_dir
=.
880 if test -f $ac_dir/$ac_word; then
889 if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
892 echo "$ac_t""no" 1>&6
897 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905 ac_cpp
='$CPP $CPPFLAGS'
906 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908 cross_compiling
=$ac_cv_prog_cc_cross
910 cat > conftest.
$ac_ext << EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 if { (eval echo configure
:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
918 ac_cv_prog_cc_works
=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (.
/conftest
; exit) 2>/dev
/null
; then
921 ac_cv_prog_cc_cross
=no
923 ac_cv_prog_cc_cross
=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.
$ac_ext >&5
928 ac_cv_prog_cc_works
=no
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp
='$CPP $CPPFLAGS'
934 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling
=$ac_cv_prog_cc_cross
938 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
939 if test $ac_cv_prog_cc_works = no
; then
940 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
943 echo "configure:944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
944 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
945 cross_compiling
=$ac_cv_prog_cc_cross
947 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
948 echo "configure:949: checking whether we are using GNU C" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 cat > conftest.c
<<EOF
957 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
964 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
966 if test $ac_cv_prog_gcc = yes; then
972 ac_test_CFLAGS
="${CFLAGS+set}"
973 ac_save_CFLAGS
="$CFLAGS"
975 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
990 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991 if test "$ac_test_CFLAGS" = set; then
992 CFLAGS
="$ac_save_CFLAGS"
993 elif test $ac_cv_prog_cc_g = yes; then
994 if test "$GCC" = yes; then
1000 if test "$GCC" = yes; then
1007 # Find a good install program. We prefer a C program (faster),
1008 # so one script is as good as another. But avoid the broken or
1009 # incompatible versions:
1010 # SysV /etc/install, /usr/sbin/install
1011 # SunOS /usr/etc/install
1012 # IRIX /sbin/install
1014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1017 # ./install, which can be erroneously created by make from ./install.sh.
1018 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1019 echo "configure:1020: checking for a BSD compatible install" >&5
1020 if test -z "$INSTALL"; then
1021 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1025 for ac_dir
in $PATH; do
1026 # Account for people who put trailing slashes in PATH elements.
1028 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1030 # OSF1 and SCO ODT 3.0 have their own names for install.
1031 # Don't use installbsd from OSF since it installs stuff as root
1033 for ac_prog
in ginstall scoinst
install; do
1034 if test -f $ac_dir/$ac_prog; then
1035 if test $ac_prog = install &&
1036 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1037 # AIX install. It has an incompatible calling convention.
1040 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL
="$ac_cv_path_install"
1054 # As a last resort, use the slow shell script. We don't cache a
1055 # path for INSTALL within a source directory, because that will
1056 # break other packages using the cache if that directory is
1057 # removed, or if the path is relative.
1058 INSTALL
="$ac_install_sh"
1061 echo "$ac_t""$INSTALL" 1>&6
1063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1064 # It thinks the first close brace ends the variable substitution.
1065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1067 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1069 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1071 # Extract the first word of "rm", so it can be a program name with args.
1072 set dummy
rm; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1080 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1083 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
1086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1087 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1088 for ac_dir
in $ac_dummy; do
1089 test -z "$ac_dir" && ac_dir
=.
1090 if test -f $ac_dir/$ac_word; then
1091 ac_cv_path_RM
="$ac_dir/$ac_word"
1096 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="/bin/rm"
1101 if test -n "$RM"; then
1102 echo "$ac_t""$RM" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 # Extract the first word of "cp", so it can be a program name with args.
1108 set dummy
cp; ac_word
=$2
1109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1110 echo "configure:1111: checking for $ac_word" >&5
1111 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1116 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1119 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
1122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1123 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1124 for ac_dir
in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir
=.
1126 if test -f $ac_dir/$ac_word; then
1127 ac_cv_path_CP
="$ac_dir/$ac_word"
1132 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="/bin/cp"
1137 if test -n "$CP"; then
1138 echo "$ac_t""$CP" 1>&6
1140 echo "$ac_t""no" 1>&6
1143 # Extract the first word of "strip", so it can be a program name with args.
1144 set dummy strip
; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1152 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
1155 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a dos path.
1158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1159 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1160 for ac_dir
in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir
=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_path_STRIP
="$ac_dir/$ac_word"
1168 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
="/usr/bin/strip"
1172 STRIP
="$ac_cv_path_STRIP"
1173 if test -n "$STRIP"; then
1174 echo "$ac_t""$STRIP" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 # Extract the first word of "chmod", so it can be a program name with args.
1180 set dummy
chmod; ac_word
=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
1191 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a dos path.
1194 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1195 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1196 for ac_dir
in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir
=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_path_CHMOD
="$ac_dir/$ac_word"
1204 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
="/bin/chmod"
1208 CHMOD
="$ac_cv_path_CHMOD"
1209 if test -n "$CHMOD"; then
1210 echo "$ac_t""$CHMOD" 1>&6
1212 echo "$ac_t""no" 1>&6
1215 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1216 echo "configure:1217: checking for Cygwin environment" >&5
1217 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1227 #define __CYGWIN__ __CYGWIN32__
1232 if { (eval echo configure
:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1245 echo "$ac_t""$ac_cv_cygwin" 1>&6
1247 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1248 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1249 echo "configure:1250: checking for mingw32 environment" >&5
1250 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftest.
$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1261 if { (eval echo configure
:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1274 echo "$ac_t""$ac_cv_mingw32" 1>&6
1276 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1279 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1280 echo "configure:1281: checking for executable suffix" >&5
1281 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1288 echo 'int main () { return 0; }' > conftest.
$ac_ext
1290 if { (eval echo configure
:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1291 for file in conftest.
*; do
1293 *.c |
*.o |
*.obj
) ;;
1294 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1298 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1301 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1306 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1307 echo "$ac_t""${ac_cv_exeext}" 1>&6
1311 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether to enable maintainer-specific portions of Makefiles" >&5
1313 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1314 if test "${enable_maintainer_mode+set}" = set; then
1315 enableval
="$enable_maintainer_mode"
1316 USE_MAINTAINER_MODE
=$enableval
1318 USE_MAINTAINER_MODE
=no
1321 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1324 if test $USE_MAINTAINER_MODE = yes; then
1325 MAINTAINER_MODE_TRUE
=
1326 MAINTAINER_MODE_FALSE
='#'
1328 MAINTAINER_MODE_TRUE
='#'
1329 MAINTAINER_MODE_FALSE
=
1331 MAINT
=$MAINTAINER_MODE_TRUE
1335 if test "$GCC" = yes; then
1336 fastjar_warn_cflags
='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1341 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1343 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1344 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_hdr that defines DIR" >&5
1346 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 #include <sys/types.h>
1358 if { (eval echo configure
:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 eval "ac_cv_header_dirent_$ac_safe=yes"
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1365 eval "ac_cv_header_dirent_$ac_safe=no"
1369 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1371 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1372 cat >> confdefs.h
<<EOF
1373 #define $ac_tr_hdr 1
1375 ac_header_dirent
=$ac_hdr; break
1377 echo "$ac_t""no" 1>&6
1380 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1381 if test $ac_header_dirent = dirent.h
; then
1382 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1383 echo "configure:1384: checking for opendir in -ldir" >&5
1384 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 ac_save_LIBS
="$LIBS"
1390 cat > conftest.
$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1402 if { (eval echo configure
:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1404 eval "ac_cv_lib_$ac_lib_var=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1409 eval "ac_cv_lib_$ac_lib_var=no"
1412 LIBS
="$ac_save_LIBS"
1415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1423 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1424 echo "configure:1425: checking for opendir in -lx" >&5
1425 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_save_LIBS
="$LIBS"
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1443 if { (eval echo configure
:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.
$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS
="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
1465 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1466 echo "configure:1467: checking how to run the C preprocessor" >&5
1467 # On Suns, sometimes $CPP names a directory.
1468 if test -n "$CPP" && test -d "$CPP"; then
1471 if test -z "$CPP"; then
1472 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 # This must be in double quotes, not single quotes, because CPP may get
1476 # substituted into the Makefile and "${CC-cc}" will confuse make.
1478 # On the NeXT, cc -E runs the code through the compiler's parser,
1479 # not just through cpp.
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1487 { (eval echo configure
:1488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1489 if test -z "$ac_err"; then
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 CPP
="${CC-cc} -E -traditional-cpp"
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure
:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506 if test -z "$ac_err"; then
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 CPP
="${CC-cc} -nologo -E"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure
:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1523 if test -z "$ac_err"; then
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1537 ac_cv_prog_CPP
="$CPP"
1539 CPP
="$ac_cv_prog_CPP"
1541 ac_cv_prog_CPP
="$CPP"
1543 echo "$ac_t""$CPP" 1>&6
1545 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1546 echo "configure:1547: checking for ANSI C header files" >&5
1547 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.
$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559 { (eval echo configure
:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1561 if test -z "$ac_err"; then
1563 ac_cv_header_stdc
=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 ac_cv_header_stdc
=no
1573 if test $ac_cv_header_stdc = yes; then
1574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1581 egrep "memchr" >/dev
/null
2>&1; then
1585 ac_cv_header_stdc
=no
1591 if test $ac_cv_header_stdc = yes; then
1592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1593 cat > conftest.
$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1599 egrep "free" >/dev
/null
2>&1; then
1603 ac_cv_header_stdc
=no
1609 if test $ac_cv_header_stdc = yes; then
1610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1611 if test "$cross_compiling" = yes; then
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1618 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1619 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1621 int main () { int i; for (i = 0; i < 256; i++)
1622 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1626 if { (eval echo configure
:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1630 echo "configure: failed program was:" >&5
1631 cat conftest.
$ac_ext >&5
1633 ac_cv_header_stdc
=no
1641 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1642 if test $ac_cv_header_stdc = yes; then
1643 cat >> confdefs.h
<<\EOF
1644 #define STDC_HEADERS 1
1649 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether struct tm is in sys/time.h or time.h" >&5
1651 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1660 struct tm *tp; tp->tm_sec;
1663 if { (eval echo configure
:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 ac_cv_struct_tm
=time.h
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 ac_cv_struct_tm
=sys
/time.h
1675 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1676 if test $ac_cv_struct_tm = sys
/time.h
; then
1677 cat >> confdefs.h
<<\EOF
1678 #define TM_IN_SYS_TIME 1
1683 for ac_hdr
in fcntl.h unistd.h sys
/param.h stdlib.h
1685 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_hdr" >&5
1688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure
:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1701 eval "ac_cv_header_$ac_safe=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1707 eval "ac_cv_header_$ac_safe=no"
1711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1714 cat >> confdefs.h
<<EOF
1715 #define $ac_tr_hdr 1
1719 echo "$ac_t""no" 1>&6
1724 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1725 echo "configure:1726: checking for off_t" >&5
1726 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.
$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732 #include <sys/types.h>
1738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1739 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1741 ac_cv_type_off_t
=yes
1749 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1750 if test $ac_cv_type_off_t = no
; then
1751 cat >> confdefs.h
<<\EOF
1757 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether struct tm is in sys/time.h or time.h" >&5
1759 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include <sys/types.h>
1768 struct tm *tp; tp->tm_sec;
1771 if { (eval echo configure
:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1773 ac_cv_struct_tm
=time.h
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1778 ac_cv_struct_tm
=sys
/time.h
1783 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1784 if test $ac_cv_struct_tm = sys
/time.h
; then
1785 cat >> confdefs.h
<<\EOF
1786 #define TM_IN_SYS_TIME 1
1792 echo $ac_n "checking size of char""... $ac_c" 1>&6
1793 echo "configure:1794: checking size of char" >&5
1794 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 #include "confdefs.h"
1802 #include <sys/types.h>
1806 switch (0) case 0: case (sizeof (char) == $ac_size):;
1809 if { (eval echo configure
:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1811 ac_cv_sizeof_char
=$ac_size
1813 echo "configure: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1817 if test x
$ac_cv_sizeof_char != x
; then break; fi
1822 if test x
$ac_cv_sizeof_char = x
; then
1823 { echo "configure: error: cannot determine a size for char" 1>&2; exit 1; }
1825 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1826 cat >> confdefs.h
<<EOF
1827 #define SIZEOF_CHAR $ac_cv_sizeof_char
1831 echo $ac_n "checking size of short""... $ac_c" 1>&6
1832 echo "configure:1833: checking size of short" >&5
1833 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1837 cat > conftest.
$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include "confdefs.h"
1841 #include <sys/types.h>
1845 switch (0) case 0: case (sizeof (short) == $ac_size):;
1848 if { (eval echo configure
:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 ac_cv_sizeof_short
=$ac_size
1852 echo "configure: failed program was:" >&5
1853 cat conftest.
$ac_ext >&5
1856 if test x
$ac_cv_sizeof_short != x
; then break; fi
1861 if test x
$ac_cv_sizeof_short = x
; then
1862 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1864 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1865 cat >> confdefs.h
<<EOF
1866 #define SIZEOF_SHORT $ac_cv_sizeof_short
1870 echo $ac_n "checking size of int""... $ac_c" 1>&6
1871 echo "configure:1872: checking size of int" >&5
1872 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1876 cat > conftest.
$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 #include "confdefs.h"
1880 #include <sys/types.h>
1884 switch (0) case 0: case (sizeof (int) == $ac_size):;
1887 if { (eval echo configure
:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 ac_cv_sizeof_int
=$ac_size
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1895 if test x
$ac_cv_sizeof_int != x
; then break; fi
1900 if test x
$ac_cv_sizeof_int = x
; then
1901 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1903 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1904 cat >> confdefs.h
<<EOF
1905 #define SIZEOF_INT $ac_cv_sizeof_int
1909 echo $ac_n "checking size of long""... $ac_c" 1>&6
1910 echo "configure:1911: checking size of long" >&5
1911 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1923 switch (0) case 0: case (sizeof (long) == $ac_size):;
1926 if { (eval echo configure
:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1928 ac_cv_sizeof_long
=$ac_size
1930 echo "configure: failed program was:" >&5
1931 cat conftest.
$ac_ext >&5
1934 if test x
$ac_cv_sizeof_long != x
; then break; fi
1939 if test x
$ac_cv_sizeof_long = x
; then
1940 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1942 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1943 cat >> confdefs.h
<<EOF
1944 #define SIZEOF_LONG $ac_cv_sizeof_long
1948 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1949 echo "configure:1950: checking size of long long" >&5
1950 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include "confdefs.h"
1958 #include <sys/types.h>
1962 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1965 if { (eval echo configure
:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1967 ac_cv_sizeof_long_long
=$ac_size
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1973 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1978 if test x
$ac_cv_sizeof_long_long = x
; then
1979 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1981 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1982 cat >> confdefs.h
<<EOF
1983 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1988 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
1989 echo "configure:1990: checking byte ordering" >&5
1990 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 ac_cv_c_compile_endian
=unknown
1996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1997 ac_cpp
='$CPP $CPPFLAGS'
1998 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1999 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2000 cross_compiling
=$ac_cv_prog_cc_cross
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2006 #ifdef HAVE_LIMITS_H
2007 # include <limits.h>
2009 /* This structure must have no internal padding. */
2011 char prefix[sizeof "\nendian:" - 1];
2016 #if SIZEOF_SHORT == 4
2017 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2019 ('A' << CHAR_BIT) | 'B',
2023 if { (eval echo configure
:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2025 sed 's/^[0-7]*[ ]*/ /
2028 s/ [0-9][0-9][0-9]/./g
2034 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2035 ac_cv_c_compile_endian
=big-endian
2036 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2037 ac_cv_c_compile_endian
=little-endian
2042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2043 ac_cpp
='$CPP $CPPFLAGS'
2044 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2045 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2046 cross_compiling
=$ac_cv_prog_cc_cross
2051 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2052 if test $ac_cv_c_compile_endian = unknown
; then
2053 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2054 elif test $ac_cv_c_compile_endian = big-endian
; then
2055 cat >> confdefs.h
<<\EOF
2056 #define WORDS_BIG_ENDIAN 1
2062 # Check whether --with-system-zlib or --without-system-zlib was given.
2063 if test "${with_system_zlib+set}" = set; then
2064 withval
="$with_system_zlib"
2073 if test "$with_system_zlib" = yes; then
2074 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2075 echo "configure:2076: checking for deflate in -lz" >&5
2076 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 ac_save_LIBS
="$LIBS"
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2094 if { (eval echo configure
:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2096 eval "ac_cv_lib_$ac_lib_var=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 eval "ac_cv_lib_$ac_lib_var=no"
2104 LIBS
="$ac_save_LIBS"
2107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2111 echo "$ac_t""no" 1>&6
2119 if test "$use_zlib" = no
; then
2120 # Brain dead way to find tree's zlib.
2121 ZDEPS
='$(top_builddir)/../zlib/libz.a'
2122 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2123 ZINCS
='-I$(top_srcdir)/../zlib'
2130 cat > confcache
<<\EOF
2131 # This file is a shell script that caches the results of configure
2132 # tests run on this system so they can be shared between configure
2133 # scripts and configure runs. It is not useful on other systems.
2134 # If it contains results you don't want to keep, you may remove or edit it.
2136 # By default, configure uses ./config.cache as the cache file,
2137 # creating it if it does not exist already. You can give configure
2138 # the --cache-file=FILE option to use a different cache file; that is
2139 # what configure does when it calls configure scripts in
2140 # subdirectories, so they share the cache.
2141 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2142 # config.status only pays attention to the cache file if you give it the
2143 # --recheck option to rerun configure.
2146 # The following way of writing the cache mishandles newlines in values,
2147 # but we know of no workaround that is simple, portable, and efficient.
2148 # So, don't put newlines in cache variables' values.
2149 # Ultrix sh set writes to stderr and can't be redirected directly,
2150 # and sets the high bit in the cache file unless we assign to the vars.
2152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2154 # `set' does not quote correctly, so add quotes (double-quote substitution
2155 # turns \\\\ into \\, and sed turns \\ into \).
2157 -e "s/'/'\\\\''/g" \
2158 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2161 # `set' quotes correctly as required by POSIX, so do not add quotes.
2162 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2165 if cmp -s $cache_file confcache
; then
2168 if test -w $cache_file; then
2169 echo "updating cache $cache_file"
2170 cat confcache
> $cache_file
2172 echo "not updating unwritable cache $cache_file"
2177 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2179 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2180 # Let make expand exec_prefix.
2181 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2183 # Any assignment to VPATH causes Sun make to only execute
2184 # the first set of double-colon rules, so remove it if not needed.
2185 # If there is a colon in the path, we need to keep it.
2186 if test "x$srcdir" = x.
; then
2187 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2190 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2192 DEFS
=-DHAVE_CONFIG_H
2194 # Without the "./", some shells look in PATH for config.status.
2195 : ${CONFIG_STATUS=./config.status}
2197 echo creating
$CONFIG_STATUS
2198 rm -f $CONFIG_STATUS
2199 cat > $CONFIG_STATUS <<EOF
2201 # Generated automatically by configure.
2202 # Run this file to recreate the current configuration.
2203 # This directory was configured as follows,
2204 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2206 # $0 $ac_configure_args
2208 # Compiler output produced by configure, useful for debugging
2209 # configure, is in ./config.log if it exists.
2211 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2214 case "\$ac_option" in
2215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2216 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2217 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2218 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2219 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2221 -help | --help | --hel | --he | --h)
2222 echo "\$ac_cs_usage"; exit 0 ;;
2223 *) echo "\$ac_cs_usage"; exit 1 ;;
2227 ac_given_srcdir=$srcdir
2228 ac_given_INSTALL="$INSTALL"
2230 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2232 cat >> $CONFIG_STATUS <<EOF
2234 # Protect against being on the right side of a sed subst in config.status.
2235 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2236 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2240 s%@CFLAGS@%$CFLAGS%g
2241 s%@CPPFLAGS@%$CPPFLAGS%g
2242 s%@CXXFLAGS@%$CXXFLAGS%g
2243 s%@FFLAGS@%$FFLAGS%g
2245 s%@LDFLAGS@%$LDFLAGS%g
2247 s%@exec_prefix@%$exec_prefix%g
2248 s%@prefix@%$prefix%g
2249 s%@program_transform_name@%$program_transform_name%g
2250 s%@bindir@%$bindir%g
2251 s%@sbindir@%$sbindir%g
2252 s%@libexecdir@%$libexecdir%g
2253 s%@datadir@%$datadir%g
2254 s%@sysconfdir@%$sysconfdir%g
2255 s%@sharedstatedir@%$sharedstatedir%g
2256 s%@localstatedir@%$localstatedir%g
2257 s%@libdir@%$libdir%g
2258 s%@includedir@%$includedir%g
2259 s%@oldincludedir@%$oldincludedir%g
2260 s%@infodir@%$infodir%g
2261 s%@mandir@%$mandir%g
2262 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2263 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2264 s%@INSTALL_DATA@%$INSTALL_DATA%g
2265 s%@PACKAGE@%$PACKAGE%g
2266 s%@VERSION@%$VERSION%g
2267 s%@ACLOCAL@%$ACLOCAL%g
2268 s%@AUTOCONF@%$AUTOCONF%g
2269 s%@AUTOMAKE@%$AUTOMAKE%g
2270 s%@AUTOHEADER@%$AUTOHEADER%g
2271 s%@MAKEINFO@%$MAKEINFO%g
2272 s%@SET_MAKE@%$SET_MAKE%g
2278 s%@EXEEXT@%$EXEEXT%g
2279 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2280 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2282 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2291 cat >> $CONFIG_STATUS <<\EOF
2293 # Split the substitutions into bite-sized pieces for seds with
2294 # small command number limits, like on Digital OSF/1 and HP-UX.
2295 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2296 ac_file
=1 # Number of current file.
2297 ac_beg
=1 # First line for current file.
2298 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2301 while $ac_more_lines; do
2302 if test $ac_beg -gt 1; then
2303 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2305 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2307 if test ! -s conftest.s
$ac_file; then
2309 rm -f conftest.s
$ac_file
2311 if test -z "$ac_sed_cmds"; then
2312 ac_sed_cmds
="sed -f conftest.s$ac_file"
2314 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2316 ac_file
=`expr $ac_file + 1`
2318 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2321 if test -z "$ac_sed_cmds"; then
2326 cat >> $CONFIG_STATUS <<EOF
2328 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2330 cat >> $CONFIG_STATUS <<\EOF
2331 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2334 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2335 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2336 *) ac_file_in
="${ac_file}.in" ;;
2339 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2341 # Remove last slash and all that follows it. Not all systems have dirname.
2342 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2343 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2344 # The file is in a subdirectory.
2345 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2346 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2347 # A "../" for each directory in $ac_dir_suffix.
2348 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2350 ac_dir_suffix
= ac_dots
=
2353 case "$ac_given_srcdir" in
2355 if test -z "$ac_dots"; then top_srcdir
=.
2356 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2357 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2359 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2360 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2363 case "$ac_given_INSTALL" in
2364 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2365 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2368 echo creating
"$ac_file"
2370 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2372 *Makefile
*) ac_comsub
="1i\\
2373 # $configure_input" ;;
2377 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2379 s%@configure_input@%$configure_input%g
2380 s%@srcdir@%$srcdir%g
2381 s%@top_srcdir@%$top_srcdir%g
2382 s%@INSTALL@%$INSTALL%g
2383 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2387 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2388 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2390 # ac_d sets the value in "#define NAME VALUE" lines.
2391 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2392 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2395 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2396 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2397 ac_uB
='\([ ]\)%\1#\2define\3'
2400 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2401 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2402 ac_eB
='$%\1#\2define\3'
2406 if test "${CONFIG_HEADERS+set}" != set; then
2408 cat >> $CONFIG_STATUS <<EOF
2409 CONFIG_HEADERS="config.h"
2411 cat >> $CONFIG_STATUS <<\EOF
2413 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2416 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2417 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2418 *) ac_file_in
="${ac_file}.in" ;;
2421 echo creating
$ac_file
2423 rm -f conftest.frag conftest.
in conftest.out
2424 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2425 cat $ac_file_inputs > conftest.
in
2429 # Transform confdefs.h into a sed script conftest.vals that substitutes
2430 # the proper values into config.h.in to produce config.h. And first:
2431 # Protect against being on the right side of a sed subst in config.status.
2432 # Protect against being in an unquoted here document in config.status.
2434 cat > conftest.hdr
<<\EOF
2437 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2441 sed -n -f conftest.hdr confdefs.h > conftest.vals
2444 # This sed command replaces #undef with comments. This is necessary, for
2445 # example, in the case of _POSIX_SOURCE, which is predefined and required
2446 # on some systems where configure will not decide to define it.
2447 cat >> conftest.vals <<\EOF
2448 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2451 # Break up conftest.vals because some shells have a limit on
2452 # the size of here documents, and old seds have small limits too.
2457 ac_lines=`grep -c . conftest.vals
`
2458 # grep -c gives empty output for an empty file on some AIX systems.
2459 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2460 # Write a limited-size here document to conftest.frag.
2461 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2462 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2464 sed -f conftest.frag conftest.in > conftest.out
2466 mv conftest.out conftest.in
2468 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2470 mv conftest.tail conftest.vals
2474 cat >> $CONFIG_STATUS <<\EOF
2475 rm -f conftest.frag conftest.h
2476 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2477 cat conftest.in >> conftest.h
2479 if cmp -s $ac_file conftest.h 2>/dev/null; then
2480 echo "$ac_file is unchanged"
2483 # Remove last slash and all that follows it. Not all systems have dirname.
2484 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2485 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2486 # The file is in a subdirectory.
2487 test ! -d "$ac_dir" && mkdir "$ac_dir"
2490 mv conftest.h $ac_file
2495 cat >> $CONFIG_STATUS <<EOF
2499 cat >> $CONFIG_STATUS <<\EOF
2500 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2504 chmod +x $CONFIG_STATUS
2505 rm -fr confdefs* $ac_clean_files
2506 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1