2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for gzip 1.3.5.
5 # Report bugs to <bug-gzip@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
41 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
43 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
90 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # We need space, tab and new line, in precisely that order.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
253 ac_config_libobj_dir=.
258 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete. It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
265 # Identity of this package.
267 PACKAGE_TARNAME='gzip'
268 PACKAGE_VERSION='1.3.5'
269 PACKAGE_STRING='gzip 1.3.5'
270 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
272 ac_unique_file="gzip.c"
273 # Factoring default headers for most tests.
274 ac_includes_default="\
277 # include <sys/types.h>
280 # include <sys/stat.h>
291 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <strings.h>
300 # include <inttypes.h>
310 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP LIBOBJS ac_prefix_program ASCPP SEDCMD LTLIBOBJS'
313 # Initialize some variables set by options.
315 ac_init_version=false
316 # The variables have the same names as the options, with
317 # dashes changed to underlines.
325 program_transform_name=s,x,x,
333 # Installation directory options.
334 # These are left unexpanded so users can "make install exec_prefix=/foo"
335 # and all the variables that are supposed to be based on exec_prefix
336 # by default will actually change.
337 # Use braces instead of parens because sh, perl, etc. also accept them.
338 bindir='${exec_prefix}/bin'
339 sbindir='${exec_prefix}/sbin'
340 libexecdir='${exec_prefix}/libexec'
341 datadir='${prefix}/share'
342 sysconfdir='${prefix}/etc'
343 sharedstatedir='${prefix}/com'
344 localstatedir='${prefix}/var'
345 libdir='${exec_prefix}/lib'
346 includedir='${prefix}/include'
347 oldincludedir='/usr/include'
348 infodir='${prefix}/info'
349 mandir='${prefix}/man'
354 # If the previous option needs an argument, assign it.
355 if test -n "$ac_prev"; then
356 eval "$ac_prev=\$ac_option"
361 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363 # Accept the important Cygnus configure options, so we can diagnose typos.
367 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 -build | --build | --buil | --bui | --bu)
373 ac_prev=build_alias ;;
374 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375 build_alias=$ac_optarg ;;
377 -cache-file | --cache-file | --cache-fil | --cache-fi \
378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379 ac_prev=cache_file ;;
380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382 cache_file=$ac_optarg ;;
385 cache_file=config.cache ;;
387 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 datadir=$ac_optarg ;;
393 -disable-* | --disable-*)
394 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
395 # Reject names that are not valid shell variable names.
396 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398 { (exit 1); exit 1; }; }
399 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400 eval "enable_$ac_feature=no" ;;
402 -enable-* | --enable-*)
403 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
404 # Reject names that are not valid shell variable names.
405 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407 { (exit 1); exit 1; }; }
408 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 eval "enable_$ac_feature='$ac_optarg'" ;;
415 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417 | --exec | --exe | --ex)
418 ac_prev=exec_prefix ;;
419 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421 | --exec=* | --exe=* | --ex=*)
422 exec_prefix=$ac_optarg ;;
424 -gas | --gas | --ga | --g)
425 # Obsolete; use --with-gas.
428 -help | --help | --hel | --he | -h)
430 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
431 ac_init_help=recursive ;;
432 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433 ac_init_help=short ;;
435 -host | --host | --hos | --ho)
436 ac_prev=host_alias ;;
437 -host=* | --host=* | --hos=* | --ho=*)
438 host_alias=$ac_optarg ;;
440 -includedir | --includedir | --includedi | --included | --include \
441 | --includ | --inclu | --incl | --inc)
442 ac_prev=includedir ;;
443 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444 | --includ=* | --inclu=* | --incl=* | --inc=*)
445 includedir=$ac_optarg ;;
447 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
450 infodir=$ac_optarg ;;
452 -libdir | --libdir | --libdi | --libd)
454 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458 | --libexe | --libex | --libe)
459 ac_prev=libexecdir ;;
460 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461 | --libexe=* | --libex=* | --libe=*)
462 libexecdir=$ac_optarg ;;
464 -localstatedir | --localstatedir | --localstatedi | --localstated \
465 | --localstate | --localstat | --localsta | --localst \
466 | --locals | --local | --loca | --loc | --lo)
467 ac_prev=localstatedir ;;
468 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
471 localstatedir=$ac_optarg ;;
473 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 # Obsolete; use --without-fp.
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c | -n)
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
491 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
492 | --oldin | --oldi | --old | --ol | --o)
493 ac_prev=oldincludedir ;;
494 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
497 oldincludedir=$ac_optarg ;;
499 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 -program-prefix | --program-prefix | --program-prefi | --program-pref \
505 | --program-pre | --program-pr | --program-p)
506 ac_prev=program_prefix ;;
507 -program-prefix=* | --program-prefix=* | --program-prefi=* \
508 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
509 program_prefix=$ac_optarg ;;
511 -program-suffix | --program-suffix | --program-suffi | --program-suff \
512 | --program-suf | --program-su | --program-s)
513 ac_prev=program_suffix ;;
514 -program-suffix=* | --program-suffix=* | --program-suffi=* \
515 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
516 program_suffix=$ac_optarg ;;
518 -program-transform-name | --program-transform-name \
519 | --program-transform-nam | --program-transform-na \
520 | --program-transform-n | --program-transform- \
521 | --program-transform | --program-transfor \
522 | --program-transfo | --program-transf \
523 | --program-trans | --program-tran \
524 | --progr-tra | --program-tr | --program-t)
525 ac_prev=program_transform_name ;;
526 -program-transform-name=* | --program-transform-name=* \
527 | --program-transform-nam=* | --program-transform-na=* \
528 | --program-transform-n=* | --program-transform-=* \
529 | --program-transform=* | --program-transfor=* \
530 | --program-transfo=* | --program-transf=* \
531 | --program-trans=* | --program-tran=* \
532 | --progr-tra=* | --program-tr=* | --program-t=*)
533 program_transform_name=$ac_optarg ;;
535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536 | -silent | --silent | --silen | --sile | --sil)
539 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 sbindir=$ac_optarg ;;
545 -sharedstatedir | --sharedstatedir | --sharedstatedi \
546 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
547 | --sharedst | --shareds | --shared | --share | --shar \
549 ac_prev=sharedstatedir ;;
550 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
551 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 sharedstatedir=$ac_optarg ;;
556 -site | --site | --sit)
558 -site=* | --site=* | --sit=*)
561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567 | --syscon | --sysco | --sysc | --sys | --sy)
568 ac_prev=sysconfdir ;;
569 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
571 sysconfdir=$ac_optarg ;;
573 -target | --target | --targe | --targ | --tar | --ta | --t)
574 ac_prev=target_alias ;;
575 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
576 target_alias=$ac_optarg ;;
578 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 -version | --version | --versio | --versi | --vers | -V)
585 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 eval "with_$ac_package='$ac_optarg'" ;;
597 -without-* | --without-*)
598 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
599 # Reject names that are not valid shell variable names.
600 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601 { echo "$as_me: error: invalid package name: $ac_package" >&2
602 { (exit 1); exit 1; }; }
603 ac_package=`echo $ac_package | sed 's/-/_/g'`
604 eval "with_$ac_package=no" ;;
607 # Obsolete; use --with-x.
610 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
611 | --x-incl | --x-inc | --x-in | --x-i)
612 ac_prev=x_includes ;;
613 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
615 x_includes=$ac_optarg ;;
617 -x-libraries | --x-libraries | --x-librarie | --x-librari \
618 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619 ac_prev=x_libraries ;;
620 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
622 x_libraries=$ac_optarg ;;
624 -*) { echo "$as_me: error: unrecognized option: $ac_option
625 Try \`$0 --help' for more information." >&2
626 { (exit 1); exit 1; }; }
630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634 { (exit 1); exit 1; }; }
635 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636 eval "$ac_envvar='$ac_optarg'"
640 # FIXME: should be removed in autoconf 3.0.
641 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 if test -n "$ac_prev"; then
651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652 { echo "$as_me: error: missing argument to $ac_option" >&2
653 { (exit 1); exit 1; }; }
656 # Be sure to have absolute paths.
657 for ac_var in exec_prefix prefix
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # Be sure to have absolute paths.
668 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669 localstatedir libdir includedir oldincludedir infodir mandir
671 eval ac_val=$`echo $ac_var`
673 [\\/$]* | ?:[\\/]* ) ;;
674 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675 { (exit 1); exit 1; }; };;
679 # There might be people who depend on the old broken behavior: `$host'
680 # used to hold the argument of --host etc.
681 # FIXME: To remove some day.
686 # FIXME: To remove some day.
687 if test "x$host_alias" != x; then
688 if test "x$build_alias" = x; then
689 cross_compiling=maybe
690 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691 If a cross compiler is detected then cross compile mode will be used." >&2
692 elif test "x$build_alias" != "x$host_alias"; then
698 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700 test "$silent" = yes && exec 6>/dev/null
703 # Find the source files, if location was not specified.
704 if test -z "$srcdir"; then
705 ac_srcdir_defaulted=yes
706 # Try the directory containing this script, then its parent.
707 ac_confdir=`(dirname "$0") 2>/dev/null ||
708 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709 X"$0" : 'X\(//\)[^/]' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| \
712 . : '\(.\)' 2>/dev/null ||
714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716 /^X\(\/\/\)$/{ s//\1/; q; }
717 /^X\(\/\).*/{ s//\1/; q; }
720 if test ! -r $srcdir/$ac_unique_file; then
724 ac_srcdir_defaulted=no
726 if test ! -r $srcdir/$ac_unique_file; then
727 if test "$ac_srcdir_defaulted" = yes; then
728 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
729 { (exit 1); exit 1; }; }
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
732 { (exit 1); exit 1; }; }
735 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737 { (exit 1); exit 1; }; }
738 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739 ac_env_build_alias_set=${build_alias+set}
740 ac_env_build_alias_value=$build_alias
741 ac_cv_env_build_alias_set=${build_alias+set}
742 ac_cv_env_build_alias_value=$build_alias
743 ac_env_host_alias_set=${host_alias+set}
744 ac_env_host_alias_value=$host_alias
745 ac_cv_env_host_alias_set=${host_alias+set}
746 ac_cv_env_host_alias_value=$host_alias
747 ac_env_target_alias_set=${target_alias+set}
748 ac_env_target_alias_value=$target_alias
749 ac_cv_env_target_alias_set=${target_alias+set}
750 ac_cv_env_target_alias_value=$target_alias
751 ac_env_CC_set=${CC+set}
753 ac_cv_env_CC_set=${CC+set}
754 ac_cv_env_CC_value=$CC
755 ac_env_CFLAGS_set=${CFLAGS+set}
756 ac_env_CFLAGS_value=$CFLAGS
757 ac_cv_env_CFLAGS_set=${CFLAGS+set}
758 ac_cv_env_CFLAGS_value=$CFLAGS
759 ac_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_env_LDFLAGS_value=$LDFLAGS
761 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_cv_env_LDFLAGS_value=$LDFLAGS
763 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_env_CPPFLAGS_value=$CPPFLAGS
765 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767 ac_env_CPP_set=${CPP+set}
768 ac_env_CPP_value=$CPP
769 ac_cv_env_CPP_set=${CPP+set}
770 ac_cv_env_CPP_value=$CPP
773 # Report the --help message.
775 if test "$ac_init_help" = "long"; then
776 # Omit some internal or obsolete options to make the list less imposing.
777 # This message is too long to be a string in the A/UX 3.1 sh.
779 \`configure' configures gzip 1.3.5 to adapt to many kinds of systems.
781 Usage: $0 [OPTION]... [VAR=VALUE]...
783 To assign environment variables (e.g., CC, CFLAGS...), specify them as
784 VAR=VALUE. See below for descriptions of some of the useful variables.
786 Defaults for the options are specified in brackets.
789 -h, --help display this help and exit
790 --help=short display options specific to this package
791 --help=recursive display the short help of all the included packages
792 -V, --version display version information and exit
793 -q, --quiet, --silent do not print \`checking...' messages
794 --cache-file=FILE cache test results in FILE [disabled]
795 -C, --config-cache alias for \`--cache-file=config.cache'
796 -n, --no-create do not create output files
797 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 Installation directories:
803 --prefix=PREFIX install architecture-independent files in PREFIX
805 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 By default, \`make install' will install all the files in
809 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
810 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
811 for instance \`--prefix=\$HOME'.
813 For better control, use the options below.
815 Fine tuning of the installation directories:
816 --bindir=DIR user executables [EPREFIX/bin]
817 --sbindir=DIR system admin executables [EPREFIX/sbin]
818 --libexecdir=DIR program executables [EPREFIX/libexec]
819 --datadir=DIR read-only architecture-independent data [PREFIX/share]
820 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
821 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
822 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
823 --libdir=DIR object code libraries [EPREFIX/lib]
824 --includedir=DIR C header files [PREFIX/include]
825 --oldincludedir=DIR C header files for non-gcc [/usr/include]
826 --infodir=DIR info documentation [PREFIX/info]
827 --mandir=DIR man documentation [PREFIX/man]
833 --program-prefix=PREFIX prepend PREFIX to installed program names
834 --program-suffix=SUFFIX append SUFFIX to installed program names
835 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of gzip 1.3.5:";;
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-dependency-tracking Speeds up one-time builds
849 --enable-dependency-tracking Do not reject slow dependency extractors
850 --disable-largefile omit support for large files
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
864 Report bugs to <bug-gzip@gnu.org>.
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 ac_dir_suffix= ac_top_builddir=
884 .) # No --srcdir option. We are building in place.
886 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
900 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
901 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
902 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
903 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_srcdir/configure.gnu; then
909 $SHELL $ac_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_srcdir/configure; then
912 $SHELL $ac_srcdir/configure --help=recursive
913 elif test -f $ac_srcdir/configure.ac ||
914 test -f $ac_srcdir/configure.in; then
918 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
928 generated by GNU Autoconf 2.54
930 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
931 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by gzip $as_me 1.3.5, which was
943 generated by GNU Autoconf 2.54. Invocation command line was
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 test -z "$as_dir" && as_dir=.
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Also quote any args containing shell meta-characters.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n ) continue ;;
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1010 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 # WARNING: Be sure not to use single quotes in there, as some shells,
1018 # such as our DU 5.0 friend, will then `close' the trap.
1019 trap 'exit_status=$?
1020 # Save into config.log some information that might help in debugging.
1025 ## ---------------- ##
1026 ## Cache variables. ##
1027 ## ---------------- ##
1030 # The following way of writing the cache mishandles newlines in values,
1033 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1036 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1041 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1048 ## ----------------- ##
1049 ## Output variables. ##
1050 ## ----------------- ##
1053 for ac_var in $ac_subst_vars
1055 eval ac_val=$`echo $ac_var`
1056 echo "$ac_var='"'"'$ac_val'"'"'"
1060 if test -n "$ac_subst_files"; then
1067 for ac_var in $ac_subst_files
1069 eval ac_val=$`echo $ac_var`
1070 echo "$ac_var='"'"'$ac_val'"'"'"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h | sort
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1249 am__api_version="1.7"
1251 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1252 if test -f $ac_dir/install-sh; then
1254 ac_install_sh="$ac_aux_dir/install-sh -c"
1256 elif test -f $ac_dir/install.sh; then
1258 ac_install_sh="$ac_aux_dir/install.sh -c"
1260 elif test -f $ac_dir/shtool; then
1262 ac_install_sh="$ac_aux_dir/shtool install -c"
1266 if test -z "$ac_aux_dir"; then
1267 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1268 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1269 { (exit 1); exit 1; }; }
1271 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1272 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1273 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1275 # Find a good install program. We prefer a C program (faster),
1276 # so one script is as good as another. But avoid the broken or
1277 # incompatible versions:
1278 # SysV /etc/install, /usr/sbin/install
1279 # SunOS /usr/etc/install
1280 # IRIX /sbin/install
1282 # AmigaOS /C/install, which installs bootblocks on floppy discs
1283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1286 # ./install, which can be erroneously created by make from ./install.sh.
1287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1289 if test -z "$INSTALL"; then
1290 if test "${ac_cv_path_install+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 test -z "$as_dir" && as_dir=.
1298 # Account for people who put trailing slashes in PATH elements.
1300 ./ | .// | /cC/* | \
1301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1304 # OSF1 and SCO ODT 3.0 have their own names for install.
1305 # Don't use installbsd from OSF since it installs stuff as root
1307 for ac_prog in ginstall scoinst install; do
1308 for ac_exec_ext in '' $ac_executable_extensions; do
1309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1310 if test $ac_prog = install &&
1311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1312 # AIX install. It has an incompatible calling convention.
1314 elif test $ac_prog = install &&
1315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1316 # program-specific install script used by HP pwplus--don't use.
1319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1331 if test "${ac_cv_path_install+set}" = set; then
1332 INSTALL=$ac_cv_path_install
1334 # As a last resort, use the slow shell script. We don't cache a
1335 # path for INSTALL within a source directory, because that will
1336 # break other packages using the cache if that directory is
1337 # removed, or if the path is relative.
1338 INSTALL=$ac_install_sh
1341 echo "$as_me:$LINENO: result: $INSTALL" >&5
1342 echo "${ECHO_T}$INSTALL" >&6
1344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1345 # It thinks the first close brace ends the variable substitution.
1346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1352 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1356 echo timestamp > conftest.file
1357 # Do `set' in a subshell so we don't clobber the current shell's
1358 # arguments. Must try -L first in case configure is actually a
1359 # symlink; some systems play weird games with the mod time of symlinks
1360 # (eg FreeBSD returns the mod time of the symlink's containing
1363 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1364 if test "$*" = "X"; then
1366 set X `ls -t $srcdir/configure conftest.file`
1369 if test "$*" != "X $srcdir/configure conftest.file" \
1370 && test "$*" != "X conftest.file $srcdir/configure"; then
1372 # If neither matched, then we have a broken ls. This can happen
1373 # if, for instance, CONFIG_SHELL is bash and it inherits a
1374 # broken ls alias from the environment. This has actually
1375 # happened. Such a system could not be considered "sane".
1376 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1377 alias in your environment" >&5
1378 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1379 alias in your environment" >&2;}
1380 { (exit 1); exit 1; }; }
1383 test "$2" = conftest.file
1389 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1390 Check your system clock" >&5
1391 echo "$as_me: error: newly created file is older than distributed files!
1392 Check your system clock" >&2;}
1393 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: result: yes" >&5
1396 echo "${ECHO_T}yes" >&6
1397 test "$program_prefix" != NONE &&
1398 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1399 # Use a double $ so make ignores it.
1400 test "$program_suffix" != NONE &&
1401 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1402 # Double any \ or $. echo might interpret backslashes.
1403 # By default was `s,x,x', remove it if useless.
1404 cat <<\_ACEOF >conftest.sed
1405 s/[\\$]/&&/g;s/;s,x,x,$//
1407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1411 # expand $ac_aux_dir to an absolute path
1412 am_aux_dir=`cd $ac_aux_dir && pwd`
1414 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1415 # Use eval to expand $SHELL
1416 if eval "$MISSING --run true"; then
1417 am_missing_run="$MISSING --run "
1420 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1421 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1424 for ac_prog in gawk mawk nawk awk
1426 # Extract the first word of "$ac_prog", so it can be a program name with args.
1427 set dummy $ac_prog; ac_word=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_AWK+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$AWK"; then
1434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 test -z "$as_dir" && as_dir=.
1441 for ac_exec_ext in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_AWK="$ac_prog"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 if test -n "$AWK"; then
1454 echo "$as_me:$LINENO: result: $AWK" >&5
1455 echo "${ECHO_T}$AWK" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1461 test -n "$AWK" && break
1464 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1465 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1466 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1467 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 cat >conftest.make <<\_ACEOF
1472 @echo 'ac_maketemp="${MAKE}"'
1474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1475 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1476 if test -n "$ac_maketemp"; then
1477 eval ac_cv_prog_make_${ac_make}_set=yes
1479 eval ac_cv_prog_make_${ac_make}_set=no
1483 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1484 echo "$as_me:$LINENO: result: yes" >&5
1485 echo "${ECHO_T}yes" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 SET_MAKE="MAKE=${MAKE-make}"
1493 # test to see if srcdir already configured
1494 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1495 test -f $srcdir/config.status; then
1496 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1497 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1498 { (exit 1); exit 1; }; }
1501 # test whether we have cygpath
1502 if test -z "$CYGPATH_W"; then
1503 if (cygpath --version) >/dev/null 2>/dev/null; then
1504 CYGPATH_W='cygpath -w'
1511 # Define the identity of the package.
1516 cat >>confdefs.h <<_ACEOF
1517 #define PACKAGE "$PACKAGE"
1521 cat >>confdefs.h <<_ACEOF
1522 #define VERSION "$VERSION"
1525 # Some tools Automake needs.
1527 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1530 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1533 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1536 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1539 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1542 AMTAR=${AMTAR-"${am_missing_run}tar"}
1544 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1546 # Installed binaries are usually stripped using `strip' when the user
1547 # run `make install-strip'. However `strip' might not be the right
1548 # tool to use in cross-compilation environments, therefore Automake
1549 # will honor the `STRIP' environment variable to overrule this program.
1550 if test "$cross_compiling" != no; then
1551 if test -n "$ac_tool_prefix"; then
1552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1553 set dummy ${ac_tool_prefix}strip; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_STRIP+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$STRIP"; then
1560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 STRIP=$ac_cv_prog_STRIP
1579 if test -n "$STRIP"; then
1580 echo "$as_me:$LINENO: result: $STRIP" >&5
1581 echo "${ECHO_T}$STRIP" >&6
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1588 if test -z "$ac_cv_prog_STRIP"; then
1590 # Extract the first word of "strip", so it can be a program name with args.
1591 set dummy strip; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 if test -n "$ac_ct_STRIP"; then
1598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_ac_ct_STRIP="strip"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1618 if test -n "$ac_ct_STRIP"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1620 echo "${ECHO_T}$ac_ct_STRIP" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1628 STRIP="$ac_cv_prog_STRIP"
1632 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1634 # We need awk for the "check" target. The system "awk" is bad on
1640 ac_config_headers="$ac_config_headers config.h"
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$ac_cv_prog_CC"; then
1686 # Extract the first word of "gcc", so it can be a program name with args.
1687 set dummy gcc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$ac_ct_CC"; then
1694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_CC="gcc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713 if test -n "$ac_ct_CC"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715 echo "${ECHO_T}$ac_ct_CC" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 if test -n "$ac_tool_prefix"; then
1728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1729 set dummy ${ac_tool_prefix}cc; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_CC="${ac_tool_prefix}cc"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 if test -n "$CC"; then
1756 echo "$as_me:$LINENO: result: $CC" >&5
1757 echo "${ECHO_T}$CC" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1764 if test -z "$ac_cv_prog_CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$ac_ct_CC"; then
1774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_ac_ct_CC="cc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1793 if test -n "$ac_ct_CC"; then
1794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1795 echo "${ECHO_T}$ac_ct_CC" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1807 if test -z "$CC"; then
1808 # Extract the first word of "cc", so it can be a program name with args.
1809 set dummy cc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1827 ac_prog_rejected=yes
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test $ac_prog_rejected = yes; then
1838 # We found a bogon in the path, so make sure we never use it.
1839 set dummy $ac_cv_prog_CC
1841 if test $# != 0; then
1842 # We chose a different compiler from the bogus one.
1843 # However, it has the same basename, so the bogon will be chosen
1844 # first if we set CC to just the basename; use the full file name.
1846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$CC"; then
1862 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 if test -n "$CC"; then
1893 echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$CC" && break
1903 if test -z "$CC"; then
1907 # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="$ac_prog"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 test -n "$ac_ct_CC" && break
1951 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1952 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1953 { (exit 1); exit 1; }; }
1955 # Provide some information about the compiler.
1956 echo "$as_me:$LINENO:" \
1957 "checking for C compiler version" >&5
1958 ac_compiler=`set X $ac_compile; echo $2`
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1960 (eval $ac_compiler --version </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1965 (eval $ac_compiler -v </dev/null >&5) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1970 (eval $ac_compiler -V </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1975 cat >conftest.$ac_ext <<_ACEOF
1976 #line $LINENO "configure"
1977 #include "confdefs.h"
1987 ac_clean_files_save=$ac_clean_files
1988 ac_clean_files="$ac_clean_files a.out a.exe"
1989 # Try to create an executable without -o first, disregard a.out.
1990 # It will help us diagnose broken compilers, and finding out an intuition
1992 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1993 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1994 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1996 (eval $ac_link_default) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 # Find the output, starting from the most likely. This scheme is
2001 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004 # Be careful to initialize this variable, since it used to be cached.
2005 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2008 test -f "$ac_file" || continue
2010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2011 a.out ) # We found the default executable, but exeext='' is most
2014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2022 echo "$as_me: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2025 check \`config.log' for details." >&5
2026 echo "$as_me: error: C compiler cannot create executables
2027 check \`config.log' for details." >&2;}
2028 { (exit 77); exit 77; }; }
2031 ac_exeext=$ac_cv_exeext
2032 echo "$as_me:$LINENO: result: $ac_file" >&5
2033 echo "${ECHO_T}$ac_file" >&6
2035 # Check the compiler produces executables we can run. If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2040 # If not cross compiling, check that we can run a simple program.
2041 if test "$cross_compiling" != yes; then
2042 if { ac_try='./$ac_file'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 if test "$cross_compiling" = maybe; then
2053 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2054 If you meant to cross compile, use \`--host'." >&5
2055 echo "$as_me: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&2;}
2057 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2064 rm -f a.out a.exe conftest$ac_cv_exeext
2065 ac_clean_files=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file in conftest.exe conftest conftest.*; do
2085 test -f "$ac_file" || continue
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2096 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2097 { (exit 1); exit 1; }; }
2100 rm -f conftest$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2102 echo "${ECHO_T}$ac_cv_exeext" >&6
2104 rm -f conftest.$ac_ext
2105 EXEEXT=$ac_cv_exeext
2107 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2108 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2109 if test "${ac_cv_objext+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 cat >conftest.$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2114 #include "confdefs.h"
2124 rm -f conftest.o conftest.obj
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; then
2130 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2138 echo "$as_me: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2141 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2142 { (exit 1); exit 1; }; }
2145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2147 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2148 echo "${ECHO_T}$ac_cv_objext" >&6
2149 OBJEXT=$ac_cv_objext
2151 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2152 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2153 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 cat >conftest.$ac_ext <<_ACEOF
2157 #line $LINENO "configure"
2158 #include "confdefs.h"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2189 rm -f conftest.$ac_objext conftest.$ac_ext
2190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2193 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2195 GCC=`test $ac_compiler_gnu = yes && echo yes`
2196 ac_test_CFLAGS=${CFLAGS+set}
2197 ac_save_CFLAGS=$CFLAGS
2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2206 #include "confdefs.h"
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 echo "$as_me: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2234 rm -f conftest.$ac_objext conftest.$ac_ext
2236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2238 if test "$ac_test_CFLAGS" = set; then
2239 CFLAGS=$ac_save_CFLAGS
2240 elif test $ac_cv_prog_cc_g = yes; then
2241 if test "$GCC" = yes; then
2247 if test "$GCC" = yes; then
2253 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2254 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2255 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 ac_cv_prog_cc_stdc=no
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line $LINENO "configure"
2262 #include "confdefs.h"
2265 #include <sys/types.h>
2266 #include <sys/stat.h>
2267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2268 struct buf { int x; };
2269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270 static char *e (p, i)
2276 static char *f (char * (*g) (char **, int), char **p, ...)
2281 s = g (p, va_arg (v,int));
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2299 # Don't try gcc -ansi; that turns off useful extensions and
2300 # breaks some systems' header files.
2301 # AIX -qlanglvl=ansi
2302 # Ultrix and OSF/1 -std1
2303 # HP-UX 10.20 and later -Ae
2304 # HP-UX older versions -Aa -D_HPUX_SOURCE
2305 # SVR4 -Xc -D__EXTENSIONS__
2306 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2308 CC="$ac_save_CC $ac_arg"
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 ac_cv_prog_cc_stdc=$ac_arg
2324 echo "$as_me: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext
2329 rm -f conftest.$ac_ext conftest.$ac_objext
2334 case "x$ac_cv_prog_cc_stdc" in
2336 echo "$as_me:$LINENO: result: none needed" >&5
2337 echo "${ECHO_T}none needed" >&6 ;;
2339 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2340 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2341 CC="$CC $ac_cv_prog_cc_stdc" ;;
2344 # Some people use a C++ compiler to compile C. Since we use `exit',
2345 # in C++ we need to declare it. In case someone uses the same compiler
2346 # for both compiling C and C++ we need to have the C++ compiler decide
2347 # the declaration of exit, since it's the most demanding environment.
2348 cat >conftest.$ac_ext <<_ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 for ac_declaration in \
2367 '#include <stdlib.h>' \
2368 'extern "C" void std::exit (int) throw (); using std::exit;' \
2369 'extern "C" void std::exit (int); using std::exit;' \
2370 'extern "C" void exit (int) throw ();' \
2371 'extern "C" void exit (int);' \
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 #include "confdefs.h"
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2405 rm -f conftest.$ac_objext conftest.$ac_ext
2406 cat >conftest.$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2408 #include "confdefs.h"
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2435 rm -f conftest.$ac_objext conftest.$ac_ext
2438 if test -n "$ac_declaration"; then
2439 echo '#ifdef __cplusplus' >>confdefs.h
2440 echo $ac_declaration >>confdefs.h
2441 echo '#endif' >>confdefs.h
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 rm -f .deps 2>/dev/null
2455 mkdir .deps 2>/dev/null
2456 if test -d .deps; then
2459 # MS-DOS does not allow filenames that begin with a dot.
2462 rmdir .deps 2>/dev/null
2465 ac_config_commands="$ac_config_commands depfiles"
2468 am_make=${MAKE-make}
2469 cat > confinc << 'END'
2473 # If we don't find an include directive, just comment out the code.
2474 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2475 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2479 # First try GNU make style include.
2480 echo "include confinc" > confmf
2481 # We grep out `Entering directory' and `Leaving directory'
2482 # messages which can occur if `w' ends up in MAKEFLAGS.
2483 # In particular we don't look at `^make:' because GNU make might
2484 # be invoked under some other name (usually "gmake"), in which
2485 # case it prints its new name instead of `make'.
2486 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2491 # Now try BSD make style include.
2492 if test "$am__include" = "#"; then
2493 echo '.include "confinc"' > confmf
2494 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2495 am__include=.include
2502 echo "$as_me:$LINENO: result: $_am_result" >&5
2503 echo "${ECHO_T}$_am_result" >&6
2504 rm -f confinc confmf
2506 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2507 if test "${enable_dependency_tracking+set}" = set; then
2508 enableval="$enable_dependency_tracking"
2511 if test "x$enable_dependency_tracking" != xno; then
2512 am_depcomp="$ac_aux_dir/depcomp"
2517 if test "x$enable_dependency_tracking" != xno; then
2528 depcc="$CC" am_compiler_list=
2530 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2531 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2532 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2536 # We make a subdir and do the tests there. Otherwise we can end up
2537 # making bogus files that we don't know about and never remove. For
2538 # instance it was reported that on HP-UX the gcc test will end up
2539 # making a dummy file named `D' -- because `-MD' means `put the output
2542 # Copy depcomp to subdir because otherwise we won't find it if we're
2543 # using a relative directory.
2544 cp "$am_depcomp" conftest.dir
2547 am_cv_CC_dependencies_compiler_type=none
2548 if test "$am_compiler_list" = ""; then
2549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2551 for depmode in $am_compiler_list; do
2552 # We need to recreate these files for each test, as the compiler may
2553 # overwrite some of them when testing with obscure command lines.
2554 # This happens at least with the AIX C compiler.
2555 echo '#include "conftest.h"' > conftest.c
2556 echo 'int i;' > conftest.h
2557 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2561 # after this tag, mechanisms are not by side-effect, so they'll
2562 # only be used when explicitly requested
2563 if test "x$enable_dependency_tracking" = xyes; then
2571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2572 # mode. It turns out that the SunPro C++ compiler does not properly
2573 # handle `-M -o', and we need to detect this.
2574 if depmode=$depmode \
2575 source=conftest.c object=conftest.o \
2576 depfile=conftest.Po tmpdepfile=conftest.TPo \
2577 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2578 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2580 am_cv_CC_dependencies_compiler_type=$depmode
2588 am_cv_CC_dependencies_compiler_type=none
2592 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2593 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2594 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2599 test "x$enable_dependency_tracking" != xno \
2600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2602 am__fastdepCC_FALSE='#'
2604 am__fastdepCC_TRUE='#'
2605 am__fastdepCC_FALSE=
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2615 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2616 # On Suns, sometimes $CPP names a directory.
2617 if test -n "$CPP" && test -d "$CPP"; then
2620 if test -z "$CPP"; then
2621 if test "${ac_cv_prog_CPP+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 # Double quotes because CPP needs to be expanded
2625 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2628 for ac_c_preproc_warn_flag in '' yes
2630 # Use a header file that comes with gcc, so configuring glibc
2631 # with a fresh cross-compiler works.
2632 # On the NeXT, cc -E runs the code through the compiler's parser,
2633 # not just through cpp. "Syntax error" is here to catch this case.
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 #include "confdefs.h"
2640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } >/dev/null; then
2648 if test -s conftest.err; then
2649 ac_cpp_err=$ac_c_preproc_warn_flag
2656 if test -z "$ac_cpp_err"; then
2659 echo "$as_me: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 # Broken: fails on valid input.
2664 rm -f conftest.err conftest.$ac_ext
2666 # OK, works on sane cases. Now check whether non-existent headers
2667 # can be detected and how.
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2671 #include <ac_nonexistent.h>
2673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } >/dev/null; then
2681 if test -s conftest.err; then
2682 ac_cpp_err=$ac_c_preproc_warn_flag
2689 if test -z "$ac_cpp_err"; then
2690 # Broken: success on invalid input.
2693 echo "$as_me: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 # Passes both tests.
2699 rm -f conftest.err conftest.$ac_ext
2702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2703 rm -f conftest.err conftest.$ac_ext
2704 if $ac_preproc_ok; then
2716 echo "$as_me:$LINENO: result: $CPP" >&5
2717 echo "${ECHO_T}$CPP" >&6
2719 for ac_c_preproc_warn_flag in '' yes
2721 # Use a header file that comes with gcc, so configuring glibc
2722 # with a fresh cross-compiler works.
2723 # On the NeXT, cc -E runs the code through the compiler's parser,
2724 # not just through cpp. "Syntax error" is here to catch this case.
2725 cat >conftest.$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2727 #include "confdefs.h"
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2747 if test -z "$ac_cpp_err"; then
2750 echo "$as_me: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 # Broken: fails on valid input.
2755 rm -f conftest.err conftest.$ac_ext
2757 # OK, works on sane cases. Now check whether non-existent headers
2758 # can be detected and how.
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 #include "confdefs.h"
2762 #include <ac_nonexistent.h>
2764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } >/dev/null; then
2772 if test -s conftest.err; then
2773 ac_cpp_err=$ac_c_preproc_warn_flag
2780 if test -z "$ac_cpp_err"; then
2781 # Broken: success on invalid input.
2784 echo "$as_me: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 # Passes both tests.
2790 rm -f conftest.err conftest.$ac_ext
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then
2798 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2800 { (exit 1); exit 1; }; }
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2812 if test "$LN_S" = "ln -s"; then
2813 echo "$as_me:$LINENO: result: yes" >&5
2814 echo "${ECHO_T}yes" >&6
2816 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2817 echo "${ECHO_T}no, using $LN_S" >&6
2820 echo "$as_me:$LINENO: checking for a POSIX-compliant shell" >&5
2821 echo $ECHO_N "checking for a POSIX-compliant shell... $ECHO_C" >&6
2822 if test "${ac_cv_path_shell+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 # Test the noclobber option, using the portable POSIX.2 syntax.
2830 >|conftest.c || exit
2831 !>conftest.c || exit
2838 if ("$SHELL" -c "$ac_command") 2>/dev/null; then
2839 ac_cv_path_shell=$SHELL
2843 case $ac_cv_path_shell in
2845 # Prefer shells that are more likely to be installed in the
2846 # same place on all hosts of this platform. Therefore, prefer
2847 # shells in /bin and /usr/bin to shells in the installer's
2848 # PATH. Also, loop through PATH first and then through
2849 # shells, since less-"nice" shells in /bin and /usr/bin are
2850 # more likely to be installed than "nicer" shells elsewhere.
2851 as_save_IFS=$IFS; IFS=:
2852 for as_dir in /bin /usr/bin $PATH
2857 for ac_base in sh bash ksh sh5; do
2859 if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
2860 ac_cv_path_shell=$as_dir/$ac_base
2864 case $ac_cv_path_shell in
2873 echo "$as_me:$LINENO: result: $ac_cv_path_shell" >&5
2874 echo "${ECHO_T}$ac_cv_path_shell" >&6
2875 SHELL=$ac_cv_path_shell
2876 if test "$SHELL" = no; then
2878 { echo "$as_me:$LINENO: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
2879 echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
2884 echo "$as_me:$LINENO: checking for egrep" >&5
2885 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2886 if test "${ac_cv_prog_egrep+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2890 then ac_cv_prog_egrep='grep -E'
2891 else ac_cv_prog_egrep='egrep'
2894 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2895 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2896 EGREP=$ac_cv_prog_egrep
2900 echo "$as_me:$LINENO: checking for AIX" >&5
2901 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 #include "confdefs.h"
2910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2911 $EGREP "yes" >/dev/null 2>&1; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913 echo "${ECHO_T}yes" >&6
2914 cat >>confdefs.h <<\_ACEOF
2915 #define _ALL_SOURCE 1
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2926 cat >>confdefs.h <<\_ACEOF
2927 #define _GNU_SOURCE 1
2931 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2932 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2933 if test "${ac_cv_header_stdc+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2938 #include "confdefs.h"
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2962 ac_cv_header_stdc=yes
2964 echo "$as_me: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 ac_cv_header_stdc=no
2968 rm -f conftest.err conftest.$ac_ext
2970 if test $ac_cv_header_stdc = yes; then
2971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line $LINENO "configure"
2974 #include "confdefs.h"
2978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2979 $EGREP "memchr" >/dev/null 2>&1; then
2982 ac_cv_header_stdc=no
2988 if test $ac_cv_header_stdc = yes; then
2989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 #include "confdefs.h"
2996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2997 $EGREP "free" >/dev/null 2>&1; then
3000 ac_cv_header_stdc=no
3006 if test $ac_cv_header_stdc = yes; then
3007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3008 if test "$cross_compiling" = yes; then
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3015 #if ((' ' & 0x0FF) == 0x020)
3016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3019 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3020 || ('j' <= (c) && (c) <= 'r') \
3021 || ('s' <= (c) && (c) <= 'z'))
3022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3030 for (i = 0; i < 256; i++)
3031 if (XOR (islower (i), ISLOWER (i))
3032 || toupper (i) != TOUPPER (i))
3037 rm -f conftest$ac_exeext
3038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3039 (eval $ac_link) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3050 echo "$as_me: program exited with status $ac_status" >&5
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3054 ac_cv_header_stdc=no
3056 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3062 if test $ac_cv_header_stdc = yes; then
3064 cat >>confdefs.h <<\_ACEOF
3065 #define STDC_HEADERS 1
3070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3081 inttypes.h stdint.h unistd.h
3083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084 echo "$as_me:$LINENO: checking for $ac_header" >&5
3085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3090 #line $LINENO "configure"
3091 #include "confdefs.h"
3092 $ac_includes_default
3094 #include <$ac_header>
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 eval "$as_ac_Header=yes"
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 eval "$as_ac_Header=no"
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3119 cat >>confdefs.h <<_ACEOF
3120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3128 if test "${ac_cv_header_minix_config_h+set}" = set; then
3129 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3130 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3131 if test "${ac_cv_header_minix_config_h+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3135 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3137 # Is the header compilable?
3138 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3139 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 #include "confdefs.h"
3143 $ac_includes_default
3144 #include <minix/config.h>
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_header_compiler=yes
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3162 ac_header_compiler=no
3164 rm -f conftest.$ac_objext conftest.$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3166 echo "${ECHO_T}$ac_header_compiler" >&6
3168 # Is the header present?
3169 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3170 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3173 #include "confdefs.h"
3174 #include <minix/config.h>
3176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } >/dev/null; then
3184 if test -s conftest.err; then
3185 ac_cpp_err=$ac_c_preproc_warn_flag
3192 if test -z "$ac_cpp_err"; then
3193 ac_header_preproc=yes
3195 echo "$as_me: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3197 ac_header_preproc=no
3199 rm -f conftest.err conftest.$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3201 echo "${ECHO_T}$ac_header_preproc" >&6
3203 # So? What about this header?
3204 case $ac_header_compiler:$ac_header_preproc in
3206 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3207 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3208 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3209 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3211 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3212 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3214 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3215 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3216 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3218 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3219 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3220 if test "${ac_cv_header_minix_config_h+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_header_minix_config_h=$ac_header_preproc
3225 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3226 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3229 if test $ac_cv_header_minix_config_h = yes; then
3236 if test "$MINIX" = yes; then
3238 cat >>confdefs.h <<\_ACEOF
3239 #define _POSIX_SOURCE 1
3243 cat >>confdefs.h <<\_ACEOF
3244 #define _POSIX_1_SOURCE 2
3248 cat >>confdefs.h <<\_ACEOF
3254 # Check whether --enable-largefile or --disable-largefile was given.
3255 if test "${enable_largefile+set}" = set; then
3256 enableval="$enable_largefile"
3259 if test "$enable_largefile" != no; then
3261 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3262 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3263 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_cv_sys_largefile_CC=no
3267 if test "$GCC" != yes; then
3270 # IRIX 6.2 and later do not support large files by default,
3271 # so use the C compiler's -n32 option if that helps.
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3274 #include "confdefs.h"
3275 #include <sys/types.h>
3276 /* Check that off_t can represent 2**63 - 1 correctly.
3277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3278 since some C++ compilers masquerading as C compilers
3279 incorrectly reject 9223372036854775807. */
3280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3282 && LARGE_OFF_T % 2147483647 == 1)
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 rm -f conftest.$ac_objext
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_sys_largefile_CC=' -n32'; break
3325 echo "$as_me: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3328 rm -f conftest.$ac_objext
3332 rm -f conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3336 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3337 if test "$ac_cv_sys_largefile_CC" != no; then
3338 CC=$CC$ac_cv_sys_largefile_CC
3341 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3342 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3343 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_sys_file_offset_bits=no
3348 cat >conftest.$ac_ext <<_ACEOF
3349 #line $LINENO "configure"
3350 #include "confdefs.h"
3351 #include <sys/types.h>
3352 /* Check that off_t can represent 2**63 - 1 correctly.
3353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3354 since some C++ compilers masquerading as C compilers
3355 incorrectly reject 9223372036854775807. */
3356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3358 && LARGE_OFF_T % 2147483647 == 1)
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 echo "$as_me: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3385 rm -f conftest.$ac_objext conftest.$ac_ext
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3389 #define _FILE_OFFSET_BITS 64
3390 #include <sys/types.h>
3391 /* Check that off_t can represent 2**63 - 1 correctly.
3392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3393 since some C++ compilers masquerading as C compilers
3394 incorrectly reject 9223372036854775807. */
3395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3397 && LARGE_OFF_T % 2147483647 == 1)
3407 rm -f conftest.$ac_objext
3408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409 (eval $ac_compile) 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_sys_file_offset_bits=64; break
3421 echo "$as_me: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3428 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3429 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3430 if test "$ac_cv_sys_file_offset_bits" != no; then
3432 cat >>confdefs.h <<_ACEOF
3433 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3438 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3439 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3440 if test "${ac_cv_sys_large_files+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_cv_sys_large_files=no
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3449 /* Check that off_t can represent 2**63 - 1 correctly.
3450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3451 since some C++ compilers masquerading as C compilers
3452 incorrectly reject 9223372036854775807. */
3453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3455 && LARGE_OFF_T % 2147483647 == 1)
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3479 echo "$as_me: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 rm -f conftest.$ac_objext conftest.$ac_ext
3483 cat >conftest.$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3485 #include "confdefs.h"
3486 #define _LARGE_FILES 1
3487 #include <sys/types.h>
3488 /* Check that off_t can represent 2**63 - 1 correctly.
3489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3490 since some C++ compilers masquerading as C compilers
3491 incorrectly reject 9223372036854775807. */
3492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3494 && LARGE_OFF_T % 2147483647 == 1)
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_sys_large_files=1; break
3518 echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 rm -f conftest.$ac_objext conftest.$ac_ext
3525 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3526 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3527 if test "$ac_cv_sys_large_files" != no; then
3529 cat >>confdefs.h <<_ACEOF
3530 #define _LARGE_FILES $ac_cv_sys_large_files
3538 # cc -E produces incorrect asm files on SVR4, we must use /lib/cpp.
3539 test -z "$ASCPP" && test -f /lib/cpp && ASCPP=/lib/cpp
3540 test -z "$ASCPP" && ASCPP="$CPP"
3542 echo "$as_me:$LINENO: checking for underline in external names" >&5
3543 echo $ECHO_N "checking for underline in external names... $ECHO_C" >&6
3544 if test "${gzip_cv_underline+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 gzip_cv_underline=yes
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 #include "confdefs.h"
3551 int foo() {return 0;}
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 nm conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
3573 gzip_cv_underline=no
3575 echo "$as_me: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 rm -f conftest.$ac_objext conftest.$ac_ext
3580 echo "$as_me:$LINENO: result: $gzip_cv_underline" >&5
3581 echo "${ECHO_T}$gzip_cv_underline" >&6
3582 if test $gzip_cv_underline = no; then
3583 ASCPP="${ASCPP} -DNO_UNDERLINE"
3587 # Try to assemble match.S.
3588 # "gcc -E match.s" ignores -E, so we must use match.S.
3589 echo "$as_me:$LINENO: checking for assembler" >&5
3590 echo $ECHO_N "checking for assembler... $ECHO_C" >&6
3591 if test "${gzip_cv_assembler+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 gzip_cv_assembler=no
3598 if cp $srcdir/match.c _match.S &&
3599 eval "$ASCPP _match.S > _match.s 2>/dev/null"; then
3600 if test ! -s _match.s || grep error < _match.s > /dev/null; then
3602 elif eval "$CC -c _match.s >/dev/null 2>&1" &&
3603 test -f _match.$OBJEXT; then
3604 gzip_cv_assembler=yes
3607 rm -f _match.S _match.s _match.$OBJEXT;;
3610 echo "$as_me:$LINENO: result: $gzip_cv_assembler" >&5
3611 echo "${ECHO_T}$gzip_cv_assembler" >&6
3612 if test $gzip_cv_assembler = yes; then
3614 cat >>confdefs.h <<\_ACEOF
3618 LIBOBJS="$LIBOBJS match.$ac_objext"
3622 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3623 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3624 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_check_lib_save_LIBS=$LIBS
3628 LIBS="-lcposix $LIBS"
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3633 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3648 rm -f conftest.$ac_objext conftest$ac_exeext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_lib_cposix_strerror=yes
3662 echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 ac_cv_lib_cposix_strerror=no
3666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3667 LIBS=$ac_check_lib_save_LIBS
3669 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3670 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3671 if test $ac_cv_lib_cposix_strerror = yes; then
3672 LIBS="$LIBS -lcposix"
3677 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3678 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3679 if test "${ac_cv_c_const+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3689 /* FIXME: Include the comments suggested by Paul. */
3691 /* Ultrix mips cc rejects this. */
3692 typedef int charset[2];
3694 /* SunOS 4.1.1 cc rejects this. */
3695 char const *const *ccp;
3697 /* NEC SVR4.0.2 mips cc rejects this. */
3698 struct point {int x, y;};
3699 static struct point const zero = {0,0};
3700 /* AIX XL C 1.02.0.0 rejects this.
3701 It does not let you subtract one const X* pointer from another in
3702 an arm of an if-expression whose if-part is not a constant
3704 const char *g = "string";
3705 ccp = &g + (g ? g-g : 0);
3706 /* HPUX 7.0 cc rejects these. */
3709 ccp = (char const *const *) p;
3710 { /* SCO 3.2v4 cc rejects this. */
3712 char const *s = 0 ? (char *) 0 : (char const *) 0;
3716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3718 const int *foo = &x[0];
3721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3722 typedef const int *iptr;
3726 { /* AIX XL C 1.02.0.0 rejects this saying
3727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3728 struct s { int j; const int *ap[3]; };
3729 struct s *b; b->j = 5;
3731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3754 echo "$as_me: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3758 rm -f conftest.$ac_objext conftest.$ac_ext
3760 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3761 echo "${ECHO_T}$ac_cv_c_const" >&6
3762 if test $ac_cv_c_const = no; then
3764 cat >>confdefs.h <<\_ACEOF
3770 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3772 if test "${ac_cv_header_stdc+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line $LINENO "configure"
3777 #include "confdefs.h"
3784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } >/dev/null; then
3792 if test -s conftest.err; then
3793 ac_cpp_err=$ac_c_preproc_warn_flag
3800 if test -z "$ac_cpp_err"; then
3801 ac_cv_header_stdc=yes
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 ac_cv_header_stdc=no
3807 rm -f conftest.err conftest.$ac_ext
3809 if test $ac_cv_header_stdc = yes; then
3810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line $LINENO "configure"
3813 #include "confdefs.h"
3817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818 $EGREP "memchr" >/dev/null 2>&1; then
3821 ac_cv_header_stdc=no
3827 if test $ac_cv_header_stdc = yes; then
3828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3829 cat >conftest.$ac_ext <<_ACEOF
3830 #line $LINENO "configure"
3831 #include "confdefs.h"
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 $EGREP "free" >/dev/null 2>&1; then
3839 ac_cv_header_stdc=no
3845 if test $ac_cv_header_stdc = yes; then
3846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3847 if test "$cross_compiling" = yes; then
3850 cat >conftest.$ac_ext <<_ACEOF
3851 #line $LINENO "configure"
3852 #include "confdefs.h"
3854 #if ((' ' & 0x0FF) == 0x020)
3855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3858 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3859 || ('j' <= (c) && (c) <= 'r') \
3860 || ('s' <= (c) && (c) <= 'z'))
3861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3869 for (i = 0; i < 256; i++)
3870 if (XOR (islower (i), ISLOWER (i))
3871 || toupper (i) != TOUPPER (i))
3876 rm -f conftest$ac_exeext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878 (eval $ac_link) 2>&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3889 echo "$as_me: program exited with status $ac_status" >&5
3890 echo "$as_me: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 ac_cv_header_stdc=no
3895 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3901 if test $ac_cv_header_stdc = yes; then
3903 cat >>confdefs.h <<\_ACEOF
3904 #define STDC_HEADERS 1
3915 for ac_header in fcntl.h limits.h memory.h \
3916 sys/utime.h time.h utime.h
3918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3920 echo "$as_me:$LINENO: checking for $ac_header" >&5
3921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928 # Is the header compilable?
3929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3931 cat >conftest.$ac_ext <<_ACEOF
3932 #line $LINENO "configure"
3933 #include "confdefs.h"
3934 $ac_includes_default
3935 #include <$ac_header>
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_header_compiler=yes
3951 echo "$as_me: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3953 ac_header_compiler=no
3955 rm -f conftest.$ac_objext conftest.$ac_ext
3956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3957 echo "${ECHO_T}$ac_header_compiler" >&6
3959 # Is the header present?
3960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 #include "confdefs.h"
3965 #include <$ac_header>
3967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null; then
3975 if test -s conftest.err; then
3976 ac_cpp_err=$ac_c_preproc_warn_flag
3983 if test -z "$ac_cpp_err"; then
3984 ac_header_preproc=yes
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 ac_header_preproc=no
3990 rm -f conftest.err conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3992 echo "${ECHO_T}$ac_header_preproc" >&6
3994 # So? What about this header?
3995 case $ac_header_compiler:$ac_header_preproc in
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4009 echo "$as_me:$LINENO: checking for $ac_header" >&5
4010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 eval "$as_ac_Header=$ac_header_preproc"
4016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031 for ac_func in lstat utime
4033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4034 echo "$as_me:$LINENO: checking for $ac_func" >&5
4035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4036 if eval "test \"\${$as_ac_var+set}\" = set"; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char $ac_func (); below. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4057 /* The GNU C library defines this for functions which it implements
4058 to always fail with ENOSYS. Some functions are actually named
4059 something starting with __ and the normal name is an alias. */
4060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 eval "$as_ac_var=yes"
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 eval "$as_ac_var=no"
4088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4092 if test `eval echo '${'$as_ac_var'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4101 for ac_func in rpmatch
4103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4104 echo "$as_me:$LINENO: checking for $ac_func" >&5
4105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4106 if eval "test \"\${$as_ac_var+set}\" = set"; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4110 #line $LINENO "configure"
4111 #include "confdefs.h"
4112 /* System header to define __stub macros and hopefully few prototypes,
4113 which can conflict with char $ac_func (); below. */
4115 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4140 rm -f conftest.$ac_objext conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 eval "$as_ac_var=yes"
4154 echo "$as_me: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4156 eval "$as_ac_var=no"
4158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4162 if test `eval echo '${'$as_ac_var'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4168 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4179 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4180 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4182 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 eval "$as_ac_Header=yes"
4215 echo "$as_me: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4217 eval "$as_ac_Header=no"
4219 rm -f conftest.$ac_objext conftest.$ac_ext
4221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4224 cat >>confdefs.h <<_ACEOF
4225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4228 ac_header_dirent=$ac_hdr; break
4232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4233 if test $ac_header_dirent = dirent.h; then
4234 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4236 if test "${ac_cv_search_opendir+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 ac_func_search_save_LIBS=$LIBS
4240 ac_cv_search_opendir=no
4241 cat >conftest.$ac_ext <<_ACEOF
4242 #line $LINENO "configure"
4243 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -s conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_search_opendir="none required"
4274 echo "$as_me: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4278 if test "$ac_cv_search_opendir" = no; then
4279 for ac_lib in dir; do
4280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_search_opendir="-l$ac_lib"
4315 echo "$as_me: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4321 LIBS=$ac_func_search_save_LIBS
4323 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4324 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4325 if test "$ac_cv_search_opendir" != no; then
4326 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4331 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4332 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4333 if test "${ac_cv_search_opendir+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_func_search_save_LIBS=$LIBS
4337 ac_cv_search_opendir=no
4338 cat >conftest.$ac_ext <<_ACEOF
4339 #line $LINENO "configure"
4340 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_search_opendir="none required"
4371 echo "$as_me: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375 if test "$ac_cv_search_opendir" = no; then
4377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 #line $LINENO "configure"
4380 #include "confdefs.h"
4382 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399 (eval $ac_link) 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -s conftest$ac_exeext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 ac_cv_search_opendir="-l$ac_lib"
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4418 LIBS=$ac_func_search_save_LIBS
4420 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4421 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4422 if test "$ac_cv_search_opendir" != no; then
4423 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4429 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4431 if test "${ac_cv_type_signal+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 cat >conftest.$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4436 #include "confdefs.h"
4437 #include <sys/types.h>
4443 extern "C" void (*signal (int, void (*)(int)))(int);
4445 void (*signal ()) ();
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_cv_type_signal=void
4470 echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_cv_type_signal=int
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4477 echo "${ECHO_T}$ac_cv_type_signal" >&6
4479 cat >>confdefs.h <<_ACEOF
4480 #define RETSIGTYPE $ac_cv_type_signal
4484 echo "$as_me:$LINENO: checking for size_t" >&5
4485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4486 if test "${ac_cv_type_size_t+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line $LINENO "configure"
4491 #include "confdefs.h"
4492 $ac_includes_default
4498 if (sizeof (size_t))
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_type_size_t=yes
4518 echo "$as_me: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520 ac_cv_type_size_t=no
4522 rm -f conftest.$ac_objext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4525 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4526 if test $ac_cv_type_size_t = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define size_t unsigned
4536 echo "$as_me:$LINENO: checking for off_t" >&5
4537 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4538 if test "${ac_cv_type_off_t+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #line $LINENO "configure"
4543 #include "confdefs.h"
4544 $ac_includes_default
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_type_off_t=yes
4570 echo "$as_me: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4574 rm -f conftest.$ac_objext conftest.$ac_ext
4576 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4577 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4578 if test $ac_cv_type_off_t = yes; then
4582 cat >>confdefs.h <<_ACEOF
4588 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
4589 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
4590 if test "${ac_cv_sys_interpreter+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
4598 if test $? -ne 69; then
4599 ac_cv_sys_interpreter=yes
4601 ac_cv_sys_interpreter=no
4605 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
4606 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
4607 interpval=$ac_cv_sys_interpreter
4614 if test "x$prefix" = xNONE; then
4615 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
4616 # Extract the first word of "gzip", so it can be a program name with args.
4617 set dummy gzip; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 case $ac_prefix_program in
4625 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 ac_prefix_program=$ac_cv_path_ac_prefix_program
4647 if test -n "$ac_prefix_program"; then
4648 echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
4649 echo "${ECHO_T}$ac_prefix_program" >&6
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 if test -n $ac_prefix_program; then
4656 prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
4657 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4658 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
4659 X"$ac_prefix_program" : 'X\(//\)$' \| \
4660 X"$ac_prefix_program" : 'X\(/\)' \| \
4661 . : '\(.\)' 2>/dev/null ||
4662 echo X"$ac_prefix_program" |
4663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4665 /^X\(\/\/\)$/{ s//\1/; q; }
4666 /^X\(\/\).*/{ s//\1/; q; }
4668 prefix=`(dirname "$prefix") 2>/dev/null ||
4669 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4670 X"$prefix" : 'X\(//\)[^/]' \| \
4671 X"$prefix" : 'X\(//\)$' \| \
4672 X"$prefix" : 'X\(/\)' \| \
4673 . : '\(.\)' 2>/dev/null ||
4675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4677 /^X\(\/\/\)$/{ s//\1/; q; }
4678 /^X\(\/\).*/{ s//\1/; q; }
4683 ac_config_files="$ac_config_files Makefile"
4685 cat >confcache <<\_ACEOF
4686 # This file is a shell script that caches the results of configure
4687 # tests run on this system so they can be shared between configure
4688 # scripts and configure runs, see configure's option --config-cache.
4689 # It is not useful on other systems. If it contains results you don't
4690 # want to keep, you may remove or edit it.
4692 # config.status only pays attention to the cache file if you give it
4693 # the --recheck option to rerun configure.
4695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4701 # The following way of writing the cache mishandles newlines in values,
4702 # but we know of no workaround that is simple, portable, and efficient.
4703 # So, don't put newlines in cache variables' values.
4704 # Ultrix sh set writes to stderr and can't be redirected directly,
4705 # and sets the high bit in the cache file unless we assign to the vars.
4708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4710 # `set' does not quote correctly, so add quotes (double-quote
4711 # substitution turns \\\\ into \\, and sed turns \\ into \).
4714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4717 # `set' quotes correctly as required by POSIX, so do not add quotes.
4719 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4728 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4730 if cmp -s $cache_file confcache; then :; else
4731 if test -w $cache_file; then
4732 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4733 cat confcache >$cache_file
4735 echo "not updating unwritable cache $cache_file"
4740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4741 # Let make expand exec_prefix.
4742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4746 # trailing colons and then remove the whole line if VPATH becomes empty
4747 # (actually we leave an empty line to preserve line numbers).
4748 if test "x$srcdir" = x.; then
4749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4750 s/:*\$(srcdir):*/:/;
4751 s/:*\${srcdir}:*/:/;
4753 s/^\([^=]*=[ ]*\):*/\1/;
4759 DEFS=-DHAVE_CONFIG_H
4763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4764 # 1. Remove the extension, and $U if already installed.
4765 ac_i=`echo "$ac_i" |
4766 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4768 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4769 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4773 LTLIBOBJS=$ac_ltlibobjs
4776 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4777 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4778 Usually this means the macro was only invoked conditionally." >&5
4779 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4780 Usually this means the macro was only invoked conditionally." >&2;}
4781 { (exit 1); exit 1; }; }
4783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4784 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4785 Usually this means the macro was only invoked conditionally." >&5
4786 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4787 Usually this means the macro was only invoked conditionally." >&2;}
4788 { (exit 1); exit 1; }; }
4791 : ${CONFIG_STATUS=./config.status}
4792 ac_clean_files_save=$ac_clean_files
4793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4794 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4795 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4796 cat >$CONFIG_STATUS <<_ACEOF
4798 # Generated by $as_me.
4799 # Run this file to recreate the current configuration.
4800 # Compiler output produced by configure, useful for debugging
4801 # configure, is in config.log if it exists.
4804 SHELL=\${CONFIG_SHELL-$SHELL}
4807 cat >>$CONFIG_STATUS <<\_ACEOF
4808 ## --------------------- ##
4809 ## M4sh Initialization. ##
4810 ## --------------------- ##
4812 # Be Bourne compatible
4813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4816 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4817 # is contrary to our usage. Disable this feature.
4818 alias -g '${1+"$@"}'='"$@"'
4819 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4823 # Support unset when possible.
4824 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4831 # Work around bugs in pre-3.0 UWIN ksh.
4832 $as_unset ENV MAIL MAILPATH
4838 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
4840 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4841 eval $as_var=C; export $as_var
4847 # Required to use basename.
4848 if expr a : '\(a\)' >/dev/null 2>&1; then
4854 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4855 as_basename=basename
4861 # Name of the executable.
4862 as_me=`$as_basename "$0" ||
4863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4864 X"$0" : 'X\(//\)$' \| \
4865 X"$0" : 'X\(/\)$' \| \
4866 . : '\(.\)' 2>/dev/null ||
4868 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4869 /^X\/\(\/\/\)$/{ s//\1/; q; }
4870 /^X\/\(\/\).*/{ s//\1/; q; }
4874 # PATH needs CR, and LINENO needs CR and PATH.
4875 # Avoid depending upon Character Ranges.
4876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4879 as_cr_digits='0123456789'
4880 as_cr_alnum=$as_cr_Letters$as_cr_digits
4882 # The user is always right.
4883 if test "${PATH_SEPARATOR+set}" != set; then
4884 echo "#! /bin/sh" >conftest.sh
4885 echo "exit 0" >>conftest.sh
4886 chmod +x conftest.sh
4887 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
4898 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4899 test "x$as_lineno_1" != "x$as_lineno_2" &&
4900 test "x$as_lineno_3" = "x$as_lineno_2" || {
4901 # Find who we are. Look in the path if we contain no path at all
4904 *[\\/]* ) as_myself=$0 ;;
4905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4915 # We did not find ourselves, most probably we were run as `sh COMMAND'
4916 # in which case we are not to be found in the path.
4917 if test "x$as_myself" = x; then
4920 if test ! -f "$as_myself"; then
4921 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4922 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4923 { (exit 1); exit 1; }; }
4925 case $CONFIG_SHELL in
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4931 test -z "$as_dir" && as_dir=.
4932 for as_base in sh bash ksh sh5; do
4935 if ("$as_dir/$as_base" -c '
4938 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4939 test "x$as_lineno_1" != "x$as_lineno_2" &&
4940 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4941 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4942 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4943 CONFIG_SHELL=$as_dir/$as_base
4945 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4953 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4954 # uniformly replaced by the line number. The first 'sed' inserts a
4955 # line-number line before each line; the second 'sed' does the real
4956 # work. The second script uses 'N' to pair each line-number line
4957 # with the numbered line, and appends trailing '-' during
4958 # substitution so that $LINENO is not a special case at line end.
4959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4960 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4961 sed '=' <$as_myself |
4966 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4969 s,^['$as_cr_digits']*\n,,
4971 chmod +x $as_me.lineno ||
4972 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4973 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4974 { (exit 1); exit 1; }; }
4976 # Don't try to exec as it changes $[0], causing all sort of problems
4977 # (the dirname of $[0] is not the place where we might find the
4978 # original and so on. Autoconf is especially sensible to this).
4980 # Exit status is that of the last command.
4985 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4986 *c*,-n*) ECHO_N= ECHO_C='
4988 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4989 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4992 if expr a : '\(a\)' >/dev/null 2>&1; then
4998 rm -f conf$$ conf$$.exe conf$$.file
5000 if ln -s conf$$.file conf$$ 2>/dev/null; then
5001 # We could just check for DJGPP; but this test a) works b) is more generic
5002 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5003 if test -f conf$$.exe; then
5004 # Don't use ln at all; we don't have any links
5009 elif ln conf$$.file conf$$ 2>/dev/null; then
5014 rm -f conf$$ conf$$.exe conf$$.file
5016 if mkdir -p . 2>/dev/null; then
5022 as_executable_p="test -f"
5024 # Sed expression to map a string onto a valid CPP name.
5025 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5027 # Sed expression to map a string onto a valid variable name.
5028 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5032 # We need space, tab and new line, in precisely that order.
5042 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5043 # report actual input values of CONFIG_FILES etc. instead of their
5044 # values after options handling. Logging --version etc. is OK.
5048 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5049 ## Running $as_me. ##
5054 This file was extended by gzip $as_me 1.3.5, which was
5055 generated by GNU Autoconf 2.54. Invocation command line was
5057 CONFIG_FILES = $CONFIG_FILES
5058 CONFIG_HEADERS = $CONFIG_HEADERS
5059 CONFIG_LINKS = $CONFIG_LINKS
5060 CONFIG_COMMANDS = $CONFIG_COMMANDS
5064 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5068 # Files that config.status was made for.
5069 if test -n "$ac_config_files"; then
5070 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5073 if test -n "$ac_config_headers"; then
5074 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5077 if test -n "$ac_config_links"; then
5078 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5081 if test -n "$ac_config_commands"; then
5082 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5085 cat >>$CONFIG_STATUS <<\_ACEOF
5088 \`$as_me' instantiates files from templates according to the
5089 current configuration.
5091 Usage: $0 [OPTIONS] [FILE]...
5093 -h, --help print this help, then exit
5094 -V, --version print version number, then exit
5095 -d, --debug don't remove temporary files
5096 --recheck update $as_me by reconfiguring in the same conditions
5097 --file=FILE[:TEMPLATE]
5098 instantiate the configuration file FILE
5099 --header=FILE[:TEMPLATE]
5100 instantiate the configuration header FILE
5102 Configuration files:
5105 Configuration headers:
5108 Configuration commands:
5111 Report bugs to <bug-autoconf@gnu.org>."
5114 cat >>$CONFIG_STATUS <<_ACEOF
5116 gzip config.status 1.3.5
5117 configured by $0, generated by GNU Autoconf 2.54,
5118 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5121 Free Software Foundation, Inc.
5122 This config.status script is free software; the Free Software Foundation
5123 gives unlimited permission to copy, distribute and modify it."
5128 cat >>$CONFIG_STATUS <<\_ACEOF
5129 # If no file are specified by the user, then we need to provide default
5130 # value. By we need to know if files were specified by the user.
5136 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5137 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5145 *) # This is not an option, so the user has probably given explicit
5148 ac_need_defaults=false;;
5152 # Handling of the options.
5154 cat >>$CONFIG_STATUS <<_ACEOF
5155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5156 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5157 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5159 cat >>$CONFIG_STATUS <<\_ACEOF
5160 --version | --vers* | -V )
5161 echo "$ac_cs_version"; exit 0 ;;
5163 # Conflict between --help and --header
5164 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5165 Try \`$0 --help' for more information." >&5
5166 echo "$as_me: error: ambiguous option: $1
5167 Try \`$0 --help' for more information." >&2;}
5168 { (exit 1); exit 1; }; };;
5169 --help | --hel | -h )
5170 echo "$ac_cs_usage"; exit 0 ;;
5171 --debug | --d* | -d )
5173 --file | --fil | --fi | --f )
5175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5176 ac_need_defaults=false;;
5177 --header | --heade | --head | --hea )
5179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5180 ac_need_defaults=false;;
5183 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5184 Try \`$0 --help' for more information." >&5
5185 echo "$as_me: error: unrecognized option: $1
5186 Try \`$0 --help' for more information." >&2;}
5187 { (exit 1); exit 1; }; } ;;
5189 *) ac_config_targets="$ac_config_targets $1" ;;
5197 cat >>$CONFIG_STATUS <<_ACEOF
5199 # INIT-COMMANDS section.
5202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5208 cat >>$CONFIG_STATUS <<\_ACEOF
5209 for ac_config_target in $ac_config_targets
5211 case "$ac_config_target" in
5212 # Handling of arguments.
5213 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5214 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5215 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5216 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5217 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5218 { (exit 1); exit 1; }; };;
5222 # If the user did not use the arguments to specify the items to instantiate,
5223 # then the envvar interface is used. Set only those that are not.
5224 # We use the long form for the default assignment because of an extremely
5225 # bizarre bug on SunOS 4.1.3.
5226 if $ac_need_defaults; then
5227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5232 # Create a temporary directory, and hook for its removal unless debugging.
5235 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5236 trap '{ (exit 1); exit 1; }' 1 2 13 15
5239 # Create a (secure) tmp directory for tmp files.
5242 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5243 test -n "$tmp" && test -d "$tmp"
5246 tmp=$TMPDIR/cs$$-$RANDOM
5247 (umask 077 && mkdir $tmp)
5250 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5251 { (exit 1); exit 1; }
5256 cat >>$CONFIG_STATUS <<_ACEOF
5259 # CONFIG_FILES section.
5262 # No need to generate the scripts if there are no CONFIG_FILES.
5263 # This happens for instance when ./config.status config.h
5264 if test -n "\$CONFIG_FILES"; then
5265 # Protect against being on the right side of a sed subst in config.status.
5266 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5267 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5268 s,@SHELL@,$SHELL,;t t
5269 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5270 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5271 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5272 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5273 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5274 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5275 s,@exec_prefix@,$exec_prefix,;t t
5276 s,@prefix@,$prefix,;t t
5277 s,@program_transform_name@,$program_transform_name,;t t
5278 s,@bindir@,$bindir,;t t
5279 s,@sbindir@,$sbindir,;t t
5280 s,@libexecdir@,$libexecdir,;t t
5281 s,@datadir@,$datadir,;t t
5282 s,@sysconfdir@,$sysconfdir,;t t
5283 s,@sharedstatedir@,$sharedstatedir,;t t
5284 s,@localstatedir@,$localstatedir,;t t
5285 s,@libdir@,$libdir,;t t
5286 s,@includedir@,$includedir,;t t
5287 s,@oldincludedir@,$oldincludedir,;t t
5288 s,@infodir@,$infodir,;t t
5289 s,@mandir@,$mandir,;t t
5290 s,@build_alias@,$build_alias,;t t
5291 s,@host_alias@,$host_alias,;t t
5292 s,@target_alias@,$target_alias,;t t
5294 s,@ECHO_C@,$ECHO_C,;t t
5295 s,@ECHO_N@,$ECHO_N,;t t
5296 s,@ECHO_T@,$ECHO_T,;t t
5298 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5299 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5300 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5301 s,@CYGPATH_W@,$CYGPATH_W,;t t
5302 s,@PACKAGE@,$PACKAGE,;t t
5303 s,@VERSION@,$VERSION,;t t
5304 s,@ACLOCAL@,$ACLOCAL,;t t
5305 s,@AUTOCONF@,$AUTOCONF,;t t
5306 s,@AUTOMAKE@,$AUTOMAKE,;t t
5307 s,@AUTOHEADER@,$AUTOHEADER,;t t
5308 s,@MAKEINFO@,$MAKEINFO,;t t
5309 s,@AMTAR@,$AMTAR,;t t
5310 s,@install_sh@,$install_sh,;t t
5311 s,@STRIP@,$STRIP,;t t
5312 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5313 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5315 s,@SET_MAKE@,$SET_MAKE,;t t
5317 s,@CFLAGS@,$CFLAGS,;t t
5318 s,@LDFLAGS@,$LDFLAGS,;t t
5319 s,@CPPFLAGS@,$CPPFLAGS,;t t
5320 s,@ac_ct_CC@,$ac_ct_CC,;t t
5321 s,@EXEEXT@,$EXEEXT,;t t
5322 s,@OBJEXT@,$OBJEXT,;t t
5323 s,@DEPDIR@,$DEPDIR,;t t
5324 s,@am__include@,$am__include,;t t
5325 s,@am__quote@,$am__quote,;t t
5326 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5327 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5328 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5329 s,@CCDEPMODE@,$CCDEPMODE,;t t
5330 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5331 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5334 s,@EGREP@,$EGREP,;t t
5335 s,@LIBOBJS@,$LIBOBJS,;t t
5336 s,@ac_prefix_program@,$ac_prefix_program,;t t
5337 s,@ASCPP@,$ASCPP,;t t
5338 s,@SEDCMD@,$SEDCMD,;t t
5339 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5344 cat >>$CONFIG_STATUS <<\_ACEOF
5345 # Split the substitutions into bite-sized pieces for seds with
5346 # small command number limits, like on Digital OSF/1 and HP-UX.
5348 ac_sed_frag=1 # Number of current file.
5349 ac_beg=1 # First line for current file.
5350 ac_end=$ac_max_sed_lines # Line after last line for current file.
5353 while $ac_more_lines; do
5354 if test $ac_beg -gt 1; then
5355 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5357 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5359 if test ! -s $tmp/subs.frag; then
5362 # The purpose of the label and of the branching condition is to
5363 # speed up the sed processing (if there are no `@' at all, there
5364 # is no need to browse any of the substitutions).
5365 # These are the two extra sed commands mentioned above.
5367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5368 if test -z "$ac_sed_cmds"; then
5369 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5371 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5373 ac_sed_frag=`expr $ac_sed_frag + 1`
5375 ac_end=`expr $ac_end + $ac_max_sed_lines`
5378 if test -z "$ac_sed_cmds"; then
5381 fi # test -n "$CONFIG_FILES"
5384 cat >>$CONFIG_STATUS <<\_ACEOF
5385 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5388 - | *:- | *:-:* ) # input from stdin
5390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5394 * ) ac_file_in=$ac_file.in ;;
5397 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5398 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5400 X"$ac_file" : 'X\(//\)[^/]' \| \
5401 X"$ac_file" : 'X\(//\)$' \| \
5402 X"$ac_file" : 'X\(/\)' \| \
5403 . : '\(.\)' 2>/dev/null ||
5405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5407 /^X\(\/\/\)$/{ s//\1/; q; }
5408 /^X\(\/\).*/{ s//\1/; q; }
5410 { if $as_mkdir_p; then
5415 while test ! -d "$as_dir"; do
5416 as_dirs="$as_dir $as_dirs"
5417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5419 X"$as_dir" : 'X\(//\)[^/]' \| \
5420 X"$as_dir" : 'X\(//\)$' \| \
5421 X"$as_dir" : 'X\(/\)' \| \
5422 . : '\(.\)' 2>/dev/null ||
5424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5426 /^X\(\/\/\)$/{ s//\1/; q; }
5427 /^X\(\/\).*/{ s//\1/; q; }
5430 test ! -n "$as_dirs" || mkdir $as_dirs
5431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5432 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5433 { (exit 1); exit 1; }; }; }
5437 if test "$ac_dir" != .; then
5438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5439 # A "../" for each directory in $ac_dir_suffix.
5440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5442 ac_dir_suffix= ac_top_builddir=
5446 .) # No --srcdir option. We are building in place.
5448 if test -z "$ac_top_builddir"; then
5451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5453 [\\/]* | ?:[\\/]* ) # Absolute path.
5454 ac_srcdir=$srcdir$ac_dir_suffix;
5455 ac_top_srcdir=$srcdir ;;
5457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5458 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5460 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5462 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5463 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5464 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5465 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5473 if test x"$ac_file" != x-; then
5474 { echo "$as_me:$LINENO: creating $ac_file" >&5
5475 echo "$as_me: creating $ac_file" >&6;}
5478 # Let's still pretend it is `configure' which instantiates (i.e., don't
5479 # use $as_me), people would be surprised to read:
5480 # /* config.h. Generated by config.status. */
5481 if test x"$ac_file" = x-; then
5484 configure_input="$ac_file. "
5486 configure_input=$configure_input"Generated from `echo $ac_file_in |
5487 sed 's,.*/,,'` by configure."
5489 # First look for the input files in the build tree, otherwise in the
5491 ac_file_inputs=`IFS=:
5492 for f in $ac_file_in; do
5494 -) echo $tmp/stdin ;;
5496 # Absolute (can't be DOS-style, as IFS=:)
5497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5498 echo "$as_me: error: cannot find input file: $f" >&2;}
5499 { (exit 1); exit 1; }; }
5502 if test -f "$f"; then
5505 elif test -f "$srcdir/$f"; then
5510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5511 echo "$as_me: error: cannot find input file: $f" >&2;}
5512 { (exit 1); exit 1; }; }
5515 done` || { (exit 1); exit 1; }
5517 cat >>$CONFIG_STATUS <<_ACEOF
5521 cat >>$CONFIG_STATUS <<\_ACEOF
5523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5524 s,@configure_input@,$configure_input,;t t
5525 s,@srcdir@,$ac_srcdir,;t t
5526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5527 s,@top_srcdir@,$ac_top_srcdir,;t t
5528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5529 s,@builddir@,$ac_builddir,;t t
5530 s,@abs_builddir@,$ac_abs_builddir,;t t
5531 s,@top_builddir@,$ac_top_builddir,;t t
5532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5533 s,@INSTALL@,$ac_INSTALL,;t t
5534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5536 if test x"$ac_file" != x-; then
5537 mv $tmp/out $ac_file
5545 cat >>$CONFIG_STATUS <<\_ACEOF
5548 # CONFIG_HEADER section.
5551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5554 # ac_d sets the value in "#define NAME VALUE" lines.
5555 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5556 ac_dB='[ ].*$,\1#\2'
5559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5560 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5561 ac_uB='$,\1#\2define\3'
5565 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5568 - | *:- | *:-:* ) # input from stdin
5570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5574 * ) ac_file_in=$ac_file.in ;;
5577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5578 echo "$as_me: creating $ac_file" >&6;}
5580 # First look for the input files in the build tree, otherwise in the
5582 ac_file_inputs=`IFS=:
5583 for f in $ac_file_in; do
5585 -) echo $tmp/stdin ;;
5587 # Absolute (can't be DOS-style, as IFS=:)
5588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5589 echo "$as_me: error: cannot find input file: $f" >&2;}
5590 { (exit 1); exit 1; }; }
5593 if test -f "$f"; then
5596 elif test -f "$srcdir/$f"; then
5601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5602 echo "$as_me: error: cannot find input file: $f" >&2;}
5603 { (exit 1); exit 1; }; }
5606 done` || { (exit 1); exit 1; }
5607 # Remove the trailing spaces.
5608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5613 # `conftest.undefs', that substitutes the proper values into
5614 # config.h.in to produce config.h. The first handles `#define'
5615 # templates, and the second `#undef' templates.
5616 # And first: Protect against being on the right side of a sed subst in
5617 # config.status. Protect against being in an unquoted here document
5619 rm -f conftest.defines conftest.undefs
5620 # Using a here document instead of a string reduces the quoting nightmare.
5621 # Putting comments in sed scripts is not portable.
5623 # `end' is used to avoid that the second main sed command (meant for
5624 # 0-ary CPP macros) applies to n-ary macro definitions.
5625 # See the Autoconf documentation for `clear'.
5626 cat >confdef2sed.sed <<\_ACEOF
5631 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5633 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5636 # If some macros were called several times there might be several times
5637 # the same #defines, which is useless. Nevertheless, we may not want to
5638 # sort them, since we want the *last* AC-DEFINE to be honored.
5639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5641 rm -f confdef2sed.sed
5643 # This sed command replaces #undef with comments. This is necessary, for
5644 # example, in the case of _POSIX_SOURCE, which is predefined and required
5645 # on some systems where configure will not decide to define it.
5646 cat >>conftest.undefs <<\_ACEOF
5647 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5650 # Break up conftest.defines because some shells have a limit on the size
5651 # of here documents, and old seds have small limits too (100 cmds).
5652 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5653 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5654 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5655 echo ' :' >>$CONFIG_STATUS
5657 while grep . conftest.defines >/dev/null
5659 # Write a limited-size here document to $tmp/defines.sed.
5660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5661 # Speed up: don't consider the non `#define' lines.
5662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5663 # Work around the forget-to-reset-the-flag bug.
5664 echo 't clr' >>$CONFIG_STATUS
5665 echo ': clr' >>$CONFIG_STATUS
5666 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5672 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5673 rm -f conftest.defines
5674 mv conftest.tail conftest.defines
5676 rm -f conftest.defines
5677 echo ' fi # grep' >>$CONFIG_STATUS
5678 echo >>$CONFIG_STATUS
5680 # Break up conftest.undefs because some shells have a limit on the size
5681 # of here documents, and old seds have small limits too (100 cmds).
5682 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5684 while grep . conftest.undefs >/dev/null
5686 # Write a limited-size here document to $tmp/undefs.sed.
5687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5688 # Speed up: don't consider the non `#undef'
5689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5690 # Work around the forget-to-reset-the-flag bug.
5691 echo 't clr' >>$CONFIG_STATUS
5692 echo ': clr' >>$CONFIG_STATUS
5693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5700 rm -f conftest.undefs
5701 mv conftest.tail conftest.undefs
5703 rm -f conftest.undefs
5705 cat >>$CONFIG_STATUS <<\_ACEOF
5706 # Let's still pretend it is `configure' which instantiates (i.e., don't
5707 # use $as_me), people would be surprised to read:
5708 # /* config.h. Generated by config.status. */
5709 if test x"$ac_file" = x-; then
5710 echo "/* Generated by configure. */" >$tmp/config.h
5712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5714 cat $tmp/in >>$tmp/config.h
5716 if test x"$ac_file" != x-; then
5717 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5719 echo "$as_me: $ac_file is unchanged" >&6;}
5721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5723 X"$ac_file" : 'X\(//\)[^/]' \| \
5724 X"$ac_file" : 'X\(//\)$' \| \
5725 X"$ac_file" : 'X\(/\)' \| \
5726 . : '\(.\)' 2>/dev/null ||
5728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5730 /^X\(\/\/\)$/{ s//\1/; q; }
5731 /^X\(\/\).*/{ s//\1/; q; }
5733 { if $as_mkdir_p; then
5738 while test ! -d "$as_dir"; do
5739 as_dirs="$as_dir $as_dirs"
5740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5742 X"$as_dir" : 'X\(//\)[^/]' \| \
5743 X"$as_dir" : 'X\(//\)$' \| \
5744 X"$as_dir" : 'X\(/\)' \| \
5745 . : '\(.\)' 2>/dev/null ||
5747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5749 /^X\(\/\/\)$/{ s//\1/; q; }
5750 /^X\(\/\).*/{ s//\1/; q; }
5753 test ! -n "$as_dirs" || mkdir $as_dirs
5754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5756 { (exit 1); exit 1; }; }; }
5759 mv $tmp/config.h $ac_file
5765 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
5766 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5767 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5768 X$ac_file : 'X\(//\)[^/]' \| \
5769 X$ac_file : 'X\(//\)$' \| \
5770 X$ac_file : 'X\(/\)' \| \
5771 . : '\(.\)' 2>/dev/null ||
5773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5775 /^X\(\/\/\)$/{ s//\1/; q; }
5776 /^X\(\/\).*/{ s//\1/; q; }
5777 s/.*/./; q'`/stamp-h$_am_stamp_count
5780 cat >>$CONFIG_STATUS <<\_ACEOF
5783 # CONFIG_COMMANDS section.
5785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5790 X"$ac_dest" : 'X\(//\)[^/]' \| \
5791 X"$ac_dest" : 'X\(//\)$' \| \
5792 X"$ac_dest" : 'X\(/\)' \| \
5793 . : '\(.\)' 2>/dev/null ||
5795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5797 /^X\(\/\/\)$/{ s//\1/; q; }
5798 /^X\(\/\).*/{ s//\1/; q; }
5802 if test "$ac_dir" != .; then
5803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5804 # A "../" for each directory in $ac_dir_suffix.
5805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5807 ac_dir_suffix= ac_top_builddir=
5811 .) # No --srcdir option. We are building in place.
5813 if test -z "$ac_top_builddir"; then
5816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5818 [\\/]* | ?:[\\/]* ) # Absolute path.
5819 ac_srcdir=$srcdir$ac_dir_suffix;
5820 ac_top_srcdir=$srcdir ;;
5822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5823 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5825 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5827 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5828 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5829 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5830 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5834 echo "$as_me: executing $ac_dest commands" >&6;}
5836 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5837 # Strip MF so we end up with the name of the file.
5838 mf=`echo "$mf" | sed -e 's/:.*$//'`
5839 # Check whether this is an Automake generated Makefile or not.
5840 # We used to match only the files named `Makefile.in', but
5841 # some people rename them; so instead we look at the file content.
5842 # Grep'ing the first line is not enough: some people post-process
5843 # each Makefile.in and add a new line on top of each file to say so.
5844 # So let's grep whole file.
5845 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5846 dirpart=`(dirname "$mf") 2>/dev/null ||
5847 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5848 X"$mf" : 'X\(//\)[^/]' \| \
5849 X"$mf" : 'X\(//\)$' \| \
5850 X"$mf" : 'X\(/\)' \| \
5851 . : '\(.\)' 2>/dev/null ||
5853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5855 /^X\(\/\/\)$/{ s//\1/; q; }
5856 /^X\(\/\).*/{ s//\1/; q; }
5861 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5862 # Extract the definition of DEP_FILES from the Makefile without
5864 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5865 test -z "$DEPDIR" && continue
5866 # When using ansi2knr, U may be empty or an underscore; expand it
5867 U=`sed -n -e '/^U = / s///p' < "$mf"`
5868 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5869 # We invoke sed twice because it is the simplest approach to
5870 # changing $(DEPDIR) to its actual value in the expansion.
5871 for file in `sed -n -e '
5872 /^DEP_FILES = .*\\\\$/ {
5881 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5882 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5883 # Make sure the directory exists.
5884 test -f "$dirpart/$file" && continue
5885 fdir=`(dirname "$file") 2>/dev/null ||
5886 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5887 X"$file" : 'X\(//\)[^/]' \| \
5888 X"$file" : 'X\(//\)$' \| \
5889 X"$file" : 'X\(/\)' \| \
5890 . : '\(.\)' 2>/dev/null ||
5892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5894 /^X\(\/\/\)$/{ s//\1/; q; }
5895 /^X\(\/\).*/{ s//\1/; q; }
5897 { if $as_mkdir_p; then
5898 mkdir -p $dirpart/$fdir
5900 as_dir=$dirpart/$fdir
5902 while test ! -d "$as_dir"; do
5903 as_dirs="$as_dir $as_dirs"
5904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5906 X"$as_dir" : 'X\(//\)[^/]' \| \
5907 X"$as_dir" : 'X\(//\)$' \| \
5908 X"$as_dir" : 'X\(/\)' \| \
5909 . : '\(.\)' 2>/dev/null ||
5911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5913 /^X\(\/\/\)$/{ s//\1/; q; }
5914 /^X\(\/\).*/{ s//\1/; q; }
5917 test ! -n "$as_dirs" || mkdir $as_dirs
5918 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5919 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5920 { (exit 1); exit 1; }; }; }
5922 # echo "creating $dirpart/$file"
5923 echo '# dummy' > "$dirpart/$file"
5931 cat >>$CONFIG_STATUS <<\_ACEOF
5933 { (exit 0); exit 0; }
5935 chmod +x $CONFIG_STATUS
5936 ac_clean_files=$ac_clean_files_save
5939 # configure is writing to config.log, and then calls config.status.
5940 # config.status does its own redirection, appending to config.log.
5941 # Unfortunately, on DOS this fails, as config.log is still kept open
5942 # by configure, so config.status won't be able to write to it; its
5943 # output is simply discarded. So we exec the FD to /dev/null,
5944 # effectively closing config.log, so it can be properly (re)opened and
5945 # appended to by config.status. When coming back to configure, we
5946 # need to make the FD available again.
5947 if test "$no_create" != yes; then
5950 $SHELL $CONFIG_STATUS || ac_cs_success=false
5952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5953 # would make configure fail if this is the last instruction.
5954 $ac_cs_success || { (exit 1); exit 1; }