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 --disable-elf disable builtin ELF support"
17 --disable-elf-core disable ELF core file support"
19 --enable-fsect-man5 enable file formats in man section 5"
21 --disable-largefile omit support for large files"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file=./config.cache
36 program_transform_name=s,x,x,
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
57 # Initialize some other variables.
60 SHELL=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host | --host | --hos | --ho)
199 -host=* | --host=* | --hos=* | --ho=*)
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
320 -site=* | --site=* | --sit=*)
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=file.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 if test ! -r $srcdir/$ac_unique_file; then
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
506 echo "creating cache $cache_file"
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='\c' ac_t=
533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534 if test -f $ac_dir/install-sh; then
536 ac_install_sh="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh; then
540 ac_install_sh="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
569 for ac_dir in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
577 for ac_prog in ginstall scoinst install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581 # AIX install. It has an incompatible calling convention.
584 ac_cv_path_install="$ac_dir/$ac_prog -c"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL="$ac_cv_path_install"
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616 echo "configure:617: checking whether build environment is sane" >&5
619 echo timestamp > conftestfile
620 # Do `set' in a subshell so we don't clobber the current shell's
621 # arguments. Must try -L first in case configure is actually a
622 # symlink; some systems play weird games with the mod time of symlinks
623 # (eg FreeBSD returns the mod time of the symlink's containing
626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627 if test "$*" = "X"; then
629 set X `ls -t $srcdir/configure conftestfile`
631 if test "$*" != "X $srcdir/configure conftestfile" \
632 && test "$*" != "X conftestfile $srcdir/configure"; then
634 # If neither matched, then we have a broken ls. This can happen
635 # if, for instance, CONFIG_SHELL is bash and it inherits a
636 # broken ls alias from the environment. This has actually
637 # happened. Such a system could not be considered "sane".
638 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
639 alias in your environment" 1>&2; exit 1; }
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s,x,x,; then
654 program_transform_name=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED > conftestsed
658 s,\\,\\\\,g; s,\$,$$,g
660 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE &&
664 program_transform_name="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE &&
667 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673 echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 cat > conftestmake <<\EOF
680 @echo 'ac_maketemp="${MAKE}"'
682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684 if test -n "$ac_maketemp"; then
685 eval ac_cv_prog_make_${ac_make}_set=yes
687 eval ac_cv_prog_make_${ac_make}_set=no
691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692 echo "$ac_t""yes" 1>&6
695 echo "$ac_t""no" 1>&6
696 SET_MAKE="MAKE=${MAKE-make}"
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
705 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
707 cat >> confdefs.h <<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h <<EOF
712 #define VERSION "$VERSION"
717 missing_dir=`cd $ac_aux_dir && pwd`
718 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719 echo "configure:720: checking for working aclocal" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 # Redirect stdin to placate older versions of autoconf. Sigh.
723 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
725 echo "$ac_t""found" 1>&6
727 ACLOCAL="$missing_dir/missing aclocal"
728 echo "$ac_t""missing" 1>&6
731 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732 echo "configure:733: checking for working autoconf" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
738 echo "$ac_t""found" 1>&6
740 AUTOCONF="$missing_dir/missing autoconf"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working automake""... $ac_c" 1>&6
745 echo "configure:746: checking for working automake" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (automake --version) < /dev/null > /dev/null 2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOMAKE="$missing_dir/missing automake"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758 echo "configure:759: checking for working autoheader" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
763 AUTOHEADER=autoheader
764 echo "$ac_t""found" 1>&6
766 AUTOHEADER="$missing_dir/missing autoheader"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771 echo "configure:772: checking for working makeinfo" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
777 echo "$ac_t""found" 1>&6
779 MAKEINFO="$missing_dir/missing makeinfo"
780 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6
789 echo "configure:790: checking for builtin ELF support" >&5
790 # Check whether --enable-elf or --disable-elf was given.
791 if test "${enable_elf+set}" = set; then
792 enableval="$enable_elf"
793 if test "${enableval}" = yes; then
794 echo "$ac_t""yes" 1>&6
795 cat >> confdefs.h <<\EOF
796 #define BUILTIN_ELF 1
800 echo "$ac_t""no" 1>&6
805 echo "$ac_t""yes" 1>&6
806 cat >> confdefs.h <<\EOF
807 #define BUILTIN_ELF 1
814 echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6
815 echo "configure:816: checking for ELF core file support" >&5
816 # Check whether --enable-elf-core or --disable-elf-core was given.
817 if test "${enable_elf_core+set}" = set; then
818 enableval="$enable_elf_core"
819 if test "${enableval}" = yes; then
820 echo "$ac_t""yes" 1>&6
821 cat >> confdefs.h <<\EOF
826 echo "$ac_t""no" 1>&6
831 echo "$ac_t""yes" 1>&6
832 cat >> confdefs.h <<\EOF
840 echo $ac_n "checking for file formats in man section 5""... $ac_c" 1>&6
841 echo "configure:842: checking for file formats in man section 5" >&5
842 # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
843 if test "${enable_fsect_man5+set}" = set; then
844 enableval="$enable_fsect_man5"
845 if test "${enableval}" = yes; then
846 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
855 echo "$ac_t""no" 1>&6
863 if test x$fsect = x5; then
871 # Extract the first word of "gcc", so it can be a program name with args.
872 set dummy gcc; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$CC"; then
879 ac_cv_prog_CC="$CC" # Let the user override the test.
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
900 if test -z "$CC"; then
901 # Extract the first word of "cc", so it can be a program name with args.
902 set dummy cc; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
914 for ac_dir in $ac_dummy; do
915 test -z "$ac_dir" && ac_dir=.
916 if test -f $ac_dir/$ac_word; then
917 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
926 if test $ac_prog_rejected = yes; then
927 # We found a bogon in the path, so make sure we never use it.
928 set dummy $ac_cv_prog_CC
930 if test $# -gt 0; then
931 # We chose a different compiler from the bogus one.
932 # However, it has the same basename, so the bogon will be chosen
933 # first if we set CC to just the basename; use the full file name.
935 set dummy "$ac_dir/$ac_word" "$@"
943 if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
946 echo "$ac_t""no" 1>&6
949 if test -z "$CC"; then
952 # Extract the first word of "cl", so it can be a program name with args.
953 set dummy cl; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$CC"; then
960 ac_cv_prog_CC="$CC" # Let the user override the test.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
975 if test -n "$CC"; then
976 echo "$ac_t""$CC" 1>&6
978 echo "$ac_t""no" 1>&6
983 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
986 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
987 echo "configure:988: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
991 ac_cpp='$CPP $CPPFLAGS'
992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
994 cross_compiling=$ac_cv_prog_cc_cross
996 cat > conftest.$ac_ext << EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1004 ac_cv_prog_cc_works=yes
1005 # If we can't run a trivial program, we are probably using a cross compiler.
1006 if (./conftest; exit) 2>/dev/null; then
1007 ac_cv_prog_cc_cross=no
1009 ac_cv_prog_cc_cross=yes
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1014 ac_cv_prog_cc_works=no
1018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1019 ac_cpp='$CPP $CPPFLAGS'
1020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022 cross_compiling=$ac_cv_prog_cc_cross
1024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1025 if test $ac_cv_prog_cc_works = no; then
1026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1031 cross_compiling=$ac_cv_prog_cc_cross
1033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether we are using GNU C" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 cat > conftest.c <<EOF
1043 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1050 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1052 if test $ac_cv_prog_gcc = yes; then
1058 ac_test_CFLAGS="${CFLAGS+set}"
1059 ac_save_CFLAGS="$CFLAGS"
1061 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 echo 'void f(){}' > conftest.c
1067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1077 if test "$ac_test_CFLAGS" = set; then
1078 CFLAGS="$ac_save_CFLAGS"
1079 elif test $ac_cv_prog_cc_g = yes; then
1080 if test "$GCC" = yes; then
1086 if test "$GCC" = yes; then
1093 # Find a good install program. We prefer a C program (faster),
1094 # so one script is as good as another. But avoid the broken or
1095 # incompatible versions:
1096 # SysV /etc/install, /usr/sbin/install
1097 # SunOS /usr/etc/install
1098 # IRIX /sbin/install
1100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1103 # ./install, which can be erroneously created by make from ./install.sh.
1104 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1105 echo "configure:1106: checking for a BSD compatible install" >&5
1106 if test -z "$INSTALL"; then
1107 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1111 for ac_dir in $PATH; do
1112 # Account for people who put trailing slashes in PATH elements.
1114 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1116 # OSF1 and SCO ODT 3.0 have their own names for install.
1117 # Don't use installbsd from OSF since it installs stuff as root
1119 for ac_prog in ginstall scoinst install; do
1120 if test -f $ac_dir/$ac_prog; then
1121 if test $ac_prog = install &&
1122 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1123 # AIX install. It has an incompatible calling convention.
1126 ac_cv_path_install="$ac_dir/$ac_prog -c"
1137 if test "${ac_cv_path_install+set}" = set; then
1138 INSTALL="$ac_cv_path_install"
1140 # As a last resort, use the slow shell script. We don't cache a
1141 # path for INSTALL within a source directory, because that will
1142 # break other packages using the cache if that directory is
1143 # removed, or if the path is relative.
1144 INSTALL="$ac_install_sh"
1147 echo "$ac_t""$INSTALL" 1>&6
1149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1150 # It thinks the first close brace ends the variable substitution.
1151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1157 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ln -s works" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1163 if ln -s X conftestdata 2>/dev/null
1166 ac_cv_prog_LN_S="ln -s"
1171 LN_S="$ac_cv_prog_LN_S"
1172 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1173 echo "$ac_t""yes" 1>&6
1175 echo "$ac_t""no" 1>&6
1179 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1180 echo "configure:1181: checking how to run the C preprocessor" >&5
1181 # On Suns, sometimes $CPP names a directory.
1182 if test -n "$CPP" && test -d "$CPP"; then
1185 if test -z "$CPP"; then
1186 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 # This must be in double quotes, not single quotes, because CPP may get
1190 # substituted into the Makefile and "${CC-cc}" will confuse make.
1192 # On the NeXT, cc -E runs the code through the compiler's parser,
1193 # not just through cpp.
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201 { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203 if test -z "$ac_err"; then
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 CPP="${CC-cc} -E -traditional-cpp"
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 CPP="${CC-cc} -nologo -E"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1251 ac_cv_prog_CPP="$CPP"
1253 CPP="$ac_cv_prog_CPP"
1255 ac_cv_prog_CPP="$CPP"
1257 echo "$ac_t""$CPP" 1>&6
1259 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1260 echo "configure:1261: checking for ANSI C header files" >&5
1261 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1273 { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1275 if test -z "$ac_err"; then
1277 ac_cv_header_stdc=yes
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1283 ac_cv_header_stdc=no
1287 if test $ac_cv_header_stdc = yes; then
1288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1295 egrep "memchr" >/dev/null 2>&1; then
1299 ac_cv_header_stdc=no
1305 if test $ac_cv_header_stdc = yes; then
1306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1313 egrep "free" >/dev/null 2>&1; then
1317 ac_cv_header_stdc=no
1323 if test $ac_cv_header_stdc = yes; then
1324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1325 if test "$cross_compiling" = yes; then
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1332 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1333 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1335 int main () { int i; for (i = 0; i < 256; i++)
1336 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1347 ac_cv_header_stdc=no
1355 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1356 if test $ac_cv_header_stdc = yes; then
1357 cat >> confdefs.h <<\EOF
1358 #define STDC_HEADERS 1
1363 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1364 echo "configure:1365: checking whether sys/types.h defines makedev" >&5
1365 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 #include <sys/types.h>
1373 return makedev(0, 0);
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 ac_cv_header_sys_types_h_makedev=yes
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1383 ac_cv_header_sys_types_h_makedev=no
1389 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1391 if test $ac_cv_header_sys_types_h_makedev = no; then
1392 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
1393 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1394 echo "configure:1395: checking for sys/mkdev.h" >&5
1395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <sys/mkdev.h>
1403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1404 { (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1406 if test -z "$ac_err"; then
1408 eval "ac_cv_header_$ac_safe=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 eval "ac_cv_header_$ac_safe=no"
1418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1419 echo "$ac_t""yes" 1>&6
1420 cat >> confdefs.h <<\EOF
1421 #define MAJOR_IN_MKDEV 1
1425 echo "$ac_t""no" 1>&6
1429 if test $ac_cv_header_sys_mkdev_h = no; then
1430 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
1431 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1432 echo "configure:1433: checking for sys/sysmacros.h" >&5
1433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 #include <sys/sysmacros.h>
1441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442 { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444 if test -z "$ac_err"; then
1446 eval "ac_cv_header_$ac_safe=yes"
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1452 eval "ac_cv_header_$ac_safe=no"
1456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1458 cat >> confdefs.h <<\EOF
1459 #define MAJOR_IN_SYSMACROS 1
1463 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1470 echo "configure:1471: checking for sys/wait.h that is POSIX.1 compatible" >&5
1471 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1477 #include <sys/types.h>
1478 #include <sys/wait.h>
1480 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1483 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1488 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1491 if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1493 ac_cv_header_sys_wait_h=yes
1495 echo "configure: failed program was:" >&5
1496 cat conftest.$ac_ext >&5
1498 ac_cv_header_sys_wait_h=no
1503 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1504 if test $ac_cv_header_sys_wait_h = yes; then
1505 cat >> confdefs.h <<\EOF
1506 #define HAVE_SYS_WAIT_H 1
1511 for ac_hdr in stdint.h
1513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_hdr" >&5
1516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1529 eval "ac_cv_header_$ac_safe=yes"
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1535 eval "ac_cv_header_$ac_safe=no"
1539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1542 cat >> confdefs.h <<EOF
1543 #define $ac_tr_hdr 1
1547 echo "$ac_t""no" 1>&6
1551 for ac_hdr in fcntl.h locale.h
1553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1555 echo "configure:1556: checking for $ac_hdr" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565 { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567 if test -z "$ac_err"; then
1569 eval "ac_cv_header_$ac_safe=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 eval "ac_cv_header_$ac_safe=no"
1579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1580 echo "$ac_t""yes" 1>&6
1581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1582 cat >> confdefs.h <<EOF
1583 #define $ac_tr_hdr 1
1587 echo "$ac_t""no" 1>&6
1591 for ac_hdr in sys/mman.h sys/stat.h sys/types.h
1593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1595 echo "configure:1596: checking for $ac_hdr" >&5
1596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1605 { (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1607 if test -z "$ac_err"; then
1609 eval "ac_cv_header_$ac_safe=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 eval "ac_cv_header_$ac_safe=no"
1619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1620 echo "$ac_t""yes" 1>&6
1621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1622 cat >> confdefs.h <<EOF
1623 #define $ac_tr_hdr 1
1627 echo "$ac_t""no" 1>&6
1631 for ac_hdr in unistd.h
1633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_hdr" >&5
1636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1649 eval "ac_cv_header_$ac_safe=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 eval "ac_cv_header_$ac_safe=no"
1659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1660 echo "$ac_t""yes" 1>&6
1661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1662 cat >> confdefs.h <<EOF
1663 #define $ac_tr_hdr 1
1667 echo "$ac_t""no" 1>&6
1671 for ac_hdr in getopt.h
1673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1675 echo "configure:1676: checking for $ac_hdr" >&5
1676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 cat > conftest.$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1687 if test -z "$ac_err"; then
1689 eval "ac_cv_header_$ac_safe=yes"
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 eval "ac_cv_header_$ac_safe=no"
1699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1702 cat >> confdefs.h <<EOF
1703 #define $ac_tr_hdr 1
1707 echo "$ac_t""no" 1>&6
1711 for ac_hdr in locale.h
1713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_hdr" >&5
1716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725 { (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1727 if test -z "$ac_err"; then
1729 eval "ac_cv_header_$ac_safe=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_header_$ac_safe=no"
1739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1740 echo "$ac_t""yes" 1>&6
1741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1742 cat >> confdefs.h <<EOF
1743 #define $ac_tr_hdr 1
1747 echo "$ac_t""no" 1>&6
1751 for ac_hdr in stdint.h
1753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1755 echo "configure:1756: checking for $ac_hdr" >&5
1756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1765 { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1767 if test -z "$ac_err"; then
1769 eval "ac_cv_header_$ac_safe=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_header_$ac_safe=no"
1779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1782 cat >> confdefs.h <<EOF
1783 #define $ac_tr_hdr 1
1787 echo "$ac_t""no" 1>&6
1792 echo $ac_n "checking for working const""... $ac_c" 1>&6
1793 echo "configure:1794: checking for working const" >&5
1794 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1803 /* Ultrix mips cc rejects this. */
1804 typedef int charset[2]; const charset x;
1805 /* SunOS 4.1.1 cc rejects this. */
1806 char const *const *ccp;
1808 /* NEC SVR4.0.2 mips cc rejects this. */
1809 struct point {int x, y;};
1810 static struct point const zero = {0,0};
1811 /* AIX XL C 1.02.0.0 rejects this.
1812 It does not let you subtract one const X* pointer from another in an arm
1813 of an if-expression whose if-part is not a constant expression */
1814 const char *g = "string";
1815 ccp = &g + (g ? g-g : 0);
1816 /* HPUX 7.0 cc rejects these. */
1819 ccp = (char const *const *) p;
1820 { /* SCO 3.2v4 cc rejects this. */
1822 char const *s = 0 ? (char *) 0 : (char const *) 0;
1826 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1828 const int *foo = &x[0];
1831 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1832 typedef const int *iptr;
1836 { /* AIX XL C 1.02.0.0 rejects this saying
1837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1838 struct s { int j; const int *ap[3]; };
1839 struct s *b; b->j = 5;
1841 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1847 if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1859 echo "$ac_t""$ac_cv_c_const" 1>&6
1860 if test $ac_cv_c_const = no; then
1861 cat >> confdefs.h <<\EOF
1867 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1868 echo "configure:1869: checking for off_t" >&5
1869 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <sys/types.h>
1881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1882 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1884 ac_cv_type_off_t=yes
1892 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1893 if test $ac_cv_type_off_t = no; then
1894 cat >> confdefs.h <<\EOF
1900 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1901 echo "configure:1902: checking for size_t" >&5
1902 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #include <sys/types.h>
1914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1917 ac_cv_type_size_t=yes
1920 ac_cv_type_size_t=no
1925 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1926 if test $ac_cv_type_size_t = no; then
1927 cat >> confdefs.h <<\EOF
1928 #define size_t unsigned
1933 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1934 echo "configure:1935: checking for st_rdev in struct stat" >&5
1935 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #include <sys/types.h>
1942 #include <sys/stat.h>
1944 struct stat s; s.st_rdev;
1947 if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1949 ac_cv_struct_st_rdev=yes
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 ac_cv_struct_st_rdev=no
1959 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1960 if test $ac_cv_struct_st_rdev = yes; then
1961 cat >> confdefs.h <<\EOF
1962 #define HAVE_ST_RDEV 1
1967 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether struct tm is in sys/time.h or time.h" >&5
1969 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 #include <sys/types.h>
1978 struct tm *tp; tp->tm_sec;
1981 if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983 ac_cv_struct_tm=time.h
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 ac_cv_struct_tm=sys/time.h
1993 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1994 if test $ac_cv_struct_tm = sys/time.h; then
1995 cat >> confdefs.h <<\EOF
1996 #define TM_IN_SYS_TIME 1
2001 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2002 echo "configure:2003: checking for tm_zone in struct tm" >&5
2003 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 #include <sys/types.h>
2010 #include <$ac_cv_struct_tm>
2012 struct tm tm; tm.tm_zone;
2015 if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2017 ac_cv_struct_tm_zone=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 ac_cv_struct_tm_zone=no
2027 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2028 if test "$ac_cv_struct_tm_zone" = yes; then
2029 cat >> confdefs.h <<\EOF
2030 #define HAVE_TM_ZONE 1
2034 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2035 echo "configure:2036: checking for tzname" >&5
2036 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2043 #ifndef tzname /* For SGI. */
2044 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 ac_cv_var_tzname=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2062 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2063 if test $ac_cv_var_tzname = yes; then
2064 cat >> confdefs.h <<\EOF
2065 #define HAVE_TZNAME 1
2070 echo $ac_n "checking for tm_isdst in struct tm""... $ac_c" 1>&6
2071 echo "configure:2072: checking for tm_isdst in struct tm" >&5
2072 if eval "test \"`echo '$''{'ac_cv_struct_tm_isdst'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <sys/types.h>
2079 #include <$ac_cv_struct_tm>
2081 struct tm tm; tm.tm_isdst;
2084 if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2086 ac_cv_struct_tm_isdst=yes
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 ac_cv_struct_tm_isdst=no
2096 echo "$ac_t""$ac_cv_struct_tm_isdst" 1>&6
2097 if test "$ac_cv_struct_tm_isdst" = yes; then
2098 cat >> confdefs.h <<\EOF
2099 #define HAVE_TM_ISDST 1
2103 echo $ac_n "checking for daylight""... $ac_c" 1>&6
2104 echo "configure:2105: checking for daylight" >&5
2105 if eval "test \"`echo '$''{'ac_cv_var_daylight'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2112 #ifndef daylight /* In case IRIX #defines this, too */
2113 extern int daylight;
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2121 ac_cv_var_daylight=yes
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 ac_cv_var_daylight=no
2131 echo "$ac_t""$ac_cv_var_daylight" 1>&6
2132 if test $ac_cv_var_daylight = yes; then
2133 cat >> confdefs.h <<\EOF
2134 #define HAVE_DAYLIGHT 1
2140 # Check whether --enable-largefile or --disable-largefile was given.
2141 if test "${enable_largefile+set}" = set; then
2142 enableval="$enable_largefile"
2146 if test "$enable_largefile" != no; then
2148 echo $ac_n "checking for special C compiler options needed for large files=
2150 echo "configure:2151: checking for special C compiler options needed for large files=
2152 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 ac_cv_sys_largefile_CC=no
2156 if test "$GCC" != yes; then
2157 # IRIX 6.2 and later do not support large files by default,
2158 # so use the C compiler's -n32 option if that helps.
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2162 #include <sys/types.h>
2163 /* Check that off_t can represent 2**63 - 1 correctly.
2164 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2165 since some C++ compilers masquerading as C compilers
2166 incorrectly reject 9223372036854775807. */
2167 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2169 && LARGE_OFF_T % 2147483647 == 1)
2176 if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 #include <sys/types.h>
2188 /* Check that off_t can represent 2**63 - 1 correctly.
2189 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2190 since some C++ compilers masquerading as C compilers
2191 incorrectly reject 9223372036854775807. */
2192 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2194 && LARGE_OFF_T % 2147483647 == 1)
2201 if { (eval echo configure:2202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2203 ac_cv_sys_largefile_CC=' -n32'
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2215 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
2216 if test "$ac_cv_sys_largefile_CC" != no; then
2217 CC="$CC$ac_cv_sys_largefile_CC"
2220 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2221 echo "configure:2222: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2222 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 ac_cv_sys_file_offset_bits=no
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <sys/types.h>
2230 /* Check that off_t can represent 2**63 - 1 correctly.
2231 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2232 since some C++ compilers masquerading as C compilers
2233 incorrectly reject 9223372036854775807. */
2234 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2236 && LARGE_OFF_T % 2147483647 == 1)
2243 if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 #define _FILE_OFFSET_BITS 64
2253 #include <sys/types.h>
2254 /* Check that off_t can represent 2**63 - 1 correctly.
2255 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2256 since some C++ compilers masquerading as C compilers
2257 incorrectly reject 9223372036854775807. */
2258 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2260 && LARGE_OFF_T % 2147483647 == 1)
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 ac_cv_sys_file_offset_bits=64
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2280 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
2281 if test "$ac_cv_sys_file_offset_bits" != no; then
2282 cat >> confdefs.h <<EOF
2283 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2287 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2288 echo "configure:2289: checking for _LARGE_FILES value needed for large files" >&5
2289 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 ac_cv_sys_large_files=no
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <sys/types.h>
2297 /* Check that off_t can represent 2**63 - 1 correctly.
2298 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2299 since some C++ compilers masquerading as C compilers
2300 incorrectly reject 9223372036854775807. */
2301 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2303 && LARGE_OFF_T % 2147483647 == 1)
2310 if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #define _LARGE_FILES 1
2320 #include <sys/types.h>
2321 /* Check that off_t can represent 2**63 - 1 correctly.
2322 We can't simply "#define LARGE_OFF_T 9223372036854775807",
2323 since some C++ compilers masquerading as C compilers
2324 incorrectly reject 9223372036854775807. */
2325 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2327 && LARGE_OFF_T % 2147483647 == 1)
2335 if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2337 ac_cv_sys_large_files=1
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2347 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
2348 if test "$ac_cv_sys_large_files" != no; then
2349 cat >> confdefs.h <<EOF
2350 #define _LARGE_FILES $ac_cv_sys_large_files
2357 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
2358 echo "configure:2359: checking for uint8_t" >&5
2359 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2368 #include <sys/types.h>
2374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2375 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2377 ac_cv_type_uint8_t=yes
2380 ac_cv_type_uint8_t=no
2385 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
2386 if test $ac_cv_type_uint8_t = no; then
2387 cat >> confdefs.h <<\EOF
2388 #define uint8_t unsigned char
2393 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
2394 echo "configure:2395: checking for uint16_t" >&5
2395 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2404 #include <sys/types.h>
2410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2411 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2413 ac_cv_type_uint16_t=yes
2416 ac_cv_type_uint16_t=no
2421 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
2422 if test $ac_cv_type_uint16_t = no; then
2423 cat >> confdefs.h <<\EOF
2424 #define uint16_t unsigned short
2429 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
2430 echo "configure:2431: checking for uint32_t" >&5
2431 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2440 #include <sys/types.h>
2446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2449 ac_cv_type_uint32_t=yes
2452 ac_cv_type_uint32_t=no
2457 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
2458 if test $ac_cv_type_uint32_t = no; then
2459 cat >> confdefs.h <<\EOF
2460 #define uint32_t unsigned int
2465 echo $ac_n "checking for long long""... $ac_c" 1>&6
2466 echo "configure:2467: checking for long long" >&5
2467 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 if test "$GCC" = yes; then
2471 ac_cv_c_long_long=yes
2473 if test "$cross_compiling" = yes; then
2474 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2481 exit(sizeof(long long) < sizeof(long)); }
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2485 ac_cv_c_long_long=yes
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 ac_cv_c_long_long=no
2498 echo "$ac_t""$ac_cv_c_long_long" 1>&6
2499 if test $ac_cv_c_long_long = yes; then
2500 cat >> confdefs.h <<\EOF
2501 #define HAVE_LONG_LONG 1
2506 if test $ac_cv_c_long_long = yes; then
2507 long64='unsigned long long';
2509 long64='unsigned long';
2511 echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
2512 echo "configure:2513: checking for uint64_t" >&5
2513 if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2522 #include <sys/types.h>
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2531 eval "ac_cv_type_uint64_t=yes"
2534 eval "ac_cv_type_uint64_t=no"
2539 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
2540 echo "$ac_t""yes" 1>&6
2542 echo "$ac_t""no" 1>&6
2543 cat >> confdefs.h <<EOF
2544 #define uint64_t $long64
2550 echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6
2551 echo "configure:2552: checking size of uint8_t" >&5
2552 if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 if test "$cross_compiling" = yes; then
2556 ac_cv_sizeof_uint8_t=0
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2564 #include <sys/types.h>
2572 FILE *f=fopen("conftestval", "w");
2574 fprintf(f, "%d\n", sizeof(uint8_t));
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2580 ac_cv_sizeof_uint8_t=`cat conftestval`
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 ac_cv_sizeof_uint8_t=0
2591 echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6
2592 cat >> confdefs.h <<EOF
2593 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
2598 echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
2599 echo "configure:2600: checking size of uint16_t" >&5
2600 if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 if test "$cross_compiling" = yes; then
2604 ac_cv_sizeof_uint16_t=0
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2612 #include <sys/types.h>
2620 FILE *f=fopen("conftestval", "w");
2622 fprintf(f, "%d\n", sizeof(uint16_t));
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2628 ac_cv_sizeof_uint16_t=`cat conftestval`
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 ac_cv_sizeof_uint16_t=0
2639 echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
2640 cat >> confdefs.h <<EOF
2641 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
2646 echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
2647 echo "configure:2648: checking size of uint32_t" >&5
2648 if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 if test "$cross_compiling" = yes; then
2652 ac_cv_sizeof_uint32_t=0
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2660 #include <sys/types.h>
2668 FILE *f=fopen("conftestval", "w");
2670 fprintf(f, "%d\n", sizeof(uint32_t));
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2676 ac_cv_sizeof_uint32_t=`cat conftestval`
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2681 ac_cv_sizeof_uint32_t=0
2687 echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
2688 cat >> confdefs.h <<EOF
2689 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
2694 echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
2695 echo "configure:2696: checking size of uint64_t" >&5
2696 if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 if test "$cross_compiling" = yes; then
2700 ac_cv_sizeof_uint64_t=0
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2708 #include <sys/types.h>
2716 FILE *f=fopen("conftestval", "w");
2718 fprintf(f, "%d\n", sizeof(uint64_t));
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2724 ac_cv_sizeof_uint64_t=`cat conftestval`
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 ac_cv_sizeof_uint64_t=0
2735 echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
2736 cat >> confdefs.h <<EOF
2737 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
2743 for ac_func in mmap strerror strtoul mkstemp
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2774 if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2776 eval "ac_cv_func_$ac_func=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 eval "ac_cv_func_$ac_func=no"
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2789 cat >> confdefs.h <<EOF
2790 #define $ac_tr_func 1
2794 echo "$ac_t""no" 1>&6
2799 echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
2800 echo "configure:2801: checking for gzopen in -lz" >&5
2801 ac_lib_var=`echo z'_'gzopen | sed 'y%./+-%__p_%'`
2802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 ac_save_LIBS="$LIBS"
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 /* Override any gcc2 internal prototype to avoid an error. */
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821 eval "ac_cv_lib_$ac_lib_var=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2826 eval "ac_cv_lib_$ac_lib_var=no"
2829 LIBS="$ac_save_LIBS"
2832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_lib 1
2843 echo "$ac_t""no" 1>&6
2848 cat > confcache <<\EOF
2849 # This file is a shell script that caches the results of configure
2850 # tests run on this system so they can be shared between configure
2851 # scripts and configure runs. It is not useful on other systems.
2852 # If it contains results you don't want to keep, you may remove or edit it.
2854 # By default, configure uses ./config.cache as the cache file,
2855 # creating it if it does not exist already. You can give configure
2856 # the --cache-file=FILE option to use a different cache file; that is
2857 # what configure does when it calls configure scripts in
2858 # subdirectories, so they share the cache.
2859 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2860 # config.status only pays attention to the cache file if you give it the
2861 # --recheck option to rerun configure.
2864 # The following way of writing the cache mishandles newlines in values,
2865 # but we know of no workaround that is simple, portable, and efficient.
2866 # So, don't put newlines in cache variables' values.
2867 # Ultrix sh set writes to stderr and can't be redirected directly,
2868 # and sets the high bit in the cache file unless we assign to the vars.
2870 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2872 # `set' does not quote correctly, so add quotes (double-quote substitution
2873 # turns \\\\ into \\, and sed turns \\ into \).
2875 -e "s/'/'\\\\''/g" \
2876 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2879 # `set' quotes correctly as required by POSIX, so do not add quotes.
2880 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2883 if cmp -s $cache_file confcache; then
2886 if test -w $cache_file; then
2887 echo "updating cache $cache_file"
2888 cat confcache > $cache_file
2890 echo "not updating unwritable cache $cache_file"
2895 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2898 # Let make expand exec_prefix.
2899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2901 # Any assignment to VPATH causes Sun make to only execute
2902 # the first set of double-colon rules, so remove it if not needed.
2903 # If there is a colon in the path, we need to keep it.
2904 if test "x$srcdir" = x.; then
2905 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2908 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2910 DEFS=-DHAVE_CONFIG_H
2912 # Without the "./", some shells look in PATH for config.status.
2913 : ${CONFIG_STATUS=./config.status}
2915 echo creating $CONFIG_STATUS
2916 rm -f $CONFIG_STATUS
2917 cat > $CONFIG_STATUS <<EOF
2919 # Generated automatically by configure.
2920 # Run this file to recreate the current configuration.
2921 # This directory was configured as follows,
2922 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2924 # $0 $ac_configure_args
2926 # Compiler output produced by configure, useful for debugging
2927 # configure, is in ./config.log if it exists.
2929 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2932 case "\$ac_option" in
2933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2934 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2935 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2936 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2937 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2939 -help | --help | --hel | --he | --h)
2940 echo "\$ac_cs_usage"; exit 0 ;;
2941 *) echo "\$ac_cs_usage"; exit 1 ;;
2945 ac_given_srcdir=$srcdir
2946 ac_given_INSTALL="$INSTALL"
2948 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2950 cat >> $CONFIG_STATUS <<EOF
2952 # Protect against being on the right side of a sed subst in config.status.
2953 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2954 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2958 s%@CFLAGS@%$CFLAGS%g
2959 s%@CPPFLAGS@%$CPPFLAGS%g
2960 s%@CXXFLAGS@%$CXXFLAGS%g
2961 s%@FFLAGS@%$FFLAGS%g
2963 s%@LDFLAGS@%$LDFLAGS%g
2965 s%@exec_prefix@%$exec_prefix%g
2966 s%@prefix@%$prefix%g
2967 s%@program_transform_name@%$program_transform_name%g
2968 s%@bindir@%$bindir%g
2969 s%@sbindir@%$sbindir%g
2970 s%@libexecdir@%$libexecdir%g
2971 s%@datadir@%$datadir%g
2972 s%@sysconfdir@%$sysconfdir%g
2973 s%@sharedstatedir@%$sharedstatedir%g
2974 s%@localstatedir@%$localstatedir%g
2975 s%@libdir@%$libdir%g
2976 s%@includedir@%$includedir%g
2977 s%@oldincludedir@%$oldincludedir%g
2978 s%@infodir@%$infodir%g
2979 s%@mandir@%$mandir%g
2980 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2981 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2982 s%@INSTALL_DATA@%$INSTALL_DATA%g
2983 s%@PACKAGE@%$PACKAGE%g
2984 s%@VERSION@%$VERSION%g
2985 s%@ACLOCAL@%$ACLOCAL%g
2986 s%@AUTOCONF@%$AUTOCONF%g
2987 s%@AUTOMAKE@%$AUTOMAKE%g
2988 s%@AUTOHEADER@%$AUTOHEADER%g
2989 s%@MAKEINFO@%$MAKEINFO%g
2990 s%@SET_MAKE@%$SET_MAKE%g
2992 s%@FSECT5_TRUE@%$FSECT5_TRUE%g
2993 s%@FSECT5_FALSE@%$FSECT5_FALSE%g
3001 cat >> $CONFIG_STATUS <<\EOF
3003 # Split the substitutions into bite-sized pieces for seds with
3004 # small command number limits, like on Digital OSF/1 and HP-UX.
3005 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3006 ac_file=1 # Number of current file.
3007 ac_beg=1 # First line for current file.
3008 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3011 while $ac_more_lines; do
3012 if test $ac_beg -gt 1; then
3013 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3015 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3017 if test ! -s conftest.s$ac_file; then
3019 rm -f conftest.s$ac_file
3021 if test -z "$ac_sed_cmds"; then
3022 ac_sed_cmds="sed -f conftest.s$ac_file"
3024 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3026 ac_file=`expr $ac_file + 1`
3028 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3031 if test -z "$ac_sed_cmds"; then
3036 cat >> $CONFIG_STATUS <<EOF
3038 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3040 cat >> $CONFIG_STATUS <<\EOF
3041 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3044 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3045 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3046 *) ac_file_in="${ac_file}.in" ;;
3049 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3051 # Remove last slash and all that follows it. Not all systems have dirname.
3052 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3054 # The file is in a subdirectory.
3055 test ! -d "$ac_dir" && mkdir "$ac_dir"
3056 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3057 # A "../" for each directory in $ac_dir_suffix.
3058 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3060 ac_dir_suffix= ac_dots=
3063 case "$ac_given_srcdir" in
3065 if test -z "$ac_dots"; then top_srcdir=.
3066 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3067 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3069 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3070 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3073 case "$ac_given_INSTALL" in
3074 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3075 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3078 echo creating "$ac_file"
3080 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3082 *Makefile*) ac_comsub="1i\\
3083 # $configure_input" ;;
3087 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3089 s%@configure_input@%$configure_input%g
3090 s%@srcdir@%$srcdir%g
3091 s%@top_srcdir@%$top_srcdir%g
3092 s%@INSTALL@%$INSTALL%g
3093 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3100 # ac_d sets the value in "#define NAME VALUE" lines.
3101 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3102 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3105 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3106 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3107 ac_uB='\([ ]\)%\1#\2define\3'
3110 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3111 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3112 ac_eB='$%\1#\2define\3'
3116 if test "${CONFIG_HEADERS+set}" != set; then
3118 cat >> $CONFIG_STATUS <<EOF
3119 CONFIG_HEADERS="config.h"
3121 cat >> $CONFIG_STATUS <<\EOF
3123 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3126 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3127 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3128 *) ac_file_in="${ac_file}.in" ;;
3131 echo creating $ac_file
3133 rm -f conftest.frag conftest.in conftest.out
3134 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3135 cat $ac_file_inputs > conftest.in
3139 # Transform confdefs.h into a sed script conftest.vals that substitutes
3140 # the proper values into config.h.in to produce config.h. And first:
3141 # Protect against being on the right side of a sed subst in config.status.
3142 # Protect against being in an unquoted here document in config.status.
3144 cat > conftest.hdr <<\EOF
3147 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3151 sed -n -f conftest.hdr confdefs.h > conftest.vals
3154 # This sed command replaces #undef with comments. This is necessary, for
3155 # example, in the case of _POSIX_SOURCE, which is predefined and required
3156 # on some systems where configure will not decide to define it.
3157 cat >> conftest.vals <<\EOF
3158 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3161 # Break up conftest.vals because some shells have a limit on
3162 # the size of here documents, and old seds have small limits too.
3167 ac_lines=`grep -c . conftest.vals`
3168 # grep -c gives empty output for an empty file on some AIX systems.
3169 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3170 # Write a limited-size here document to conftest.frag.
3171 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3172 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3174 sed -f conftest.frag conftest.in > conftest.out
3176 mv conftest.out conftest.in
3178 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3180 mv conftest.tail conftest.vals
3184 cat >> $CONFIG_STATUS <<\EOF
3185 rm -f conftest.frag conftest.h
3186 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3187 cat conftest.in >> conftest.h
3189 if cmp -s $ac_file conftest.h 2>/dev/null; then
3190 echo "$ac_file is unchanged"
3193 # Remove last slash and all that follows it. Not all systems have dirname.
3194 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3196 # The file is in a subdirectory.
3197 test ! -d "$ac_dir" && mkdir "$ac_dir"
3200 mv conftest.h $ac_file
3205 cat >> $CONFIG_STATUS <<EOF
3209 cat >> $CONFIG_STATUS <<\EOF
3210 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3214 chmod +x $CONFIG_STATUS
3215 rm -fr confdefs* $ac_clean_files
3216 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1