2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ZKT 1.0.
5 # Report bugs to <Holger Zuleger hznet.de>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='zkt'
577 PACKAGE_VERSION='1.0'
578 PACKAGE_STRING='ZKT 1.0'
579 PACKAGE_BUGREPORT='Holger Zuleger hznet.de'
581 ac_unique_file="zkt-signer.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
629 program_transform_name
671 ac_precious_vars='build_alias
682 # Initialize some variables set by options.
684 ac_init_version=false
685 # The variables have the same names as the options, with
686 # dashes changed to underlines.
694 program_transform_name=s,x,x,
702 # Installation directory options.
703 # These are left unexpanded so users can "make install exec_prefix=/foo"
704 # and all the variables that are supposed to be based on exec_prefix
705 # by default will actually change.
706 # Use braces instead of parens because sh, perl, etc. also accept them.
707 # (The list follows the same order as the GNU Coding Standards.)
708 bindir='${exec_prefix}/bin'
709 sbindir='${exec_prefix}/sbin'
710 libexecdir='${exec_prefix}/libexec'
711 datarootdir='${prefix}/share'
712 datadir='${datarootdir}'
713 sysconfdir='${prefix}/etc'
714 sharedstatedir='${prefix}/com'
715 localstatedir='${prefix}/var'
716 includedir='${prefix}/include'
717 oldincludedir='/usr/include'
718 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
719 infodir='${datarootdir}/info'
724 libdir='${exec_prefix}/lib'
725 localedir='${datarootdir}/locale'
726 mandir='${datarootdir}/man'
732 # If the previous option needs an argument, assign it.
733 if test -n "$ac_prev"; then
734 eval $ac_prev=\$ac_option
740 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
744 # Accept the important Cygnus configure options, so we can diagnose typos.
746 case $ac_dashdash$ac_option in
750 -bindir | --bindir | --bindi | --bind | --bin | --bi)
752 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
755 -build | --build | --buil | --bui | --bu)
756 ac_prev=build_alias ;;
757 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
758 build_alias=$ac_optarg ;;
760 -cache-file | --cache-file | --cache-fil | --cache-fi \
761 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
762 ac_prev=cache_file ;;
763 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
764 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
765 cache_file=$ac_optarg ;;
768 cache_file=config.cache ;;
770 -datadir | --datadir | --datadi | --datad)
772 -datadir=* | --datadir=* | --datadi=* | --datad=*)
773 datadir=$ac_optarg ;;
775 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
776 | --dataroo | --dataro | --datar)
777 ac_prev=datarootdir ;;
778 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
779 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
780 datarootdir=$ac_optarg ;;
782 -disable-* | --disable-*)
783 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
787 { (exit 1); exit 1; }; }
788 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
789 eval enable_$ac_feature=no ;;
791 -docdir | --docdir | --docdi | --doc | --do)
793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
801 -enable-* | --enable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=\$ac_optarg ;;
810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
811 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
812 | --exec | --exe | --ex)
813 ac_prev=exec_prefix ;;
814 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
815 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
816 | --exec=* | --exe=* | --ex=*)
817 exec_prefix=$ac_optarg ;;
819 -gas | --gas | --ga | --g)
820 # Obsolete; use --with-gas.
823 -help | --help | --hel | --he | -h)
825 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
826 ac_init_help=recursive ;;
827 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
828 ac_init_help=short ;;
830 -host | --host | --hos | --ho)
831 ac_prev=host_alias ;;
832 -host=* | --host=* | --hos=* | --ho=*)
833 host_alias=$ac_optarg ;;
835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
839 htmldir=$ac_optarg ;;
841 -includedir | --includedir | --includedi | --included | --include \
842 | --includ | --inclu | --incl | --inc)
843 ac_prev=includedir ;;
844 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
845 | --includ=* | --inclu=* | --incl=* | --inc=*)
846 includedir=$ac_optarg ;;
848 -infodir | --infodir | --infodi | --infod | --info | --inf)
850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
851 infodir=$ac_optarg ;;
853 -libdir | --libdir | --libdi | --libd)
855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
858 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
859 | --libexe | --libex | --libe)
860 ac_prev=libexecdir ;;
861 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
862 | --libexe=* | --libex=* | --libe=*)
863 libexecdir=$ac_optarg ;;
865 -localedir | --localedir | --localedi | --localed | --locale)
867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
868 localedir=$ac_optarg ;;
870 -localstatedir | --localstatedir | --localstatedi | --localstated \
871 | --localstate | --localstat | --localsta | --localst | --locals)
872 ac_prev=localstatedir ;;
873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
875 localstatedir=$ac_optarg ;;
877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883 # Obsolete; use --without-fp.
886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
887 | --no-cr | --no-c | -n)
890 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
891 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
894 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
895 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
896 | --oldin | --oldi | --old | --ol | --o)
897 ac_prev=oldincludedir ;;
898 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
899 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
900 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
901 oldincludedir=$ac_optarg ;;
903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
908 -program-prefix | --program-prefix | --program-prefi | --program-pref \
909 | --program-pre | --program-pr | --program-p)
910 ac_prev=program_prefix ;;
911 -program-prefix=* | --program-prefix=* | --program-prefi=* \
912 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
913 program_prefix=$ac_optarg ;;
915 -program-suffix | --program-suffix | --program-suffi | --program-suff \
916 | --program-suf | --program-su | --program-s)
917 ac_prev=program_suffix ;;
918 -program-suffix=* | --program-suffix=* | --program-suffi=* \
919 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
920 program_suffix=$ac_optarg ;;
922 -program-transform-name | --program-transform-name \
923 | --program-transform-nam | --program-transform-na \
924 | --program-transform-n | --program-transform- \
925 | --program-transform | --program-transfor \
926 | --program-transfo | --program-transf \
927 | --program-trans | --program-tran \
928 | --progr-tra | --program-tr | --program-t)
929 ac_prev=program_transform_name ;;
930 -program-transform-name=* | --program-transform-name=* \
931 | --program-transform-nam=* | --program-transform-na=* \
932 | --program-transform-n=* | --program-transform-=* \
933 | --program-transform=* | --program-transfor=* \
934 | --program-transfo=* | --program-transf=* \
935 | --program-trans=* | --program-tran=* \
936 | --progr-tra=* | --program-tr=* | --program-t=*)
937 program_transform_name=$ac_optarg ;;
939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
944 -psdir | --psdir | --psdi | --psd | --ps)
946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
950 | -silent | --silent | --silen | --sile | --sil)
953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
957 sbindir=$ac_optarg ;;
959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
961 | --sharedst | --shareds | --shared | --share | --shar \
963 ac_prev=sharedstatedir ;;
964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
968 sharedstatedir=$ac_optarg ;;
970 -site | --site | --sit)
972 -site=* | --site=* | --sit=*)
975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
981 | --syscon | --sysco | --sysc | --sys | --sy)
982 ac_prev=sysconfdir ;;
983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
985 sysconfdir=$ac_optarg ;;
987 -target | --target | --targe | --targ | --tar | --ta | --t)
988 ac_prev=target_alias ;;
989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
990 target_alias=$ac_optarg ;;
992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
995 -version | --version | --versio | --versi | --vers | -V)
999 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid package name: $ac_package" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1005 eval with_$ac_package=\$ac_optarg ;;
1007 -without-* | --without-*)
1008 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid package name: $ac_package" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1014 eval with_$ac_package=no ;;
1017 # Obsolete; use --with-x.
1020 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1021 | --x-incl | --x-inc | --x-in | --x-i)
1022 ac_prev=x_includes ;;
1023 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1024 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1025 x_includes=$ac_optarg ;;
1027 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1028 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1029 ac_prev=x_libraries ;;
1030 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1031 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1032 x_libraries=$ac_optarg ;;
1034 -*) { echo "$as_me: error: unrecognized option: $ac_option
1035 Try \`$0 --help' for more information." >&2
1036 { (exit 1); exit 1; }; }
1040 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1044 { (exit 1); exit 1; }; }
1045 eval $ac_envvar=\$ac_optarg
1046 export $ac_envvar ;;
1049 # FIXME: should be removed in autoconf 3.0.
1050 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1051 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1053 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1059 if test -n "$ac_prev"; then
1060 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1061 { echo "$as_me: error: missing argument to $ac_option" >&2
1062 { (exit 1); exit 1; }; }
1065 # Be sure to have absolute directory names.
1066 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1067 datadir sysconfdir sharedstatedir localstatedir includedir \
1068 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1069 libdir localedir mandir
1071 eval ac_val=\$$ac_var
1073 [\\/$]* | ?:[\\/]* ) continue;;
1074 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1076 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1077 { (exit 1); exit 1; }; }
1080 # There might be people who depend on the old broken behavior: `$host'
1081 # used to hold the argument of --host etc.
1082 # FIXME: To remove some day.
1085 target=$target_alias
1087 # FIXME: To remove some day.
1088 if test "x$host_alias" != x; then
1089 if test "x$build_alias" = x; then
1090 cross_compiling=maybe
1091 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1092 If a cross compiler is detected then cross compile mode will be used." >&2
1093 elif test "x$build_alias" != "x$host_alias"; then
1099 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1101 test "$silent" = yes && exec 6>/dev/null
1104 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1105 ac_ls_di=`ls -di .` &&
1106 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1107 { echo "$as_me: error: Working directory cannot be determined" >&2
1108 { (exit 1); exit 1; }; }
1109 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1110 { echo "$as_me: error: pwd does not report name of working directory" >&2
1111 { (exit 1); exit 1; }; }
1114 # Find the source files, if location was not specified.
1115 if test -z "$srcdir"; then
1116 ac_srcdir_defaulted=yes
1117 # Try the directory containing this script, then the parent directory.
1118 ac_confdir=`$as_dirname -- "$0" ||
1119 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1120 X"$0" : 'X\(//\)[^/]' \| \
1121 X"$0" : 'X\(//\)$' \| \
1122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1142 if test ! -r "$srcdir/$ac_unique_file"; then
1146 ac_srcdir_defaulted=no
1148 if test ! -r "$srcdir/$ac_unique_file"; then
1149 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1150 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1151 { (exit 1); exit 1; }; }
1153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1155 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1156 { (exit 1); exit 1; }; }
1158 # When building in place, set srcdir=.
1159 if test "$ac_abs_confdir" = "$ac_pwd"; then
1162 # Remove unnecessary trailing slashes from srcdir.
1163 # Double slashes in file names in object file debugging info
1164 # mess up M-x gdb in Emacs.
1166 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1168 for ac_var in $ac_precious_vars; do
1169 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_env_${ac_var}_value=\$${ac_var}
1171 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1172 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1176 # Report the --help message.
1178 if test "$ac_init_help" = "long"; then
1179 # Omit some internal or obsolete options to make the list less imposing.
1180 # This message is too long to be a string in the A/UX 3.1 sh.
1182 \`configure' configures ZKT 1.0 to adapt to many kinds of systems.
1184 Usage: $0 [OPTION]... [VAR=VALUE]...
1186 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1187 VAR=VALUE. See below for descriptions of some of the useful variables.
1189 Defaults for the options are specified in brackets.
1192 -h, --help display this help and exit
1193 --help=short display options specific to this package
1194 --help=recursive display the short help of all the included packages
1195 -V, --version display version information and exit
1196 -q, --quiet, --silent do not print \`checking...' messages
1197 --cache-file=FILE cache test results in FILE [disabled]
1198 -C, --config-cache alias for \`--cache-file=config.cache'
1199 -n, --no-create do not create output files
1200 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1202 Installation directories:
1203 --prefix=PREFIX install architecture-independent files in PREFIX
1204 [$ac_default_prefix]
1205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1208 By default, \`make install' will install all the files in
1209 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1210 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1211 for instance \`--prefix=\$HOME'.
1213 For better control, use the options below.
1215 Fine tuning of the installation directories:
1216 --bindir=DIR user executables [EPREFIX/bin]
1217 --sbindir=DIR system admin executables [EPREFIX/sbin]
1218 --libexecdir=DIR program executables [EPREFIX/libexec]
1219 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1220 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1221 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1222 --libdir=DIR object code libraries [EPREFIX/lib]
1223 --includedir=DIR C header files [PREFIX/include]
1224 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1225 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1226 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1227 --infodir=DIR info documentation [DATAROOTDIR/info]
1228 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1229 --mandir=DIR man documentation [DATAROOTDIR/man]
1230 --docdir=DIR documentation root [DATAROOTDIR/doc/zkt]
1231 --htmldir=DIR html documentation [DOCDIR]
1232 --dvidir=DIR dvi documentation [DOCDIR]
1233 --pdfdir=DIR pdf documentation [DOCDIR]
1234 --psdir=DIR ps documentation [DOCDIR]
1241 if test -n "$ac_init_help"; then
1242 case $ac_init_help in
1243 short | recursive ) echo "Configuration of ZKT 1.0:";;
1248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1250 --disable-color-mode zkt without colors
1251 --enable-print-timezone print out timezone
1252 --enable-print-age print age with year
1253 --enable-log-progname log with progname
1254 --disable-log-timestamp do not log with timestamp
1255 --disable-log-level do not log with level
1256 --disable-ttl-in-keyfiles
1257 do not allow TTL values in keyfiles
1258 --enable-configpath=PATH
1259 set path of config file (defaults to /var/named)
1260 --disable-tree use single linked list instead of binary tree data
1261 structure for dnssec-zkt
1264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1266 --without-curses Ignore presence of curses and disable color mode
1268 Some influential environment variables:
1269 CC C compiler command
1270 CFLAGS C compiler flags
1271 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1272 nonstandard directory <lib dir>
1273 LIBS libraries to pass to the linker, e.g. -l<library>
1274 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1275 you have headers in a nonstandard directory <include dir>
1278 Use these variables to override the choices made by `configure' or to help
1279 it to find libraries and programs with nonstandard names/locations.
1281 Report bugs to <Holger Zuleger hznet.de>.
1286 if test "$ac_init_help" = "recursive"; then
1287 # If there are subdirs, report their specific --help.
1288 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289 test -d "$ac_dir" || continue
1293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1296 # A ".." for each directory in $ac_dir_suffix.
1297 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1298 case $ac_top_builddir_sub in
1299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1303 ac_abs_top_builddir=$ac_pwd
1304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305 # for backward compatibility:
1306 ac_top_builddir=$ac_top_build_prefix
1309 .) # We are building in place.
1311 ac_top_srcdir=$ac_top_builddir_sub
1312 ac_abs_top_srcdir=$ac_pwd ;;
1313 [\\/]* | ?:[\\/]* ) # Absolute name.
1314 ac_srcdir=$srcdir$ac_dir_suffix;
1315 ac_top_srcdir=$srcdir
1316 ac_abs_top_srcdir=$srcdir ;;
1318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319 ac_top_srcdir=$ac_top_build_prefix$srcdir
1320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1324 cd "$ac_dir" || { ac_status=$?; continue; }
1325 # Check for guested configure.
1326 if test -f "$ac_srcdir/configure.gnu"; then
1328 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329 elif test -f "$ac_srcdir/configure"; then
1331 $SHELL "$ac_srcdir/configure" --help=recursive
1333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1335 cd "$ac_pwd" || { ac_status=$?; break; }
1339 test -n "$ac_init_help" && exit $ac_status
1340 if $ac_init_version; then
1343 generated by GNU Autoconf 2.61
1345 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1346 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1352 cat >config.log <<_ACEOF
1353 This file contains any messages produced by compilers while
1354 running configure, to aid debugging if configure makes a mistake.
1356 It was created by ZKT $as_me 1.0, which was
1357 generated by GNU Autoconf 2.61. Invocation command line was
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1378 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1379 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1382 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1383 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1384 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir=.
1393 echo "PATH: $as_dir"
1409 # Keep a trace of the command line.
1410 # Strip out --no-create and --no-recursion so they do not pile up.
1411 # Strip out --silent because we don't want to record it for future runs.
1412 # Also quote any args containing shell meta-characters.
1413 # Make two passes to allow for proper duplicate-argument suppression.
1417 ac_must_keep_next=false
1423 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425 | -silent | --silent | --silen | --sile | --sil)
1428 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1433 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434 if test $ac_must_keep_next = true; then
1435 ac_must_keep_next=false # Got value, back to normal.
1438 *=* | --config-cache | -C | -disable-* | --disable-* \
1439 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441 | -with-* | --with-* | -without-* | --without-* | --x)
1442 case "$ac_configure_args0 " in
1443 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1446 -* ) ac_must_keep_next=true ;;
1449 ac_configure_args="$ac_configure_args '$ac_arg'"
1454 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1457 # When interrupted or exit'd, cleanup temporary files, and complete
1458 # config.log. We remove comments because anyway the quotes in there
1459 # would cause problems or look ugly.
1460 # WARNING: Use '\'' to represent an apostrophe within the trap.
1461 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462 trap 'exit_status=$?
1463 # Save into config.log some information that might help in debugging.
1468 ## ---------------- ##
1469 ## Cache variables. ##
1470 ## ---------------- ##
1473 # The following way of writing the cache mishandles newlines in values,
1475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1476 eval ac_val=\$$ac_var
1480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1484 _ | IFS | as_nl) ;; #(
1485 *) $as_unset $ac_var ;;
1490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1491 *${as_nl}ac_space=\ *)
1493 "s/'\''/'\''\\\\'\'''\''/g;
1494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1505 ## ----------------- ##
1506 ## Output variables. ##
1507 ## ----------------- ##
1510 for ac_var in $ac_subst_vars
1512 eval ac_val=\$$ac_var
1514 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1516 echo "$ac_var='\''$ac_val'\''"
1520 if test -n "$ac_subst_files"; then
1522 ## ------------------- ##
1523 ## File substitutions. ##
1524 ## ------------------- ##
1527 for ac_var in $ac_subst_files
1529 eval ac_val=\$$ac_var
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 echo "$ac_var='\''$ac_val'\''"
1538 if test -s confdefs.h; then
1548 test "$ac_signal" != 0 &&
1549 echo "$as_me: caught signal $ac_signal"
1550 echo "$as_me: exit $exit_status"
1552 rm -f core *.core core.conftest.* &&
1553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1556 for ac_signal in 1 2 13 15; do
1557 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1562 rm -f -r conftest* confdefs.h
1564 # Predefined preprocessor variables.
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_NAME "$PACKAGE_NAME"
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_STRING "$PACKAGE_STRING"
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1591 # Let the site file select an alternate cache file if it wants to.
1592 # Prefer explicitly selected file to automatically selected ones.
1593 if test -n "$CONFIG_SITE"; then
1594 set x "$CONFIG_SITE"
1595 elif test "x$prefix" != xNONE; then
1596 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1598 set x "$ac_default_prefix/share/config.site" \
1599 "$ac_default_prefix/etc/config.site"
1604 if test -r "$ac_site_file"; then
1605 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606 echo "$as_me: loading site script $ac_site_file" >&6;}
1607 sed 's/^/| /' "$ac_site_file" >&5
1612 if test -r "$cache_file"; then
1613 # Some versions of bash will fail to source /dev/null (special
1614 # files actually), so we avoid doing that.
1615 if test -f "$cache_file"; then
1616 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1617 echo "$as_me: loading cache $cache_file" >&6;}
1619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620 *) . "./$cache_file";;
1624 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625 echo "$as_me: creating cache $cache_file" >&6;}
1629 ac_header_list="$ac_header_list sys/time.h"
1630 ac_header_list="$ac_header_list unistd.h"
1631 ac_func_list="$ac_func_list alarm"
1632 ac_header_list="$ac_header_list utime.h"
1633 # Check that the precious variables saved in the cache have kept the same
1635 ac_cache_corrupted=false
1636 for ac_var in $ac_precious_vars; do
1637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1638 eval ac_new_set=\$ac_env_${ac_var}_set
1639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1640 eval ac_new_val=\$ac_env_${ac_var}_value
1641 case $ac_old_set,$ac_new_set in
1643 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1644 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1645 ac_cache_corrupted=: ;;
1647 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1648 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1649 ac_cache_corrupted=: ;;
1652 if test "x$ac_old_val" != "x$ac_new_val"; then
1653 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1654 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1655 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1656 echo "$as_me: former value: $ac_old_val" >&2;}
1657 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1658 echo "$as_me: current value: $ac_new_val" >&2;}
1659 ac_cache_corrupted=:
1662 # Pass precious variables to config.status.
1663 if test "$ac_new_set" = set; then
1665 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 *) ac_arg=$ac_var=$ac_new_val ;;
1668 case " $ac_configure_args " in
1669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1670 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1674 if $ac_cache_corrupted; then
1675 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1676 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1677 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1678 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1679 { (exit 1); exit 1; }; }
1707 ac_cpp='$CPP $CPPFLAGS'
1708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714 ### Files to test to check if src dir contains the package
1716 ac_config_headers="$ac_config_headers config.h"
1720 ### Checks for programs.
1722 ac_cpp='$CPP $CPPFLAGS'
1723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1726 if test -n "$ac_tool_prefix"; then
1727 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test.
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1744 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1745 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; }
1765 if test -z "$ac_cv_prog_CC"; then
1767 # Extract the first word of "gcc", so it can be a program name with args.
1768 set dummy gcc; ac_word=$2
1769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if test -n "$ac_ct_CC"; then
1775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1784 ac_cv_prog_ac_ct_CC="gcc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6; }
1799 { echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6; }
1803 if test "x$ac_ct_CC" = x; then
1806 case $cross_compiling:$ac_tool_warned in
1808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1809 whose name does not start with the host triplet. If you think this
1810 configuration is useful to you, please write to autoconf@gnu.org." >&5
1811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1812 whose name does not start with the host triplet. If you think this
1813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1814 ac_tool_warned=yes ;;
1822 if test -z "$CC"; then
1823 if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}cc; ac_word=$2
1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_CC="${ac_tool_prefix}cc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
1863 if test -z "$CC"; then
1864 # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1883 ac_prog_rejected=yes
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 if test $ac_prog_rejected = yes; then
1895 # We found a bogon in the path, so make sure we never use it.
1896 set dummy $ac_cv_prog_CC
1898 if test $# != 0; then
1899 # We chose a different compiler from the bogus one.
1900 # However, it has the same basename, so the bogon will be chosen
1901 # first if we set CC to just the basename; use the full file name.
1903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1909 if test -n "$CC"; then
1910 { echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6; }
1913 { echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6; }
1919 if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 for ac_prog in cl.exe
1923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1927 if test "${ac_cv_prog_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CC"; then
1952 { echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6; }
1955 { echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6; }
1960 test -n "$CC" && break
1963 if test -z "$CC"; then
1965 for ac_prog in cl.exe
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_ac_ct_CC="$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6; }
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2004 test -n "$ac_ct_CC" && break
2007 if test "x$ac_ct_CC" = x; then
2010 case $cross_compiling:$ac_tool_warned in
2012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2013 whose name does not start with the host triplet. If you think this
2014 configuration is useful to you, please write to autoconf@gnu.org." >&5
2015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2016 whose name does not start with the host triplet. If you think this
2017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2018 ac_tool_warned=yes ;;
2027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2028 See \`config.log' for more details." >&5
2029 echo "$as_me: error: no acceptable C compiler found in \$PATH
2030 See \`config.log' for more details." >&2;}
2031 { (exit 1); exit 1; }; }
2033 # Provide some information about the compiler.
2034 echo "$as_me:$LINENO: checking for C compiler version" >&5
2035 ac_compiler=`set X $ac_compile; echo $2`
2036 { (ac_try="$ac_compiler --version >&5"
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2042 (eval "$ac_compiler --version >&5") 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }
2046 { (ac_try="$ac_compiler -v >&5"
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2052 (eval "$ac_compiler -v >&5") 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056 { (ac_try="$ac_compiler -V >&5"
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2062 (eval "$ac_compiler -V >&5") 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2067 cat >conftest.$ac_ext <<_ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2082 ac_clean_files_save=$ac_clean_files
2083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2087 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091 # List of possible output files, starting from the most likely.
2092 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2093 # only as a last resort. b.out is created by i960 compilers.
2094 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2096 # The IRIX 6 linker writes into existing files which may not be
2097 # executable, retaining their permissions. Remove them first so a
2098 # subsequent execution test works.
2100 for ac_file in $ac_files
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2109 if { (ac_try="$ac_link_default"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_link_default") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2122 # so that the user can short-circuit this test for compilers unknown to
2124 for ac_file in $ac_files ''
2126 test -f "$ac_file" || continue
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2131 # We found the default executable, but exeext='' is most
2135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # We set ac_cv_exeext here because the later test for it is not
2140 # safe: cross compilers may not add the suffix if given an `-o'
2141 # argument, so we may need to know it at that point already.
2142 # Even if this section looks crufty: it has the advantage of
2149 test "$ac_cv_exeext" = no && ac_cv_exeext=
2155 { echo "$as_me:$LINENO: result: $ac_file" >&5
2156 echo "${ECHO_T}$ac_file" >&6; }
2157 if test -z "$ac_file"; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165 { (exit 77); exit 77; }; }
2168 ac_exeext=$ac_cv_exeext
2170 # Check that the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175 # If not cross compiling, check that we can run a simple program.
2176 if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2183 (eval "$ac_try") 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 if test "$cross_compiling" = maybe; then
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2202 { echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6; }
2205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2206 ac_clean_files=$ac_clean_files_save
2207 # Check that the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2211 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6; }
2214 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2216 if { (ac_try="$ac_link"
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_link") 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; then
2226 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2227 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2228 # work properly (i.e., refer to `conftest.exe'), while it won't with
2230 for ac_file in conftest.exe conftest conftest.*; do
2231 test -f "$ac_file" || continue
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2247 rm -f conftest$ac_cv_exeext
2248 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2251 rm -f conftest.$ac_ext
2252 EXEEXT=$ac_cv_exeext
2254 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2256 if test "${ac_cv_objext+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 cat >conftest.$ac_ext <<_ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2274 rm -f conftest.o conftest.obj
2275 if { (ac_try="$ac_compile"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compile") 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; then
2285 for ac_file in conftest.o conftest.obj conftest.*; do
2286 test -f "$ac_file" || continue;
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2307 echo "${ECHO_T}$ac_cv_objext" >&6; }
2308 OBJEXT=$ac_cv_objext
2310 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.$ac_ext <<_ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2333 rm -f conftest.$ac_objext
2334 if { (ac_try="$ac_compile"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2340 (eval "$ac_compile") 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } && {
2347 test -z "$ac_c_werror_flag" ||
2348 test ! -s conftest.err
2349 } && test -s conftest.$ac_objext; then
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2362 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2364 GCC=`test $ac_compiler_gnu = yes && echo yes`
2365 ac_test_CFLAGS=${CFLAGS+set}
2366 ac_save_CFLAGS=$CFLAGS
2367 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2368 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_cc_g+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 ac_save_c_werror_flag=$ac_c_werror_flag
2373 ac_c_werror_flag=yes
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest.$ac_objext; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (ac_try="$ac_compile"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compile") 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } && {
2443 test -z "$ac_c_werror_flag" ||
2444 test ! -s conftest.err
2445 } && test -s conftest.$ac_objext; then
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 ac_c_werror_flag=$ac_save_c_werror_flag
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2468 rm -f conftest.$ac_objext
2469 if { (ac_try="$ac_compile"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compile") 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } && {
2482 test -z "$ac_c_werror_flag" ||
2483 test ! -s conftest.err
2484 } && test -s conftest.$ac_objext; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 ac_c_werror_flag=$ac_save_c_werror_flag
2502 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2503 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2504 if test "$ac_test_CFLAGS" = set; then
2505 CFLAGS=$ac_save_CFLAGS
2506 elif test $ac_cv_prog_cc_g = yes; then
2507 if test "$GCC" = yes; then
2513 if test "$GCC" = yes; then
2519 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2520 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_cc_c89+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 ac_cv_prog_cc_c89=no
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2534 #include <sys/types.h>
2535 #include <sys/stat.h>
2536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2537 struct buf { int x; };
2538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2539 static char *e (p, i)
2545 static char *f (char * (*g) (char **, int), char **p, ...)
2550 s = g (p, va_arg (v,int));
2555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2556 function prototypes and stuff, but not '\xHH' hex character constants.
2557 These don't provoke an error unfortunately, instead are silently treated
2558 as 'x'. The following induces an error, until -std is added to get
2559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2560 array size at least. It's necessary to write '\x00'==0 to get something
2561 that's true only with -std. */
2562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2565 inside strings and character constants. */
2567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2569 int test (int i, double x);
2570 struct s1 {int (*f) (int a);};
2571 struct s2 {int (*f) (double a);};
2572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2586 CC="$ac_save_CC $ac_arg"
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>conftest.er1
2596 grep -v '^ *+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } && {
2601 test -z "$ac_c_werror_flag" ||
2602 test ! -s conftest.err
2603 } && test -s conftest.$ac_objext; then
2604 ac_cv_prog_cc_c89=$ac_arg
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2612 rm -f core conftest.err conftest.$ac_objext
2613 test "x$ac_cv_prog_cc_c89" != "xno" && break
2615 rm -f conftest.$ac_ext
2620 case "x$ac_cv_prog_cc_c89" in
2622 { echo "$as_me:$LINENO: result: none needed" >&5
2623 echo "${ECHO_T}none needed" >&6; } ;;
2625 { echo "$as_me:$LINENO: result: unsupported" >&5
2626 echo "${ECHO_T}unsupported" >&6; } ;;
2628 CC="$CC $ac_cv_prog_cc_c89"
2629 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2630 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 ### find out the path to BIND utils and version
2642 # Extract the first word of "dnssec-signzone", so it can be a program name with args.
2643 set dummy dnssec-signzone; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_path_SIGNZONE_PROG+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 case $SIGNZONE_PROG in
2651 ac_cv_path_SIGNZONE_PROG="$SIGNZONE_PROG" # Let the user override the test with a path.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_path_SIGNZONE_PROG="$as_dir/$ac_word$ac_exec_ext"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 SIGNZONE_PROG=$ac_cv_path_SIGNZONE_PROG
2673 if test -n "$SIGNZONE_PROG"; then
2674 { echo "$as_me:$LINENO: result: $SIGNZONE_PROG" >&5
2675 echo "${ECHO_T}$SIGNZONE_PROG" >&6; }
2677 { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2682 if test -z "$SIGNZONE_PROG" ; then
2683 { echo "$as_me:$LINENO: WARNING: *** 'BIND dnssec-signzone' missing, use default BIND_UTIL_PATH and BIND_VERSION setting out of config_zkt.h ***" >&5
2684 echo "$as_me: WARNING: *** 'BIND dnssec-signzone' missing, use default BIND_UTIL_PATH and BIND_VERSION setting out of config_zkt.h ***" >&2;}
2686 bind_util_path=`dirname "$SIGNZONE_PROG"`
2687 # define BIND_UTIL_PATH in config.h.in
2689 cat >>confdefs.h <<_ACEOF
2690 #define BIND_UTIL_PATH "$bind_util_path/"
2693 # define BIND_VERSION in config.h.in
2694 bind_version=`$SIGNZONE_PROG 2>&1 | grep "Version:" | tr -cd "[0-9]\012" | sed "s/^\(...\).*/\1/"`
2696 cat >>confdefs.h <<_ACEOF
2697 #define BIND_VERSION $bind_version
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2709 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2710 # On Suns, sometimes $CPP names a directory.
2711 if test -n "$CPP" && test -d "$CPP"; then
2714 if test -z "$CPP"; then
2715 if test "${ac_cv_prog_CPP+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 # Double quotes because CPP needs to be expanded
2719 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2722 for ac_c_preproc_warn_flag in '' yes
2724 # Use a header file that comes with gcc, so configuring glibc
2725 # with a fresh cross-compiler works.
2726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2727 # <limits.h> exists even on freestanding compilers.
2728 # On the NeXT, cc -E runs the code through the compiler's parser,
2729 # not just through cpp. "Syntax error" is here to catch this case.
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2737 # include <limits.h>
2739 # include <assert.h>
2743 if { (ac_try="$ac_cpp conftest.$ac_ext"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } >/dev/null && {
2756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 # Broken: fails on valid input.
2768 rm -f conftest.err conftest.$ac_ext
2770 # OK, works on sane cases. Now check whether nonexistent headers
2771 # can be detected and how.
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778 #include <ac_nonexistent.h>
2780 if { (ac_try="$ac_cpp conftest.$ac_ext"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } >/dev/null && {
2793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2796 # Broken: success on invalid input.
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Passes both tests.
2807 rm -f conftest.err conftest.$ac_ext
2810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2811 rm -f conftest.err conftest.$ac_ext
2812 if $ac_preproc_ok; then
2824 { echo "$as_me:$LINENO: result: $CPP" >&5
2825 echo "${ECHO_T}$CPP" >&6; }
2827 for ac_c_preproc_warn_flag in '' yes
2829 # Use a header file that comes with gcc, so configuring glibc
2830 # with a fresh cross-compiler works.
2831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832 # <limits.h> exists even on freestanding compilers.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 # include <limits.h>
2844 # include <assert.h>
2848 if { (ac_try="$ac_cpp conftest.$ac_ext"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null && {
2861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2862 test ! -s conftest.err
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 # Broken: fails on valid input.
2873 rm -f conftest.err conftest.$ac_ext
2875 # OK, works on sane cases. Now check whether nonexistent headers
2876 # can be detected and how.
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2885 if { (ac_try="$ac_cpp conftest.$ac_ext"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev/null && {
2898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2901 # Broken: success on invalid input.
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Passes both tests.
2912 rm -f conftest.err conftest.$ac_ext
2915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2916 rm -f conftest.err conftest.$ac_ext
2917 if $ac_preproc_ok; then
2920 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2923 See \`config.log' for more details." >&2;}
2924 { (exit 1); exit 1; }; }
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2935 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2936 if test "${ac_cv_path_GREP+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 # Extract the first word of "grep ggrep" to use in msg output
2940 if test -z "$GREP"; then
2941 set dummy grep ggrep; ac_prog_name=$2
2942 if test "${ac_cv_path_GREP+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 ac_path_GREP_found=false
2946 # Loop through the user's path and test for each of PROGNAME-LIST
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2951 test -z "$as_dir" && as_dir=.
2952 for ac_prog in grep ggrep; do
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2955 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2956 # Check for GNU ac_path_GREP and select it if it is found.
2957 # Check for GNU $ac_path_GREP
2958 case `"$ac_path_GREP" --version 2>&1` in
2960 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2963 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2966 cat "conftest.in" "conftest.in" >"conftest.tmp"
2967 mv "conftest.tmp" "conftest.in"
2968 cp "conftest.in" "conftest.nl"
2969 echo 'GREP' >> "conftest.nl"
2970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2972 ac_count=`expr $ac_count + 1`
2973 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2974 # Best one so far, save it but keep looking for a better one
2975 ac_cv_path_GREP="$ac_path_GREP"
2976 ac_path_GREP_max=$ac_count
2978 # 10*(2^10) chars as input seems more than enough
2979 test $ac_count -gt 10 && break
2981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2985 $ac_path_GREP_found && break 3
2995 GREP="$ac_cv_path_GREP"
2996 if test -z "$GREP"; then
2997 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2998 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2999 { (exit 1); exit 1; }; }
3003 ac_cv_path_GREP=$GREP
3008 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3009 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3010 GREP="$ac_cv_path_GREP"
3013 { echo "$as_me:$LINENO: checking for egrep" >&5
3014 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3015 if test "${ac_cv_path_EGREP+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3019 then ac_cv_path_EGREP="$GREP -E"
3021 # Extract the first word of "egrep" to use in msg output
3022 if test -z "$EGREP"; then
3023 set dummy egrep; ac_prog_name=$2
3024 if test "${ac_cv_path_EGREP+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_path_EGREP_found=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in egrep; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3037 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3038 # Check for GNU ac_path_EGREP and select it if it is found.
3039 # Check for GNU $ac_path_EGREP
3040 case `"$ac_path_EGREP" --version 2>&1` in
3042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3048 cat "conftest.in" "conftest.in" >"conftest.tmp"
3049 mv "conftest.tmp" "conftest.in"
3050 cp "conftest.in" "conftest.nl"
3051 echo 'EGREP' >> "conftest.nl"
3052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3054 ac_count=`expr $ac_count + 1`
3055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3056 # Best one so far, save it but keep looking for a better one
3057 ac_cv_path_EGREP="$ac_path_EGREP"
3058 ac_path_EGREP_max=$ac_count
3060 # 10*(2^10) chars as input seems more than enough
3061 test $ac_count -gt 10 && break
3063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3067 $ac_path_EGREP_found && break 3
3077 EGREP="$ac_cv_path_EGREP"
3078 if test -z "$EGREP"; then
3079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081 { (exit 1); exit 1; }; }
3085 ac_cv_path_EGREP=$EGREP
3091 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3092 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3093 EGREP="$ac_cv_path_EGREP"
3096 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3098 if test "${ac_cv_header_stdc+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 ac_cv_header_stdc=yes
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 ac_cv_header_stdc=no
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 if test $ac_cv_header_stdc = yes; then
3148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3159 $EGREP "memchr" >/dev/null 2>&1; then
3162 ac_cv_header_stdc=no
3168 if test $ac_cv_header_stdc = yes; then
3169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "free" >/dev/null 2>&1; then
3183 ac_cv_header_stdc=no
3189 if test $ac_cv_header_stdc = yes; then
3190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3191 if test "$cross_compiling" = yes; then
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3202 #if ((' ' & 0x0FF) == 0x020)
3203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3206 # define ISLOWER(c) \
3207 (('a' <= (c) && (c) <= 'i') \
3208 || ('j' <= (c) && (c) <= 'r') \
3209 || ('s' <= (c) && (c) <= 'z'))
3210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3218 for (i = 0; i < 256; i++)
3219 if (XOR (islower (i), ISLOWER (i))
3220 || toupper (i) != TOUPPER (i))
3225 rm -f conftest$ac_exeext
3226 if { (ac_try="$ac_link"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_link") 2>&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: program exited with status $ac_status" >&5
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_header_stdc=no
3254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3260 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3261 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3262 if test $ac_cv_header_stdc = yes; then
3264 cat >>confdefs.h <<\_ACEOF
3265 #define STDC_HEADERS 1
3270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3281 inttypes.h stdint.h unistd.h
3283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 $ac_includes_default
3297 #include <$ac_header>
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 eval "$as_ac_Header=yes"
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 eval "$as_ac_Header=no"
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_res=`eval echo '${'$as_ac_Header'}'`
3327 { echo "$as_me:$LINENO: result: $ac_res" >&5
3328 echo "${ECHO_T}$ac_res" >&6; }
3329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3330 cat >>confdefs.h <<_ACEOF
3331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3339 { echo "$as_me:$LINENO: checking for uint" >&5
3340 echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
3341 if test "${ac_cv_type_uint+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 $ac_includes_default
3351 typedef uint ac__type_new_;
3355 if ((ac__type_new_ *) 0)
3357 if (sizeof (ac__type_new_))
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest.$ac_objext; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 { echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
3391 echo "${ECHO_T}$ac_cv_type_uint" >&6; }
3392 if test $ac_cv_type_uint = yes; then
3396 cat >>confdefs.h <<_ACEOF
3397 #define uint unsigned int
3402 { echo "$as_me:$LINENO: checking for ulong" >&5
3403 echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
3404 if test "${ac_cv_type_ulong+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 $ac_includes_default
3414 typedef ulong ac__type_new_;
3418 if ((ac__type_new_ *) 0)
3420 if (sizeof (ac__type_new_))
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv_type_ulong=yes
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 { echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
3454 echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
3455 if test $ac_cv_type_ulong = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460 #define ulong unsigned long
3465 { echo "$as_me:$LINENO: checking for ushort" >&5
3466 echo $ECHO_N "checking for ushort... $ECHO_C" >&6; }
3467 if test "${ac_cv_type_ushort+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 $ac_includes_default
3477 typedef ushort ac__type_new_;
3481 if ((ac__type_new_ *) 0)
3483 if (sizeof (ac__type_new_))
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3506 ac_cv_type_ushort=yes
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_cv_type_ushort=no
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 { echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
3517 echo "${ECHO_T}$ac_cv_type_ushort" >&6; }
3518 if test $ac_cv_type_ushort = yes; then
3522 cat >>confdefs.h <<_ACEOF
3523 #define ushort unsigned short
3528 { echo "$as_me:$LINENO: checking for uchar" >&5
3529 echo $ECHO_N "checking for uchar... $ECHO_C" >&6; }
3530 if test "${ac_cv_type_uchar+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 $ac_includes_default
3540 typedef uchar ac__type_new_;
3544 if ((ac__type_new_ *) 0)
3546 if (sizeof (ac__type_new_))
3552 rm -f conftest.$ac_objext
3553 if { (ac_try="$ac_compile"
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3569 ac_cv_type_uchar=yes
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 { echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
3580 echo "${ECHO_T}$ac_cv_type_uchar" >&6; }
3581 if test $ac_cv_type_uchar = yes; then
3585 cat >>confdefs.h <<_ACEOF
3586 #define uchar unsigned char
3592 ### define configure arguments
3593 # Check whether --enable-color_mode was given.
3594 if test "${enable_color_mode+set}" = set; then
3595 enableval=$enable_color_mode;
3599 if test "$enable_color_mode" = "no"; then
3605 # Check whether --with-curses was given.
3606 if test "${with_curses+set}" = set; then
3607 withval=$with_curses;
3611 if test "x$with_curses" != "xno"; then
3613 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
3614 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
3615 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-lncurses $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3627 /* Override any GCC internal prototype to avoid an error.
3628 Use char because int might match the return type of a GCC
3629 builtin and then its argument prototype would still apply. */
3642 rm -f conftest.$ac_objext conftest$ac_exeext
3643 if { (ac_try="$ac_link"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_link") 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } && {
3656 test -z "$ac_c_werror_flag" ||
3657 test ! -s conftest.err
3658 } && test -s conftest$ac_exeext &&
3659 $as_test_x conftest$ac_exeext; then
3660 ac_cv_lib_ncurses_tgetent=yes
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 ac_cv_lib_ncurses_tgetent=no
3668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3669 conftest$ac_exeext conftest.$ac_ext
3670 LIBS=$ac_check_lib_save_LIBS
3672 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
3673 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
3674 if test $ac_cv_lib_ncurses_tgetent = yes; then
3675 cat >>confdefs.h <<_ACEOF
3676 #define HAVE_LIBNCURSES 1
3679 LIBS="-lncurses $LIBS"
3684 HAVE_LIB_NCURSES=0; color_mode=0
3689 cat >>confdefs.h <<_ACEOF
3690 #define COLOR_MODE $color_mode
3695 # Check whether --enable-printtimezone was given.
3696 if test "${enable_printtimezone+set}" = set; then
3697 enableval=$enable_printtimezone;
3701 if test "$enable_printtimezone" = "yes"; then
3706 cat >>confdefs.h <<_ACEOF
3707 #define PRINT_TIMEZONE $printtimezone
3711 # Check whether --enable-printyear was given.
3712 if test "${enable_printyear+set}" = set; then
3713 enableval=$enable_printyear;
3716 test "$printyear" = yes && printyear=1
3718 if test "$enable_printyear" = "yes"; then
3723 cat >>confdefs.h <<_ACEOF
3724 #define PRINT_AGE_WITH_YEAR $printyear
3728 # Check whether --enable-logprogname was given.
3729 if test "${enable_logprogname+set}" = set; then
3730 enableval=$enable_logprogname;
3734 if test "$enable_logprogname" = "yes"; then
3739 cat >>confdefs.h <<_ACEOF
3740 #define LOG_WITH_PROGNAME $logprogname
3744 # Check whether --enable-logtimestamp was given.
3745 if test "${enable_logtimestamp+set}" = set; then
3746 enableval=$enable_logtimestamp;
3750 if test "$enable_logtimestamp" = "no"; then
3755 cat >>confdefs.h <<_ACEOF
3756 #define LOG_WITH_TIMESTAMP $logtimestamp
3760 # Check whether --enable-loglevel was given.
3761 if test "${enable_loglevel+set}" = set; then
3762 enableval=$enable_loglevel;
3766 if test "$enable_loglevel" = "no"; then
3771 cat >>confdefs.h <<_ACEOF
3772 #define LOG_WITH_LEVEL $loglevel
3776 # Check whether --enable-ttl_in_keyfile was given.
3777 if test "${enable_ttl_in_keyfile+set}" = set; then
3778 enableval=$enable_ttl_in_keyfile;
3782 if test "$enable_ttl_in_keyfile" = "no"; then
3787 cat >>confdefs.h <<_ACEOF
3788 #define TTL_IN_KEYFILE_ALLOWED $ttl_in_keyfile
3792 configpath="/var/named"
3793 # Check whether --enable-configpath was given.
3794 if test "${enable_configpath+set}" = set; then
3795 enableval=$enable_configpath; configpath=$enableval
3798 case "$configpath" in
3800 configpath="/var/named"
3809 cat >>confdefs.h <<_ACEOF
3810 #define CONFIG_PATH "$configpath/"
3816 # Check whether --enable-tree was given.
3817 if test "${enable_tree+set}" = set; then
3818 enableval=$enable_tree; usetree=$enableval
3821 if test "$usetree" = no
3827 cat >>confdefs.h <<_ACEOF
3828 #define USE_TREE $usetree
3833 cat >>confdefs.h <<_ACEOF
3834 #define ZKT_VERSION "$t$PACKAGE_VERSION"
3838 cat >>confdefs.h <<_ACEOF
3839 #define ZKT_COPYRIGHT "(c) Feb 2005 - Mar 2010 Holger Zuleger hznet.de"
3843 ### Checks for libraries.
3845 ### Checks for header files.
3852 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3853 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3854 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3855 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <sys/types.h>
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 eval "$as_ac_Header=yes"
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 eval "$as_ac_Header=no"
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_res=`eval echo '${'$as_ac_Header'}'`
3905 { echo "$as_me:$LINENO: result: $ac_res" >&5
3906 echo "${ECHO_T}$ac_res" >&6; }
3907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3908 cat >>confdefs.h <<_ACEOF
3909 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3912 ac_header_dirent=$ac_hdr; break
3916 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3917 if test $ac_header_dirent = dirent.h; then
3918 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3919 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3920 if test "${ac_cv_search_opendir+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 ac_func_search_save_LIBS=$LIBS
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3931 /* Override any GCC internal prototype to avoid an error.
3932 Use char because int might match the return type of a GCC
3933 builtin and then its argument prototype would still apply. */
3946 for ac_lib in '' dir; do
3947 if test -z "$ac_lib"; then
3948 ac_res="none required"
3951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest$ac_exeext &&
3970 $as_test_x conftest$ac_exeext; then
3971 ac_cv_search_opendir=$ac_res
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3981 if test "${ac_cv_search_opendir+set}" = set; then
3985 if test "${ac_cv_search_opendir+set}" = set; then
3988 ac_cv_search_opendir=no
3991 LIBS=$ac_func_search_save_LIBS
3993 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3994 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3995 ac_res=$ac_cv_search_opendir
3996 if test "$ac_res" != no; then
3997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4004 if test "${ac_cv_search_opendir+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 ac_func_search_save_LIBS=$LIBS
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 /* Override any GCC internal prototype to avoid an error.
4016 Use char because int might match the return type of a GCC
4017 builtin and then its argument prototype would still apply. */
4030 for ac_lib in '' x; do
4031 if test -z "$ac_lib"; then
4032 ac_res="none required"
4035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4037 rm -f conftest.$ac_objext conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest$ac_exeext &&
4054 $as_test_x conftest$ac_exeext; then
4055 ac_cv_search_opendir=$ac_res
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4065 if test "${ac_cv_search_opendir+set}" = set; then
4069 if test "${ac_cv_search_opendir+set}" = set; then
4072 ac_cv_search_opendir=no
4075 LIBS=$ac_func_search_save_LIBS
4077 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4078 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4079 ac_res=$ac_cv_search_opendir
4080 if test "$ac_res" != no; then
4081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4087 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_stdc+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4275 for ac_header in fcntl.h netdb.h stdlib.h getopt.h string.h strings.h sys/socket.h sys/time.h sys/types.h syslog.h unistd.h utime.h term.h curses.h
4277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_res=`eval echo '${'$as_ac_Header'}'`
4285 { echo "$as_me:$LINENO: result: $ac_res" >&5
4286 echo "${ECHO_T}$ac_res" >&6; }
4288 # Is the header compilable?
4289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4298 #include <$ac_header>
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest.$ac_objext; then
4317 ac_header_compiler=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_header_compiler=no
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4327 echo "${ECHO_T}$ac_header_compiler" >&6; }
4329 # Is the header present?
4330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <$ac_header>
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } >/dev/null && {
4353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4356 ac_header_preproc=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_header_preproc=no
4364 rm -f conftest.err conftest.$ac_ext
4365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4366 echo "${ECHO_T}$ac_header_preproc" >&6; }
4368 # So? What about this header?
4369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4375 ac_header_preproc=yes
4378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4391 ## -------------------------------------- ##
4392 ## Report this to Holger Zuleger hznet.de ##
4393 ## -------------------------------------- ##
4395 ) | sed "s/^/$as_me: WARNING: /" >&2
4398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 eval "$as_ac_Header=\$ac_header_preproc"
4405 ac_res=`eval echo '${'$as_ac_Header'}'`
4406 { echo "$as_me:$LINENO: result: $ac_res" >&5
4407 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 ### Checks for typedefs, structures, and compiler characteristics.
4422 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4423 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4424 if test "${ac_cv_c_const+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4437 /* FIXME: Include the comments suggested by Paul. */
4439 /* Ultrix mips cc rejects this. */
4440 typedef int charset[2];
4442 /* SunOS 4.1.1 cc rejects this. */
4443 char const *const *pcpcc;
4445 /* NEC SVR4.0.2 mips cc rejects this. */
4446 struct point {int x, y;};
4447 static struct point const zero = {0,0};
4448 /* AIX XL C 1.02.0.0 rejects this.
4449 It does not let you subtract one const X* pointer from another in
4450 an arm of an if-expression whose if-part is not a constant
4452 const char *g = "string";
4453 pcpcc = &g + (g ? g-g : 0);
4454 /* HPUX 7.0 cc rejects these. */
4456 ppc = (char**) pcpcc;
4457 pcpcc = (char const *const *) ppc;
4458 { /* SCO 3.2v4 cc rejects this. */
4460 char const *s = 0 ? (char *) 0 : (char const *) 0;
4465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4467 const int *foo = &x[0];
4470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4471 typedef const int *iptr;
4475 { /* AIX XL C 1.02.0.0 rejects this saying
4476 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4477 struct s { int j; const int *ap[3]; };
4478 struct s *b; b->j = 5;
4480 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4484 return !cs[0] && !zero.x;
4491 rm -f conftest.$ac_objext
4492 if { (ac_try="$ac_compile"
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4519 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4520 if test $ac_cv_c_const = no; then
4522 cat >>confdefs.h <<\_ACEOF
4528 { echo "$as_me:$LINENO: checking for size_t" >&5
4529 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4530 if test "${ac_cv_type_size_t+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4540 typedef size_t ac__type_new_;
4544 if ((ac__type_new_ *) 0)
4546 if (sizeof (ac__type_new_))
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest.$ac_objext; then
4569 ac_cv_type_size_t=yes
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_type_size_t=no
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4580 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4581 if test $ac_cv_type_size_t = yes; then
4585 cat >>confdefs.h <<_ACEOF
4586 #define size_t unsigned int
4591 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4592 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4593 if test "${ac_cv_header_time+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #include <sys/types.h>
4603 #include <sys/time.h>
4609 if ((struct tm *) 0)
4615 rm -f conftest.$ac_objext
4616 if { (ac_try="$ac_compile"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_compile") 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } && {
4629 test -z "$ac_c_werror_flag" ||
4630 test ! -s conftest.err
4631 } && test -s conftest.$ac_objext; then
4632 ac_cv_header_time=yes
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 ac_cv_header_time=no
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4643 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4644 if test $ac_cv_header_time = yes; then
4646 cat >>confdefs.h <<\_ACEOF
4647 #define TIME_WITH_SYS_TIME 1
4652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4654 if test "${ac_cv_struct_tm+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #include <sys/types.h>
4670 int *p = &tm.tm_sec;
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 ac_cv_struct_tm=time.h
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_cv_struct_tm=sys/time.h
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4704 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4705 if test $ac_cv_struct_tm = sys/time.h; then
4707 cat >>confdefs.h <<\_ACEOF
4708 #define TM_IN_SYS_TIME 1
4713 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4714 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
4715 if test "${ac_cv_type_uid_t+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <sys/types.h>
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "uid_t" >/dev/null 2>&1; then
4729 ac_cv_type_uid_t=yes
4736 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4737 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
4738 if test $ac_cv_type_uid_t = no; then
4740 cat >>confdefs.h <<\_ACEOF
4745 cat >>confdefs.h <<\_ACEOF
4753 ### Checks for library functions.
4754 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4755 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
4756 if test "${ac_cv_func_closedir_void+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 if test "$cross_compiling" = yes; then
4760 ac_cv_func_closedir_void=yes
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4769 #include <$ac_header_dirent>
4777 return closedir (opendir (".")) != 0;
4782 rm -f conftest$ac_exeext
4783 if { (ac_try="$ac_link"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_link") 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4793 { (case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_try") 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_func_closedir_void=no
4804 echo "$as_me: program exited with status $ac_status" >&5
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_cv_func_closedir_void=yes
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4816 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4817 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
4818 if test $ac_cv_func_closedir_void = yes; then
4820 cat >>confdefs.h <<\_ACEOF
4821 #define CLOSEDIR_VOID 1
4826 { echo "$as_me:$LINENO: checking for error_at_line" >&5
4827 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
4828 if test "${ac_cv_lib_error_at_line+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4841 error_at_line (0, 0, "", 0, "an error occurred");
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (ac_try="$ac_link"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_link") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest$ac_exeext &&
4863 $as_test_x conftest$ac_exeext; then
4864 ac_cv_lib_error_at_line=yes
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_cv_lib_error_at_line=no
4872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4873 conftest$ac_exeext conftest.$ac_ext
4875 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4876 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
4877 if test $ac_cv_lib_error_at_line = no; then
4878 case " $LIBOBJS " in
4879 *" error.$ac_objext "* ) ;;
4880 *) LIBOBJS="$LIBOBJS error.$ac_objext"
4890 for ac_header in $ac_header_list
4892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_res=`eval echo '${'$as_ac_Header'}'`
4900 { echo "$as_me:$LINENO: result: $ac_res" >&5
4901 echo "${ECHO_T}$ac_res" >&6; }
4903 # Is the header compilable?
4904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4913 #include <$ac_header>
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_compile") 2>conftest.er1
4924 grep -v '^ *+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } && {
4929 test -z "$ac_c_werror_flag" ||
4930 test ! -s conftest.err
4931 } && test -s conftest.$ac_objext; then
4932 ac_header_compiler=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 ac_header_compiler=no
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4942 echo "${ECHO_T}$ac_header_compiler" >&6; }
4944 # Is the header present?
4945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <$ac_header>
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null && {
4968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4971 ac_header_preproc=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_header_preproc=no
4979 rm -f conftest.err conftest.$ac_ext
4980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4981 echo "${ECHO_T}$ac_header_preproc" >&6; }
4983 # So? What about this header?
4984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4990 ac_header_preproc=yes
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5006 ## -------------------------------------- ##
5007 ## Report this to Holger Zuleger hznet.de ##
5008 ## -------------------------------------- ##
5010 ) | sed "s/^/$as_me: WARNING: /" >&2
5013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 eval "$as_ac_Header=\$ac_header_preproc"
5020 ac_res=`eval echo '${'$as_ac_Header'}'`
5021 { echo "$as_me:$LINENO: result: $ac_res" >&5
5022 echo "${ECHO_T}$ac_res" >&6; }
5025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5026 cat >>confdefs.h <<_ACEOF
5027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 for ac_func in $ac_func_list
5044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5058 #define $ac_func innocuous_$ac_func
5060 /* System header to define __stub macros and hopefully few prototypes,
5061 which can conflict with char $ac_func (); below.
5062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063 <limits.h> exists even on freestanding compilers. */
5066 # include <limits.h>
5068 # include <assert.h>
5073 /* Override any GCC internal prototype to avoid an error.
5074 Use char because int might match the return type of a GCC
5075 builtin and then its argument prototype would still apply. */
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined __stub_$ac_func || defined __stub___$ac_func
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_link") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest$ac_exeext &&
5112 $as_test_x conftest$ac_exeext; then
5113 eval "$as_ac_var=yes"
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 eval "$as_ac_var=no"
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122 conftest$ac_exeext conftest.$ac_ext
5124 ac_res=`eval echo '${'$as_ac_var'}'`
5125 { echo "$as_me:$LINENO: result: $ac_res" >&5
5126 echo "${ECHO_T}$ac_res" >&6; }
5127 if test `eval echo '${'$as_ac_var'}'` = yes; then
5128 cat >>confdefs.h <<_ACEOF
5129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5151 { echo "$as_me:$LINENO: checking for working mktime" >&5
5152 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
5153 if test "${ac_cv_func_working_mktime+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 if test "$cross_compiling" = yes; then
5157 ac_cv_func_working_mktime=no
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 /* Test program from Paul Eggert and Tony Leneis. */
5166 #ifdef TIME_WITH_SYS_TIME
5167 # include <sys/time.h>
5170 # ifdef HAVE_SYS_TIME_H
5171 # include <sys/time.h>
5179 #ifdef HAVE_UNISTD_H
5180 # include <unistd.h>
5184 # define alarm(X) /* empty */
5187 /* Work around redefinition to rpl_putenv by other config tests. */
5190 static time_t time_t_max;
5191 static time_t time_t_min;
5193 /* Values we'll use to set the TZ environment variable. */
5194 static char *tz_strings[] = {
5195 (char *) 0, "TZ=GMT0", "TZ=JST-9",
5196 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5198 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5200 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
5201 Based on a problem report from Andreas Jaeger. */
5203 spring_forward_gap ()
5205 /* glibc (up to about 1998-10-07) failed this test. */
5208 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5209 instead of "TZ=America/Vancouver" in order to detect the bug even
5210 on systems that don't support the Olson extension, or don't have the
5211 full zoneinfo tables installed. */
5212 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5221 return mktime (&tm) != (time_t) -1;
5229 return ! (lt = localtime (&now)) || mktime (lt) == now;
5236 return (mktime_test1 (now)
5237 && mktime_test1 ((time_t) (time_t_max - now))
5238 && mktime_test1 ((time_t) (time_t_min + now)));
5244 /* Based on code from Ariel Faigon. */
5254 return tm.tm_mon == 2 && tm.tm_mday == 31;
5263 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5265 if (now != (time_t) -1)
5267 struct tm *lt = localtime (&now);
5269 && lt->tm_year == tm.tm_year
5270 && lt->tm_mon == tm.tm_mon
5271 && lt->tm_mday == tm.tm_mday
5272 && lt->tm_hour == tm.tm_hour
5273 && lt->tm_min == tm.tm_min
5274 && lt->tm_sec == tm.tm_sec
5275 && lt->tm_yday == tm.tm_yday
5276 && lt->tm_wday == tm.tm_wday
5277 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5278 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5287 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5288 ignoring leap seconds. */
5289 unsigned long int answer = 2527315200UL;
5293 tm.tm_year = 2050 - 1900;
5296 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5299 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5300 instead of "TZ=America/Vancouver" in order to detect the bug even
5301 on systems that don't support the Olson extension, or don't have the
5302 full zoneinfo tables installed. */
5303 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5307 /* Check that the result is either a failure, or close enough
5308 to the correct answer that we can assume the discrepancy is
5309 due to leap seconds. */
5310 return (t == (time_t) -1
5311 || (0 < t && answer - 120 <= t && t <= answer + 120));
5320 /* This test makes some buggy mktime implementations loop.
5321 Give up after 60 seconds; a mktime slower than that
5322 isn't worth using anyway. */
5325 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5328 if ((time_t) -1 < 0)
5329 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
5331 delta = time_t_max / 997; /* a suitable prime number */
5332 for (i = 0; i < N_STRINGS; i++)
5335 putenv (tz_strings[i]);
5337 for (t = 0; t <= time_t_max - delta; t += delta)
5338 if (! mktime_test (t))
5340 if (! (mktime_test ((time_t) 1)
5341 && mktime_test ((time_t) (60 * 60))
5342 && mktime_test ((time_t) (60 * 60 * 24))))
5345 for (j = 1; 0 < j; j *= 2)
5346 if (! bigtime_test (j))
5348 if (! bigtime_test (j - 1))
5351 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5354 rm -f conftest$ac_exeext
5355 if { (ac_try="$ac_link"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_link") 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_cv_func_working_mktime=yes
5376 echo "$as_me: program exited with status $ac_status" >&5
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_cv_func_working_mktime=no
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
5389 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
5390 if test $ac_cv_func_working_mktime = no; then
5391 case " $LIBOBJS " in
5392 *" mktime.$ac_objext "* ) ;;
5393 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5399 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5400 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5401 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 rm -f conftest.sym conftest.file
5406 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5407 if test "$cross_compiling" = yes; then
5408 ac_cv_func_lstat_dereferences_slashed_symlink=no
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5421 /* Linux will dereference the symlink and fail.
5422 That is better in the sense that it means we will not
5423 have to compile and use the lstat wrapper. */
5424 return lstat ("conftest.sym/", &sbuf) == 0;
5429 rm -f conftest$ac_exeext
5430 if { (ac_try="$ac_link"
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5440 { (case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_try") 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5451 echo "$as_me: program exited with status $ac_status" >&5
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_cv_func_lstat_dereferences_slashed_symlink=no
5458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5463 # If the `ln -s' command failed, then we probably don't even
5464 # have an lstat function.
5465 ac_cv_func_lstat_dereferences_slashed_symlink=no
5467 rm -f conftest.sym conftest.file
5470 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5471 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5473 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5475 cat >>confdefs.h <<_ACEOF
5476 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5480 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5481 case " $LIBOBJS " in
5482 *" lstat.$ac_objext "* ) ;;
5483 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5489 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5490 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
5491 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 if test "$cross_compiling" = yes; then
5495 ac_cv_func_stat_empty_string_bug=yes
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5508 return stat ("", &sbuf) == 0;
5513 rm -f conftest$ac_exeext
5514 if { (ac_try="$ac_link"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_link") 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5524 { (case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_try") 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_func_stat_empty_string_bug=no
5535 echo "$as_me: program exited with status $ac_status" >&5
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_cv_func_stat_empty_string_bug=yes
5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5547 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5548 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
5549 if test $ac_cv_func_stat_empty_string_bug = yes; then
5550 case " $LIBOBJS " in
5551 *" stat.$ac_objext "* ) ;;
5552 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_STAT_EMPTY_STRING_BUG 1
5564 for ac_func in strftime
5566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5580 #define $ac_func innocuous_$ac_func
5582 /* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char $ac_func (); below.
5584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 <limits.h> exists even on freestanding compilers. */
5588 # include <limits.h>
5590 # include <assert.h>
5595 /* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5602 /* The GNU C library defines this for functions which it implements
5603 to always fail with ENOSYS. Some functions are actually named
5604 something starting with __ and the normal name is an alias. */
5605 #if defined __stub_$ac_func || defined __stub___$ac_func
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (ac_try="$ac_link"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_link") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest$ac_exeext &&
5634 $as_test_x conftest$ac_exeext; then
5635 eval "$as_ac_var=yes"
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 eval "$as_ac_var=no"
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644 conftest$ac_exeext conftest.$ac_ext
5646 ac_res=`eval echo '${'$as_ac_var'}'`
5647 { echo "$as_me:$LINENO: result: $ac_res" >&5
5648 echo "${ECHO_T}$ac_res" >&6; }
5649 if test `eval echo '${'$as_ac_var'}'` = yes; then
5650 cat >>confdefs.h <<_ACEOF
5651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5655 # strftime is in -lintl on SCO UNIX.
5656 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5657 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5658 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 ac_check_lib_save_LIBS=$LIBS
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 /* Override any GCC internal prototype to avoid an error.
5671 Use char because int might match the return type of a GCC
5672 builtin and then its argument prototype would still apply. */
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (ac_try="$ac_link"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_link") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest$ac_exeext &&
5702 $as_test_x conftest$ac_exeext; then
5703 ac_cv_lib_intl_strftime=yes
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ac_cv_lib_intl_strftime=no
5711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5712 conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5715 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5716 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5717 if test $ac_cv_lib_intl_strftime = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_STRFTIME 1
5736 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
5737 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
5738 if test "${ac_cv_func_utime_null+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 rm -f conftest.data; >conftest.data
5742 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
5743 if test "$cross_compiling" = yes; then
5744 ac_cv_func_utime_null=no
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5760 return ! (stat ("conftest.data", &s) == 0
5761 && utime ("conftest.data", 0) == 0
5762 && stat ("conftest.data", &t) == 0
5763 && t.st_mtime >= s.st_mtime
5764 && t.st_mtime - s.st_mtime < 120);
5769 rm -f conftest$ac_exeext
5770 if { (ac_try="$ac_link"
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_link") 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780 { (case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_try") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_func_utime_null=yes
5791 echo "$as_me: program exited with status $ac_status" >&5
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_cv_func_utime_null=no
5798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5803 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
5804 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
5805 if test $ac_cv_func_utime_null = yes; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_UTIME_NULL 1
5815 for ac_func in vprintf
5817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5831 #define $ac_func innocuous_$ac_func
5833 /* System header to define __stub macros and hopefully few prototypes,
5834 which can conflict with char $ac_func (); below.
5835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 <limits.h> exists even on freestanding compilers. */
5839 # include <limits.h>
5841 # include <assert.h>
5846 /* Override any GCC internal prototype to avoid an error.
5847 Use char because int might match the return type of a GCC
5848 builtin and then its argument prototype would still apply. */
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined __stub_$ac_func || defined __stub___$ac_func
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest$ac_exeext &&
5885 $as_test_x conftest$ac_exeext; then
5886 eval "$as_ac_var=yes"
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 eval "$as_ac_var=no"
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895 conftest$ac_exeext conftest.$ac_ext
5897 ac_res=`eval echo '${'$as_ac_var'}'`
5898 { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if test `eval echo '${'$as_ac_var'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5905 { echo "$as_me:$LINENO: checking for _doprnt" >&5
5906 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
5907 if test "${ac_cv_func__doprnt+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5918 #define _doprnt innocuous__doprnt
5920 /* System header to define __stub macros and hopefully few prototypes,
5921 which can conflict with char _doprnt (); below.
5922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5923 <limits.h> exists even on freestanding compilers. */
5926 # include <limits.h>
5928 # include <assert.h>
5933 /* Override any GCC internal prototype to avoid an error.
5934 Use char because int might match the return type of a GCC
5935 builtin and then its argument prototype would still apply. */
5940 /* The GNU C library defines this for functions which it implements
5941 to always fail with ENOSYS. Some functions are actually named
5942 something starting with __ and the normal name is an alias. */
5943 #if defined __stub__doprnt || defined __stub____doprnt
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (ac_try="$ac_link"
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_link") 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest$ac_exeext &&
5972 $as_test_x conftest$ac_exeext; then
5973 ac_cv_func__doprnt=yes
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_func__doprnt=no
5981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982 conftest$ac_exeext conftest.$ac_ext
5984 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5985 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
5986 if test $ac_cv_func__doprnt = yes; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define HAVE_DOPRNT 1
5998 # 2008-07-04 getopt_long added
5999 # 2009-07-30 timegm added
6015 for ac_func in getopt_long gettimeofday memset putenv socket strcasecmp strchr strdup strerror strncasecmp strrchr tzset utime getuid timegm
6017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6031 #define $ac_func innocuous_$ac_func
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func (); below.
6035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6036 <limits.h> exists even on freestanding compilers. */
6039 # include <limits.h>
6041 # include <assert.h>
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined __stub_$ac_func || defined __stub___$ac_func
6068 rm -f conftest.$ac_objext conftest$ac_exeext
6069 if { (ac_try="$ac_link"
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_link") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest$ac_exeext &&
6085 $as_test_x conftest$ac_exeext; then
6086 eval "$as_ac_var=yes"
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 eval "$as_ac_var=no"
6094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6095 conftest$ac_exeext conftest.$ac_ext
6097 ac_res=`eval echo '${'$as_ac_var'}'`
6098 { echo "$as_me:$LINENO: result: $ac_res" >&5
6099 echo "${ECHO_T}$ac_res" >&6; }
6100 if test `eval echo '${'$as_ac_var'}'` = yes; then
6101 cat >>confdefs.h <<_ACEOF
6102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6110 ac_config_files="$ac_config_files Makefile"
6112 cat >confcache <<\_ACEOF
6113 # This file is a shell script that caches the results of configure
6114 # tests run on this system so they can be shared between configure
6115 # scripts and configure runs, see configure's option --config-cache.
6116 # It is not useful on other systems. If it contains results you don't
6117 # want to keep, you may remove or edit it.
6119 # config.status only pays attention to the cache file if you give it
6120 # the --recheck option to rerun configure.
6122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6128 # The following way of writing the cache mishandles newlines in values,
6129 # but we know of no workaround that is simple, portable, and efficient.
6130 # So, we kill variables containing newlines.
6131 # Ultrix sh set writes to stderr and can't be redirected directly,
6132 # and sets the high bit in the cache file unless we assign to the vars.
6134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6135 eval ac_val=\$$ac_var
6139 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6140 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6143 _ | IFS | as_nl) ;; #(
6144 *) $as_unset $ac_var ;;
6150 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6151 *${as_nl}ac_space=\ *)
6152 # `set' does not quote correctly, so add quotes (double-quote
6153 # substitution turns \\\\ into \\, and sed turns \\ into \).
6156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6159 # `set' quotes correctly as required by POSIX, so do not add quotes.
6160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6171 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6173 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6174 if test -w "$cache_file"; then
6175 test "x$cache_file" != "x/dev/null" &&
6176 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6177 echo "$as_me: updating cache $cache_file" >&6;}
6178 cat confcache >$cache_file
6180 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6181 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6187 # Let make expand exec_prefix.
6188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6190 DEFS=-DHAVE_CONFIG_H
6194 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6195 # 1. Remove the extension, and $U if already installed.
6196 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6197 ac_i=`echo "$ac_i" | sed "$ac_script"`
6198 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6199 # will be set to the directory where LIBOBJS objects are built.
6200 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6201 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6205 LTLIBOBJS=$ac_ltlibobjs
6209 : ${CONFIG_STATUS=./config.status}
6210 ac_clean_files_save=$ac_clean_files
6211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6212 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6213 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6214 cat >$CONFIG_STATUS <<_ACEOF
6216 # Generated by $as_me.
6217 # Run this file to recreate the current configuration.
6218 # Compiler output produced by configure, useful for debugging
6219 # configure, is in config.log if it exists.
6224 SHELL=\${CONFIG_SHELL-$SHELL}
6227 cat >>$CONFIG_STATUS <<\_ACEOF
6228 ## --------------------- ##
6229 ## M4sh Initialization. ##
6230 ## --------------------- ##
6232 # Be more Bourne compatible
6233 DUALCASE=1; export DUALCASE # for MKS sh
6234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6237 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6238 # is contrary to our usage. Disable this feature.
6239 alias -g '${1+"$@"}'='"$@"'
6240 setopt NO_GLOB_SUBST
6242 case `(set -o) 2>/dev/null` in
6243 *posix*) set -o posix ;;
6252 # Avoid depending upon Character Ranges.
6253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6256 as_cr_digits='0123456789'
6257 as_cr_alnum=$as_cr_Letters$as_cr_digits
6259 # The user is always right.
6260 if test "${PATH_SEPARATOR+set}" != set; then
6261 echo "#! /bin/sh" >conf$$.sh
6262 echo "exit 0" >>conf$$.sh
6264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6272 # Support unset when possible.
6273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6281 # We need space, tab and new line, in precisely that order. Quoting is
6282 # there to prevent editors from complaining about space-tab.
6283 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6284 # splitting by setting IFS to empty value.)
6289 # Find who we are. Look in the path if we contain no directory separator.
6291 *[\\/]* ) as_myself=$0 ;;
6292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6303 # We did not find ourselves, most probably we were run as `sh COMMAND'
6304 # in which case we are not to be found in the path.
6305 if test "x$as_myself" = x; then
6308 if test ! -f "$as_myself"; then
6309 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6310 { (exit 1); exit 1; }
6313 # Work around bugs in pre-3.0 UWIN ksh.
6314 for as_var in ENV MAIL MAILPATH
6315 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6325 LC_TELEPHONE LC_TIME
6327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6328 eval $as_var=C; export $as_var
6330 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6334 # Required to use basename.
6335 if expr a : '\(a\)' >/dev/null 2>&1 &&
6336 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6343 as_basename=basename
6349 # Name of the executable.
6350 as_me=`$as_basename -- "$0" ||
6351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6352 X"$0" : 'X\(//\)$' \| \
6353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6355 sed '/^.*\/\([^/][^/]*\)\/*$/{
6376 test "x$as_lineno_1" != "x$as_lineno_2" &&
6377 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6379 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6380 # uniformly replaced by the line number. The first 'sed' inserts a
6381 # line-number line after each line using $LINENO; the second 'sed'
6382 # does the real work. The second script uses 'N' to pair each
6383 # line-number line with the line containing $LINENO, and appends
6384 # trailing '-' during substitution so that $LINENO is not a special
6386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6387 # scripts with optimization help from Paolo Bonzini. Blame Lee
6388 # E. McMahon (1931-1989) for sed's syntax. :-)
6400 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6404 chmod +x "$as_me.lineno" ||
6405 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6406 { (exit 1); exit 1; }; }
6408 # Don't try to exec as it changes $[0], causing all sort of problems
6409 # (the dirname of $[0] is not the place where we might find the
6410 # original and so on. Autoconf is especially sensitive to this).
6412 # Exit status is that of the last command.
6417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6423 ECHO_C= ECHO_N= ECHO_T=
6426 case `echo 'x\c'` in
6427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6434 if expr a : '\(a\)' >/dev/null 2>&1 &&
6435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6441 rm -f conf$$ conf$$.exe conf$$.file
6442 if test -d conf$$.dir; then
6443 rm -f conf$$.dir/conf$$.file
6449 if ln -s conf$$.file conf$$ 2>/dev/null; then
6451 # ... but there are two gotchas:
6452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6454 # In both cases, we have to default to `cp -p'.
6455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6457 elif ln conf$$.file conf$$ 2>/dev/null; then
6462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6463 rmdir conf$$.dir 2>/dev/null
6465 if mkdir -p . 2>/dev/null; then
6468 test -d ./-p && rmdir ./-p
6472 if test -x / >/dev/null 2>&1; then
6475 if ls -dL / >/dev/null 2>&1; then
6482 if test -d "$1"; then
6488 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6489 ???[sx]*):;;*)false;;esac;fi
6493 as_executable_p=$as_test_x
6495 # Sed expression to map a string onto a valid CPP name.
6496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6498 # Sed expression to map a string onto a valid variable name.
6499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6504 # Save the log message, to keep $[0] and so on meaningful, and to
6505 # report actual input values of CONFIG_FILES etc. instead of their
6506 # values after options handling.
6508 This file was extended by ZKT $as_me 1.0, which was
6509 generated by GNU Autoconf 2.61. Invocation command line was
6511 CONFIG_FILES = $CONFIG_FILES
6512 CONFIG_HEADERS = $CONFIG_HEADERS
6513 CONFIG_LINKS = $CONFIG_LINKS
6514 CONFIG_COMMANDS = $CONFIG_COMMANDS
6517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6522 cat >>$CONFIG_STATUS <<_ACEOF
6523 # Files that config.status was made for.
6524 config_files="$ac_config_files"
6525 config_headers="$ac_config_headers"
6529 cat >>$CONFIG_STATUS <<\_ACEOF
6531 \`$as_me' instantiates files from templates according to the
6532 current configuration.
6534 Usage: $0 [OPTIONS] [FILE]...
6536 -h, --help print this help, then exit
6537 -V, --version print version number and configuration settings, then exit
6538 -q, --quiet do not print progress messages
6539 -d, --debug don't remove temporary files
6540 --recheck update $as_me by reconfiguring in the same conditions
6541 --file=FILE[:TEMPLATE]
6542 instantiate the configuration file FILE
6543 --header=FILE[:TEMPLATE]
6544 instantiate the configuration header FILE
6546 Configuration files:
6549 Configuration headers:
6552 Report bugs to <bug-autoconf@gnu.org>."
6555 cat >>$CONFIG_STATUS <<_ACEOF
6557 ZKT config.status 1.0
6558 configured by $0, generated by GNU Autoconf 2.61,
6559 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6561 Copyright (C) 2006 Free Software Foundation, Inc.
6562 This config.status script is free software; the Free Software Foundation
6563 gives unlimited permission to copy, distribute and modify it."
6569 cat >>$CONFIG_STATUS <<\_ACEOF
6570 # If no file are specified by the user, then we need to provide default
6571 # value. By we need to know if files were specified by the user.
6577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6589 # Handling of the options.
6590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6593 echo "$ac_cs_version"; exit ;;
6594 --debug | --debu | --deb | --de | --d | -d )
6596 --file | --fil | --fi | --f )
6598 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6599 ac_need_defaults=false;;
6600 --header | --heade | --head | --hea )
6602 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6603 ac_need_defaults=false;;
6605 # Conflict between --help and --header
6606 { echo "$as_me: error: ambiguous option: $1
6607 Try \`$0 --help' for more information." >&2
6608 { (exit 1); exit 1; }; };;
6609 --help | --hel | -h )
6610 echo "$ac_cs_usage"; exit ;;
6611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6616 -*) { echo "$as_me: error: unrecognized option: $1
6617 Try \`$0 --help' for more information." >&2
6618 { (exit 1); exit 1; }; } ;;
6620 *) ac_config_targets="$ac_config_targets $1"
6621 ac_need_defaults=false ;;
6627 ac_configure_extra_args=
6629 if $ac_cs_silent; then
6631 ac_configure_extra_args="$ac_configure_extra_args --silent"
6635 cat >>$CONFIG_STATUS <<_ACEOF
6636 if \$ac_cs_recheck; then
6637 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6640 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6644 cat >>$CONFIG_STATUS <<\_ACEOF
6648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6649 ## Running $as_me. ##
6655 cat >>$CONFIG_STATUS <<_ACEOF
6658 cat >>$CONFIG_STATUS <<\_ACEOF
6660 # Handling of arguments.
6661 for ac_config_target in $ac_config_targets
6663 case $ac_config_target in
6664 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6669 { (exit 1); exit 1; }; };;
6674 # If the user did not use the arguments to specify the items to instantiate,
6675 # then the envvar interface is used. Set only those that are not.
6676 # We use the long form for the default assignment because of an extremely
6677 # bizarre bug on SunOS 4.1.3.
6678 if $ac_need_defaults; then
6679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6683 # Have a temporary directory for convenience. Make it in the build tree
6684 # simply because there is no reason against having it here, and in addition,
6685 # creating and moving files from /tmp can sometimes cause problems.
6686 # Hook for its removal unless debugging.
6687 # Note that there is a small window in which the directory will not be cleaned:
6688 # after its creation but before its name has been assigned to `$tmp'.
6692 trap 'exit_status=$?
6693 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6695 trap '{ (exit 1); exit 1; }' 1 2 13 15
6697 # Create a (secure) tmp directory for tmp files.
6700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6701 test -n "$tmp" && test -d "$tmp"
6704 tmp=./conf$$-$RANDOM
6705 (umask 077 && mkdir "$tmp")
6708 echo "$me: cannot create a temporary directory in ." >&2
6709 { (exit 1); exit 1; }
6713 # Set up the sed scripts for CONFIG_FILES section.
6716 # No need to generate the scripts if there are no CONFIG_FILES.
6717 # This happens for instance when ./config.status config.h
6718 if test -n "$CONFIG_FILES"; then
6725 for ac_last_try in false false false false false :; do
6726 cat >conf$$subs.sed <<_ACEOF
6727 SHELL!$SHELL$ac_delim
6728 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6729 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6730 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6731 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6732 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6733 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6734 exec_prefix!$exec_prefix$ac_delim
6735 prefix!$prefix$ac_delim
6736 program_transform_name!$program_transform_name$ac_delim
6737 bindir!$bindir$ac_delim
6738 sbindir!$sbindir$ac_delim
6739 libexecdir!$libexecdir$ac_delim
6740 datarootdir!$datarootdir$ac_delim
6741 datadir!$datadir$ac_delim
6742 sysconfdir!$sysconfdir$ac_delim
6743 sharedstatedir!$sharedstatedir$ac_delim
6744 localstatedir!$localstatedir$ac_delim
6745 includedir!$includedir$ac_delim
6746 oldincludedir!$oldincludedir$ac_delim
6747 docdir!$docdir$ac_delim
6748 infodir!$infodir$ac_delim
6749 htmldir!$htmldir$ac_delim
6750 dvidir!$dvidir$ac_delim
6751 pdfdir!$pdfdir$ac_delim
6752 psdir!$psdir$ac_delim
6753 libdir!$libdir$ac_delim
6754 localedir!$localedir$ac_delim
6755 mandir!$mandir$ac_delim
6757 ECHO_C!$ECHO_C$ac_delim
6758 ECHO_N!$ECHO_N$ac_delim
6759 ECHO_T!$ECHO_T$ac_delim
6761 build_alias!$build_alias$ac_delim
6762 host_alias!$host_alias$ac_delim
6763 target_alias!$target_alias$ac_delim
6765 CFLAGS!$CFLAGS$ac_delim
6766 LDFLAGS!$LDFLAGS$ac_delim
6767 CPPFLAGS!$CPPFLAGS$ac_delim
6768 ac_ct_CC!$ac_ct_CC$ac_delim
6769 EXEEXT!$EXEEXT$ac_delim
6770 OBJEXT!$OBJEXT$ac_delim
6771 SIGNZONE_PROG!$SIGNZONE_PROG$ac_delim
6774 EGREP!$EGREP$ac_delim
6775 LIBOBJS!$LIBOBJS$ac_delim
6776 LTLIBOBJS!$LTLIBOBJS$ac_delim
6779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
6781 elif $ac_last_try; then
6782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6784 { (exit 1); exit 1; }; }
6786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6791 if test -n "$ac_eof"; then
6792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6793 ac_eof=`expr $ac_eof + 1`
6796 cat >>$CONFIG_STATUS <<_ACEOF
6797 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6802 s/^/s,@/; s/!/@,|#_!!_#|/
6805 s/'"$ac_delim"'$/,g/; t
6807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6808 ' >>$CONFIG_STATUS <conf$$subs.sed
6809 rm -f conf$$subs.sed
6810 cat >>$CONFIG_STATUS <<_ACEOF
6817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6819 # trailing colons and then remove the whole line if VPATH becomes empty
6820 # (actually we leave an empty line to preserve line numbers).
6821 if test "x$srcdir" = x.; then
6822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6826 s/^\([^=]*=[ ]*\):*/\1/
6832 cat >>$CONFIG_STATUS <<\_ACEOF
6833 fi # test -n "$CONFIG_FILES"
6836 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6839 :[FHLC]) ac_mode=$ac_tag; continue;;
6841 case $ac_mode$ac_tag in
6843 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6844 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6845 { (exit 1); exit 1; }; };;
6846 :[FH]-) ac_tag=-:-;;
6847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6864 -) ac_f="$tmp/stdin";;
6865 *) # Look for the file first in the build tree, then in the source tree
6866 # (if the path is not absolute). The absolute path cannot be DOS-style,
6867 # because $ac_f cannot contain `:'.
6871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6873 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6874 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6875 { (exit 1); exit 1; }; };;
6877 ac_file_inputs="$ac_file_inputs $ac_f"
6880 # Let's still pretend it is `configure' which instantiates (i.e., don't
6881 # use $as_me), people would be surprised to read:
6882 # /* config.h. Generated by config.status. */
6883 configure_input="Generated from "`IFS=:
6884 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6885 if test x"$ac_file" != x-; then
6886 configure_input="$ac_file. $configure_input"
6887 { echo "$as_me:$LINENO: creating $ac_file" >&5
6888 echo "$as_me: creating $ac_file" >&6;}
6892 *:-:* | *:-) cat >"$tmp/stdin";;
6897 ac_dir=`$as_dirname -- "$ac_file" ||
6898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6899 X"$ac_file" : 'X\(//\)[^/]' \| \
6900 X"$ac_file" : 'X\(//\)$' \| \
6901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6922 -*) as_dir=./$as_dir;;
6924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6929 *) as_qdir=$as_dir;;
6931 as_dirs="'$as_qdir' $as_dirs"
6932 as_dir=`$as_dirname -- "$as_dir" ||
6933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6934 X"$as_dir" : 'X\(//\)[^/]' \| \
6935 X"$as_dir" : 'X\(//\)$' \| \
6936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6955 test -d "$as_dir" && break
6957 test -z "$as_dirs" || eval "mkdir $as_dirs"
6958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6960 { (exit 1); exit 1; }; }; }
6964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6967 # A ".." for each directory in $ac_dir_suffix.
6968 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6969 case $ac_top_builddir_sub in
6970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6974 ac_abs_top_builddir=$ac_pwd
6975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6976 # for backward compatibility:
6977 ac_top_builddir=$ac_top_build_prefix
6980 .) # We are building in place.
6982 ac_top_srcdir=$ac_top_builddir_sub
6983 ac_abs_top_srcdir=$ac_pwd ;;
6984 [\\/]* | ?:[\\/]* ) # Absolute name.
6985 ac_srcdir=$srcdir$ac_dir_suffix;
6986 ac_top_srcdir=$srcdir
6987 ac_abs_top_srcdir=$srcdir ;;
6989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6990 ac_top_srcdir=$ac_top_build_prefix$srcdir
6991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7004 cat >>$CONFIG_STATUS <<\_ACEOF
7005 # If the template does not know about datarootdir, expand it.
7006 # FIXME: This hack should be removed a few years after 2.60.
7007 ac_datarootdir_hack=; ac_datarootdir_seen=
7009 case `sed -n '/datarootdir/ {
7018 ' $ac_file_inputs` in
7019 *datarootdir*) ac_datarootdir_seen=yes;;
7020 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7021 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7022 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7024 cat >>$CONFIG_STATUS <<_ACEOF
7025 ac_datarootdir_hack='
7026 s&@datadir@&$datadir&g
7027 s&@docdir@&$docdir&g
7028 s&@infodir@&$infodir&g
7029 s&@localedir@&$localedir&g
7030 s&@mandir@&$mandir&g
7031 s&\\\${datarootdir}&$datarootdir&g' ;;
7035 # Neutralize VPATH when `$srcdir' = `.'.
7036 # Shell code in configure.ac might set extrasub.
7037 # FIXME: do we really want to maintain this feature?
7038 cat >>$CONFIG_STATUS <<_ACEOF
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7045 s&@configure_input@&$configure_input&;t t
7046 s&@top_builddir@&$ac_top_builddir_sub&;t t
7047 s&@srcdir@&$ac_srcdir&;t t
7048 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7049 s&@top_srcdir@&$ac_top_srcdir&;t t
7050 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7051 s&@builddir@&$ac_builddir&;t t
7052 s&@abs_builddir@&$ac_abs_builddir&;t t
7053 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7054 $ac_datarootdir_hack
7055 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7060 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7061 which seems to be undefined. Please make sure it is defined." >&5
7062 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7063 which seems to be undefined. Please make sure it is defined." >&2;}
7067 -) cat "$tmp/out"; rm -f "$tmp/out";;
7068 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7077 # Transform confdefs.h into a sed script `conftest.defines', that
7078 # substitutes the proper values into config.h.in to produce config.h.
7079 rm -f conftest.defines conftest.tail
7080 # First, append a space to every undef/define line, to ease matching.
7081 echo 's/$/ /' >conftest.defines
7082 # Then, protect against being on the right side of a sed subst, or in
7083 # an unquoted here document, in config.status. If some macros were
7084 # called several times there might be several #defines for the same
7085 # symbol, which is useless. But do not sort them, since the last
7086 # AC_DEFINE must be honored.
7087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7088 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7089 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7090 # PARAMS is the parameter list in the macro definition--in most cases, it's
7091 # just an empty string.
7092 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7093 ac_dB='\\)[ (].*,\\1define\\2'
7101 s/^[ ]*#[ ]*define[ ][ ]*//
7106 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7107 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7108 ' >>conftest.defines
7110 # Remove the space that was appended to ease matching.
7111 # Then replace #undef with comments. This is necessary, for
7112 # example, in the case of _POSIX_SOURCE, which is predefined and required
7113 # on some systems where configure will not decide to define it.
7114 # (The regexp can be short, since the line contains either #define or #undef.)
7116 s,^[ #]*u.*,/* & */,' >>conftest.defines
7118 # Break up conftest.defines:
7121 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7122 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7123 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7125 ac_in='$ac_file_inputs'
7126 ac_out='"$tmp/out1"'
7127 ac_nxt='"$tmp/out2"'
7131 # Write a here document:
7132 cat >>$CONFIG_STATUS <<_ACEOF
7133 # First, check the format of the line:
7134 cat >"\$tmp/defines.sed" <<\\CEOF
7135 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7136 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7140 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7142 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7143 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7144 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7145 grep . conftest.tail >/dev/null || break
7146 rm -f conftest.defines
7147 mv conftest.tail conftest.defines
7149 rm -f conftest.defines conftest.tail
7151 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7152 cat >>$CONFIG_STATUS <<\_ACEOF
7153 if test x"$ac_file" != x-; then
7154 echo "/* $configure_input */" >"$tmp/config.h"
7155 cat "$ac_result" >>"$tmp/config.h"
7156 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7158 echo "$as_me: $ac_file is unchanged" >&6;}
7161 mv "$tmp/config.h" $ac_file
7164 echo "/* $configure_input */"
7176 { (exit 0); exit 0; }
7178 chmod +x $CONFIG_STATUS
7179 ac_clean_files=$ac_clean_files_save
7182 # configure is writing to config.log, and then calls config.status.
7183 # config.status does its own redirection, appending to config.log.
7184 # Unfortunately, on DOS this fails, as config.log is still kept open
7185 # by configure, so config.status won't be able to write to it; its
7186 # output is simply discarded. So we exec the FD to /dev/null,
7187 # effectively closing config.log, so it can be properly (re)opened and
7188 # appended to by config.status. When coming back to configure, we
7189 # need to make the FD available again.
7190 if test "$no_create" != yes; then
7192 ac_config_status_args=
7193 test "$silent" = yes &&
7194 ac_config_status_args="$ac_config_status_args --quiet"
7196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7199 # would make configure fail if this is the last instruction.
7200 $ac_cs_success || { (exit 1); exit 1; }