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 --with-system-zlib use installed libz"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file
=.
/config.cache
30 program_transform_name
=s
,x
,x
,
39 bindir
='${exec_prefix}/bin'
40 sbindir
='${exec_prefix}/sbin'
41 libexecdir
='${exec_prefix}/libexec'
42 datadir
='${prefix}/share'
43 sysconfdir
='${prefix}/etc'
44 sharedstatedir
='${prefix}/com'
45 localstatedir
='${prefix}/var'
46 libdir
='${exec_prefix}/lib'
47 includedir
='${prefix}/include'
48 oldincludedir
='/usr/include'
49 infodir
='${prefix}/info'
50 mandir
='${prefix}/man'
52 # Initialize some other variables.
55 SHELL
=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
81 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
82 bindir
="$ac_optarg" ;;
84 -build |
--build |
--buil |
--bui |
--bu)
86 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
89 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
90 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
92 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
93 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
94 cache_file
="$ac_optarg" ;;
96 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
98 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
100 datadir
="$ac_optarg" ;;
102 -disable-* |
--disable-*)
103 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* |
--enable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
126 |
--exec |
--exe |
--ex)
127 ac_prev
=exec_prefix
;;
128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
130 |
--exec=* |
--exe=* |
--ex=*)
131 exec_prefix
="$ac_optarg" ;;
133 -gas |
--gas |
--ga |
--g)
134 # Obsolete; use --with-gas.
137 -help |
--help |
--hel |
--he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --site-file=FILE use FILE as the site file
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host |
--host |
--hos |
--ho)
195 -host=* |
--host=* |
--hos=* |
--ho=*)
198 -includedir |
--includedir |
--includedi |
--included |
--include \
199 |
--includ |
--inclu |
--incl |
--inc)
200 ac_prev
=includedir
;;
201 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
202 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
203 includedir
="$ac_optarg" ;;
205 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
207 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
208 infodir
="$ac_optarg" ;;
210 -libdir |
--libdir |
--libdi |
--libd)
212 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
213 libdir
="$ac_optarg" ;;
215 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
216 |
--libexe |
--libex |
--libe)
217 ac_prev
=libexecdir
;;
218 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
219 |
--libexe=* |
--libex=* |
--libe=*)
220 libexecdir
="$ac_optarg" ;;
222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
223 |
--localstate |
--localstat |
--localsta |
--localst \
224 |
--locals |
--local |
--loca |
--loc |
--lo)
225 ac_prev
=localstatedir
;;
226 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
227 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
228 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
229 localstatedir
="$ac_optarg" ;;
231 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
233 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
234 mandir
="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
244 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
245 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
248 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
249 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
250 |
--oldin |
--oldi |
--old |
--ol |
--o)
251 ac_prev
=oldincludedir
;;
252 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
253 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
254 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
255 oldincludedir
="$ac_optarg" ;;
257 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
259 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
260 prefix
="$ac_optarg" ;;
262 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
263 |
--program-pre |
--program-pr |
--program-p)
264 ac_prev
=program_prefix
;;
265 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
266 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
267 program_prefix
="$ac_optarg" ;;
269 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
270 |
--program-suf |
--program-su |
--program-s)
271 ac_prev
=program_suffix
;;
272 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
273 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
274 program_suffix
="$ac_optarg" ;;
276 -program-transform-name |
--program-transform-name \
277 |
--program-transform-nam |
--program-transform-na \
278 |
--program-transform-n |
--program-transform- \
279 |
--program-transform |
--program-transfor \
280 |
--program-transfo |
--program-transf \
281 |
--program-trans |
--program-tran \
282 |
--progr-tra |
--program-tr |
--program-t)
283 ac_prev
=program_transform_name
;;
284 -program-transform-name=* |
--program-transform-name=* \
285 |
--program-transform-nam=* |
--program-transform-na=* \
286 |
--program-transform-n=* |
--program-transform-=* \
287 |
--program-transform=* |
--program-transfor=* \
288 |
--program-transfo=* |
--program-transf=* \
289 |
--program-trans=* |
--program-tran=* \
290 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
291 program_transform_name
="$ac_optarg" ;;
293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
294 |
-silent |
--silent |
--silen |
--sile |
--sil)
297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
301 sbindir
="$ac_optarg" ;;
303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
307 ac_prev
=sharedstatedir
;;
308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
312 sharedstatedir
="$ac_optarg" ;;
314 -site |
--site |
--sit)
316 -site=* |
--site=* |
--sit=*)
319 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
321 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
322 sitefile
="$ac_optarg" ;;
324 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
326 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
327 srcdir
="$ac_optarg" ;;
329 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
330 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
331 ac_prev
=sysconfdir
;;
332 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
333 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
334 sysconfdir
="$ac_optarg" ;;
336 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
338 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
339 target
="$ac_optarg" ;;
341 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
344 -version |
--version |
--versio |
--versi |
--vers)
345 echo "configure generated by autoconf version 2.13"
349 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package
=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* |
--without-*)
362 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
375 |
--x-incl |
--x-inc |
--x-in |
--x-i)
376 ac_prev
=x_includes
;;
377 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
378 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
379 x_includes
="$ac_optarg" ;;
381 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
382 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
383 ac_prev
=x_libraries
;;
384 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
385 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
386 x_libraries
="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE
; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
437 |
--no-cr |
--no-c) ;;
438 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
439 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
440 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest
* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file
=jartool.h
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted
=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted
=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$sitefile"; then
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 CONFIG_SITE
="$sitefile"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
533 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
574 for ac_dir
in $PATH; do
575 # Account for people who put trailing slashes in PATH elements.
577 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
579 # OSF1 and SCO ODT 3.0 have their own names for install.
580 # Don't use installbsd from OSF since it installs stuff as root
582 for ac_prog
in ginstall scoinst
install; do
583 if test -f $ac_dir/$ac_prog; then
584 if test $ac_prog = install &&
585 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
586 # AIX install. It has an incompatible calling convention.
589 ac_cv_path_install
="$ac_dir/$ac_prog -c"
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL
="$ac_cv_path_install"
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL
="$ac_install_sh"
610 echo "$ac_t""$INSTALL" 1>&6
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
624 echo timestamp
> conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments. Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
631 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632 if test "$*" = "X"; then
634 set X
`ls -t $srcdir/configure conftestfile`
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
639 # If neither matched, then we have a broken ls. This can happen
640 # if, for instance, CONFIG_SHELL is bash and it inherits a
641 # broken ls alias from the environment. This has actually
642 # happened. Such a system could not be considered "sane".
643 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
647 test "$2" = conftestfile
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s
,x
,x
,; then
659 program_transform_name
=
661 # Double any \ or $. echo might interpret backslashes.
662 cat <<\EOF_SED
> conftestsed
663 s
,\\,\\\\,g
; s
,\$
,$$
,g
665 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
668 test "$program_prefix" != NONE
&&
669 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE
&&
672 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 cat > conftestmake
<<\EOF
685 @
echo 'ac_maketemp="${MAKE}"'
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_
${ac_make}_set
=yes
692 eval ac_cv_prog_make_
${ac_make}_set
=no
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
700 echo "$ac_t""no" 1>&6
701 SET_MAKE
="MAKE=${MAKE-make}"
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
710 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
712 cat >> confdefs.h
<<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h
<<EOF
717 #define VERSION "$VERSION"
722 missing_dir
=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
730 echo "$ac_t""found" 1>&6
732 ACLOCAL
="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF
="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE
="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
768 AUTOHEADER
=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER
="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO
="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc
; ac_word
=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC
="$CC" # Let the user override the test.
803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
805 for ac_dir
in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir
=.
807 if test -f $ac_dir/$ac_word; then
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
823 # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc
; ac_word
=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC
="$CC" # Let the user override the test.
833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
836 for ac_dir
in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir
=.
838 if test -f $ac_dir/$ac_word; then
839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
848 if test $ac_prog_rejected = yes; then
849 # We found a bogon in the path, so make sure we never use it.
850 set dummy
$ac_cv_prog_CC
852 if test $# -gt 0; then
853 # We chose a different compiler from the bogus one.
854 # However, it has the same basename, so the bogon will be chosen
855 # first if we set CC to just the basename; use the full file name.
857 set dummy
"$ac_dir/$ac_word" "$@"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
874 # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl
; ac_word
=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC
="$CC" # Let the user override the test.
884 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
886 for ac_dir
in $ac_dummy; do
887 test -z "$ac_dir" && ac_dir
=.
888 if test -f $ac_dir/$ac_word; then
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp
='$CPP $CPPFLAGS'
914 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling
=$ac_cv_prog_cc_cross
918 cat > conftest.
$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 if { (eval echo configure
:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
926 ac_cv_prog_cc_works
=yes
927 # If we can't run a trivial program, we are probably using a cross compiler.
928 if (.
/conftest
; exit) 2>/dev
/null
; then
929 ac_cv_prog_cc_cross
=no
931 ac_cv_prog_cc_cross
=yes
934 echo "configure: failed program was:" >&5
935 cat conftest.
$ac_ext >&5
936 ac_cv_prog_cc_works
=no
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp
='$CPP $CPPFLAGS'
942 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling
=$ac_cv_prog_cc_cross
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no
; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling
=$ac_cv_prog_cc_cross
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftest.c
<<EOF
965 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
980 ac_test_CFLAGS
="${CFLAGS+set}"
981 ac_save_CFLAGS
="$CFLAGS"
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000 CFLAGS
="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002 if test "$GCC" = yes; then
1008 if test "$GCC" = yes; then
1015 # Find a good install program. We prefer a C program (faster),
1016 # so one script is as good as another. But avoid the broken or
1017 # incompatible versions:
1018 # SysV /etc/install, /usr/sbin/install
1019 # SunOS /usr/etc/install
1020 # IRIX /sbin/install
1022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1025 # ./install, which can be erroneously created by make from ./install.sh.
1026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1027 echo "configure:1028: checking for a BSD compatible install" >&5
1028 if test -z "$INSTALL"; then
1029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1033 for ac_dir
in $PATH; do
1034 # Account for people who put trailing slashes in PATH elements.
1036 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1038 # OSF1 and SCO ODT 3.0 have their own names for install.
1039 # Don't use installbsd from OSF since it installs stuff as root
1041 for ac_prog
in ginstall scoinst
install; do
1042 if test -f $ac_dir/$ac_prog; then
1043 if test $ac_prog = install &&
1044 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1045 # AIX install. It has an incompatible calling convention.
1048 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1059 if test "${ac_cv_path_install+set}" = set; then
1060 INSTALL
="$ac_cv_path_install"
1062 # As a last resort, use the slow shell script. We don't cache a
1063 # path for INSTALL within a source directory, because that will
1064 # break other packages using the cache if that directory is
1065 # removed, or if the path is relative.
1066 INSTALL
="$ac_install_sh"
1069 echo "$ac_t""$INSTALL" 1>&6
1071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072 # It thinks the first close brace ends the variable substitution.
1073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1077 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1079 # Extract the first word of "rm", so it can be a program name with args.
1080 set dummy
rm; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1091 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
1094 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1096 for ac_dir
in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir
=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_path_RM
="$ac_dir/$ac_word"
1104 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="/bin/rm"
1109 if test -n "$RM"; then
1110 echo "$ac_t""$RM" 1>&6
1112 echo "$ac_t""no" 1>&6
1115 # Extract the first word of "cp", so it can be a program name with args.
1116 set dummy
cp; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1124 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1127 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1132 for ac_dir
in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_path_CP
="$ac_dir/$ac_word"
1140 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="/bin/cp"
1145 if test -n "$CP"; then
1146 echo "$ac_t""$CP" 1>&6
1148 echo "$ac_t""no" 1>&6
1151 # Extract the first word of "strip", so it can be a program name with args.
1152 set dummy strip
; ac_word
=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1160 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
1163 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a dos path.
1166 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1167 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1168 for ac_dir
in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir
=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_path_STRIP
="$ac_dir/$ac_word"
1176 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
="/usr/bin/strip"
1180 STRIP
="$ac_cv_path_STRIP"
1181 if test -n "$STRIP"; then
1182 echo "$ac_t""$STRIP" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 # Extract the first word of "chmod", so it can be a program name with args.
1188 set dummy
chmod; ac_word
=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1196 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
1199 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a dos path.
1202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1203 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1204 for ac_dir
in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_path_CHMOD
="$ac_dir/$ac_word"
1212 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
="/bin/chmod"
1216 CHMOD
="$ac_cv_path_CHMOD"
1217 if test -n "$CHMOD"; then
1218 echo "$ac_t""$CHMOD" 1>&6
1220 echo "$ac_t""no" 1>&6
1224 if test "$GCC" = yes; then
1225 fastjar_warn_cflags
='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1230 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1232 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1233 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_hdr that defines DIR" >&5
1235 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.
$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 #include <sys/types.h>
1247 if { (eval echo configure
:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1249 eval "ac_cv_header_dirent_$ac_safe=yes"
1251 echo "configure: failed program was:" >&5
1252 cat conftest.
$ac_ext >&5
1254 eval "ac_cv_header_dirent_$ac_safe=no"
1258 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1260 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1261 cat >> confdefs.h
<<EOF
1262 #define $ac_tr_hdr 1
1264 ac_header_dirent
=$ac_hdr; break
1266 echo "$ac_t""no" 1>&6
1269 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1270 if test $ac_header_dirent = dirent.h
; then
1271 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1272 echo "configure:1273: checking for opendir in -ldir" >&5
1273 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 ac_save_LIBS
="$LIBS"
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 /* Override any gcc2 internal prototype to avoid an error. */
1283 /* We use char because int might match the return type of a gcc2
1284 builtin and then its argument prototype would still apply. */
1291 if { (eval echo configure
:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1293 eval "ac_cv_lib_$ac_lib_var=yes"
1295 echo "configure: failed program was:" >&5
1296 cat conftest.
$ac_ext >&5
1298 eval "ac_cv_lib_$ac_lib_var=no"
1301 LIBS
="$ac_save_LIBS"
1304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305 echo "$ac_t""yes" 1>&6
1308 echo "$ac_t""no" 1>&6
1312 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1313 echo "configure:1314: checking for opendir in -lx" >&5
1314 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 ac_save_LIBS
="$LIBS"
1320 cat > conftest.
$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1332 if { (eval echo configure
:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1334 eval "ac_cv_lib_$ac_lib_var=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1339 eval "ac_cv_lib_$ac_lib_var=no"
1342 LIBS
="$ac_save_LIBS"
1345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.
$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure
:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1378 if test -z "$ac_err"; then
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 CPP
="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.
$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure
:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395 if test -z "$ac_err"; then
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1402 CPP
="${CC-cc} -nologo -E"
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure
:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1426 ac_cv_prog_CPP
="$CPP"
1428 CPP
="$ac_cv_prog_CPP"
1430 ac_cv_prog_CPP
="$CPP"
1432 echo "$ac_t""$CPP" 1>&6
1434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1435 echo "configure:1436: checking for ANSI C header files" >&5
1436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure
:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1452 ac_cv_header_stdc
=yes
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1458 ac_cv_header_stdc
=no
1462 if test $ac_cv_header_stdc = yes; then
1463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "memchr" >/dev
/null
2>&1; then
1474 ac_cv_header_stdc
=no
1480 if test $ac_cv_header_stdc = yes; then
1481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1482 cat > conftest.
$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488 egrep "free" >/dev
/null
2>&1; then
1492 ac_cv_header_stdc
=no
1498 if test $ac_cv_header_stdc = yes; then
1499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1500 if test "$cross_compiling" = yes; then
1503 cat > conftest.
$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1510 int main () { int i; for (i = 0; i < 256; i++)
1511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1515 if { (eval echo configure
:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1519 echo "configure: failed program was:" >&5
1520 cat conftest.
$ac_ext >&5
1522 ac_cv_header_stdc
=no
1530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1531 if test $ac_cv_header_stdc = yes; then
1532 cat >> confdefs.h
<<\EOF
1533 #define STDC_HEADERS 1
1538 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1539 echo "configure:1540: checking whether struct tm is in sys/time.h or time.h" >&5
1540 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 cat > conftest.
$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1546 #include <sys/types.h>
1549 struct tm *tp; tp->tm_sec;
1552 if { (eval echo configure
:1553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1554 ac_cv_struct_tm
=time.h
1556 echo "configure: failed program was:" >&5
1557 cat conftest.
$ac_ext >&5
1559 ac_cv_struct_tm
=sys
/time.h
1564 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1565 if test $ac_cv_struct_tm = sys
/time.h
; then
1566 cat >> confdefs.h
<<\EOF
1567 #define TM_IN_SYS_TIME 1
1572 for ac_hdr
in fcntl.h unistd.h sys
/param.h getopt.h
1574 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_hdr" >&5
1577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1585 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1586 { (eval echo configure
:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1587 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1588 if test -z "$ac_err"; then
1590 eval "ac_cv_header_$ac_safe=yes"
1593 echo "configure: failed program was:" >&5
1594 cat conftest.
$ac_ext >&5
1596 eval "ac_cv_header_$ac_safe=no"
1600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1603 cat >> confdefs.h
<<EOF
1604 #define $ac_tr_hdr 1
1608 echo "$ac_t""no" 1>&6
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.
$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1630 ac_cv_type_off_t
=yes
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no
; then
1640 cat >> confdefs.h
<<\EOF
1646 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1647 echo "configure:1648: checking whether struct tm is in sys/time.h or time.h" >&5
1648 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.
$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1657 struct tm *tp; tp->tm_sec;
1660 if { (eval echo configure
:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 ac_cv_struct_tm
=time.h
1664 echo "configure: failed program was:" >&5
1665 cat conftest.
$ac_ext >&5
1667 ac_cv_struct_tm
=sys
/time.h
1672 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1673 if test $ac_cv_struct_tm = sys
/time.h
; then
1674 cat >> confdefs.h
<<\EOF
1675 #define TM_IN_SYS_TIME 1
1681 echo $ac_n "checking size of char""... $ac_c" 1>&6
1682 echo "configure:1683: checking size of char" >&5
1683 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 if test "$cross_compiling" = yes; then
1687 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1689 cat > conftest.
$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1695 FILE *f=fopen("conftestval", "w");
1697 fprintf(f, "%d\n", sizeof(char));
1701 if { (eval echo configure
:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1703 ac_cv_sizeof_char
=`cat conftestval`
1705 echo "configure: failed program was:" >&5
1706 cat conftest.
$ac_ext >&5
1714 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1715 cat >> confdefs.h
<<EOF
1716 #define SIZEOF_CHAR $ac_cv_sizeof_char
1720 echo $ac_n "checking size of short""... $ac_c" 1>&6
1721 echo "configure:1722: checking size of short" >&5
1722 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 if test "$cross_compiling" = yes; then
1726 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1728 cat > conftest.
$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1734 FILE *f=fopen("conftestval", "w");
1736 fprintf(f, "%d\n", sizeof(short));
1740 if { (eval echo configure
:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1742 ac_cv_sizeof_short
=`cat conftestval`
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1747 ac_cv_sizeof_short
=0
1753 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1754 cat >> confdefs.h
<<EOF
1755 #define SIZEOF_SHORT $ac_cv_sizeof_short
1759 echo $ac_n "checking size of int""... $ac_c" 1>&6
1760 echo "configure:1761: checking size of int" >&5
1761 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test "$cross_compiling" = yes; then
1765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1773 FILE *f=fopen("conftestval", "w");
1775 fprintf(f, "%d\n", sizeof(int));
1779 if { (eval echo configure
:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1781 ac_cv_sizeof_int
=`cat conftestval`
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1792 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1793 cat >> confdefs.h
<<EOF
1794 #define SIZEOF_INT $ac_cv_sizeof_int
1798 echo $ac_n "checking size of long""... $ac_c" 1>&6
1799 echo "configure:1800: checking size of long" >&5
1800 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 if test "$cross_compiling" = yes; then
1804 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1812 FILE *f=fopen("conftestval", "w");
1814 fprintf(f, "%d\n", sizeof(long));
1818 if { (eval echo configure
:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1820 ac_cv_sizeof_long
=`cat conftestval`
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1831 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1832 cat >> confdefs.h
<<EOF
1833 #define SIZEOF_LONG $ac_cv_sizeof_long
1837 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1838 echo "configure:1839: checking size of long long" >&5
1839 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 if test "$cross_compiling" = yes; then
1843 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 FILE *f=fopen("conftestval", "w");
1853 fprintf(f, "%d\n", sizeof(long long));
1857 if { (eval echo configure
:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1859 ac_cv_sizeof_long_long
=`cat conftestval`
1861 echo "configure: failed program was:" >&5
1862 cat conftest.
$ac_ext >&5
1864 ac_cv_sizeof_long_long
=0
1870 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1871 cat >> confdefs.h
<<EOF
1872 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1877 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether byte ordering is bigendian" >&5
1879 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 ac_cv_c_bigendian
=unknown
1883 # See if sys/param.h defines the BYTE_ORDER macro.
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <sys/types.h>
1888 #include <sys/param.h>
1891 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1896 if { (eval echo configure
:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 # It does; now see whether it defined to BIG_ENDIAN or not.
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <sys/types.h>
1903 #include <sys/param.h>
1906 #if BYTE_ORDER != BIG_ENDIAN
1911 if { (eval echo configure
:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 ac_cv_c_bigendian
=yes
1915 echo "configure: failed program was:" >&5
1916 cat conftest.
$ac_ext >&5
1918 ac_cv_c_bigendian
=no
1922 echo "configure: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1926 if test $ac_cv_c_bigendian = unknown
; then
1927 if test "$cross_compiling" = yes; then
1928 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1934 /* Are we little or big endian? From Harbison&Steele. */
1938 char c[sizeof (long)];
1941 exit (u.c[sizeof (long) - 1] == 1);
1944 if { (eval echo configure
:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1946 ac_cv_c_bigendian
=no
1948 echo "configure: failed program was:" >&5
1949 cat conftest.
$ac_ext >&5
1951 ac_cv_c_bigendian
=yes
1959 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1960 if test $ac_cv_c_bigendian = yes; then
1961 cat >> confdefs.h
<<\EOF
1962 #define WORDS_BIGENDIAN 1
1968 # Check whether --with-system-zlib or --without-system-zlib was given.
1969 if test "${with_system_zlib+set}" = set; then
1970 withval
="$with_system_zlib"
1979 if test "$with_system_zlib" = yes; then
1980 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1981 echo "configure:1982: checking for deflate in -lz" >&5
1982 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 ac_save_LIBS
="$LIBS"
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
2000 if { (eval echo configure
:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2002 eval "ac_cv_lib_$ac_lib_var=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_lib_$ac_lib_var=no"
2010 LIBS
="$ac_save_LIBS"
2013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2017 echo "$ac_t""no" 1>&6
2025 if test "$use_zlib" = no
; then
2026 # Brain dead way to find tree's zlib.
2027 ZDEPS
='$(top_builddir)/../zlib/libz.a'
2028 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2029 ZINCS
='-I$(top_srcdir)/../zlib'
2036 cat > confcache
<<\EOF
2037 # This file is a shell script that caches the results of configure
2038 # tests run on this system so they can be shared between configure
2039 # scripts and configure runs. It is not useful on other systems.
2040 # If it contains results you don't want to keep, you may remove or edit it.
2042 # By default, configure uses ./config.cache as the cache file,
2043 # creating it if it does not exist already. You can give configure
2044 # the --cache-file=FILE option to use a different cache file; that is
2045 # what configure does when it calls configure scripts in
2046 # subdirectories, so they share the cache.
2047 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2048 # config.status only pays attention to the cache file if you give it the
2049 # --recheck option to rerun configure.
2052 # The following way of writing the cache mishandles newlines in values,
2053 # but we know of no workaround that is simple, portable, and efficient.
2054 # So, don't put newlines in cache variables' values.
2055 # Ultrix sh set writes to stderr and can't be redirected directly,
2056 # and sets the high bit in the cache file unless we assign to the vars.
2058 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2060 # `set' does not quote correctly, so add quotes (double-quote substitution
2061 # turns \\\\ into \\, and sed turns \\ into \).
2063 -e "s/'/'\\\\''/g" \
2064 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2067 # `set' quotes correctly as required by POSIX, so do not add quotes.
2068 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2071 if cmp -s $cache_file confcache
; then
2074 if test -w $cache_file; then
2075 echo "updating cache $cache_file"
2076 cat confcache
> $cache_file
2078 echo "not updating unwritable cache $cache_file"
2083 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2085 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2086 # Let make expand exec_prefix.
2087 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2089 # Any assignment to VPATH causes Sun make to only execute
2090 # the first set of double-colon rules, so remove it if not needed.
2091 # If there is a colon in the path, we need to keep it.
2092 if test "x$srcdir" = x.
; then
2093 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2096 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2098 DEFS
=-DHAVE_CONFIG_H
2100 # Without the "./", some shells look in PATH for config.status.
2101 : ${CONFIG_STATUS=./config.status}
2103 echo creating
$CONFIG_STATUS
2104 rm -f $CONFIG_STATUS
2105 cat > $CONFIG_STATUS <<EOF
2107 # Generated automatically by configure.
2108 # Run this file to recreate the current configuration.
2109 # This directory was configured as follows,
2110 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2112 # $0 $ac_configure_args
2114 # Compiler output produced by configure, useful for debugging
2115 # configure, is in ./config.log if it exists.
2117 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2120 case "\$ac_option" in
2121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2122 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2123 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2124 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2125 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2127 -help | --help | --hel | --he | --h)
2128 echo "\$ac_cs_usage"; exit 0 ;;
2129 *) echo "\$ac_cs_usage"; exit 1 ;;
2133 ac_given_srcdir=$srcdir
2134 ac_given_INSTALL="$INSTALL"
2136 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2138 cat >> $CONFIG_STATUS <<EOF
2140 # Protect against being on the right side of a sed subst in config.status.
2141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2146 s%@CFLAGS@%$CFLAGS%g
2147 s%@CPPFLAGS@%$CPPFLAGS%g
2148 s%@CXXFLAGS@%$CXXFLAGS%g
2149 s%@FFLAGS@%$FFLAGS%g
2151 s%@LDFLAGS@%$LDFLAGS%g
2153 s%@exec_prefix@%$exec_prefix%g
2154 s%@prefix@%$prefix%g
2155 s%@program_transform_name@%$program_transform_name%g
2156 s%@bindir@%$bindir%g
2157 s%@sbindir@%$sbindir%g
2158 s%@libexecdir@%$libexecdir%g
2159 s%@datadir@%$datadir%g
2160 s%@sysconfdir@%$sysconfdir%g
2161 s%@sharedstatedir@%$sharedstatedir%g
2162 s%@localstatedir@%$localstatedir%g
2163 s%@libdir@%$libdir%g
2164 s%@includedir@%$includedir%g
2165 s%@oldincludedir@%$oldincludedir%g
2166 s%@infodir@%$infodir%g
2167 s%@mandir@%$mandir%g
2168 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2169 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2170 s%@INSTALL_DATA@%$INSTALL_DATA%g
2171 s%@PACKAGE@%$PACKAGE%g
2172 s%@VERSION@%$VERSION%g
2173 s%@ACLOCAL@%$ACLOCAL%g
2174 s%@AUTOCONF@%$AUTOCONF%g
2175 s%@AUTOMAKE@%$AUTOMAKE%g
2176 s%@AUTOHEADER@%$AUTOHEADER%g
2177 s%@MAKEINFO@%$MAKEINFO%g
2178 s%@SET_MAKE@%$SET_MAKE%g
2184 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2193 cat >> $CONFIG_STATUS <<\EOF
2195 # Split the substitutions into bite-sized pieces for seds with
2196 # small command number limits, like on Digital OSF/1 and HP-UX.
2197 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2198 ac_file
=1 # Number of current file.
2199 ac_beg
=1 # First line for current file.
2200 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2203 while $ac_more_lines; do
2204 if test $ac_beg -gt 1; then
2205 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2207 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2209 if test ! -s conftest.s
$ac_file; then
2211 rm -f conftest.s
$ac_file
2213 if test -z "$ac_sed_cmds"; then
2214 ac_sed_cmds
="sed -f conftest.s$ac_file"
2216 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2218 ac_file
=`expr $ac_file + 1`
2220 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2223 if test -z "$ac_sed_cmds"; then
2228 cat >> $CONFIG_STATUS <<EOF
2230 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2232 cat >> $CONFIG_STATUS <<\EOF
2233 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2236 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2237 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2238 *) ac_file_in
="${ac_file}.in" ;;
2241 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2243 # Remove last slash and all that follows it. Not all systems have dirname.
2244 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2245 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2246 # The file is in a subdirectory.
2247 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2248 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2249 # A "../" for each directory in $ac_dir_suffix.
2250 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2252 ac_dir_suffix
= ac_dots
=
2255 case "$ac_given_srcdir" in
2257 if test -z "$ac_dots"; then top_srcdir
=.
2258 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2259 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2261 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2262 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2265 case "$ac_given_INSTALL" in
2266 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2267 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2270 echo creating
"$ac_file"
2272 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2274 *Makefile
*) ac_comsub
="1i\\
2275 # $configure_input" ;;
2279 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2281 s%@configure_input@%$configure_input%g
2282 s%@srcdir@%$srcdir%g
2283 s%@top_srcdir@%$top_srcdir%g
2284 s%@INSTALL@%$INSTALL%g
2285 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2289 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2290 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2292 # ac_d sets the value in "#define NAME VALUE" lines.
2293 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2294 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2297 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2298 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2299 ac_uB
='\([ ]\)%\1#\2define\3'
2302 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2303 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2304 ac_eB
='$%\1#\2define\3'
2308 if test "${CONFIG_HEADERS+set}" != set; then
2310 cat >> $CONFIG_STATUS <<EOF
2311 CONFIG_HEADERS="config.h"
2313 cat >> $CONFIG_STATUS <<\EOF
2315 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2318 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2319 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2320 *) ac_file_in
="${ac_file}.in" ;;
2323 echo creating
$ac_file
2325 rm -f conftest.frag conftest.
in conftest.out
2326 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2327 cat $ac_file_inputs > conftest.
in
2331 # Transform confdefs.h into a sed script conftest.vals that substitutes
2332 # the proper values into config.h.in to produce config.h. And first:
2333 # Protect against being on the right side of a sed subst in config.status.
2334 # Protect against being in an unquoted here document in config.status.
2336 cat > conftest.hdr
<<\EOF
2339 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2343 sed -n -f conftest.hdr confdefs.h > conftest.vals
2346 # This sed command replaces #undef with comments. This is necessary, for
2347 # example, in the case of _POSIX_SOURCE, which is predefined and required
2348 # on some systems where configure will not decide to define it.
2349 cat >> conftest.vals <<\EOF
2350 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2353 # Break up conftest.vals because some shells have a limit on
2354 # the size of here documents, and old seds have small limits too.
2359 ac_lines=`grep -c . conftest.vals
`
2360 # grep -c gives empty output for an empty file on some AIX systems.
2361 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2362 # Write a limited-size here document to conftest.frag.
2363 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2364 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2366 sed -f conftest.frag conftest.in > conftest.out
2368 mv conftest.out conftest.in
2370 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2372 mv conftest.tail conftest.vals
2376 cat >> $CONFIG_STATUS <<\EOF
2377 rm -f conftest.frag conftest.h
2378 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2379 cat conftest.in >> conftest.h
2381 if cmp -s $ac_file conftest.h 2>/dev/null; then
2382 echo "$ac_file is unchanged"
2385 # Remove last slash and all that follows it. Not all systems have dirname.
2386 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2388 # The file is in a subdirectory.
2389 test ! -d "$ac_dir" && mkdir "$ac_dir"
2392 mv conftest.h $ac_file
2397 cat >> $CONFIG_STATUS <<EOF
2401 cat >> $CONFIG_STATUS <<\EOF
2402 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2406 chmod +x $CONFIG_STATUS
2407 rm -fr confdefs* $ac_clean_files
2408 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1