2 # From configure.in Revision: 1.251.2.92 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev/null 6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
571 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file="src/main.c"
581 ac_default_prefix=/usr/local/squid
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>
627 program_transform_name
668 INSTALL_STRIP_PROGRAM
672 MAINTAINER_MODE_FALSE
701 ENABLE_WIN32SPECIFIC_TRUE
702 ENABLE_WIN32SPECIFIC_FALSE
715 USE_DELAY_POOLS_FALSE
732 MAKE_LEAKFINDER_FALSE
761 NEED_OWN_SNPRINTF_TRUE
762 NEED_OWN_SNPRINTF_FALSE
763 NEED_OWN_STRNSTR_TRUE
764 NEED_OWN_STRNSTR_FALSE
765 NEED_OWN_STRCASESTR_TRUE
766 NEED_OWN_STRCASESTR_FALSE
774 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
926 -help | --help | --hel | --he | -h)
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 # Obsolete; use --without-fp.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1075 -site=* | --site=* | --sit=*)
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures this package to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --enable-maintainer-mode enable make rules and dependencies not useful
1361 (and sometimes confusing) to the casual installer
1362 --disable-dependency-tracking Speeds up one-time builds
1363 --enable-dependency-tracking Do not reject slow dependency extractors
1364 --enable-dlmalloc=LIB Compile & use the malloc package by Doug Lea
1365 --enable-gnuregex Compile GNUregex. Unless you have reason to use this
1366 option, you should not enable it. This library file
1367 is usually only required on Windows and very old
1368 Unix boxes which do not have their own regex library
1370 --enable-xmalloc-statistics
1371 Show malloc statistics in status page
1372 --enable-carp Enable CARP support
1373 --enable-async-io=N_THREADS
1375 --with-aufs-threads=N_THREADS
1377 --enable-storeio=ufs,aufs
1378 --enable-storeio=\"list of modules\"
1379 Build support for the list of store I/O modules.
1380 The default is only to build the "ufs" module.
1381 See src/fs for a list of available modules, or
1382 Programmers Guide section <not yet written>
1383 for details on how to build your custom store module
1384 --enable-heap-replacement
1385 Backwards compatibility option. Please use the
1386 new --enable-removal-policies directive instead.
1387 --enable-removal-policies=\"list of policies\"
1388 Build support for the list of removal policies.
1389 The default is only to build the "lru" module.
1390 See src/repl for a list of available modules, or
1391 Programmers Guide section 9.9 for details on how
1392 to build your custom policy
1393 --enable-icmp Enable ICMP pinging
1394 --enable-delay-pools Enable delay pools to limit bandwidth usage
1395 --enable-icap-support Enable iCAP client capability
1396 --enable-useragent-log Enable logging of User-Agent header
1397 --enable-referer-log Enable logging of Referer header
1398 --disable-wccp Disable Web Cache Coordination Protocol
1399 --enable-kill-parent-hack
1400 Kill parent on shutdown
1401 --enable-snmp Enable SNMP monitoring
1402 --enable-cachemgr-hostname=hostname
1403 Make cachemgr.cgi default to this host
1404 --enable-arp-acl Enable use of ARP ACL lists (ether address)
1405 --enable-htcp Enable HTCP protocol
1406 --enable-ssl Enable ssl gatewaying support using OpenSSL
1407 --enable-forw-via-db Enable Forw/Via database
1408 --enable-cache-digests Use Cache Digests
1409 see http://www.squid-cache.org/FAQ/FAQ-16.html
1410 --enable-default-err-language=lang
1411 Select default language for Error pages (see
1413 --enable-err-languages=\"lang1 lang2..\"
1414 Select languages to be installed. (All will be
1415 installed by default)
1416 --enable-poll Enable poll() instead of select(). Normally poll
1417 is preferred over select, but configure knows poll
1418 is broken on some platforms. If you think you are
1419 smarter than the configure script, you may enable
1420 poll with this option.
1421 --disable-poll Disable the use of poll().
1422 --disable-http-violations
1423 This allows you to remove code which is known to
1424 violate the HTTP protocol specification.
1425 --enable-ipf-transparent
1426 Enable Transparent Proxy support for systems
1427 using IP-Filter network address redirection.
1428 --enable-pf-transparent
1429 Enable Transparent Proxy support for systems
1430 using PF network address redirection.
1431 --enable-linux-netfilter
1432 Enable Transparent Proxy support for Linux 2.4.
1433 --enable-large-cache-files
1434 Enable support for large cache files (>2GB).
1435 WARNING: on-disk cache format is changed by this option
1437 Enable Leak Finding code. Enabling this alone
1438 does nothing; you also have to modify the source
1439 code to use the leak finding functions. Probably
1440 Useful for hackers only.
1441 --disable-ident-lookups
1442 This allows you to remove code that performs
1443 Ident (RFC 931) lookups.
1444 --disable-internal-dns This prevents Squid from directly sending and
1445 receiving DNS messages, and instead enables the
1446 old external 'dnsserver' processes.
1447 --enable-truncate This uses truncate() instead of unlink() when
1448 removing cache files. Truncate gives a little
1449 performance improvement, but may cause problems
1450 when used with async I/O. Truncate uses more
1451 filesystem inodes than unlink..
1452 --disable-hostname-checks
1453 Squid by default rejects any host names with
1454 odd characters in their name to conform with
1455 internet standards. If you disagree with this
1456 you may use this switch to turn off any such
1457 checks, provided that the resolver used by
1458 Squid does not reject such host names.. This
1459 may be required to participate in testbeds for
1460 international domain names.
1461 --enable-underscores Squid by default rejects any host names with _
1462 in their name to conform with internet standards.
1463 If you disagree with this you may allow _ in
1464 hostnames by using this switch, provided that
1465 the resolver library on the host where Squid runs
1466 does not reject _ in hostnames...
1467 --enable-auth=\"list of auth scheme modules\"
1468 Build support for the list of authentication schemes.
1469 The default is to build support for the Basic scheme.
1470 See src/auth for a list of available modules, or
1471 Programmers Guide section authentication schemes
1472 for details on how to build your custom auth scheme
1474 --enable-auth-modules=\"list of helpers\"
1475 Backwards compatibility alias for
1476 --enable-basic-auth-helpers
1477 --enable-basic-auth-helpers=\"list of helpers\"
1478 This option selects which basic scheme proxy_auth
1479 helpers to build and install as part of the normal
1480 build process. For a list of available
1481 helpers see the helpers/basic_auth directory.
1482 --enable-ntlm-auth-helpers=\"list of helpers\"
1483 This option selects which proxy_auth ntlm helpers
1484 to build and install as part of the normal build
1485 process. For a list of available helpers see
1486 the helpers/ntlm_auth directory.
1487 --enable-digest-auth-helpers=\"list of helpers\"
1488 This option selects which digest scheme authentication
1489 helpers to build and install as part of the normal build
1490 process. For a list of available helpers see the
1491 helpers/digest_auth directory.
1492 --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the
1493 Authentication steps can allow squid to still authenticate
1495 --enable-external-acl-helpers=\"list of helpers\"
1496 This option selects which external_acl helpers to
1497 build and install as part of the normal build
1498 process. For a list of available helpers see the
1499 helpers/external_acl directory.
1500 --disable-unlinkd Do not use unlinkd
1501 --enable-stacktraces Enable automatic call backtrace on fatal errors
1502 --enable-x-accelerator-vary
1503 Enable support for the X-Accelerator-Vary
1504 HTTP header. Can be used to indicate
1505 variance within an accelerator setup.
1506 Typically used together with other code
1507 that adds custom HTTP headers to the requests.
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-aufs-threads=N_THREADS
1513 Tune the number of worker threads for the aufs object
1515 --with-pthreads Use POSIX Threads
1516 --with-aio Use POSIX AIO
1517 --with-dl Use dynamic linking
1518 --with-openssl=prefix
1519 Compile with the OpenSSL libraries. The path to
1520 the OpenSSL development libraries and headers
1521 installation can be specified if outside of the
1522 system standard directories
1523 --with-coss-membuf-size COSS membuf size (default 1048576 bytes)
1524 --with-large-files Enable support for large files (logs etc).
1525 --with-build-environment=model
1526 The build environment to use. Normally one of
1527 POSIX_V6_ILP32_OFF32 32 bits
1528 POSIX_V6_ILP32_OFFBIG 32 bits with large file support
1529 POSIX_V6_LP64_OFF64 64 bits
1530 POSIX_V6_LPBIG_OFFBIG large pointers and files
1531 XBS5_ILP32_OFF32 32 bits (legacy)
1532 XBS5_ILP32_OFFBIG 32 bits with large file support (legacy)
1533 XBS5_LP64_OFF64 64 bits (legacy)
1534 XBS5_LPBIG_OFFBIG large pointers and files (legacy)
1535 default The default for your OS
1536 --with-samba-sources=/path/to/samba-source-tree
1537 Path where the correct Samba source files can be
1538 found while building winbind helpers. (defaults to
1539 use internal copies of the headers from Samba-2.2.7)
1541 --with-maxfd=N Override maximum number of filedescriptors. Useful
1542 if you build as another user who is not privileged
1543 to use the number of filedescriptors you want the
1544 resulting binary to support
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" || continue
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1586 .) # We are building in place.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1620 generated by GNU Autoconf 2.61
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.61. Invocation command line was
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 echo "PATH: $as_dir"
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_must_keep_next=false
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723 -* ) ac_must_keep_next=true ;;
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1750 # The following way of writing the cache mishandles newlines in values,
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1761 _ | IFS | as_nl) ;; #(
1762 *) $as_unset $ac_var ;;
1767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768 *${as_nl}ac_space=\ *)
1770 "s/'\''/'\''\\\\'\'''\''/g;
1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1787 for ac_var in $ac_subst_vars
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1797 if test -n "$ac_subst_files"; then
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1804 for ac_var in $ac_subst_files
1806 eval ac_val=\$$ac_var
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 echo "$ac_var='\''$ac_val'\''"
1815 if test -s confdefs.h; then
1825 test "$ac_signal" != 0 &&
1826 echo "$as_me: caught signal $ac_signal"
1827 echo "$as_me: exit $exit_status"
1829 rm -f core *.core core.conftest.* &&
1830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833 for ac_signal in 1 2 13 15; do
1834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1841 # Predefined preprocessor variables.
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1875 set x "$ac_default_prefix/share/config.site" \
1876 "$ac_default_prefix/etc/config.site"
1881 if test -r "$ac_site_file"; then
1882 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1901 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1906 # Check that the precious variables saved in the cache have kept the same
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1928 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1929 echo "$as_me: former value: $ac_old_val" >&2;}
1930 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1931 echo "$as_me: current value: $ac_new_val" >&2;}
1932 ac_cache_corrupted=:
1935 # Pass precious variables to config.status.
1936 if test "$ac_new_set" = set; then
1938 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 *) ac_arg=$ac_var=$ac_new_val ;;
1941 case " $ac_configure_args " in
1942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1943 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947 if $ac_cache_corrupted; then
1948 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1950 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1952 { (exit 1); exit 1; }; }
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 for ac_dir in cfgaux "$srcdir"/cfgaux; do
1980 if test -f "$ac_dir/install-sh"; then
1982 ac_install_sh="$ac_aux_dir/install-sh -c"
1984 elif test -f "$ac_dir/install.sh"; then
1986 ac_install_sh="$ac_aux_dir/install.sh -c"
1988 elif test -f "$ac_dir/shtool"; then
1990 ac_install_sh="$ac_aux_dir/shtool install -c"
1994 if test -z "$ac_aux_dir"; then
1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5
1996 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;}
1997 { (exit 1); exit 1; }; }
2000 # These three variables are undocumented and unsupported,
2001 # and are intended to be withdrawn in a future Autoconf release.
2002 # They can cause serious problems if a builder's source tree is in a directory
2003 # whose full name contains unusual characters.
2004 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2005 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2006 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009 am__api_version="1.6"
2010 # Find a good install program. We prefer a C program (faster),
2011 # so one script is as good as another. But avoid the broken or
2012 # incompatible versions:
2013 # SysV /etc/install, /usr/sbin/install
2014 # SunOS /usr/etc/install
2015 # IRIX /sbin/install
2017 # AmigaOS /C/install, which installs bootblocks on floppy discs
2018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021 # OS/2's system install, which has a completely different semantic
2022 # ./install, which can be erroneously created by make from ./install.sh.
2023 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2024 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2025 if test -z "$INSTALL"; then
2026 if test "${ac_cv_path_install+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 # Account for people who put trailing slashes in PATH elements.
2036 ./ | .// | /cC/* | \
2037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041 # OSF1 and SCO ODT 3.0 have their own names for install.
2042 # Don't use installbsd from OSF since it installs stuff as root
2044 for ac_prog in ginstall scoinst install; do
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2047 if test $ac_prog = install &&
2048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049 # AIX install. It has an incompatible calling convention.
2051 elif test $ac_prog = install &&
2052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053 # program-specific install script used by HP pwplus--don't use.
2056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2069 if test "${ac_cv_path_install+set}" = set; then
2070 INSTALL=$ac_cv_path_install
2072 # As a last resort, use the slow shell script. Don't cache a
2073 # value for INSTALL within a source directory, because that will
2074 # break other packages using the cache if that directory is
2075 # removed, or if the value is a relative name.
2076 INSTALL=$ac_install_sh
2079 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2080 echo "${ECHO_T}$INSTALL" >&6; }
2082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083 # It thinks the first close brace ends the variable substitution.
2084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094 echo timestamp > conftest.file
2095 # Do `set' in a subshell so we don't clobber the current shell's
2096 # arguments. Must try -L first in case configure is actually a
2097 # symlink; some systems play weird games with the mod time of symlinks
2098 # (eg FreeBSD returns the mod time of the symlink's containing
2101 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102 if test "$*" = "X"; then
2104 set X `ls -t $srcdir/configure conftest.file`
2107 if test "$*" != "X $srcdir/configure conftest.file" \
2108 && test "$*" != "X conftest.file $srcdir/configure"; then
2110 # If neither matched, then we have a broken ls. This can happen
2111 # if, for instance, CONFIG_SHELL is bash and it inherits a
2112 # broken ls alias from the environment. This has actually
2113 # happened. Such a system could not be considered "sane".
2114 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2115 alias in your environment" >&5
2116 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&2;}
2118 { (exit 1); exit 1; }; }
2121 test "$2" = conftest.file
2127 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128 Check your system clock" >&5
2129 echo "$as_me: error: newly created file is older than distributed files!
2130 Check your system clock" >&2;}
2131 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: result: yes" >&5
2134 echo "${ECHO_T}yes" >&6; }
2135 test "$program_prefix" != NONE &&
2136 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137 # Use a double $ so make ignores it.
2138 test "$program_suffix" != NONE &&
2139 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140 # Double any \ or $. echo might interpret backslashes.
2141 # By default was `s,x,x', remove it if useless.
2142 cat <<\_ACEOF >conftest.sed
2143 s/[\\$]/&&/g;s/;s,x,x,$//
2145 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2149 # expand $ac_aux_dir to an absolute path
2150 am_aux_dir=`cd $ac_aux_dir && pwd`
2152 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2153 # Use eval to expand $SHELL
2154 if eval "$MISSING --run true"; then
2155 am_missing_run="$MISSING --run "
2158 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2159 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2162 for ac_prog in gawk mawk nawk awk
2164 # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy $ac_prog; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_AWK+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$AWK"; then
2172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_AWK="$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 if test -n "$AWK"; then
2193 { echo "$as_me:$LINENO: result: $AWK" >&5
2194 echo "${ECHO_T}$AWK" >&6; }
2196 { echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6; }
2201 test -n "$AWK" && break
2204 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2205 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2206 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 cat >conftest.make <<\_ACEOF
2213 @echo '@@@%%%=$(MAKE)=@@@%%%'
2215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218 eval ac_cv_prog_make_${ac_make}_set=yes;;
2220 eval ac_cv_prog_make_${ac_make}_set=no;;
2224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2225 { echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6; }
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2231 SET_MAKE="MAKE=${MAKE-make}"
2234 # test to see if srcdir already configured
2235 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236 test -f $srcdir/config.status; then
2237 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239 { (exit 1); exit 1; }; }
2242 # Define the identity of the package.
2244 VERSION=2.5.STABLE10
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE "$PACKAGE"
2252 cat >>confdefs.h <<_ACEOF
2253 #define VERSION "$VERSION"
2256 # Some tools Automake needs.
2258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2273 AMTAR=${AMTAR-"${am_missing_run}tar"}
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'. However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312 { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2321 if test -z "$ac_cv_prog_STRIP"; then
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$ac_ct_STRIP"; then
2331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_STRIP="strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2359 if test "x$ac_ct_STRIP" = x; then
2362 case $cross_compiling:$ac_tool_warned in
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2375 STRIP="$ac_cv_prog_STRIP"
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2381 # We need awk for the "check" target. The system "awk" is bad on
2386 # Add the stamp file to the list of files AC keeps track of,
2387 # along with our hook.
2388 ac_config_headers="$ac_config_headers include/autoconf.h"
2393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395 # Check whether --enable-maintainer-mode was given.
2396 if test "${enable_maintainer_mode+set}" = set; then
2397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2399 USE_MAINTAINER_MODE=no
2402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2406 if test $USE_MAINTAINER_MODE = yes; then
2407 MAINTAINER_MODE_TRUE=
2408 MAINTAINER_MODE_FALSE='#'
2410 MAINTAINER_MODE_TRUE='#'
2411 MAINTAINER_MODE_FALSE=
2414 MAINT=$MAINTAINER_MODE_TRUE
2418 if test -z "$LDFLAGS"; then
2422 PRESET_CFLAGS="$CFLAGS"
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$ac_cv_prog_CC"; then
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2506 if test "x$ac_ct_CC" = x; then
2509 case $cross_compiling:$ac_tool_warned in
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned=yes ;;
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$CC" && break
2666 if test -z "$CC"; then
2668 for ac_prog in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$ac_ct_CC" && break
2710 if test "x$ac_ct_CC" = x; then
2713 case $cross_compiling:$ac_tool_warned in
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned=yes ;;
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (ac_try="$ac_compiler --version >&5"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -V >&5"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -V >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2796 # only as a last resort. b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions. Remove them first so a
2801 # subsequent execution test works.
2803 for ac_file in $ac_files
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 if { (ac_try="$ac_link_default"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2827 for ac_file in $ac_files ''
2829 test -f "$ac_file" || continue
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2834 # We found the default executable, but exeext='' is most
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880 if { ac_try='./$ac_file'
2881 { (case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2892 if test "$cross_compiling" = maybe; then
2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2933 for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2950 rm -f conftest$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954 rm -f conftest.$ac_ext
2955 EXEEXT=$ac_cv_exeext
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try="$ac_compile"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3216 if test "$GCC" = yes; then
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_prog_cc_c89=no
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_prog_cc_c89=$ac_arg
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 rm -f conftest.$ac_ext
3323 case "x$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6; } ;;
3328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329 echo "${ECHO_T}unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 rm -f .deps 2>/dev/null
3343 mkdir .deps 2>/dev/null
3344 if test -d .deps; then
3347 # MS-DOS does not allow filenames that begin with a dot.
3350 rmdir .deps 2>/dev/null
3353 ac_config_commands="$ac_config_commands depfiles"
3356 am_make=${MAKE-make}
3357 cat > confinc << 'END'
3361 # If we don't find an include directive, just comment out the code.
3362 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3363 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3367 # First try GNU make style include.
3368 echo "include confinc" > confmf
3369 # We grep out `Entering directory' and `Leaving directory'
3370 # messages which can occur if `w' ends up in MAKEFLAGS.
3371 # In particular we don't look at `^make:' because GNU make might
3372 # be invoked under some other name (usually "gmake"), in which
3373 # case it prints its new name instead of `make'.
3374 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3379 # Now try BSD make style include.
3380 if test "$am__include" = "#"; then
3381 echo '.include "confinc"' > confmf
3382 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3383 am__include=.include
3390 { echo "$as_me:$LINENO: result: $_am_result" >&5
3391 echo "${ECHO_T}$_am_result" >&6; }
3392 rm -f confinc confmf
3394 # Check whether --enable-dependency-tracking was given.
3395 if test "${enable_dependency_tracking+set}" = set; then
3396 enableval=$enable_dependency_tracking;
3399 if test "x$enable_dependency_tracking" != xno; then
3400 am_depcomp="$ac_aux_dir/depcomp"
3405 if test "x$enable_dependency_tracking" != xno; then
3416 depcc="$CC" am_compiler_list=
3418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424 # We make a subdir and do the tests there. Otherwise we can end up
3425 # making bogus files that we don't know about and never remove. For
3426 # instance it was reported that on HP-UX the gcc test will end up
3427 # making a dummy file named `D' -- because `-MD' means `put the output
3430 # Copy depcomp to subdir because otherwise we won't find it if we're
3431 # using a relative directory.
3432 cp "$am_depcomp" conftest.dir
3435 am_cv_CC_dependencies_compiler_type=none
3436 if test "$am_compiler_list" = ""; then
3437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3439 for depmode in $am_compiler_list; do
3440 # We need to recreate these files for each test, as the compiler may
3441 # overwrite some of them when testing with obscure command lines.
3442 # This happens at least with the AIX C compiler.
3443 echo '#include "conftest.h"' > conftest.c
3444 echo 'int i;' > conftest.h
3445 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3449 # after this tag, mechanisms are not by side-effect, so they'll
3450 # only be used when explicitly requested
3451 if test "x$enable_dependency_tracking" = xyes; then
3459 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460 # mode. It turns out that the SunPro C++ compiler does not properly
3461 # handle `-M -o', and we need to detect this.
3462 if depmode=$depmode \
3463 source=conftest.c object=conftest.o \
3464 depfile=conftest.Po tmpdepfile=conftest.TPo \
3465 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3466 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3468 am_cv_CC_dependencies_compiler_type=$depmode
3476 am_cv_CC_dependencies_compiler_type=none
3480 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3481 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3482 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3485 if test "x$CC" != xcc; then
3486 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3487 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3489 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3490 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3492 set dummy $CC; ac_cc=`echo $2 |
3493 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3494 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3512 # Make sure it works both with $CC and with simple cc.
3513 # We do the test twice because some compilers refuse to overwrite an
3514 # existing .o file with -o, though they will create one.
3515 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3517 if { (case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_try") 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_try") 2>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); };
3536 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3537 if test "x$CC" != xcc; then
3538 # Test first that cc exists at all.
3539 if { ac_try='cc -c conftest.$ac_ext >&5'
3540 { (case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_try") 2>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3551 if { (case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_try") 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_try") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); };
3573 # cc exists but doesn't like -o.
3574 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3579 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3581 rm -f core conftest*
3584 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3585 { echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6; }
3588 { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3591 cat >>confdefs.h <<\_ACEOF
3592 #define NO_MINUS_C_MINUS_O 1
3597 # FIXME: we rely on the cache variable name because
3598 # there is no other way.
3600 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3601 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3602 # Losing compiler, so override with the script.
3603 # FIXME: It is wrong to rewrite CC.
3604 # But if we don't then we get into trouble of one sort or another.
3605 # A longer-term fix would be to have automake use am__CC in this case,
3606 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3607 CC="$am_aux_dir/compile $CC"
3610 # Make sure we can run config.sub.
3611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3612 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3613 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3614 { (exit 1); exit 1; }; }
3616 { echo "$as_me:$LINENO: checking build system type" >&5
3617 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_build+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 ac_build_alias=$build_alias
3622 test "x$ac_build_alias" = x &&
3623 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3624 test "x$ac_build_alias" = x &&
3625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3627 { (exit 1); exit 1; }; }
3628 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3629 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3630 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3631 { (exit 1); exit 1; }; }
3634 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3635 echo "${ECHO_T}$ac_cv_build" >&6; }
3636 case $ac_cv_build in
3638 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3639 echo "$as_me: error: invalid value of canonical build" >&2;}
3640 { (exit 1); exit 1; }; };;
3643 ac_save_IFS=$IFS; IFS='-'
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3656 { echo "$as_me:$LINENO: checking host system type" >&5
3657 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3658 if test "${ac_cv_host+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 if test "x$host_alias" = x; then
3662 ac_cv_host=$ac_cv_build
3664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3666 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3667 { (exit 1); exit 1; }; }
3671 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3672 echo "${ECHO_T}$ac_cv_host" >&6; }
3675 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3676 echo "$as_me: error: invalid value of canonical host" >&2;}
3677 { (exit 1); exit 1; }; };;
3680 ac_save_IFS=$IFS; IFS='-'
3686 # Remember, the first character of IFS is used to create $*,
3687 # except with old shells:
3690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3696 REGEXLIB='' # -lregex
3697 LIBREGEX='' # libregex.a
3699 # Extract the first word of "pkg-config", so it can be a program name with args.
3700 set dummy pkg-config; ac_word=$2
3701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3703 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="false"
3730 PKGCONFIG=$ac_cv_path_PKGCONFIG
3731 if test -n "$PKGCONFIG"; then
3732 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3733 echo "${ECHO_T}$PKGCONFIG" >&6; }
3735 { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3756 if test -z "$CPP"; then
3757 if test "${ac_cv_prog_CPP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Double quotes because CPP needs to be expanded
3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in grep ggrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998 # Check for GNU ac_path_GREP and select it if it is found.
3999 # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'GREP' >> "conftest.nl"
4012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_GREP="$ac_path_GREP"
4018 ac_path_GREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_GREP_found && break 3
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_GREP=$GREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4063 # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4087 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 ac_count=`expr $ac_count + 1`
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_EGREP_found && break 3
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cv_path_EGREP=$EGREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4138 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4140 if test "${ac_cv_header_stdc+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_compile") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest.$ac_objext; then
4179 ac_cv_header_stdc=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_header_stdc=no
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then
4204 ac_cv_header_stdc=no
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then
4225 ac_cv_header_stdc=no
4231 if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4267 rm -f conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_header_stdc=no
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define STDC_HEADERS 1
4313 if test -z "$EXEEXT"; then
4316 # automake automatically adds .exe when installing binaries
4326 ENABLE_WIN32SPECIFIC_TRUE=
4327 ENABLE_WIN32SPECIFIC_FALSE='#'
4329 ENABLE_WIN32SPECIFIC_TRUE='#'
4330 ENABLE_WIN32SPECIFIC_FALSE=
4338 ENABLE_WIN32SPECIFIC_TRUE=
4339 ENABLE_WIN32SPECIFIC_FALSE='#'
4341 ENABLE_WIN32SPECIFIC_TRUE='#'
4342 ENABLE_WIN32SPECIFIC_FALSE=
4348 if test -z "$CACHE_HTTP_PORT"; then
4349 CACHE_HTTP_PORT="3128"
4351 if test -z "$CACHE_ICP_PORT"; then
4352 CACHE_ICP_PORT="3130"
4355 cat >>confdefs.h <<_ACEOF
4356 #define CACHE_HTTP_PORT $CACHE_HTTP_PORT
4359 cat >>confdefs.h <<_ACEOF
4360 #define CACHE_ICP_PORT $CACHE_ICP_PORT
4364 cat >>confdefs.h <<_ACEOF
4365 #define CONFIG_HOST_TYPE "$host"
4369 cat >>confdefs.h <<_ACEOF
4370 #define SQUID_CONFIGURE_OPTIONS "$ac_configure_args"
4376 CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
4380 if test -z "$PRESET_CFLAGS"; then
4381 if test "$GCC" = "yes"; then
4384 # sunos has too many warnings for this to be useful
4390 # Motorola cc/ld does not like -02 but is ok on -O
4391 CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
4394 CFLAGS="$CFLAGS -Wall"
4400 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
4401 CFLAGS="$CFLAGS -n32 -mips3 -O3 -OPT:Olimit=0:space=OFF \
4402 -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \
4403 -Wl,-woff,85,-woff,84,-woff,134 \
4404 -nostdinc -I/usr/include -D_BSD_SIGNALS"
4407 # Mogul says DEC compilers take both -g and -O2
4408 CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'`
4409 CFLAGS="$CFLAGS -O2"
4417 if test -z "$PRESET_LDFLAGS"; then
4418 if test "$GCC" = "yes"; then
4427 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
4428 LDFLAGS="-n32 -mips3 -nostdlib -L/usr/lib32"
4434 # Check whether --enable-dlmalloc was given.
4435 if test "${enable_dlmalloc+set}" = set; then
4436 enableval=$enable_dlmalloc;
4437 case "$enableval" in
4440 LIBDLMALLOC="libdlmalloc.a"
4441 LIB_MALLOC="-L../lib -ldlmalloc"
4442 echo "dlmalloc enabled"
4446 echo "dlmalloc disabled"
4448 *) use_dlmalloc="yes"
4449 LIB_MALLOC="$enableval"
4450 echo "dlmalloc enabled with $LIB_MALLOC"
4455 if test "${use_dlmalloc-unset}" = unset; then
4458 echo "Enabling dlmalloc for $host"
4460 LIBDLMALLOC="libdlmalloc.a"
4461 LIB_MALLOC="-L../lib -ldlmalloc"
4464 echo "Enabling dlmalloc for $host"
4466 LIBDLMALLOC="libdlmalloc.a"
4467 LIB_MALLOC="-L../lib -ldlmalloc"
4471 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
4472 # Ok. dlmalloc was enabled before, but state may be changed.
4473 # we have to test these again
4474 unset ac_cv_func_mallinfo
4475 unset ac_cv_func_mallocblksize
4476 unset ac_cv_func_free
4477 unset ac_cv_func_realloc
4478 unset ac_cv_func_memalign
4479 unset ac_cv_func_valloc
4480 unset ac_cv_func_pvalloc
4481 unset ac_cv_func_calloc
4482 unset ac_cv_func_cfree
4483 unset ac_cv_func_malloc_trim
4484 unset ac_cv_func_malloc_usable_size
4485 unset ac_cv_func_malloc_stats
4486 unset ac_cv_func_mallinfo
4487 unset ac_cv_func_mallopt
4488 unset ac_cv_lib_gnumalloc
4489 unset ac_cv_header_gnumalloc_h
4490 unset ac_cv_lib_malloc
4491 unset ac_cv_enabled_dlmalloc
4493 if test "$use_dlmalloc" = yes; then
4494 ac_cv_func_mallinfo="yes"
4495 ac_cv_func_mallocblksize="no"
4496 ac_cv_func_free="yes"
4497 ac_cv_func_realloc="yes"
4498 ac_cv_func_memalign="yes"
4499 ac_cv_func_valloc="yes"
4500 ac_cv_func_pvalloc="yes"
4501 ac_cv_func_calloc="yes"
4502 ac_cv_func_cfree="yes"
4503 ac_cv_func_malloc_trim="yes"
4504 ac_cv_func_malloc_usable_size="yes"
4505 ac_cv_func_malloc_stats="yes"
4506 ac_cv_func_mallopt="yes"
4507 ac_cv_lib_gnumalloc="no"
4508 ac_cv_header_gnumalloc_h="no"
4509 ac_cv_lib_malloc="no"
4510 ac_cv_enabled_dlmalloc="yes"
4516 # Check whether --enable-gnuregex was given.
4517 if test "${enable_gnuregex+set}" = set; then
4518 enableval=$enable_gnuregex; USE_GNUREGEX=$enableval
4524 # Check whether --enable-xmalloc-statistics was given.
4525 if test "${enable_xmalloc_statistics+set}" = set; then
4526 enableval=$enable_xmalloc_statistics; if test "$enableval" = "yes" ; then
4527 echo "Malloc statistics enabled"
4528 cat >>confdefs.h <<\_ACEOF
4529 #define XMALLOC_STATISTICS 1
4537 # Check whether --enable-carp was given.
4538 if test "${enable_carp+set}" = set; then
4539 enableval=$enable_carp; if test "$enableval" = "yes" ; then
4540 echo "CARP support enabled"
4541 cat >>confdefs.h <<\_ACEOF
4550 # Check whether --enable-async-io was given.
4551 if test "${enable_async_io+set}" = set; then
4552 enableval=$enable_async_io; case $enableval in
4555 STORE_MODULES="ufs aufs"
4560 aufs_io_threads=$enableval
4562 STORE_MODULES="ufs aufs"
4570 # Check whether --with-aufs-threads was given.
4571 if test "${with_aufs_threads+set}" = set; then
4572 withval=$with_aufs_threads; case $withval in
4574 aufs_io_threads=$withval
4577 echo "ERROR: Invalid --with-aufs-threads argument"
4584 if test "$aufs_io_threads"; then
4585 echo "With $aufs_io_threads aufs threads"
4586 cat >>confdefs.h <<_ACEOF
4587 #define AUFS_IO_THREADS $aufs_io_threads
4593 # Check whether --with-pthreads was given.
4594 if test "${with_pthreads+set}" = set; then
4595 withval=$with_pthreads;
4598 if test "$with_pthreads" = "yes"; then
4599 echo "With pthreads"
4603 # Check whether --with-aio was given.
4604 if test "${with_aio+set}" = set; then
4608 if test "$with_aio" = "yes"; then
4613 # Check whether --with-dl was given.
4614 if test "${with_dl+set}" = set; then
4618 if test "$with_dl" = "yes"; then
4622 # Check whether --enable-storeio was given.
4623 if test "${enable_storeio+set}" = set; then
4624 enableval=$enable_storeio; case $enableval in
4626 for module in $srcdir/src/fs/*; do
4627 if test -f $module/Makefile.in; then
4628 STORE_MODULES="$STORE_MODULES `basename $module`"
4634 *) STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
4639 if test -z "$STORE_MODULES"; then
4645 echo "Store modules built: $STORE_MODULES"
4646 STORE_OBJS="fs/lib`echo $STORE_MODULES|sed -e 's% %.a fs/lib%g'`.a"
4648 STORE_LIBS="`echo $STORE_OBJS|sed -e 's%fs/%%g'`"
4650 STORE_MODULE_SUBDIRS=
4651 for fs in $STORE_MODULES none; do
4654 STORE_MODULE_SUBDIRS="$STORE_MODULE_SUBDIRS $fs"
4657 if test -z "$with_pthreads"; then
4658 echo "aufs store used, pthreads support automatically enabled"
4663 if test -z "$with_aio"; then
4664 echo "coss store used, aio support automatically enabled"
4673 # Check whether --enable-heap-replacement was given.
4674 if test "${enable_heap_replacement+set}" = set; then
4675 enableval=$enable_heap_replacement; if test "$enableval" = "yes" ; then
4676 echo "--enable-heap-replacement is obsolete. please use the new"
4677 echo "--enable-removal-policies directive instead"
4679 REPL_POLICIES="heap"
4685 # Check whether --enable-removal-policies was given.
4686 if test "${enable_removal_policies+set}" = set; then
4687 enableval=$enable_removal_policies; case $enableval in
4689 for module in $srcdir/src/repl/*; do
4690 if test -f $module/Makefile.in; then
4691 REPL_POLICIES="$REPL_POLICIES `basename $module`"
4697 *) REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
4702 if test -z "$REPL_POLICIES"; then
4708 echo "Removal policies built: $REPL_POLICIES"
4710 REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
4712 REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"
4719 ENABLE_PINGER_FALSE='#'
4721 ENABLE_PINGER_TRUE='#'
4722 ENABLE_PINGER_FALSE=
4725 # Check whether --enable-icmp was given.
4726 if test "${enable_icmp+set}" = set; then
4727 enableval=$enable_icmp; if test "$enableval" = "yes" ; then
4729 cat >>confdefs.h <<\_ACEOF
4737 ENABLE_PINGER_FALSE='#'
4739 ENABLE_PINGER_TRUE='#'
4740 ENABLE_PINGER_FALSE=
4751 USE_DELAY_POOLS_TRUE=
4752 USE_DELAY_POOLS_FALSE='#'
4754 USE_DELAY_POOLS_TRUE='#'
4755 USE_DELAY_POOLS_FALSE=
4758 # Check whether --enable-delay-pools was given.
4759 if test "${enable_delay_pools+set}" = set; then
4760 enableval=$enable_delay_pools; if test "$enableval" = "yes" ; then
4761 echo "Delay pools enabled"
4762 cat >>confdefs.h <<\_ACEOF
4763 #define DELAY_POOLS 1
4769 USE_DELAY_POOLS_TRUE=
4770 USE_DELAY_POOLS_FALSE='#'
4772 USE_DELAY_POOLS_TRUE='#'
4773 USE_DELAY_POOLS_FALSE=
4791 # Check whether --enable-icap-support was given.
4792 if test "${enable_icap_support+set}" = set; then
4793 enableval=$enable_icap_support; if test "$enableval" = "yes" ; then
4794 echo "ICAP support enabled"
4795 cat >>confdefs.h <<\_ACEOF
4796 #define HS_FEAT_ICAP 1
4815 # Check whether --enable-useragent-log was given.
4816 if test "${enable_useragent_log+set}" = set; then
4817 enableval=$enable_useragent_log; if test "$enableval" = "yes" ; then
4818 echo "User-Agent logging enabled"
4819 cat >>confdefs.h <<\_ACEOF
4820 #define USE_USERAGENT_LOG 1
4828 # Check whether --enable-referer-log was given.
4829 if test "${enable_referer_log+set}" = set; then
4830 enableval=$enable_referer_log; if test "$enableval" = "yes" ; then
4831 echo "Referer logging enabled"
4832 cat >>confdefs.h <<\_ACEOF
4833 #define USE_REFERER_LOG 1
4841 # Check whether --enable-wccp was given.
4842 if test "${enable_wccp+set}" = set; then
4843 enableval=$enable_wccp; if test "$enableval" = "no" ; then
4844 echo "Web Cache Coordination Protocol disabled"
4845 cat >>confdefs.h <<\_ACEOF
4850 cat >>confdefs.h <<\_ACEOF
4859 # Check whether --enable-kill-parent-hack was given.
4860 if test "${enable_kill_parent_hack+set}" = set; then
4861 enableval=$enable_kill_parent_hack; if test "$enableval" = "yes" ; then
4862 echo "Kill parent on shutdown"
4863 cat >>confdefs.h <<\_ACEOF
4864 #define KILL_PARENT_OPT 1
4882 # Check whether --enable-snmp was given.
4883 if test "${enable_snmp+set}" = set; then
4884 enableval=$enable_snmp; if test "$enableval" = "yes" ; then
4885 echo "SNMP monitoring enabled"
4886 cat >>confdefs.h <<\_ACEOF
4887 #define SQUID_SNMP 1
4890 SNMPLIB='-L../snmplib -lsnmp'
4901 SNMP_MAKEFILE=./snmplib/Makefile
4911 # Check whether --enable-cachemgr-hostname was given.
4912 if test "${enable_cachemgr_hostname+set}" = set; then
4913 enableval=$enable_cachemgr_hostname; case $enableval in
4915 cat >>confdefs.h <<\_ACEOF
4916 #define CACHEMGR_HOSTNAME getfullhostname()
4919 echo "Cachemgr default hostname == host where cachemgr runs"
4925 cat >>confdefs.h <<_ACEOF
4926 #define CACHEMGR_HOSTNAME "${enableval}"
4929 echo "Cachemgr default hostname set to ${enableval}"
4936 # Check whether --enable-arp-acl was given.
4937 if test "${enable_arp_acl+set}" = set; then
4938 enableval=$enable_arp_acl; if test "$enableval" = "yes" ; then
4939 echo "ARP ACL lists enabled (ether address)"
4948 echo "WARNING: ARP ACL support probably won't work on $host."
4952 cat >>confdefs.h <<\_ACEOF
4953 #define USE_ARP_ACL 1
4965 ENABLE_HTCP_FALSE='#'
4967 ENABLE_HTCP_TRUE='#'
4971 # Check whether --enable-htcp was given.
4972 if test "${enable_htcp+set}" = set; then
4973 enableval=$enable_htcp; if test "$enableval" = "yes" ; then
4975 cat >>confdefs.h <<\_ACEOF
4983 ENABLE_HTCP_FALSE='#'
4985 ENABLE_HTCP_TRUE='#'
4998 ENABLE_SSL_FALSE='#'
5008 # Check whether --enable-ssl was given.
5009 if test "${enable_ssl+set}" = set; then
5010 enableval=$enable_ssl; if test "$enableval" != "no"; then
5011 echo "SSL gatewaying using OpenSSL enabled"
5012 cat >>confdefs.h <<\_ACEOF
5020 ENABLE_SSL_FALSE='#'
5026 SSLLIB='-lssl -lcrypto'
5037 NEED_OWN_MD5_FALSE='#'
5039 NEED_OWN_MD5_TRUE='#'
5045 # Check whether --with-openssl was given.
5046 if test "${with_openssl+set}" = set; then
5047 withval=$with_openssl;
5048 case "$with_openssl" in
5056 PKG_CONFIG_PATH="$with_openssl/lib/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
5057 export PKG_CONFIG_PATH
5058 SSLLIB="-L$with_openssl/lib -lssl -lcrypto"
5059 SSLFLAGS="-I$with_openssl/include"
5066 if test -n "$USE_OPENSSL"; then
5067 echo "Using OpenSSL MD5 implementation"
5068 cat >>confdefs.h <<\_ACEOF
5069 #define USE_OPENSSL 1
5076 NEED_OWN_MD5_FALSE='#'
5078 NEED_OWN_MD5_TRUE='#'
5082 if test -z "$SSLLIB"; then
5083 SSLLIB="-lcrypto" # for MD5 routines
5085 if $PKGCONFIG --exists openssl; then
5086 SSLLIB="`$PKGCONFIG --libs openssl`"
5087 SSLFLAGS="`$PKGCONFIG --cflags openssl`"
5089 CPPFLAGS="${SSLFLAGS} $CPPFLAGS"
5093 # Check whether --enable-forw-via-db was given.
5094 if test "${enable_forw_via_db+set}" = set; then
5095 enableval=$enable_forw_via_db; if test "$enableval" = "yes" ; then
5096 echo "FORW-VIA enabled"
5097 cat >>confdefs.h <<\_ACEOF
5098 #define FORW_VIA_DB 1
5106 # Check whether --enable-cache-digests was given.
5107 if test "${enable_cache_digests+set}" = set; then
5108 enableval=$enable_cache_digests; if test "$enableval" = "yes" ; then
5109 echo "USE_CACHE_DIGESTS enabled"
5110 cat >>confdefs.h <<\_ACEOF
5111 #define USE_CACHE_DIGESTS 1
5119 # Check whether --enable-default-err-language was given.
5120 if test "${enable_default_err_language+set}" = set; then
5121 enableval=$enable_default_err_language;
5122 if test -d $srcdir/errors/$enableval; then
5123 ERR_DEFAULT_LANGUAGE=$enableval
5125 echo "ERROR! Unknown language $enableval, see errors/ directory"
5130 ERR_DEFAULT_LANGUAGE="English"
5135 # Check whether --enable-err-languages was given.
5136 if test "${enable_err_languages+set}" = set; then
5137 enableval=$enable_err_languages;
5138 for l in $enableval; do
5139 if test -d $srcdir/errors/$l; then :; else
5140 echo "ERROR! Unknown language $$l, see errors/"
5144 ERR_LANGUAGES=$enableval
5149 for l in $srcdir/errors/*; do
5150 if test -f $l/ERR_ACCESS_DENIED; then
5151 ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`"
5160 # Check whether --with-coss-membuf-size was given.
5161 if test "${with_coss_membuf_size+set}" = set; then
5162 withval=$with_coss_membuf_size; if test "$with_coss_membuf_size"; then
5163 echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
5164 cat >>confdefs.h <<_ACEOF
5165 #define COSS_MEMBUF_SZ $with_coss_membuf_size
5173 # Check whether --enable-poll was given.
5174 if test "${enable_poll+set}" = set; then
5175 enableval=$enable_poll;
5176 case "$enableval" in
5178 echo "Forcing poll() to be enabled"
5179 ac_cv_func_poll='yes'
5182 echo "Forcing poll() to be disabled"
5183 ac_cv_func_poll='no'
5190 # Check whether --enable-http-violations was given.
5191 if test "${enable_http_violations+set}" = set; then
5192 enableval=$enable_http_violations; if test "$enableval" = "no" ; then
5193 echo "Disabling HTTP Violations"
5194 cat >>confdefs.h <<\_ACEOF
5195 #define HTTP_VIOLATIONS 0
5199 cat >>confdefs.h <<\_ACEOF
5200 #define HTTP_VIOLATIONS 1
5208 # Check whether --enable-ipf-transparent was given.
5209 if test "${enable_ipf_transparent+set}" = set; then
5210 enableval=$enable_ipf_transparent; if test "$enableval" = "yes" ; then
5211 echo "IP-Filter Transparent Proxy enabled"
5212 cat >>confdefs.h <<\_ACEOF
5213 #define IPF_TRANSPARENT 1
5216 IPF_TRANSPARENT="yes"
5222 # Check whether --enable-pf-transparent was given.
5223 if test "${enable_pf_transparent+set}" = set; then
5224 enableval=$enable_pf_transparent; if test "$enableval" = "yes" ; then
5225 echo "PF Transparent Proxy enabled"
5226 cat >>confdefs.h <<\_ACEOF
5227 #define PF_TRANSPARENT 1
5230 PF_TRANSPARENT="yes"
5236 # Check whether --enable-linux-netfilter was given.
5237 if test "${enable_linux_netfilter+set}" = set; then
5238 enableval=$enable_linux_netfilter; if test "$enableval" = "yes" ; then
5239 echo "Linux-Netfilter Transparent Proxy enabled"
5240 cat >>confdefs.h <<\_ACEOF
5241 #define LINUX_NETFILTER 1
5244 LINUX_NETFILTER="yes"
5254 # Check whether --with-large-files was given.
5255 if test "${with_large_files+set}" = set; then
5256 withval=$with_large_files; if test "$withval" = yes; then
5263 # Check whether --enable-large-cache-files was given.
5264 if test "${enable_large_cache_files+set}" = set; then
5265 enableval=$enable_large_cache_files; if test "$enableval" = "yes" ; then
5266 echo "Large cache file support enabled"
5268 cat >>confdefs.h <<\_ACEOF
5269 #define LARGE_CACHE_FILES 1
5278 # Check whether --with-build-environment was given.
5279 if test "${with_build_environment+set}" = set; then
5280 withval=$with_build_environment; case "$enableval" in
5282 echo "--with-build-environment expects a build environment string as used by getconf"
5286 buildmodel="$enableval"
5289 buildmodel="_$enableval"
5296 if test $needlargefiles && test -z "$buildmodel"; then
5297 for model in POSIX_V6_ILP32_OFFBIG XBS5_ILP32_OFFBIG POSIX_V6_LP64_OFF64 XBS5_LP64_OFF64 POSIX_V6_LPBIG_OFFBIG XBS5_LPBIG_OFFBIG; do
5298 if test "`getconf _$model 2>/dev/null || true`" = 1 || test "`getconf $model 2>/dev/null || true`" ; then
5303 if test -z "$buildmodel"; then
5304 echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64"
5306 CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
5309 if test -n "$buildmodel" && test "$buildmodel" != "_default"; then
5310 echo "Using $buildmodel build environment"
5311 CFLAGS="`getconf ${buildmodel}_CFLAGS` $CFLAGS"
5312 LIBS="`getconf ${buildmodel}_LIBS` $LIBS"
5313 LDFLAGS="`getconf ${buildmodel}_LDFLAGS` $LDFLAGS"
5319 MAKE_LEAKFINDER_TRUE=
5320 MAKE_LEAKFINDER_FALSE='#'
5322 MAKE_LEAKFINDER_TRUE='#'
5323 MAKE_LEAKFINDER_FALSE=
5326 # Check whether --enable-leakfinder was given.
5327 if test "${enable_leakfinder+set}" = set; then
5328 enableval=$enable_leakfinder; if test "$enableval" = "yes" ; then
5329 echo "Leak-Finding enabled"
5330 cat >>confdefs.h <<\_ACEOF
5331 #define USE_LEAKFINDER 1
5334 USE_LEAKFINDER="yes"
5338 MAKE_LEAKFINDER_TRUE=
5339 MAKE_LEAKFINDER_FALSE='#'
5341 MAKE_LEAKFINDER_TRUE='#'
5342 MAKE_LEAKFINDER_FALSE=
5350 # Check whether --enable-ident-lookups was given.
5351 if test "${enable_ident_lookups+set}" = set; then
5352 enableval=$enable_ident_lookups; if test "$enableval" = "no" ; then
5353 echo "Disabling Ident Lookups"
5354 cat >>confdefs.h <<\_ACEOF
5359 cat >>confdefs.h <<\_ACEOF
5372 USE_DNSSERVER_FALSE='#'
5374 USE_DNSSERVER_TRUE='#'
5375 USE_DNSSERVER_FALSE=
5379 # Check whether --enable-internal-dns was given.
5380 if test "${enable_internal_dns+set}" = set; then
5381 enableval=$enable_internal_dns; if test "$enableval" = "no" ; then
5382 echo "Disabling Internal DNS queries"
5388 if test "$use_dnsserver" = "yes"; then
5389 cat >>confdefs.h <<\_ACEOF
5390 #define USE_DNSSERVERS 1
5397 USE_DNSSERVER_FALSE='#'
5399 USE_DNSSERVER_TRUE='#'
5400 USE_DNSSERVER_FALSE=
5405 # Check whether --enable-truncate was given.
5406 if test "${enable_truncate+set}" = set; then
5407 enableval=$enable_truncate; if test "$enableval" = "yes" ; then
5408 echo "Enabling truncate instead of unlink"
5409 cat >>confdefs.h <<\_ACEOF
5410 #define USE_TRUNCATE 1
5418 # Check whether --enable-hostname-checks was given.
5419 if test "${enable_hostname_checks+set}" = set; then
5420 enableval=$enable_hostname_checks;
5422 enable_hostname_checks=yes
5425 if test "$enable_hostname_checks" = "yes"; then
5426 echo "Hostname sanity checks enabled"
5428 cat >>confdefs.h <<\_ACEOF
5429 #define CHECK_HOSTNAMES 1
5433 echo "Disabling hostname sanity checks"
5436 # Check whether --enable-underscores was given.
5437 if test "${enable_underscores+set}" = set; then
5438 enableval=$enable_underscores; if test "$enableval" = "yes" ; then
5439 echo "Enabling the use of underscores in host names"
5440 cat >>confdefs.h <<\_ACEOF
5441 #define ALLOW_HOSTNAME_UNDERSCORES 1
5450 # Check whether --enable-auth was given.
5451 if test "${enable_auth+set}" = set; then
5452 enableval=$enable_auth; case $enableval in
5454 for module in $srcdir/src/auth/*; do
5455 if test -f $module/Makefile.in; then
5456 AUTH_MODULES="$AUTH_MODULES `basename $module`"
5462 *) AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5467 if test -z "$AUTH_MODULES"; then
5468 AUTH_MODULES="basic"
5473 echo "Auth scheme modules built: $AUTH_MODULES"
5475 AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a"
5477 AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`"
5480 BASIC_AUTH_HELPERS=""
5481 # Check whether --enable-auth-modules was given.
5482 if test "${enable_auth_modules+set}" = set; then
5483 enableval=$enable_auth_modules; echo "--enable-auth-modules is obsolete. Please use the new"
5484 echo "option --enable-basic-auth-helpers"
5486 case "$enableval" in
5488 for helper in $srcdir/helpers/basic_auth/*; do
5489 if test -f $helper/Makefile.in; then
5490 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
5497 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5502 # Check whether --enable-basic-auth-helpers was given.
5503 if test "${enable_basic_auth_helpers+set}" = set; then
5504 enableval=$enable_basic_auth_helpers; case "$enableval" in
5506 BASIC_AUTH_HELPERS=""
5507 for helper in $srcdir/helpers/basic_auth/*; do
5508 if test -f $helper/Makefile.in; then
5509 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
5516 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5521 if test -n "$BASIC_AUTH_HELPERS"; then
5522 for helper in $BASIC_AUTH_HELPERS; do
5523 if test -f $srcdir/helpers/basic_auth/$helper/Makefile.in; then
5524 if test "$helper" = "SASL"; then
5528 echo "ERROR: Basic auth helper $helper does not exists"
5532 echo "Basic auth helpers built: $BASIC_AUTH_HELPERS"
5537 # Check whether --enable-ntlm-auth-helpers was given.
5538 if test "${enable_ntlm_auth_helpers+set}" = set; then
5539 enableval=$enable_ntlm_auth_helpers; case "$enableval" in
5541 for helper in $srcdir/helpers/ntlm_auth/*; do
5542 if test -f $helper/Makefile.in; then
5543 NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS `basename $helper`"
5550 NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5555 if test -n "$NTLM_AUTH_HELPERS"; then
5556 for helper in $NTLM_AUTH_HELPERS; do
5557 if test -f $srcdir/helpers/ntlm_auth/$helper/Makefile.in; then
5560 echo "ERROR: NTLM auth helper $helper does not exists"
5564 echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS"
5568 DIGEST_AUTH_HELPERS=
5569 # Check whether --enable-digest-auth-helpers was given.
5570 if test "${enable_digest_auth_helpers+set}" = set; then
5571 enableval=$enable_digest_auth_helpers; case "$enableval" in
5573 for helper in $srcdir/helpers/digest_auth/*; do
5574 if test -f $helper/Makefile.in; then
5575 DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS `basename $helper`"
5582 DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5587 if test -n "$DIGEST_AUTH_HELPERS"; then
5588 for helper in $DIGEST_AUTH_HELPERS; do
5589 if test -f $srcdir/helpers/digest_auth/$helper/Makefile.in; then
5592 echo "ERROR: digest auth helper $helper does not exists"
5596 echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS"
5600 # Check whether --enable-ntlm-fail-open was given.
5601 if test "${enable_ntlm_fail_open+set}" = set; then
5602 enableval=$enable_ntlm_fail_open; if test "$enableval" = "yes" ; then
5603 cat >>confdefs.h <<\_ACEOF
5604 #define NTLM_FAIL_OPEN 1
5612 EXTERNAL_ACL_HELPERS=
5613 # Check whether --enable-external-acl-helpers was given.
5614 if test "${enable_external_acl_helpers+set}" = set; then
5615 enableval=$enable_external_acl_helpers; case "$enableval" in
5617 for helper in $srcdir/helpers/external_acl/*; do
5618 if test -f $helper/Makefile.in; then
5619 EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS `basename $helper`"
5626 EXTERNAL_ACL_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
5631 if test -n "$EXTERNAL_ACL_HELPERS"; then
5632 for helper in $EXTERNAL_ACL_HELPERS; do
5633 if test -f $srcdir/helpers/external_acl/$helper/Makefile.in; then
5636 echo "ERROR: external acl helper $helper does not exists"
5640 echo "External acl helpers built: $EXTERNAL_ACL_HELPERS"
5645 SAMBASOURCES='$(top_srcdir)/include/samba'
5647 # Check whether --with-samba-sources was given.
5648 if test "${with_samba_sources+set}" = set; then
5649 withval=$with_samba_sources; if test -f $withval/source/nsswitch/winbind_nss_config.h; then
5650 echo "Using Samba sources from $withval"
5651 SAMBASOURCES="$withval/source"
5653 echo "ERROR: Cannot find Samba sources at $withval"
5661 if test "$require_sasl" = "yes"; then
5662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5673 inttypes.h stdint.h unistd.h
5675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5689 #include <$ac_header>
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 eval "$as_ac_Header=yes"
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 eval "$as_ac_Header=no"
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 ac_res=`eval echo '${'$as_ac_Header'}'`
5719 { echo "$as_me:$LINENO: result: $ac_res" >&5
5720 echo "${ECHO_T}$ac_res" >&6; }
5721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733 for ac_header in sasl/sasl.h sasl.h
5735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 ac_res=`eval echo '${'$as_ac_Header'}'`
5743 { echo "$as_me:$LINENO: result: $ac_res" >&5
5744 echo "${ECHO_T}$ac_res" >&6; }
5746 # Is the header compilable?
5747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5756 #include <$ac_header>
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5775 ac_header_compiler=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 ac_header_compiler=no
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5785 echo "${ECHO_T}$ac_header_compiler" >&6; }
5787 # Is the header present?
5788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 #include <$ac_header>
5798 if { (ac_try="$ac_cpp conftest.$ac_ext"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } >/dev/null && {
5811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5814 ac_header_preproc=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_header_preproc=no
5822 rm -f conftest.err conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5824 echo "${ECHO_T}$ac_header_preproc" >&6; }
5826 # So? What about this header?
5827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5833 ac_header_preproc=yes
5836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 eval "$as_ac_Header=\$ac_header_preproc"
5858 ac_res=`eval echo '${'$as_ac_Header'}'`
5859 { echo "$as_me:$LINENO: result: $ac_res" >&5
5860 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5872 if test "$ac_cv_header_sasl_sasl_h" = "yes"; then
5876 if test "$ac_cv_header_sasl_h" = "yes"; then
5880 echo "ERROR: Neither SASL nor SASL2 found"
5887 # Check whether --enable-unlinkd was given.
5888 if test "${enable_unlinkd+set}" = set; then
5889 enableval=$enable_unlinkd; if test "$enableval" = "no" ; then
5897 # Here we should probably use some magic depending on the selected
5903 if test "$use_unlinkd" = "yes"; then
5904 echo "unlinkd enabled"
5905 cat >>confdefs.h <<\_ACEOF
5906 #define USE_UNLINKD 1
5912 ENABLE_UNLINKD_TRUE=
5913 ENABLE_UNLINKD_FALSE='#'
5915 ENABLE_UNLINKD_TRUE='#'
5916 ENABLE_UNLINKD_FALSE=
5920 echo "unlinkd disabled"
5924 ENABLE_UNLINKD_TRUE=
5925 ENABLE_UNLINKD_FALSE='#'
5927 ENABLE_UNLINKD_TRUE='#'
5928 ENABLE_UNLINKD_FALSE=
5933 # Check whether --enable-stacktraces was given.
5934 if test "${enable_stacktraces+set}" = set; then
5935 enableval=$enable_stacktraces; if test "$enableval" = "yes" ; then
5936 echo "Enabling automatic stack backtraces on fatal errors"
5937 cat >>confdefs.h <<\_ACEOF
5938 #define PRINT_STACK_TRACE 1
5946 # Check whether --enable-x_accelerator_vary was given.
5947 if test "${enable_x_accelerator_vary+set}" = set; then
5948 enableval=$enable_x_accelerator_vary; if test "$enableval" = "yes" ; then
5949 echo "Enabling support for X-Accelerator-Vary"
5950 cat >>confdefs.h <<\_ACEOF
5951 #define X_ACCELERATOR_VARY 1
5959 # Force some compilers to use ANSI features
5963 if test "$ac_cv_prog_CC" = "cc" ; then
5964 echo "adding '-std1' to cc args for $host"
5970 if test "$ac_cv_prog_CC" = "cc" ; then
5971 echo "adding '-Ae' to cc args for $host"
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5984 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5985 # On Suns, sometimes $CPP names a directory.
5986 if test -n "$CPP" && test -d "$CPP"; then
5989 if test -z "$CPP"; then
5990 if test "${ac_cv_prog_CPP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 # Double quotes because CPP needs to be expanded
5994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5997 for ac_c_preproc_warn_flag in '' yes
5999 # Use a header file that comes with gcc, so configuring glibc
6000 # with a fresh cross-compiler works.
6001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002 # <limits.h> exists even on freestanding compilers.
6003 # On the NeXT, cc -E runs the code through the compiler's parser,
6004 # not just through cpp. "Syntax error" is here to catch this case.
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6012 # include <limits.h>
6014 # include <assert.h>
6018 if { (ac_try="$ac_cpp conftest.$ac_ext"
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6026 grep -v '^ *+' conftest.er1 >conftest.err
6028 cat conftest.err >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } >/dev/null && {
6031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 # Broken: fails on valid input.
6043 rm -f conftest.err conftest.$ac_ext
6045 # OK, works on sane cases. Now check whether nonexistent headers
6046 # can be detected and how.
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <ac_nonexistent.h>
6055 if { (ac_try="$ac_cpp conftest.$ac_ext"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null && {
6068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6071 # Broken: success on invalid input.
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 # Passes both tests.
6082 rm -f conftest.err conftest.$ac_ext
6085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086 rm -f conftest.err conftest.$ac_ext
6087 if $ac_preproc_ok; then
6099 { echo "$as_me:$LINENO: result: $CPP" >&5
6100 echo "${ECHO_T}$CPP" >&6; }
6102 for ac_c_preproc_warn_flag in '' yes
6104 # Use a header file that comes with gcc, so configuring glibc
6105 # with a fresh cross-compiler works.
6106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107 # <limits.h> exists even on freestanding compilers.
6108 # On the NeXT, cc -E runs the code through the compiler's parser,
6109 # not just through cpp. "Syntax error" is here to catch this case.
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 # include <limits.h>
6119 # include <assert.h>
6123 if { (ac_try="$ac_cpp conftest.$ac_ext"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev/null && {
6136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 # Broken: fails on valid input.
6148 rm -f conftest.err conftest.$ac_ext
6150 # OK, works on sane cases. Now check whether nonexistent headers
6151 # can be detected and how.
6152 cat >conftest.$ac_ext <<_ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 #include <ac_nonexistent.h>
6160 if { (ac_try="$ac_cpp conftest.$ac_ext"
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null && {
6173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6176 # Broken: success on invalid input.
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 # Passes both tests.
6187 rm -f conftest.err conftest.$ac_ext
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199 { (exit 1); exit 1; }; }
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208 # Find a good install program. We prefer a C program (faster),
6209 # so one script is as good as another. But avoid the broken or
6210 # incompatible versions:
6211 # SysV /etc/install, /usr/sbin/install
6212 # SunOS /usr/etc/install
6213 # IRIX /sbin/install
6215 # AmigaOS /C/install, which installs bootblocks on floppy discs
6216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6219 # OS/2's system install, which has a completely different semantic
6220 # ./install, which can be erroneously created by make from ./install.sh.
6221 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6222 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6223 if test -z "$INSTALL"; then
6224 if test "${ac_cv_path_install+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 # Account for people who put trailing slashes in PATH elements.
6234 ./ | .// | /cC/* | \
6235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6236 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6239 # OSF1 and SCO ODT 3.0 have their own names for install.
6240 # Don't use installbsd from OSF since it installs stuff as root
6242 for ac_prog in ginstall scoinst install; do
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6245 if test $ac_prog = install &&
6246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6247 # AIX install. It has an incompatible calling convention.
6249 elif test $ac_prog = install &&
6250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6251 # program-specific install script used by HP pwplus--don't use.
6254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6267 if test "${ac_cv_path_install+set}" = set; then
6268 INSTALL=$ac_cv_path_install
6270 # As a last resort, use the slow shell script. Don't cache a
6271 # value for INSTALL within a source directory, because that will
6272 # break other packages using the cache if that directory is
6273 # removed, or if the value is a relative name.
6274 INSTALL=$ac_install_sh
6277 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6278 echo "${ECHO_T}$INSTALL" >&6; }
6280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6281 # It thinks the first close brace ends the variable substitution.
6282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_RANLIB+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 if test -n "$RANLIB"; then
6297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 RANLIB=$ac_cv_prog_RANLIB
6317 if test -n "$RANLIB"; then
6318 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6319 echo "${ECHO_T}$RANLIB" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6327 if test -z "$ac_cv_prog_RANLIB"; then
6328 ac_ct_RANLIB=$RANLIB
6329 # Extract the first word of "ranlib", so it can be a program name with args.
6330 set dummy ranlib; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 if test -n "$ac_ct_RANLIB"; then
6337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_ac_ct_RANLIB="ranlib"
6347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6357 if test -n "$ac_ct_RANLIB"; then
6358 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6359 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6361 { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6365 if test "x$ac_ct_RANLIB" = x; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6371 whose name does not start with the host triplet. If you think this
6372 configuration is useful to you, please write to autoconf@gnu.org." >&5
6373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6374 whose name does not start with the host triplet. If you think this
6375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6376 ac_tool_warned=yes ;;
6378 RANLIB=$ac_ct_RANLIB
6381 RANLIB="$ac_cv_prog_RANLIB"
6384 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6385 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6387 if test "$LN_S" = "ln -s"; then
6388 { echo "$as_me:$LINENO: result: yes" >&5
6389 echo "${ECHO_T}yes" >&6; }
6391 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6392 echo "${ECHO_T}no, using $LN_S" >&6; }
6395 # Extract the first word of "sh", so it can be a program name with args.
6396 set dummy sh; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_SH+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_cv_path_SH="$SH" # Let the user override the test with a path.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
6427 if test -n "$SH"; then
6428 { echo "$as_me:$LINENO: result: $SH" >&5
6429 echo "${ECHO_T}$SH" >&6; }
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6436 # Extract the first word of "false", so it can be a program name with args.
6437 set dummy false; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_FALSE+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
6467 FALSE=$ac_cv_path_FALSE
6468 if test -n "$FALSE"; then
6469 { echo "$as_me:$LINENO: result: $FALSE" >&5
6470 echo "${ECHO_T}$FALSE" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6477 # Extract the first word of "true", so it can be a program name with args.
6478 set dummy true; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_TRUE+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
6508 TRUE=$ac_cv_path_TRUE
6509 if test -n "$TRUE"; then
6510 { echo "$as_me:$LINENO: result: $TRUE" >&5
6511 echo "${ECHO_T}$TRUE" >&6; }
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6518 # Extract the first word of "rm", so it can be a program name with args.
6519 set dummy rm; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_path_RM+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
6550 if test -n "$RM"; then
6551 { echo "$as_me:$LINENO: result: $RM" >&5
6552 echo "${ECHO_T}$RM" >&6; }
6554 { echo "$as_me:$LINENO: result: no" >&5
6555 echo "${ECHO_T}no" >&6; }
6559 # Extract the first word of "mv", so it can be a program name with args.
6560 set dummy mv; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_MV+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
6591 if test -n "$MV"; then
6592 { echo "$as_me:$LINENO: result: $MV" >&5
6593 echo "${ECHO_T}$MV" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 # Extract the first word of "mkdir", so it can be a program name with args.
6601 set dummy mkdir; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_MKDIR+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
6631 MKDIR=$ac_cv_path_MKDIR
6632 if test -n "$MKDIR"; then
6633 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6634 echo "${ECHO_T}$MKDIR" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6641 # Extract the first word of "ln", so it can be a program name with args.
6642 set dummy ln; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_LN+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
6673 if test -n "$LN"; then
6674 { echo "$as_me:$LINENO: result: $LN" >&5
6675 echo "${ECHO_T}$LN" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 # Extract the first word of "perl", so it can be a program name with args.
6683 set dummy perl; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_PERL+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6713 PERL=$ac_cv_path_PERL
6714 if test -n "$PERL"; then
6715 { echo "$as_me:$LINENO: result: $PERL" >&5
6716 echo "${ECHO_T}$PERL" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 # Extract the first word of "ar", so it can be a program name with args.
6724 set dummy ar; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_AR+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
6755 if test -n "$AR"; then
6756 { echo "$as_me:$LINENO: result: $AR" >&5
6757 echo "${ECHO_T}$AR" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6765 if test "$ac_cv_path_PERL" = "none"; then
6766 echo "Perl is required to compile Squid"
6767 echo "Please install Perl and then re-run configure"
6773 echo "Disabling 'ranlib' for HP-UX..."
6792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6793 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 #include <sys/types.h>
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 eval "$as_ac_Header=yes"
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 eval "$as_ac_Header=no"
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 ac_res=`eval echo '${'$as_ac_Header'}'`
6845 { echo "$as_me:$LINENO: result: $ac_res" >&5
6846 echo "${ECHO_T}$ac_res" >&6; }
6847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6852 ac_header_dirent=$ac_hdr; break
6856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6857 if test $ac_header_dirent = dirent.h; then
6858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6860 if test "${ac_cv_search_opendir+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_func_search_save_LIBS=$LIBS
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 /* Override any GCC internal prototype to avoid an error.
6872 Use char because int might match the return type of a GCC
6873 builtin and then its argument prototype would still apply. */
6886 for ac_lib in '' dir; do
6887 if test -z "$ac_lib"; then
6888 ac_res="none required"
6891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897 *) ac_try_echo=$ac_try;;
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900 (eval "$ac_link") 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest$ac_exeext &&
6910 $as_test_x conftest$ac_exeext; then
6911 ac_cv_search_opendir=$ac_res
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 if test "${ac_cv_search_opendir+set}" = set; then
6925 if test "${ac_cv_search_opendir+set}" = set; then
6928 ac_cv_search_opendir=no
6931 LIBS=$ac_func_search_save_LIBS
6933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6935 ac_res=$ac_cv_search_opendir
6936 if test "$ac_res" != no; then
6937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6944 if test "${ac_cv_search_opendir+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_func_search_save_LIBS=$LIBS
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6970 for ac_lib in '' x; do
6971 if test -z "$ac_lib"; then
6972 ac_res="none required"
6975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (ac_try="$ac_link"
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_link") 2>conftest.er1
6986 grep -v '^ *+' conftest.er1 >conftest.err
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest$ac_exeext &&
6994 $as_test_x conftest$ac_exeext; then
6995 ac_cv_search_opendir=$ac_res
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7005 if test "${ac_cv_search_opendir+set}" = set; then
7009 if test "${ac_cv_search_opendir+set}" = set; then
7012 ac_cv_search_opendir=no
7015 LIBS=$ac_func_search_save_LIBS
7017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7019 ac_res=$ac_cv_search_opendir
7020 if test "$ac_res" != no; then
7021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7127 linux/netfilter_ipv4.h \
7135 netinet/if_ether.h \
7138 netinet/ip_compat.h \
7139 netinet/ip_fil_compat.h \
7189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 ac_res=`eval echo '${'$as_ac_Header'}'`
7197 { echo "$as_me:$LINENO: result: $ac_res" >&5
7198 echo "${ECHO_T}$ac_res" >&6; }
7200 # Is the header compilable?
7201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 $ac_includes_default
7210 #include <$ac_header>
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1 >conftest.err
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 ac_header_compiler=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_header_compiler=no
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7239 echo "${ECHO_T}$ac_header_compiler" >&6; }
7241 # Is the header present?
7242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #include <$ac_header>
7252 if { (ac_try="$ac_cpp conftest.$ac_ext"
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7260 grep -v '^ *+' conftest.er1 >conftest.err
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } >/dev/null && {
7265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7268 ac_header_preproc=yes
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 ac_header_preproc=no
7276 rm -f conftest.err conftest.$ac_ext
7277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7278 echo "${ECHO_T}$ac_header_preproc" >&6; }
7280 # So? What about this header?
7281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7287 ac_header_preproc=yes
7290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 eval "$as_ac_Header=\$ac_header_preproc"
7312 ac_res=`eval echo '${'$as_ac_Header'}'`
7313 { echo "$as_me:$LINENO: result: $ac_res" >&5
7314 echo "${ECHO_T}$ac_res" >&6; }
7317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7318 cat >>confdefs.h <<_ACEOF
7319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7327 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7328 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7329 if test "${ac_cv_c_const+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7342 /* FIXME: Include the comments suggested by Paul. */
7344 /* Ultrix mips cc rejects this. */
7345 typedef int charset[2];
7347 /* SunOS 4.1.1 cc rejects this. */
7348 char const *const *pcpcc;
7350 /* NEC SVR4.0.2 mips cc rejects this. */
7351 struct point {int x, y;};
7352 static struct point const zero = {0,0};
7353 /* AIX XL C 1.02.0.0 rejects this.
7354 It does not let you subtract one const X* pointer from another in
7355 an arm of an if-expression whose if-part is not a constant
7357 const char *g = "string";
7358 pcpcc = &g + (g ? g-g : 0);
7359 /* HPUX 7.0 cc rejects these. */
7361 ppc = (char**) pcpcc;
7362 pcpcc = (char const *const *) ppc;
7363 { /* SCO 3.2v4 cc rejects this. */
7365 char const *s = 0 ? (char *) 0 : (char const *) 0;
7370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7372 const int *foo = &x[0];
7375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7376 typedef const int *iptr;
7380 { /* AIX XL C 1.02.0.0 rejects this saying
7381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7382 struct s { int j; const int *ap[3]; };
7383 struct s *b; b->j = 5;
7385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7389 return !cs[0] && !zero.x;
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7424 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7425 if test $ac_cv_c_const = no; then
7427 cat >>confdefs.h <<\_ACEOF
7433 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7434 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7435 if test "${ac_cv_c_bigendian+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 # See if sys/param.h defines the BYTE_ORDER macro.
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <sys/types.h>
7446 #include <sys/param.h>
7451 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7452 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7460 rm -f conftest.$ac_objext
7461 if { (ac_try="$ac_compile"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.$ac_objext; then
7477 # It does; now see whether it defined to BIG_ENDIAN or not.
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <sys/param.h>
7490 #if BYTE_ORDER != BIG_ENDIAN
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 ac_cv_c_bigendian=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_c_bigendian=no
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 # It does not; compile a test program.
7529 if test "$cross_compiling" = yes; then
7530 # try to guess the endianness by grepping values into an object file
7531 ac_cv_c_bigendian=unknown
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7539 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7541 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7542 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7547 _ascii (); _ebcdic ();
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7570 ac_cv_c_bigendian=yes
7572 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7573 if test "$ac_cv_c_bigendian" = unknown; then
7574 ac_cv_c_bigendian=no
7576 # finding both strings is unlikely to happen, but who knows?
7577 ac_cv_c_bigendian=unknown
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7600 /* Are we little or big endian? From Harbison&Steele. */
7604 char c[sizeof (long int)];
7607 return u.c[sizeof (long int) - 1] == 1;
7613 rm -f conftest$ac_exeext
7614 if { (ac_try="$ac_link"
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_link") 2>&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7624 { (case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_try") 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_c_bigendian=no
7635 echo "$as_me: program exited with status $ac_status" >&5
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_c_bigendian=yes
7642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7652 case $ac_cv_c_bigendian in
7655 cat >>confdefs.h <<\_ACEOF
7656 #define WORDS_BIGENDIAN 1
7662 { { echo "$as_me:$LINENO: error: unknown endianness
7663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7664 echo "$as_me: error: unknown endianness
7665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7666 { (exit 1); exit 1; }; } ;;
7670 { echo "$as_me:$LINENO: checking if ANSI prototypes work" >&5
7671 echo $ECHO_N "checking if ANSI prototypes work... $ECHO_C" >&6; }
7672 if test "${ac_cv_have_ansi_prototypes+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 int foo(char *); int foo (char *bar) {return 1;}
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 ac_cv_have_ansi_prototypes="yes"
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_cv_have_ansi_prototypes="no"
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 { echo "$as_me:$LINENO: result: $ac_cv_have_ansi_prototypes" >&5
7720 echo "${ECHO_T}$ac_cv_have_ansi_prototypes" >&6; }
7721 if test $ac_cv_have_ansi_prototypes = "yes" ; then
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_ANSI_PROTOTYPES 1
7728 { echo "$as_me:$LINENO: checking for tm->tm_gmtoff" >&5
7729 echo $ECHO_N "checking for tm->tm_gmtoff... $ECHO_C" >&6; }
7730 if test "${ac_cv_have_tm_gmoff+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7741 #include <sys/time.h>
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
7768 ac_cv_have_tm_gmoff="yes"
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_cv_have_tm_gmoff="no"
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { echo "$as_me:$LINENO: result: $ac_cv_have_tm_gmoff" >&5
7780 echo "${ECHO_T}$ac_cv_have_tm_gmoff" >&6; }
7781 if test $ac_cv_have_tm_gmoff = "yes" ; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_TM_GMTOFF 1
7788 { echo "$as_me:$LINENO: checking for struct mallinfo" >&5
7789 echo $ECHO_N "checking for struct mallinfo... $ECHO_C" >&6; }
7790 if test "${ac_cv_have_struct_mallinfo+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 #include <sys/types.h>
7807 struct mallinfo foo;
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_have_struct_mallinfo="yes"
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_cv_have_struct_mallinfo="no"
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_mallinfo" >&5
7849 echo "${ECHO_T}$ac_cv_have_struct_mallinfo" >&6; }
7850 if test $ac_cv_have_struct_mallinfo = "yes" ; then
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_STRUCT_MALLINFO 1
7857 { echo "$as_me:$LINENO: checking for extended mallinfo" >&5
7858 echo $ECHO_N "checking for extended mallinfo... $ECHO_C" >&6; }
7859 if test "${ac_cv_have_ext_mallinfo+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 #include <sys/types.h>
7874 struct mallinfo foo;
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_cv_have_ext_mallinfo="yes"
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_have_ext_mallinfo="no"
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_have_ext_mallinfo" >&5
7909 echo "${ECHO_T}$ac_cv_have_ext_mallinfo" >&6; }
7910 if test $ac_cv_have_ext_mallinfo = "yes" ; then
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_EXT_MALLINFO 1
7917 { echo "$as_me:$LINENO: checking for struct rusage" >&5
7918 echo $ECHO_N "checking for struct rusage... $ECHO_C" >&6; }
7919 if test "${ac_cv_have_struct_rusage+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7931 #include <sys/time.h>
7933 #if HAVE_SYS_RESOURCE_H
7934 #include <sys/resource.h>
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 ac_cv_have_struct_rusage="yes"
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_cv_have_struct_rusage="no"
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_rusage" >&5
7973 echo "${ECHO_T}$ac_cv_have_struct_rusage" >&6; }
7974 if test $ac_cv_have_struct_rusage = "yes" ; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_STRUCT_RUSAGE 1
7981 { echo "$as_me:$LINENO: checking for ip->ip_hl" >&5
7982 echo $ECHO_N "checking for ip->ip_hl... $ECHO_C" >&6; }
7983 if test "${ac_cv_have_ip_hl+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <sys/types.h>
7994 #include <netinet/in.h>
7995 #include <netinet/in_systm.h>
7996 #include <netinet/ip.h>
7997 #if defined (__linux__) || defined (__CYGWIN__)
8014 rm -f conftest.$ac_objext
8015 if { (ac_try="$ac_compile"
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
8031 ac_cv_have_ip_hl="yes"
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 ac_cv_have_ip_hl="no"
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { echo "$as_me:$LINENO: result: $ac_cv_have_ip_hl" >&5
8043 echo "${ECHO_T}$ac_cv_have_ip_hl" >&6; }
8044 if test $ac_cv_have_ip_hl = "yes" ; then
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_IP_HL 1
8051 { echo "$as_me:$LINENO: checking for void *" >&5
8052 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8053 if test "${ac_cv_type_void_p+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 typedef void * ac__type_new_;
8067 if ((ac__type_new_ *) 0)
8069 if (sizeof (ac__type_new_))
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_type_void_p=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_type_void_p=no
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8103 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8105 # The cast to long int works around a bug in the HP C Compiler
8106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8108 # This bug is HP SR number 8606223364.
8109 { echo "$as_me:$LINENO: checking size of void *" >&5
8110 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8111 if test "${ac_cv_sizeof_void_p+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 if test "$cross_compiling" = yes; then
8115 # Depending upon the size, compute the lo and hi bounds.
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 $ac_includes_default
8123 typedef void * ac__type_sizeof_;
8127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8134 rm -f conftest.$ac_objext
8135 if { (ac_try="$ac_compile"
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 typedef void * ac__type_sizeof_;
8164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_hi=$ac_mid; break
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 ac_lo=`expr $ac_mid + 1`
8194 if test $ac_lo -le $ac_mid; then
8198 ac_mid=`expr 2 '*' $ac_mid + 1`
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 typedef void * ac__type_sizeof_;
8218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef void * ac__type_sizeof_;
8255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_lo=$ac_mid; break
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_hi=`expr '(' $ac_mid ')' - 1`
8285 if test $ac_mid -le $ac_hi; then
8289 ac_mid=`expr 2 '*' $ac_mid`
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 # Binary search between lo and hi bounds.
8306 while test "x$ac_lo" != "x$ac_hi"; do
8307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 typedef void * ac__type_sizeof_;
8319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_lo=`expr '(' $ac_mid ')' + 1`
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8355 '') if test "$ac_cv_type_void_p" = yes; then
8356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8357 See \`config.log' for more details." >&5
8358 echo "$as_me: error: cannot compute sizeof (void *)
8359 See \`config.log' for more details." >&2;}
8360 { (exit 77); exit 77; }; }
8362 ac_cv_sizeof_void_p=0
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 $ac_includes_default
8373 typedef void * ac__type_sizeof_;
8374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8382 FILE *f = fopen ("conftest.val", "w");
8385 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8387 long int i = longval ();
8388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8390 fprintf (f, "%ld\n", i);
8394 unsigned long int i = ulongval ();
8395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8397 fprintf (f, "%lu\n", i);
8399 return ferror (f) || fclose (f) != 0;
8405 rm -f conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_link") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_sizeof_void_p=`cat conftest.val`
8427 echo "$as_me: program exited with status $ac_status" >&5
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8432 if test "$ac_cv_type_void_p" = yes; then
8433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8434 See \`config.log' for more details." >&5
8435 echo "$as_me: error: cannot compute sizeof (void *)
8436 See \`config.log' for more details." >&2;}
8437 { (exit 77); exit 77; }; }
8439 ac_cv_sizeof_void_p=0
8442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8447 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8451 cat >>confdefs.h <<_ACEOF
8452 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8456 { echo "$as_me:$LINENO: checking for short" >&5
8457 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8458 if test "${ac_cv_type_short+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 typedef short ac__type_new_;
8472 if ((ac__type_new_ *) 0)
8474 if (sizeof (ac__type_new_))
8480 rm -f conftest.$ac_objext
8481 if { (ac_try="$ac_compile"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_cv_type_short=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8508 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8510 # The cast to long int works around a bug in the HP C Compiler
8511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8513 # This bug is HP SR number 8606223364.
8514 { echo "$as_me:$LINENO: checking size of short" >&5
8515 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8516 if test "${ac_cv_sizeof_short+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 if test "$cross_compiling" = yes; then
8520 # Depending upon the size, compute the lo and hi bounds.
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 typedef short ac__type_sizeof_;
8532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 typedef short ac__type_sizeof_;
8569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_hi=$ac_mid; break
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_lo=`expr $ac_mid + 1`
8599 if test $ac_lo -le $ac_mid; then
8603 ac_mid=`expr 2 '*' $ac_mid + 1`
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 typedef short ac__type_sizeof_;
8623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef short ac__type_sizeof_;
8660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_lo=$ac_mid; break
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_hi=`expr '(' $ac_mid ')' - 1`
8690 if test $ac_mid -le $ac_hi; then
8694 ac_mid=`expr 2 '*' $ac_mid`
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 # Binary search between lo and hi bounds.
8711 while test "x$ac_lo" != "x$ac_hi"; do
8712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 $ac_includes_default
8720 typedef short ac__type_sizeof_;
8724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8731 rm -f conftest.$ac_objext
8732 if { (ac_try="$ac_compile"
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_lo=`expr '(' $ac_mid ')' + 1`
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 ?*) ac_cv_sizeof_short=$ac_lo;;
8760 '') if test "$ac_cv_type_short" = yes; then
8761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8762 See \`config.log' for more details." >&5
8763 echo "$as_me: error: cannot compute sizeof (short)
8764 See \`config.log' for more details." >&2;}
8765 { (exit 77); exit 77; }; }
8767 ac_cv_sizeof_short=0
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8778 typedef short ac__type_sizeof_;
8779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8787 FILE *f = fopen ("conftest.val", "w");
8790 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8792 long int i = longval ();
8793 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8795 fprintf (f, "%ld\n", i);
8799 unsigned long int i = ulongval ();
8800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8802 fprintf (f, "%lu\n", i);
8804 return ferror (f) || fclose (f) != 0;
8810 rm -f conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_sizeof_short=`cat conftest.val`
8832 echo "$as_me: program exited with status $ac_status" >&5
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8837 if test "$ac_cv_type_short" = yes; then
8838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8839 See \`config.log' for more details." >&5
8840 echo "$as_me: error: cannot compute sizeof (short)
8841 See \`config.log' for more details." >&2;}
8842 { (exit 77); exit 77; }; }
8844 ac_cv_sizeof_short=0
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8852 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8856 cat >>confdefs.h <<_ACEOF
8857 #define SIZEOF_SHORT $ac_cv_sizeof_short
8861 { echo "$as_me:$LINENO: checking for int" >&5
8862 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8863 if test "${ac_cv_type_int+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 typedef int ac__type_new_;
8877 if ((ac__type_new_ *) 0)
8879 if (sizeof (ac__type_new_))
8885 rm -f conftest.$ac_objext
8886 if { (ac_try="$ac_compile"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_compile") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && {
8899 test -z "$ac_c_werror_flag" ||
8900 test ! -s conftest.err
8901 } && test -s conftest.$ac_objext; then
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8913 echo "${ECHO_T}$ac_cv_type_int" >&6; }
8915 # The cast to long int works around a bug in the HP C Compiler
8916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8918 # This bug is HP SR number 8606223364.
8919 { echo "$as_me:$LINENO: checking size of int" >&5
8920 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8921 if test "${ac_cv_sizeof_int+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 if test "$cross_compiling" = yes; then
8925 # Depending upon the size, compute the lo and hi bounds.
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932 $ac_includes_default
8933 typedef int ac__type_sizeof_;
8937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8944 rm -f conftest.$ac_objext
8945 if { (ac_try="$ac_compile"
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_compile") 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
8960 } && test -s conftest.$ac_objext; then
8963 cat >conftest.$ac_ext <<_ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 $ac_includes_default
8970 typedef int ac__type_sizeof_;
8974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_compile") 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest.$ac_objext; then
8998 ac_hi=$ac_mid; break
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_lo=`expr $ac_mid + 1`
9004 if test $ac_lo -le $ac_mid; then
9008 ac_mid=`expr 2 '*' $ac_mid + 1`
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 typedef int ac__type_sizeof_;
9028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_compile") 2>conftest.er1
9044 grep -v '^ *+' conftest.er1 >conftest.err
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && {
9049 test -z "$ac_c_werror_flag" ||
9050 test ! -s conftest.err
9051 } && test -s conftest.$ac_objext; then
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 typedef int ac__type_sizeof_;
9065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.$ac_objext; then
9089 ac_lo=$ac_mid; break
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_hi=`expr '(' $ac_mid ')' - 1`
9095 if test $ac_mid -le $ac_hi; then
9099 ac_mid=`expr 2 '*' $ac_mid`
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 typedef int ac__type_sizeof_;
9129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9136 rm -f conftest.$ac_objext
9137 if { (ac_try="$ac_compile"
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_lo=`expr '(' $ac_mid ')' + 1`
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164 ?*) ac_cv_sizeof_int=$ac_lo;;
9165 '') if test "$ac_cv_type_int" = yes; then
9166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9167 See \`config.log' for more details." >&5
9168 echo "$as_me: error: cannot compute sizeof (int)
9169 See \`config.log' for more details." >&2;}
9170 { (exit 77); exit 77; }; }
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 typedef int ac__type_sizeof_;
9184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9192 FILE *f = fopen ("conftest.val", "w");
9195 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9197 long int i = longval ();
9198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9200 fprintf (f, "%ld\n", i);
9204 unsigned long int i = ulongval ();
9205 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9207 fprintf (f, "%lu\n", i);
9209 return ferror (f) || fclose (f) != 0;
9215 rm -f conftest$ac_exeext
9216 if { (ac_try="$ac_link"
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_link") 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_try") 2>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235 ac_cv_sizeof_int=`cat conftest.val`
9237 echo "$as_me: program exited with status $ac_status" >&5
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9242 if test "$ac_cv_type_int" = yes; then
9243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9244 See \`config.log' for more details." >&5
9245 echo "$as_me: error: cannot compute sizeof (int)
9246 See \`config.log' for more details." >&2;}
9247 { (exit 77); exit 77; }; }
9252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9257 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9261 cat >>confdefs.h <<_ACEOF
9262 #define SIZEOF_INT $ac_cv_sizeof_int
9266 { echo "$as_me:$LINENO: checking for long" >&5
9267 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9268 if test "${ac_cv_type_long+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 typedef long ac__type_new_;
9282 if ((ac__type_new_ *) 0)
9284 if (sizeof (ac__type_new_))
9290 rm -f conftest.$ac_objext
9291 if { (ac_try="$ac_compile"
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9318 echo "${ECHO_T}$ac_cv_type_long" >&6; }
9320 # The cast to long int works around a bug in the HP C Compiler
9321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9323 # This bug is HP SR number 8606223364.
9324 { echo "$as_me:$LINENO: checking size of long" >&5
9325 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9326 if test "${ac_cv_sizeof_long+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 if test "$cross_compiling" = yes; then
9330 # Depending upon the size, compute the lo and hi bounds.
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 typedef long ac__type_sizeof_;
9342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest.$ac_objext; then
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 $ac_includes_default
9375 typedef long ac__type_sizeof_;
9379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest.$ac_objext; then
9403 ac_hi=$ac_mid; break
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_lo=`expr $ac_mid + 1`
9409 if test $ac_lo -le $ac_mid; then
9413 ac_mid=`expr 2 '*' $ac_mid + 1`
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9429 typedef long ac__type_sizeof_;
9433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 typedef long ac__type_sizeof_;
9470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9477 rm -f conftest.$ac_objext
9478 if { (ac_try="$ac_compile"
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_compile") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest.$ac_objext; then
9494 ac_lo=$ac_mid; break
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_hi=`expr '(' $ac_mid ')' - 1`
9500 if test $ac_mid -le $ac_hi; then
9504 ac_mid=`expr 2 '*' $ac_mid`
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 # Binary search between lo and hi bounds.
9521 while test "x$ac_lo" != "x$ac_hi"; do
9522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 $ac_includes_default
9530 typedef long ac__type_sizeof_;
9534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9550 grep -v '^ *+' conftest.er1 >conftest.err
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_lo=`expr '(' $ac_mid ')' + 1`
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 ?*) ac_cv_sizeof_long=$ac_lo;;
9570 '') if test "$ac_cv_type_long" = yes; then
9571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9572 See \`config.log' for more details." >&5
9573 echo "$as_me: error: cannot compute sizeof (long)
9574 See \`config.log' for more details." >&2;}
9575 { (exit 77); exit 77; }; }
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 $ac_includes_default
9588 typedef long ac__type_sizeof_;
9589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9597 FILE *f = fopen ("conftest.val", "w");
9600 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9602 long int i = longval ();
9603 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9605 fprintf (f, "%ld\n", i);
9609 unsigned long int i = ulongval ();
9610 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9612 fprintf (f, "%lu\n", i);
9614 return ferror (f) || fclose (f) != 0;
9620 rm -f conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_link") 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9631 { (case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_try") 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_sizeof_long=`cat conftest.val`
9642 echo "$as_me: program exited with status $ac_status" >&5
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9647 if test "$ac_cv_type_long" = yes; then
9648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9649 See \`config.log' for more details." >&5
9650 echo "$as_me: error: cannot compute sizeof (long)
9651 See \`config.log' for more details." >&2;}
9652 { (exit 77); exit 77; }; }
9657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9666 cat >>confdefs.h <<_ACEOF
9667 #define SIZEOF_LONG $ac_cv_sizeof_long
9671 { echo "$as_me:$LINENO: checking for long long" >&5
9672 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9673 if test "${ac_cv_type_long_long+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 $ac_includes_default
9683 typedef long long ac__type_new_;
9687 if ((ac__type_new_ *) 0)
9689 if (sizeof (ac__type_new_))
9695 rm -f conftest.$ac_objext
9696 if { (ac_try="$ac_compile"
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_compile") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && {
9709 test -z "$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 } && test -s conftest.$ac_objext; then
9712 ac_cv_type_long_long=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_cv_type_long_long=no
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9723 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9725 # The cast to long int works around a bug in the HP C Compiler
9726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9728 # This bug is HP SR number 8606223364.
9729 { echo "$as_me:$LINENO: checking size of long long" >&5
9730 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9731 if test "${ac_cv_sizeof_long_long+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 if test "$cross_compiling" = yes; then
9735 # Depending upon the size, compute the lo and hi bounds.
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9743 typedef long long ac__type_sizeof_;
9747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 $ac_includes_default
9780 typedef long long ac__type_sizeof_;
9784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_hi=$ac_mid; break
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_lo=`expr $ac_mid + 1`
9814 if test $ac_lo -le $ac_mid; then
9818 ac_mid=`expr 2 '*' $ac_mid + 1`
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9834 typedef long long ac__type_sizeof_;
9838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9845 rm -f conftest.$ac_objext
9846 if { (ac_try="$ac_compile"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.$ac_objext; then
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 typedef long long ac__type_sizeof_;
9875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_lo=$ac_mid; break
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_hi=`expr '(' $ac_mid ')' - 1`
9905 if test $ac_mid -le $ac_hi; then
9909 ac_mid=`expr 2 '*' $ac_mid`
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 # Binary search between lo and hi bounds.
9926 while test "x$ac_lo" != "x$ac_hi"; do
9927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 typedef long long ac__type_sizeof_;
9939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_lo=`expr '(' $ac_mid ')' + 1`
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9975 '') if test "$ac_cv_type_long_long" = yes; then
9976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9977 See \`config.log' for more details." >&5
9978 echo "$as_me: error: cannot compute sizeof (long long)
9979 See \`config.log' for more details." >&2;}
9980 { (exit 77); exit 77; }; }
9982 ac_cv_sizeof_long_long=0
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 typedef long long ac__type_sizeof_;
9994 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9995 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10002 FILE *f = fopen ("conftest.val", "w");
10005 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10007 long int i = longval ();
10008 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10010 fprintf (f, "%ld\n", i);
10014 unsigned long int i = ulongval ();
10015 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10017 fprintf (f, "%lu\n", i);
10019 return ferror (f) || fclose (f) != 0;
10025 rm -f conftest$ac_exeext
10026 if { (ac_try="$ac_link"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_link") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_sizeof_long_long=`cat conftest.val`
10047 echo "$as_me: program exited with status $ac_status" >&5
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ( exit $ac_status )
10052 if test "$ac_cv_type_long_long" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long)
10056 See \`config.log' for more details." >&2;}
10057 { (exit 77); exit 77; }; }
10059 ac_cv_sizeof_long_long=0
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10067 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10071 cat >>confdefs.h <<_ACEOF
10072 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10076 { echo "$as_me:$LINENO: checking size of __int64" >&5
10077 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
10078 if test "${ac_cv_sizeof___int64+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 if test "$cross_compiling" = yes; then
10082 ac_cv_sizeof___int64=8
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10093 #include <stdlib.h>
10094 #include <stddef.h>
10096 #if HAVE_INTTYPES_H
10097 #include <inttypes.h>
10099 #if HAVE_SYS_TYPES_H
10100 #include <sys/types.h>
10102 #if HAVE_SYS_BITYPES_H
10103 #include <sys/bitypes.h>
10107 FILE *f=fopen("conftestval", "w");
10109 fprintf(f, "%d\n", sizeof(__int64));
10114 rm -f conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_sizeof___int64=`cat conftestval`
10136 echo "$as_me: program exited with status $ac_status" >&5
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ( exit $ac_status )
10141 ac_cv_sizeof___int64=0
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
10149 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
10150 cat >>confdefs.h <<_ACEOF
10151 #define SIZEOF___INT64 $ac_cv_sizeof___int64
10155 { echo "$as_me:$LINENO: checking size of int16_t" >&5
10156 echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6; }
10157 if test "${ac_cv_sizeof_int16_t+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 if test "$cross_compiling" = yes; then
10161 ac_cv_sizeof_int16_t=2
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10172 #include <stdlib.h>
10173 #include <stddef.h>
10175 #if HAVE_INTTYPES_H
10176 #include <inttypes.h>
10178 #if HAVE_SYS_TYPES_H
10179 #include <sys/types.h>
10181 #if HAVE_SYS_BITYPES_H
10182 #include <sys/bitypes.h>
10186 FILE *f=fopen("conftestval", "w");
10188 fprintf(f, "%d\n", sizeof(int16_t));
10193 rm -f conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_sizeof_int16_t=`cat conftestval`
10215 echo "$as_me: program exited with status $ac_status" >&5
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ( exit $ac_status )
10220 ac_cv_sizeof_int16_t=0
10222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
10228 echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6; }
10229 cat >>confdefs.h <<_ACEOF
10230 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
10234 { echo "$as_me:$LINENO: checking size of uint16_t" >&5
10235 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
10236 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 if test "$cross_compiling" = yes; then
10240 ac_cv_sizeof_uint16_t=2
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10251 #include <stdlib.h>
10252 #include <stddef.h>
10254 #if HAVE_INTTYPES_H
10255 #include <inttypes.h>
10257 #if HAVE_SYS_TYPES_H
10258 #include <sys/types.h>
10260 #if HAVE_SYS_BITYPES_H
10261 #include <sys/bitypes.h>
10265 FILE *f=fopen("conftestval", "w");
10267 fprintf(f, "%d\n", sizeof(uint16_t));
10272 rm -f conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_sizeof_uint16_t=`cat conftestval`
10294 echo "$as_me: program exited with status $ac_status" >&5
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ( exit $ac_status )
10299 ac_cv_sizeof_uint16_t=0
10301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10306 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
10307 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
10308 cat >>confdefs.h <<_ACEOF
10309 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
10313 { echo "$as_me:$LINENO: checking size of u_int16_t" >&5
10314 echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_sizeof_u_int16_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_sizeof_u_int16_t=2
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10330 #include <stdlib.h>
10331 #include <stddef.h>
10333 #if HAVE_INTTYPES_H
10334 #include <inttypes.h>
10336 #if HAVE_SYS_TYPES_H
10337 #include <sys/types.h>
10339 #if HAVE_SYS_BITYPES_H
10340 #include <sys/bitypes.h>
10344 FILE *f=fopen("conftestval", "w");
10346 fprintf(f, "%d\n", sizeof(u_int16_t));
10351 rm -f conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10362 { (case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_try") 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_sizeof_u_int16_t=`cat conftestval`
10373 echo "$as_me: program exited with status $ac_status" >&5
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ( exit $ac_status )
10378 ac_cv_sizeof_u_int16_t=0
10380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5
10386 echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6; }
10387 cat >>confdefs.h <<_ACEOF
10388 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
10392 { echo "$as_me:$LINENO: checking size of int32_t" >&5
10393 echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6; }
10394 if test "${ac_cv_sizeof_int32_t+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 if test "$cross_compiling" = yes; then
10398 ac_cv_sizeof_int32_t=4
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10409 #include <stdlib.h>
10410 #include <stddef.h>
10412 #if HAVE_INTTYPES_H
10413 #include <inttypes.h>
10415 #if HAVE_SYS_TYPES_H
10416 #include <sys/types.h>
10418 #if HAVE_SYS_BITYPES_H
10419 #include <sys/bitypes.h>
10423 FILE *f=fopen("conftestval", "w");
10425 fprintf(f, "%d\n", sizeof(int32_t));
10430 rm -f conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_link") 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_sizeof_int32_t=`cat conftestval`
10452 echo "$as_me: program exited with status $ac_status" >&5
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ( exit $ac_status )
10457 ac_cv_sizeof_int32_t=0
10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
10465 echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6; }
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
10471 { echo "$as_me:$LINENO: checking size of uint32_t" >&5
10472 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
10473 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 if test "$cross_compiling" = yes; then
10477 ac_cv_sizeof_uint32_t=4
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10488 #include <stdlib.h>
10489 #include <stddef.h>
10491 #if HAVE_INTTYPES_H
10492 #include <inttypes.h>
10494 #if HAVE_SYS_TYPES_H
10495 #include <sys/types.h>
10497 #if HAVE_SYS_BITYPES_H
10498 #include <sys/bitypes.h>
10502 FILE *f=fopen("conftestval", "w");
10504 fprintf(f, "%d\n", sizeof(uint32_t));
10509 rm -f conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_sizeof_uint32_t=`cat conftestval`
10531 echo "$as_me: program exited with status $ac_status" >&5
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ( exit $ac_status )
10536 ac_cv_sizeof_uint32_t=0
10538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
10544 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
10545 cat >>confdefs.h <<_ACEOF
10546 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
10550 { echo "$as_me:$LINENO: checking size of u_int32_t" >&5
10551 echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6; }
10552 if test "${ac_cv_sizeof_u_int32_t+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_u_int32_t=4
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10567 #include <stdlib.h>
10568 #include <stddef.h>
10570 #if HAVE_INTTYPES_H
10571 #include <inttypes.h>
10573 #if HAVE_SYS_TYPES_H
10574 #include <sys/types.h>
10576 #if HAVE_SYS_BITYPES_H
10577 #include <sys/bitypes.h>
10581 FILE *f=fopen("conftestval", "w");
10583 fprintf(f, "%d\n", sizeof(u_int32_t));
10588 rm -f conftest$ac_exeext
10589 if { (ac_try="$ac_link"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_link") 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_sizeof_u_int32_t=`cat conftestval`
10610 echo "$as_me: program exited with status $ac_status" >&5
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ( exit $ac_status )
10615 ac_cv_sizeof_u_int32_t=0
10617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5
10623 echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6; }
10624 cat >>confdefs.h <<_ACEOF
10625 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
10629 { echo "$as_me:$LINENO: checking size of int64_t" >&5
10630 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
10631 if test "${ac_cv_sizeof_int64_t+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 if test "$cross_compiling" = yes; then
10635 ac_cv_sizeof_int64_t=8
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10646 #include <stdlib.h>
10647 #include <stddef.h>
10649 #if HAVE_INTTYPES_H
10650 #include <inttypes.h>
10652 #if HAVE_SYS_TYPES_H
10653 #include <sys/types.h>
10655 #if HAVE_SYS_BITYPES_H
10656 #include <sys/bitypes.h>
10660 FILE *f=fopen("conftestval", "w");
10662 fprintf(f, "%d\n", sizeof(int64_t));
10667 rm -f conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_sizeof_int64_t=`cat conftestval`
10689 echo "$as_me: program exited with status $ac_status" >&5
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ( exit $ac_status )
10694 ac_cv_sizeof_int64_t=0
10696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10701 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
10702 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
10703 cat >>confdefs.h <<_ACEOF
10704 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
10708 { echo "$as_me:$LINENO: checking size of uint64_t" >&5
10709 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6; }
10710 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 if test "$cross_compiling" = yes; then
10714 ac_cv_sizeof_uint64_t=8
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10725 #include <stdlib.h>
10726 #include <stddef.h>
10728 #if HAVE_INTTYPES_H
10729 #include <inttypes.h>
10731 #if HAVE_SYS_TYPES_H
10732 #include <sys/types.h>
10734 #if HAVE_SYS_BITYPES_H
10735 #include <sys/bitypes.h>
10739 FILE *f=fopen("conftestval", "w");
10741 fprintf(f, "%d\n", sizeof(uint64_t));
10746 rm -f conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_link") 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10757 { (case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_try") 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 ac_cv_sizeof_uint64_t=`cat conftestval`
10768 echo "$as_me: program exited with status $ac_status" >&5
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ( exit $ac_status )
10773 ac_cv_sizeof_uint64_t=0
10775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
10781 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6; }
10782 cat >>confdefs.h <<_ACEOF
10783 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
10787 { echo "$as_me:$LINENO: checking size of u_int64_t" >&5
10788 echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6; }
10789 if test "${ac_cv_sizeof_u_int64_t+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 if test "$cross_compiling" = yes; then
10793 ac_cv_sizeof_u_int64_t=8
10795 cat >conftest.$ac_ext <<_ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10804 #include <stdlib.h>
10805 #include <stddef.h>
10807 #if HAVE_INTTYPES_H
10808 #include <inttypes.h>
10810 #if HAVE_SYS_TYPES_H
10811 #include <sys/types.h>
10813 #if HAVE_SYS_BITYPES_H
10814 #include <sys/bitypes.h>
10818 FILE *f=fopen("conftestval", "w");
10820 fprintf(f, "%d\n", sizeof(u_int64_t));
10825 rm -f conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10836 { (case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_try") 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_sizeof_u_int64_t=`cat conftestval`
10847 echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ( exit $ac_status )
10852 ac_cv_sizeof_u_int64_t=0
10854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5
10860 echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6; }
10861 cat >>confdefs.h <<_ACEOF
10862 #define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
10867 if test "x$ac_cv_sizeof_short" = "x2"; then
10868 { echo "$as_me:$LINENO: checking for int16_t" >&5
10869 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10870 if test "${ac_cv_type_int16_t+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10880 /* What a mess.. many systems have added the (now standard) bit types
10881 * in their own ways, so we need to scan a wide variety of headers to
10884 #include <sys/types.h>
10886 #include <stdlib.h>
10887 #include <stddef.h>
10889 #if HAVE_INTTYPES_H
10890 #include <inttypes.h>
10892 #if HAVE_SYS_TYPES_H
10893 #include <sys/types.h>
10895 #if HAVE_SYS_BITYPES_H
10896 #include <sys/bitypes.h>
10900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10901 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10902 ac_cv_type_int16_t=yes
10904 ac_cv_type_int16_t=no
10909 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10910 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10911 if test $ac_cv_type_int16_t = no; then
10912 cat >>confdefs.h <<\_ACEOF
10913 #define int16_t short
10918 elif test "x$ac_cv_sizeof_int" = "x2"; then
10919 { echo "$as_me:$LINENO: checking for int16_t" >&5
10920 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10921 if test "${ac_cv_type_int16_t+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 /* What a mess.. many systems have added the (now standard) bit types
10932 * in their own ways, so we need to scan a wide variety of headers to
10935 #include <sys/types.h>
10937 #include <stdlib.h>
10938 #include <stddef.h>
10940 #if HAVE_INTTYPES_H
10941 #include <inttypes.h>
10943 #if HAVE_SYS_TYPES_H
10944 #include <sys/types.h>
10946 #if HAVE_SYS_BITYPES_H
10947 #include <sys/bitypes.h>
10951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10952 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10953 ac_cv_type_int16_t=yes
10955 ac_cv_type_int16_t=no
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10962 if test $ac_cv_type_int16_t = no; then
10963 cat >>confdefs.h <<\_ACEOF
10964 #define int16_t int
10970 if test "x$ac_cv_sizeof_uint16_t" = "x2"; then
10971 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10972 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10973 if test "${ac_cv_type_u_int16_t+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10983 /* What a mess.. many systems have added the (now standard) bit types
10984 * in their own ways, so we need to scan a wide variety of headers to
10987 #include <sys/types.h>
10989 #include <stdlib.h>
10990 #include <stddef.h>
10992 #if HAVE_INTTYPES_H
10993 #include <inttypes.h>
10995 #if HAVE_SYS_TYPES_H
10996 #include <sys/types.h>
10998 #if HAVE_SYS_BITYPES_H
10999 #include <sys/bitypes.h>
11003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004 $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11005 ac_cv_type_u_int16_t=yes
11007 ac_cv_type_u_int16_t=no
11012 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11013 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11014 if test $ac_cv_type_u_int16_t = no; then
11015 cat >>confdefs.h <<\_ACEOF
11016 #define u_int16_t uint16_t
11021 elif test "x$ac_cv_sizeof_short" = "x2"; then
11022 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11023 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11024 if test "${ac_cv_type_u_int16_t+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11034 /* What a mess.. many systems have added the (now standard) bit types
11035 * in their own ways, so we need to scan a wide variety of headers to
11038 #include <sys/types.h>
11040 #include <stdlib.h>
11041 #include <stddef.h>
11043 #if HAVE_INTTYPES_H
11044 #include <inttypes.h>
11046 #if HAVE_SYS_TYPES_H
11047 #include <sys/types.h>
11049 #if HAVE_SYS_BITYPES_H
11050 #include <sys/bitypes.h>
11054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11055 $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11056 ac_cv_type_u_int16_t=yes
11058 ac_cv_type_u_int16_t=no
11063 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11065 if test $ac_cv_type_u_int16_t = no; then
11066 cat >>confdefs.h <<\_ACEOF
11067 #define u_int16_t unsigned short
11072 elif test "x$ac_cv_sizeof_int" = "x2"; then
11073 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11074 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11075 if test "${ac_cv_type_u_int16_t+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11085 /* What a mess.. many systems have added the (now standard) bit types
11086 * in their own ways, so we need to scan a wide variety of headers to
11089 #include <sys/types.h>
11091 #include <stdlib.h>
11092 #include <stddef.h>
11094 #if HAVE_INTTYPES_H
11095 #include <inttypes.h>
11097 #if HAVE_SYS_TYPES_H
11098 #include <sys/types.h>
11100 #if HAVE_SYS_BITYPES_H
11101 #include <sys/bitypes.h>
11105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11106 $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11107 ac_cv_type_u_int16_t=yes
11109 ac_cv_type_u_int16_t=no
11114 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11115 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11116 if test $ac_cv_type_u_int16_t = no; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define u_int16_t unsigned int
11124 if test "x$ac_cv_sizeof_int" = "x4"; then
11125 { echo "$as_me:$LINENO: checking for int32_t" >&5
11126 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11127 if test "${ac_cv_type_int32_t+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11137 /* What a mess.. many systems have added the (now standard) bit types
11138 * in their own ways, so we need to scan a wide variety of headers to
11141 #include <sys/types.h>
11143 #include <stdlib.h>
11144 #include <stddef.h>
11146 #if HAVE_INTTYPES_H
11147 #include <inttypes.h>
11149 #if HAVE_SYS_TYPES_H
11150 #include <sys/types.h>
11152 #if HAVE_SYS_BITYPES_H
11153 #include <sys/bitypes.h>
11157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11158 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11159 ac_cv_type_int32_t=yes
11161 ac_cv_type_int32_t=no
11166 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11167 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11168 if test $ac_cv_type_int32_t = no; then
11169 cat >>confdefs.h <<\_ACEOF
11170 #define int32_t int
11175 elif "x$ac_cv_sizeof_long" = "x4"; then
11176 { echo "$as_me:$LINENO: checking for int32_t" >&5
11177 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11178 if test "${ac_cv_type_int32_t+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11188 /* What a mess.. many systems have added the (now standard) bit types
11189 * in their own ways, so we need to scan a wide variety of headers to
11192 #include <sys/types.h>
11194 #include <stdlib.h>
11195 #include <stddef.h>
11197 #if HAVE_INTTYPES_H
11198 #include <inttypes.h>
11200 #if HAVE_SYS_TYPES_H
11201 #include <sys/types.h>
11203 #if HAVE_SYS_BITYPES_H
11204 #include <sys/bitypes.h>
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11210 ac_cv_type_int32_t=yes
11212 ac_cv_type_int32_t=no
11217 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11219 if test $ac_cv_type_int32_t = no; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define int32_t long
11227 if test "x$ac_cv_sizeof_uint32_t" = "x4"; then
11228 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11229 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11230 if test "${ac_cv_type_u_int32_t+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11240 /* What a mess.. many systems have added the (now standard) bit types
11241 * in their own ways, so we need to scan a wide variety of headers to
11244 #include <sys/types.h>
11246 #include <stdlib.h>
11247 #include <stddef.h>
11249 #if HAVE_INTTYPES_H
11250 #include <inttypes.h>
11252 #if HAVE_SYS_TYPES_H
11253 #include <sys/types.h>
11255 #if HAVE_SYS_BITYPES_H
11256 #include <sys/bitypes.h>
11260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11261 $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11262 ac_cv_type_u_int32_t=yes
11264 ac_cv_type_u_int32_t=no
11269 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11270 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11271 if test $ac_cv_type_u_int32_t = no; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define u_int32_t uint32_t
11278 elif test "x$ac_cv_sizeof_int" = "x4"; then
11279 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11280 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11281 if test "${ac_cv_type_u_int32_t+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11291 /* What a mess.. many systems have added the (now standard) bit types
11292 * in their own ways, so we need to scan a wide variety of headers to
11295 #include <sys/types.h>
11297 #include <stdlib.h>
11298 #include <stddef.h>
11300 #if HAVE_INTTYPES_H
11301 #include <inttypes.h>
11303 #if HAVE_SYS_TYPES_H
11304 #include <sys/types.h>
11306 #if HAVE_SYS_BITYPES_H
11307 #include <sys/bitypes.h>
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312 $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11313 ac_cv_type_u_int32_t=yes
11315 ac_cv_type_u_int32_t=no
11320 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11322 if test $ac_cv_type_u_int32_t = no; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define u_int32_t unsigned int
11329 elif test "x$ac_cv_sizeof_long" = "x4"; then
11330 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11331 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11332 if test "${ac_cv_type_u_int32_t+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11342 /* What a mess.. many systems have added the (now standard) bit types
11343 * in their own ways, so we need to scan a wide variety of headers to
11346 #include <sys/types.h>
11348 #include <stdlib.h>
11349 #include <stddef.h>
11351 #if HAVE_INTTYPES_H
11352 #include <inttypes.h>
11354 #if HAVE_SYS_TYPES_H
11355 #include <sys/types.h>
11357 #if HAVE_SYS_BITYPES_H
11358 #include <sys/bitypes.h>
11362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11363 $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11364 ac_cv_type_u_int32_t=yes
11366 ac_cv_type_u_int32_t=no
11371 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11372 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11373 if test $ac_cv_type_u_int32_t = no; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define u_int32_t unsigned long
11381 if test "x$ac_cv_sizeof_long" = "x8"; then
11382 { echo "$as_me:$LINENO: checking for int64_t" >&5
11383 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11384 if test "${ac_cv_type_int64_t+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 /* What a mess.. many systems have added the (now standard) bit types
11395 * in their own ways, so we need to scan a wide variety of headers to
11398 #include <sys/types.h>
11400 #include <stdlib.h>
11401 #include <stddef.h>
11403 #if HAVE_INTTYPES_H
11404 #include <inttypes.h>
11406 #if HAVE_SYS_TYPES_H
11407 #include <sys/types.h>
11409 #if HAVE_SYS_BITYPES_H
11410 #include <sys/bitypes.h>
11414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11415 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11416 ac_cv_type_int64_t=yes
11418 ac_cv_type_int64_t=no
11423 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11425 if test $ac_cv_type_int64_t = no; then
11426 cat >>confdefs.h <<\_ACEOF
11427 #define int64_t long
11432 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
11433 { echo "$as_me:$LINENO: checking for int64_t" >&5
11434 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11435 if test "${ac_cv_type_int64_t+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 /* What a mess.. many systems have added the (now standard) bit types
11446 * in their own ways, so we need to scan a wide variety of headers to
11449 #include <sys/types.h>
11451 #include <stdlib.h>
11452 #include <stddef.h>
11454 #if HAVE_INTTYPES_H
11455 #include <inttypes.h>
11457 #if HAVE_SYS_TYPES_H
11458 #include <sys/types.h>
11460 #if HAVE_SYS_BITYPES_H
11461 #include <sys/bitypes.h>
11465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11466 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11467 ac_cv_type_int64_t=yes
11469 ac_cv_type_int64_t=no
11474 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11475 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11476 if test $ac_cv_type_int64_t = no; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define int64_t long long
11483 elif test "x$ac_cv_sizeof___int64" = "x8"; then
11484 { echo "$as_me:$LINENO: checking for int64_t" >&5
11485 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11486 if test "${ac_cv_type_int64_t+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11496 /* What a mess.. many systems have added the (now standard) bit types
11497 * in their own ways, so we need to scan a wide variety of headers to
11500 #include <sys/types.h>
11502 #include <stdlib.h>
11503 #include <stddef.h>
11505 #if HAVE_INTTYPES_H
11506 #include <inttypes.h>
11508 #if HAVE_SYS_TYPES_H
11509 #include <sys/types.h>
11511 #if HAVE_SYS_BITYPES_H
11512 #include <sys/bitypes.h>
11516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11518 ac_cv_type_int64_t=yes
11520 ac_cv_type_int64_t=no
11525 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11527 if test $ac_cv_type_int64_t = no; then
11528 cat >>confdefs.h <<\_ACEOF
11529 #define int64_t __int64
11535 if test "x$ac_cv_sizeof_uint64_t" = "x8"; then
11536 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11537 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11538 if test "${ac_cv_type_u_int64_t+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11548 /* What a mess.. many systems have added the (now standard) bit types
11549 * in their own ways, so we need to scan a wide variety of headers to
11552 #include <sys/types.h>
11554 #include <stdlib.h>
11555 #include <stddef.h>
11557 #if HAVE_INTTYPES_H
11558 #include <inttypes.h>
11560 #if HAVE_SYS_TYPES_H
11561 #include <sys/types.h>
11563 #if HAVE_SYS_BITYPES_H
11564 #include <sys/bitypes.h>
11568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11569 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11570 ac_cv_type_u_int64_t=yes
11572 ac_cv_type_u_int64_t=no
11577 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11578 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11579 if test $ac_cv_type_u_int64_t = no; then
11580 cat >>confdefs.h <<\_ACEOF
11581 #define u_int64_t uint64_t
11586 elif test "x$ac_cv_sizeof_long" = "x8"; then
11587 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11588 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11589 if test "${ac_cv_type_u_int64_t+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 /* What a mess.. many systems have added the (now standard) bit types
11600 * in their own ways, so we need to scan a wide variety of headers to
11603 #include <sys/types.h>
11605 #include <stdlib.h>
11606 #include <stddef.h>
11608 #if HAVE_INTTYPES_H
11609 #include <inttypes.h>
11611 #if HAVE_SYS_TYPES_H
11612 #include <sys/types.h>
11614 #if HAVE_SYS_BITYPES_H
11615 #include <sys/bitypes.h>
11619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11620 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11621 ac_cv_type_u_int64_t=yes
11623 ac_cv_type_u_int64_t=no
11628 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11629 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11630 if test $ac_cv_type_u_int64_t = no; then
11631 cat >>confdefs.h <<\_ACEOF
11632 #define u_int64_t unsigned long
11637 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
11638 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11639 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_type_u_int64_t+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 /* What a mess.. many systems have added the (now standard) bit types
11651 * in their own ways, so we need to scan a wide variety of headers to
11654 #include <sys/types.h>
11656 #include <stdlib.h>
11657 #include <stddef.h>
11659 #if HAVE_INTTYPES_H
11660 #include <inttypes.h>
11662 #if HAVE_SYS_TYPES_H
11663 #include <sys/types.h>
11665 #if HAVE_SYS_BITYPES_H
11666 #include <sys/bitypes.h>
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11672 ac_cv_type_u_int64_t=yes
11674 ac_cv_type_u_int64_t=no
11679 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11680 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11681 if test $ac_cv_type_u_int64_t = no; then
11682 cat >>confdefs.h <<\_ACEOF
11683 #define u_int64_t unsigned long long
11688 elif test "x$ac_cv_sizeof___int64" = "x8"; then
11689 { echo "$as_me:$LINENO: checking for int64_t" >&5
11690 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11691 if test "${ac_cv_type_int64_t+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11701 /* What a mess.. many systems have added the (now standard) bit types
11702 * in their own ways, so we need to scan a wide variety of headers to
11705 #include <sys/types.h>
11707 #include <stdlib.h>
11708 #include <stddef.h>
11710 #if HAVE_INTTYPES_H
11711 #include <inttypes.h>
11713 #if HAVE_SYS_TYPES_H
11714 #include <sys/types.h>
11716 #if HAVE_SYS_BITYPES_H
11717 #include <sys/bitypes.h>
11721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11722 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11723 ac_cv_type_int64_t=yes
11725 ac_cv_type_int64_t=no
11730 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11731 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11732 if test $ac_cv_type_int64_t = no; then
11733 cat >>confdefs.h <<\_ACEOF
11734 #define int64_t unsigned __int64
11741 { echo "$as_me:$LINENO: checking for pid_t" >&5
11742 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11743 if test "${ac_cv_type_pid_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 $ac_includes_default
11753 typedef pid_t ac__type_new_;
11757 if ((ac__type_new_ *) 0)
11759 if (sizeof (ac__type_new_))
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_compile") 2>conftest.er1
11774 grep -v '^ *+' conftest.er1 >conftest.err
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } && {
11779 test -z "$ac_c_werror_flag" ||
11780 test ! -s conftest.err
11781 } && test -s conftest.$ac_objext; then
11782 ac_cv_type_pid_t=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_cv_type_pid_t=no
11790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11794 if test $ac_cv_type_pid_t = yes; then
11798 cat >>confdefs.h <<_ACEOF
11804 { echo "$as_me:$LINENO: checking for size_t" >&5
11805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11806 if test "${ac_cv_type_size_t+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef size_t ac__type_new_;
11820 if ((ac__type_new_ *) 0)
11822 if (sizeof (ac__type_new_))
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11845 ac_cv_type_size_t=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_cv_type_size_t=no
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11856 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11857 if test $ac_cv_type_size_t = yes; then
11861 cat >>confdefs.h <<_ACEOF
11862 #define size_t unsigned int
11867 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11868 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11869 if test "${ac_cv_type_ssize_t+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 $ac_includes_default
11879 typedef ssize_t ac__type_new_;
11883 if ((ac__type_new_ *) 0)
11885 if (sizeof (ac__type_new_))
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest.$ac_objext; then
11908 ac_cv_type_ssize_t=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_cv_type_ssize_t=no
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11919 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
11920 if test $ac_cv_type_ssize_t = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define ssize_t int
11930 { echo "$as_me:$LINENO: checking for off_t" >&5
11931 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11932 if test "${ac_cv_type_off_t+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 $ac_includes_default
11942 typedef off_t ac__type_new_;
11946 if ((ac__type_new_ *) 0)
11948 if (sizeof (ac__type_new_))
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_cv_type_off_t=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_cv_type_off_t=no
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11982 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11983 if test $ac_cv_type_off_t = yes; then
11987 cat >>confdefs.h <<_ACEOF
11993 { echo "$as_me:$LINENO: checking for mode_t" >&5
11994 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11995 if test "${ac_cv_type_mode_t+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 typedef mode_t ac__type_new_;
12009 if ((ac__type_new_ *) 0)
12011 if (sizeof (ac__type_new_))
12017 rm -f conftest.$ac_objext
12018 if { (ac_try="$ac_compile"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_compile") 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && {
12031 test -z "$ac_c_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest.$ac_objext; then
12034 ac_cv_type_mode_t=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_type_mode_t=no
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12045 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
12046 if test $ac_cv_type_mode_t = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define mode_t unsigned short
12056 { echo "$as_me:$LINENO: checking for fd_mask" >&5
12057 echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
12058 if test "${ac_cv_type_fd_mask+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 typedef fd_mask ac__type_new_;
12072 if ((ac__type_new_ *) 0)
12074 if (sizeof (ac__type_new_))
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_compile") 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest.$ac_objext; then
12097 ac_cv_type_fd_mask=yes
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 ac_cv_type_fd_mask=no
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
12108 echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
12109 if test $ac_cv_type_fd_mask = yes; then
12113 cat >>confdefs.h <<_ACEOF
12114 #define fd_mask int
12120 { echo "$as_me:$LINENO: checking size of off_t" >&5
12121 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12122 if test "${ac_cv_sizeof_off_t+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 if test "$cross_compiling" = yes; then
12126 ac_cv_sizeof_off_t=4
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12137 #include <stdlib.h>
12138 #include <stddef.h>
12140 #if HAVE_INTTYPES_H
12141 #include <inttypes.h>
12143 #if HAVE_SYS_TYPES_H
12144 #include <sys/types.h>
12146 #if HAVE_SYS_BITYPES_H
12147 #include <sys/bitypes.h>
12151 FILE *f=fopen("conftestval", "w");
12153 fprintf(f, "%d\n", sizeof(off_t));
12158 rm -f conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_cv_sizeof_off_t=`cat conftestval`
12180 echo "$as_me: program exited with status $ac_status" >&5
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ( exit $ac_status )
12185 ac_cv_sizeof_off_t=0
12187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12193 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12194 cat >>confdefs.h <<_ACEOF
12195 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12199 { echo "$as_me:$LINENO: checking size of size_t" >&5
12200 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
12201 if test "${ac_cv_sizeof_size_t+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 if test "$cross_compiling" = yes; then
12205 ac_cv_sizeof_size_t=4
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12216 #include <stdlib.h>
12217 #include <stddef.h>
12219 #if HAVE_INTTYPES_H
12220 #include <inttypes.h>
12222 #if HAVE_SYS_TYPES_H
12223 #include <sys/types.h>
12225 #if HAVE_SYS_BITYPES_H
12226 #include <sys/bitypes.h>
12230 FILE *f=fopen("conftestval", "w");
12232 fprintf(f, "%d\n", sizeof(size_t));
12237 rm -f conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_sizeof_size_t=`cat conftestval`
12259 echo "$as_me: program exited with status $ac_status" >&5
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 ( exit $ac_status )
12264 ac_cv_sizeof_size_t=0
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
12272 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
12273 cat >>confdefs.h <<_ACEOF
12274 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12279 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12280 # for constant arguments. Useless!
12281 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
12282 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12283 if test "${ac_cv_working_alloca_h+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <alloca.h>
12296 char *p = (char *) alloca (2 * sizeof (int));
12302 rm -f conftest.$ac_objext conftest$ac_exeext
12303 if { (ac_try="$ac_link"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_working_alloca_h=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_working_alloca_h=no
12328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12331 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12333 if test $ac_cv_working_alloca_h = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12341 { echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12353 # define alloca __builtin_alloca
12356 # include <malloc.h>
12357 # define alloca _alloca
12359 # ifdef HAVE_ALLOCA_H
12360 # include <alloca.h>
12365 # ifndef alloca /* predefined by HP cc +Olibcalls */
12376 char *p = (char *) alloca (1);
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_link") 2>conftest.er1
12391 grep -v '^ *+' conftest.er1 >conftest.err
12393 cat conftest.err >&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } && {
12396 test -z "$ac_c_werror_flag" ||
12397 test ! -s conftest.err
12398 } && test -s conftest$ac_exeext &&
12399 $as_test_x conftest$ac_exeext; then
12400 ac_cv_func_alloca_works=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_cv_func_alloca_works=no
12408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12409 conftest$ac_exeext conftest.$ac_ext
12411 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12412 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12414 if test $ac_cv_func_alloca_works = yes; then
12416 cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_ALLOCA 1
12421 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12422 # that cause trouble. Some versions do not even contain alloca or
12423 # contain a buggy version. If you still want to use their alloca,
12424 # use ar to extract alloca.o from them instead of compiling alloca.c.
12426 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12428 cat >>confdefs.h <<\_ACEOF
12433 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12434 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12435 if test "${ac_cv_os_cray+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #if defined CRAY && ! defined CRAY2
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "webecray" >/dev/null 2>&1; then
12460 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12461 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12462 if test $ac_cv_os_cray = yes; then
12463 for ac_func in _getb67 GETB67 getb67; do
12464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478 #define $ac_func innocuous_$ac_func
12480 /* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char $ac_func (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12486 # include <limits.h>
12488 # include <assert.h>
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined __stub_$ac_func || defined __stub___$ac_func
12510 return $ac_func ();
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_link") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest$ac_exeext &&
12532 $as_test_x conftest$ac_exeext; then
12533 eval "$as_ac_var=yes"
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 eval "$as_ac_var=no"
12541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12542 conftest$ac_exeext conftest.$ac_ext
12544 ac_res=`eval echo '${'$as_ac_var'}'`
12545 { echo "$as_me:$LINENO: result: $ac_res" >&5
12546 echo "${ECHO_T}$ac_res" >&6; }
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12549 cat >>confdefs.h <<_ACEOF
12550 #define CRAY_STACKSEG_END $ac_func
12559 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12560 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12561 if test "${ac_cv_c_stack_direction+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 if test "$cross_compiling" = yes; then
12565 ac_cv_c_stack_direction=0
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 $ac_includes_default
12575 find_stack_direction ()
12577 static char *addr = 0;
12582 return find_stack_direction ();
12585 return (&dummy > addr) ? 1 : -1;
12591 return find_stack_direction () < 0;
12594 rm -f conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_c_stack_direction=1
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction=-1
12623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12628 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12629 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12631 cat >>confdefs.h <<_ACEOF
12632 #define STACK_DIRECTION $ac_cv_c_stack_direction
12640 { echo "$as_me:$LINENO: checking for socklen_t" >&5
12641 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
12642 if test "${ac_cv_type_socklen_t+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652 #include <sys/types.h>
12653 #include <sys/socket.h>
12655 #include <stdlib.h>
12656 #include <stddef.h>
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660 $EGREP "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12661 ac_cv_type_socklen_t=yes
12663 ac_cv_type_socklen_t=no
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12670 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
12671 if test $ac_cv_type_socklen_t = no; then
12672 cat >>confdefs.h <<\_ACEOF
12673 #define socklen_t int
12678 { echo "$as_me:$LINENO: checking for mtyp_t" >&5
12679 echo $ECHO_N "checking for mtyp_t... $ECHO_C" >&6; }
12680 if test "${ac_cv_type_mtyp_t+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 #include <sys/types.h>
12691 #include <sys/ipc.h>
12692 #include <sys/msg.h>
12694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695 $EGREP "mtyp_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12696 ac_cv_type_mtyp_t=yes
12698 ac_cv_type_mtyp_t=no
12704 { echo "$as_me:$LINENO: result: $ac_cv_type_mtyp_t" >&5
12705 echo "${ECHO_T}$ac_cv_type_mtyp_t" >&6; }
12706 if test $ac_cv_type_mtyp_t = no; then
12707 cat >>confdefs.h <<\_ACEOF
12708 #define mtyp_t long
12714 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12715 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
12716 if test "${ac_cv_lib_nsl_main+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 ac_check_lib_save_LIBS=$LIBS
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest$ac_exeext &&
12754 $as_test_x conftest$ac_exeext; then
12755 ac_cv_lib_nsl_main=yes
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_cv_lib_nsl_main=no
12763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12767 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12768 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
12769 if test $ac_cv_lib_nsl_main = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define HAVE_LIBNSL 1
12779 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12780 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
12781 if test "${ac_cv_lib_socket_main+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 ac_check_lib_save_LIBS=$LIBS
12785 LIBS="-lsocket $LIBS"
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest$ac_exeext &&
12819 $as_test_x conftest$ac_exeext; then
12820 ac_cv_lib_socket_main=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_cv_lib_socket_main=no
12828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12832 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12833 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
12834 if test $ac_cv_lib_socket_main = yes; then
12835 cat >>confdefs.h <<_ACEOF
12836 #define HAVE_LIBSOCKET 1
12839 LIBS="-lsocket $LIBS"
12844 { echo "$as_me:$LINENO: checking for unix domain sockets" >&5
12845 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6; }
12846 if test "${squid_cv_unixsocket+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 #include <sys/types.h>
12858 #include <stdlib.h>
12859 #include <stddef.h>
12860 #include <sys/socket.h>
12861 #include <sys/un.h>
12866 struct sockaddr_un sunaddr;
12867 sunaddr.sun_family = AF_UNIX;
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
12890 squid_cv_unixsocket=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 squid_cv_unixsocket=no
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 { echo "$as_me:$LINENO: result: $squid_cv_unixsocket" >&5
12901 echo "${ECHO_T}$squid_cv_unixsocket" >&6; }
12902 if test x"$squid_cv_unixsocket" = x"yes"; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_UNIXSOCKET 1
12909 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
12910 echo "skipping libmalloc check (--enable-dlmalloc specified)"
12913 { echo "$as_me:$LINENO: checking for main in -lgnumalloc" >&5
12914 echo $ECHO_N "checking for main in -lgnumalloc... $ECHO_C" >&6; }
12915 if test "${ac_cv_lib_gnumalloc_main+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lgnumalloc $LIBS"
12920 cat >conftest.$ac_ext <<_ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12936 rm -f conftest.$ac_objext conftest$ac_exeext
12937 if { (ac_try="$ac_link"
12938 case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_link") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext &&
12953 $as_test_x conftest$ac_exeext; then
12954 ac_cv_lib_gnumalloc_main=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 ac_cv_lib_gnumalloc_main=no
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnumalloc_main" >&5
12967 echo "${ECHO_T}$ac_cv_lib_gnumalloc_main" >&6; }
12968 if test $ac_cv_lib_gnumalloc_main = yes; then
12969 cat >>confdefs.h <<_ACEOF
12970 #define HAVE_LIBGNUMALLOC 1
12973 LIBS="-lgnumalloc $LIBS"
12977 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
12978 echo "Disabling extended malloc functions when using gnumalloc"
12979 ac_cv_func_mallinfo=no
12980 ac_cv_func_mallocblksize=no
12981 ac_cv_func_mallopt=no
12985 echo "skipping libmalloc check for $host"
12988 echo "skipping libmalloc check for $host"
12993 { echo "$as_me:$LINENO: checking for main in -lmalloc" >&5
12994 echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6; }
12995 if test "${ac_cv_lib_malloc_main+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 ac_check_lib_save_LIBS=$LIBS
12999 LIBS="-lmalloc $LIBS"
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest$ac_exeext &&
13033 $as_test_x conftest$ac_exeext; then
13034 ac_cv_lib_malloc_main=yes
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 ac_cv_lib_malloc_main=no
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 { echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5
13047 echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6; }
13048 if test $ac_cv_lib_malloc_main = yes; then
13049 cat >>confdefs.h <<_ACEOF
13050 #define HAVE_LIBMALLOC 1
13053 LIBS="-lmalloc $LIBS"
13063 { echo "$as_me:$LINENO: checking for main in -lbsd" >&5
13064 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_bsd_main+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_check_lib_save_LIBS=$LIBS
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (ac_try="$ac_link"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_link") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest$ac_exeext &&
13103 $as_test_x conftest$ac_exeext; then
13104 ac_cv_lib_bsd_main=yes
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_cv_lib_bsd_main=no
13112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
13117 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6; }
13118 if test $ac_cv_lib_bsd_main = yes; then
13119 cat >>confdefs.h <<_ACEOF
13120 #define HAVE_LIBBSD 1
13127 { echo "$as_me:$LINENO: checking for main in -lregex" >&5
13128 echo $ECHO_N "checking for main in -lregex... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_regex_main+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lregex $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_link") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } && {
13164 test -z "$ac_c_werror_flag" ||
13165 test ! -s conftest.err
13166 } && test -s conftest$ac_exeext &&
13167 $as_test_x conftest$ac_exeext; then
13168 ac_cv_lib_regex_main=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_cv_lib_regex_main=no
13176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13177 conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13180 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
13181 echo "${ECHO_T}$ac_cv_lib_regex_main" >&6; }
13182 if test $ac_cv_lib_regex_main = yes; then
13187 { echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
13188 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6; }
13189 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lbind $LIBS"
13194 cat >conftest.$ac_ext <<_ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13207 char gethostbyname ();
13211 return gethostbyname ();
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (ac_try="$ac_link"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_link") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } && {
13230 test -z "$ac_c_werror_flag" ||
13231 test ! -s conftest.err
13232 } && test -s conftest$ac_exeext &&
13233 $as_test_x conftest$ac_exeext; then
13234 ac_cv_lib_bind_gethostbyname=yes
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_cv_lib_bind_gethostbyname=no
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
13247 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6; }
13248 if test $ac_cv_lib_bind_gethostbyname = yes; then
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_LIBBIND 1
13253 LIBS="-lbind $LIBS"
13257 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
13260 echo "skipping libresolv checks for $host"
13263 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
13264 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
13265 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lresolv $LIBS"
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13287 return inet_aton ();
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest$ac_exeext &&
13309 $as_test_x conftest$ac_exeext; then
13310 ac_cv_lib_resolv_inet_aton=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_cv_lib_resolv_inet_aton=no
13318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13319 conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13322 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
13323 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
13324 if test $ac_cv_lib_resolv_inet_aton = yes; then
13326 { echo "$as_me:$LINENO: checking for inet_aton in -l44bsd" >&5
13327 echo $ECHO_N "checking for inet_aton in -l44bsd... $ECHO_C" >&6; }
13328 if test "${ac_cv_lib_44bsd_inet_aton+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 ac_check_lib_save_LIBS=$LIBS
13332 LIBS="-l44bsd $LIBS"
13333 cat >conftest.$ac_ext <<_ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13350 return inet_aton ();
13355 rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (ac_try="$ac_link"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_link") 2>conftest.er1
13364 grep -v '^ *+' conftest.er1 >conftest.err
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && {
13369 test -z "$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13371 } && test -s conftest$ac_exeext &&
13372 $as_test_x conftest$ac_exeext; then
13373 ac_cv_lib_44bsd_inet_aton=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_cv_lib_44bsd_inet_aton=no
13381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13385 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_inet_aton" >&5
13386 echo "${ECHO_T}$ac_cv_lib_44bsd_inet_aton" >&6; }
13387 if test $ac_cv_lib_44bsd_inet_aton = yes; then
13388 cat >>confdefs.h <<_ACEOF
13389 #define HAVE_LIB44BSD 1
13392 LIBS="-l44bsd $LIBS"
13399 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
13400 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
13401 if test "${ac_cv_lib_resolv_main+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 ac_check_lib_save_LIBS=$LIBS
13405 LIBS="-lresolv $LIBS"
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest$ac_exeext &&
13439 $as_test_x conftest$ac_exeext; then
13440 ac_cv_lib_resolv_main=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_cv_lib_resolv_main=no
13448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LIBS=$ac_check_lib_save_LIBS
13452 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
13453 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
13454 if test $ac_cv_lib_resolv_main = yes; then
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_LIBRESOLV 1
13459 LIBS="-lresolv $LIBS"
13467 { echo "$as_me:$LINENO: checking for main in -lm" >&5
13468 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
13469 if test "${ac_cv_lib_m_main+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 ac_check_lib_save_LIBS=$LIBS
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_link") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest$ac_exeext &&
13507 $as_test_x conftest$ac_exeext; then
13508 ac_cv_lib_m_main=yes
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_lib_m_main=no
13516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13520 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
13521 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
13522 if test $ac_cv_lib_m_main = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524 #define HAVE_LIBM 1
13532 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13533 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
13534 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lcrypt $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13546 /* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_link") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest$ac_exeext &&
13578 $as_test_x conftest$ac_exeext; then
13579 ac_cv_lib_crypt_crypt=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_cv_lib_crypt_crypt=no
13587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13588 conftest$ac_exeext conftest.$ac_ext
13589 LIBS=$ac_check_lib_save_LIBS
13591 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13592 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
13593 if test $ac_cv_lib_crypt_crypt = yes; then
13599 if test "$with_dl" = "yes"; then
13601 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13602 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13603 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 ac_check_lib_save_LIBS=$LIBS
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13615 /* Override any GCC internal prototype to avoid an error.
13616 Use char because int might match the return type of a GCC
13617 builtin and then its argument prototype would still apply. */
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (ac_try="$ac_link"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_link") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest$ac_exeext &&
13647 $as_test_x conftest$ac_exeext; then
13648 ac_cv_lib_dl_dlopen=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_cv_lib_dl_dlopen=no
13656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13662 if test $ac_cv_lib_dl_dlopen = yes; then
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBDL 1
13673 if test "$with_pthreads" = "yes"; then
13674 CFLAGS="$CFLAGS -D_REENTRANT"
13676 i386-unknown-freebsd*)
13677 if test "$GCC" = "yes" ; then
13678 if test -z "$PRESET_LDFLAGS"; then
13679 LDFLAGS="$LDFLAGS -pthread"
13684 if test "$GCC" = "yes" ; then
13685 CFLAGS="$CFLAGS -pthreads"
13687 CFLAGS="$CFLAGS -mt"
13692 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
13693 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_pthread_main+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lpthread $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest$ac_exeext &&
13732 $as_test_x conftest$ac_exeext; then
13733 ac_cv_lib_pthread_main=yes
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_cv_lib_pthread_main=no
13741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13742 conftest$ac_exeext conftest.$ac_ext
13743 LIBS=$ac_check_lib_save_LIBS
13745 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
13746 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
13747 if test $ac_cv_lib_pthread_main = yes; then
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_LIBPTHREAD 1
13752 LIBS="-lpthread $LIBS"
13758 if test "$with_aio" = "yes"; then
13760 { echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
13761 echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6; }
13762 if test "${ac_cv_lib_rt_aio_read+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 ac_check_lib_save_LIBS=$LIBS
13767 cat >conftest.$ac_ext <<_ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13784 return aio_read ();
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest$ac_exeext &&
13806 $as_test_x conftest$ac_exeext; then
13807 ac_cv_lib_rt_aio_read=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_cv_lib_rt_aio_read=no
13815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13819 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
13820 echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6; }
13821 if test $ac_cv_lib_rt_aio_read = yes; then
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBRT 1
13835 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13836 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13837 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lintl $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13859 return strftime ();
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 ac_cv_lib_intl_strftime=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_lib_intl_strftime=no
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13895 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13896 if test $ac_cv_lib_intl_strftime = yes; then
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_LIBINTL 1
13901 LIBS="-lintl $LIBS"
13908 { echo "$as_me:$LINENO: checking for main in -llber" >&5
13909 echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6; }
13910 if test "${ac_cv_lib_lber_main+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-llber $LIBS"
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest$ac_exeext &&
13948 $as_test_x conftest$ac_exeext; then
13949 ac_cv_lib_lber_main=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_lib_lber_main=no
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
13962 echo "${ECHO_T}$ac_cv_lib_lber_main" >&6; }
13963 if test $ac_cv_lib_lber_main = yes; then
13971 if test "$GCC" = "yes"; then
13972 echo "Removing -O for gcc on $host"
13973 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
13977 echo "Removing -lsocket for IRIX..."
13978 LIBS=`echo $LIBS | sed -e s/-lsocket//`
13979 echo "Removing -lnsl for IRIX..."
13980 LIBS=`echo $LIBS | sed -e s/-lnsl//`
13981 ac_cv_lib_nsl_main=no
13982 echo "Removing -lbsd for IRIX..."
13983 LIBS=`echo $LIBS | sed -e s/-lbsd//`
13986 echo "Removing -lbsd for AIX..."
13987 LIBS=`echo $LIBS | sed -e s/-lbsd//`
13990 echo "disabling snprintf/vsnprintf for $host"
13991 ac_cv_func_snprintf=no
13992 ac_cv_func_vsnprintf=no
13999 CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
14000 cat >>confdefs.h <<\_ACEOF
14001 #define GETTIMEOFDAY_NO_TZP 1
14005 *-*-solaris2.[0-4])
14006 cat >>confdefs.h <<\_ACEOF
14007 #define GETTIMEOFDAY_NO_TZP 1
14011 *-sony-newsos[56]*)
14012 cat >>confdefs.h <<\_ACEOF
14013 #define GETTIMEOFDAY_NO_TZP 1
14019 # Remove optimization for GCC 2.95.[123]
14020 # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
14021 if test "$GCC" = "yes"; then
14022 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
14025 echo "Removing -O for gcc on $host with GCC $GCCVER"
14026 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
14031 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
14033 *-univel-sysv4.2MP)
14034 if test `uname -v` = "2.03"; then
14035 echo "disabling mallinfo for $host"
14036 ac_cv_func_mallinfo=no
14041 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
14042 # when running configure.
14043 if test -z "$ac_cv_func_poll"; then
14046 # John Kay (jkay@nlanr.net) 19970818
14047 echo "disabling poll for $host..."
14048 ac_cv_func_poll='no'
14052 echo "disabling poll for $host..."
14053 ac_cv_func_poll='no'
14056 # Henrik Nordstrom (hno@squid-cache.org) 19980817
14057 # poll is problematic on Linux. We disable it
14058 # by default until Linux gets it right.
14059 # See also bug #932
14060 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
14061 if test $rev -lt 002004; then
14062 echo "disabling poll for $host < 2.4..."
14063 ac_cv_func_poll='no'
14066 powerpc-ibm-aix4.1.*)
14067 # Mike Laster (mlaster@metavillage.com) 19981021
14068 echo "disabling poll for $host..."
14069 ac_cv_func_poll='no'
14072 # Robert Side <rside@aiinc.bc.ca>
14073 # Mon, 18 Jan 1999 17:48:00 GMT
14074 echo "disabling poll for $host..."
14075 ac_cv_func_poll='no'
14134 backtrace_symbols_fd \
14153 pthread_attr_setscope \
14154 pthread_setschedparam \
14155 pthread_attr_setschedparam \
14187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14201 #define $ac_func innocuous_$ac_func
14203 /* System header to define __stub macros and hopefully few prototypes,
14204 which can conflict with char $ac_func (); below.
14205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206 <limits.h> exists even on freestanding compilers. */
14209 # include <limits.h>
14211 # include <assert.h>
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14223 /* The GNU C library defines this for functions which it implements
14224 to always fail with ENOSYS. Some functions are actually named
14225 something starting with __ and the normal name is an alias. */
14226 #if defined __stub_$ac_func || defined __stub___$ac_func
14233 return $ac_func ();
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_link") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext &&
14255 $as_test_x conftest$ac_exeext; then
14256 eval "$as_ac_var=yes"
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 eval "$as_ac_var=no"
14264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14265 conftest$ac_exeext conftest.$ac_ext
14267 ac_res=`eval echo '${'$as_ac_var'}'`
14268 { echo "$as_me:$LINENO: result: $ac_res" >&5
14269 echo "${ECHO_T}$ac_res" >&6; }
14270 if test `eval echo '${'$as_ac_var'}'` = yes; then
14271 cat >>confdefs.h <<_ACEOF
14272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14279 { echo "$as_me:$LINENO: checking if setresuid is implemented" >&5
14280 echo $ECHO_N "checking if setresuid is implemented... $ECHO_C" >&6; }
14281 if test "${ac_cv_func_setresuid+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 if test "$cross_compiling" = yes; then
14285 ac_cv_func_setresuid="no"
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14294 #include <stdlib.h>
14296 if(setresuid(-1,-1,-1)) {
14297 perror("setresuid:");
14304 rm -f conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_link") 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_func_setresuid="yes"
14326 echo "$as_me: program exited with status $ac_status" >&5
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ( exit $ac_status )
14331 ac_cv_func_setresuid="no"
14333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14339 { echo "$as_me:$LINENO: result: $ac_cv_func_setresuid" >&5
14340 echo "${ECHO_T}$ac_cv_func_setresuid" >&6; }
14341 if test "$ac_cv_func_setresuid" = "yes" ; then
14342 cat >>confdefs.h <<\_ACEOF
14343 #define HAVE_SETRESUID 1
14351 NEED_OWN_SNPRINTF_TRUE=
14352 NEED_OWN_SNPRINTF_FALSE='#'
14354 NEED_OWN_SNPRINTF_TRUE='#'
14355 NEED_OWN_SNPRINTF_FALSE=
14358 if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then
14362 NEED_OWN_SNPRINTF_TRUE=
14363 NEED_OWN_SNPRINTF_FALSE='#'
14365 NEED_OWN_SNPRINTF_TRUE='#'
14366 NEED_OWN_SNPRINTF_FALSE=
14374 NEED_OWN_STRNSTR_TRUE=
14375 NEED_OWN_STRNSTR_FALSE='#'
14377 NEED_OWN_STRNSTR_TRUE='#'
14378 NEED_OWN_STRNSTR_FALSE=
14381 if test "$ac_cv_func_strnstr" = "no" || test "$ac_cv_func_vstrnstr" = "no" ; then
14385 NEED_OWN_STRNSTR_TRUE=
14386 NEED_OWN_STRNSTR_FALSE='#'
14388 NEED_OWN_STRNSTR_TRUE='#'
14389 NEED_OWN_STRNSTR_FALSE=
14397 NEED_OWN_STRCASESTR_TRUE=
14398 NEED_OWN_STRCASESTR_FALSE='#'
14400 NEED_OWN_STRCASESTR_TRUE='#'
14401 NEED_OWN_STRCASESTR_FALSE=
14404 if test "$ac_cv_func_strcasestr" = "no" || test "$ac_cv_func_vstrcasestr" = "no"; then
14408 NEED_OWN_STRCASESTR_TRUE=
14409 NEED_OWN_STRCASESTR_FALSE='#'
14411 NEED_OWN_STRCASESTR_TRUE='#'
14412 NEED_OWN_STRCASESTR_FALSE=
14417 { echo "$as_me:$LINENO: checking if va_copy is implemented" >&5
14418 echo $ECHO_N "checking if va_copy is implemented... $ECHO_C" >&6; }
14419 if test "${ac_cv_func_va_copy+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 if test "$cross_compiling" = yes; then
14423 ac_cv_func_va_copy="no"
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14432 #include <stdarg.h>
14433 void f (int i, ...) {
14434 va_list args1, args2;
14435 va_start (args1, i);
14436 va_copy (args2, args1);
14437 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14439 va_end (args1); va_end (args2);
14447 rm -f conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_link") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14458 { (case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_try") 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_func_va_copy="yes"
14469 echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ( exit $ac_status )
14474 ac_cv_func_va_copy="no"
14476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14482 { echo "$as_me:$LINENO: result: $ac_cv_func_va_copy" >&5
14483 echo "${ECHO_T}$ac_cv_func_va_copy" >&6; }
14484 if test "$ac_cv_func_va_copy" = "yes" ; then
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_VA_COPY 1
14491 { echo "$as_me:$LINENO: checking if __va_copy is implemented" >&5
14492 echo $ECHO_N "checking if __va_copy is implemented... $ECHO_C" >&6; }
14493 if test "${ac_cv_func___va_copy+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 if test "$cross_compiling" = yes; then
14497 ac_cv_func___va_copy="no"
14499 cat >conftest.$ac_ext <<_ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14506 #include <stdarg.h>
14507 void f (int i, ...) {
14508 va_list args1, args2;
14509 va_start (args1, i);
14510 __va_copy (args2, args1);
14511 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14513 va_end (args1); va_end (args2);
14521 rm -f conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_link") 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_cv_func___va_copy="yes"
14543 echo "$as_me: program exited with status $ac_status" >&5
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ( exit $ac_status )
14548 ac_cv_func___va_copy="no"
14550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_cv_func___va_copy" >&5
14557 echo "${ECHO_T}$ac_cv_func___va_copy" >&6; }
14558 if test "$ac_cv_func___va_copy" = "yes" ; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE___VA_COPY 1
14565 if test "$IPF_TRANSPARENT" ; then
14566 { echo "$as_me:$LINENO: checking if IP-Filter header files are installed" >&5
14567 echo $ECHO_N "checking if IP-Filter header files are installed... $ECHO_C" >&6; }
14568 # hold on to your hats...
14569 if test "$ac_cv_header_ip_compat_h" = "yes" ||
14570 test "$ac_cv_header_ip_fil_compat_h" = "yes" ||
14571 test "$ac_cv_header_netinet_ip_compat_h" = "yes" ||
14572 test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then
14573 have_ipfilter_compat_header="yes"
14575 if test "x$have_ipfilter_compat_header" = "xyes" &&
14576 test "$ac_cv_header_ip_fil_h" = "yes" &&
14577 test "$ac_cv_header_ip_nat_h" = "yes" ; then
14578 IPF_TRANSPARENT="yes"
14579 cat >>confdefs.h <<\_ACEOF
14580 #define IPF_TRANSPARENT 1
14583 elif test "$have_ipfilter_compat_header" = "yes" &&
14584 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
14585 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
14586 IPF_TRANSPARENT="yes"
14587 cat >>confdefs.h <<\_ACEOF
14588 #define IPF_TRANSPARENT 1
14592 IPF_TRANSPARENT="no"
14593 cat >>confdefs.h <<\_ACEOF
14594 #define IPF_TRANSPARENT 0
14598 { echo "$as_me:$LINENO: result: $IPF_TRANSPARENT" >&5
14599 echo "${ECHO_T}$IPF_TRANSPARENT" >&6; }
14601 if test "$IPF_TRANSPARENT" = "no" ; then
14602 echo "WARNING: Cannot find necessary IP-Filter header files"
14603 echo " Transparent Proxy support WILL NOT be enabled"
14607 if test "$PF_TRANSPARENT" ; then
14608 { echo "$as_me:$LINENO: checking if PF header file is installed" >&5
14609 echo $ECHO_N "checking if PF header file is installed... $ECHO_C" >&6; }
14610 # hold on to your hats...
14611 if test "$ac_cv_header_net_pfvar_h" = "yes"; then
14612 PF_TRANSPARENT="yes"
14613 cat >>confdefs.h <<\_ACEOF
14614 #define PF_TRANSPARENT 1
14618 PF_TRANSPARENT="no"
14619 cat >>confdefs.h <<\_ACEOF
14620 #define PF_TRANSPARENT 0
14624 { echo "$as_me:$LINENO: result: $PF_TRANSPARENT" >&5
14625 echo "${ECHO_T}$PF_TRANSPARENT" >&6; }
14627 if test "$PF_TRANSPARENT" = "no" ; then
14628 echo "WARNING: Cannot find necessary PF header file"
14629 echo " Transparent Proxy support WILL NOT be enabled"
14633 if test "$LINUX_NETFILTER" ; then
14634 { echo "$as_me:$LINENO: checking if Linux 2.4 kernel header files are installed" >&5
14635 echo $ECHO_N "checking if Linux 2.4 kernel header files are installed... $ECHO_C" >&6; }
14636 # hold on to your hats...
14637 if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then
14638 LINUX_NETFILTER="yes"
14639 cat >>confdefs.h <<\_ACEOF
14640 #define LINUX_NETFILTER 1
14644 LINUX_NETFILTER="no"
14645 cat >>confdefs.h <<\_ACEOF
14646 #define LINUX_NETFILTER 0
14650 { echo "$as_me:$LINENO: result: $LINUX_NETFILTER" >&5
14651 echo "${ECHO_T}$LINUX_NETFILTER" >&6; }
14653 if test "$LINUX_NETFILTER" = "no" ; then
14654 echo "WARNING: Cannot find necessary Linux 2.4 kernel header files"
14655 echo " Linux 2.4 Transparent Proxy support WILL NOT be enabled"
14659 if test -z "$USE_GNUREGEX" ; then
14661 *-sun-solaris2.[0-4])
14669 { echo "$as_me:$LINENO: checking if GNUregex needs to be compiled" >&5
14670 echo $ECHO_N "checking if GNUregex needs to be compiled... $ECHO_C" >&6; }
14671 if test -z "$USE_GNUREGEX"; then
14672 if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <sys/types.h>
14686 regex_t t; regcomp(&t,"",0);
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $USE_GNUREGEX" >&5
14720 echo "${ECHO_T}$USE_GNUREGEX" >&6; }
14721 if test "$USE_GNUREGEX" = "yes"; then
14723 LIBREGEX="libregex.a"
14724 cat >>confdefs.h <<\_ACEOF
14725 #define USE_GNUREGEX 1
14743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14757 #define $ac_func innocuous_$ac_func
14759 /* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below.
14761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14762 <limits.h> exists even on freestanding compilers. */
14765 # include <limits.h>
14767 # include <assert.h>
14772 /* Override any GCC internal prototype to avoid an error.
14773 Use char because int might match the return type of a GCC
14774 builtin and then its argument prototype would still apply. */
14779 /* The GNU C library defines this for functions which it implements
14780 to always fail with ENOSYS. Some functions are actually named
14781 something starting with __ and the normal name is an alias. */
14782 #if defined __stub_$ac_func || defined __stub___$ac_func
14789 return $ac_func ();
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_link") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest$ac_exeext &&
14811 $as_test_x conftest$ac_exeext; then
14812 eval "$as_ac_var=yes"
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 eval "$as_ac_var=no"
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14823 ac_res=`eval echo '${'$as_ac_var'}'`
14824 { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14832 case " $LIBOBJS " in
14833 *" $ac_func.$ac_objext "* ) ;;
14834 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14843 { echo "$as_me:$LINENO: checking Default FD_SETSIZE value" >&5
14844 echo $ECHO_N "checking Default FD_SETSIZE value... $ECHO_C" >&6; }
14845 if test "$cross_compiling" = yes; then
14846 DEFAULT_FD_SETSIZE=256
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14859 #include <unistd.h>
14861 #if HAVE_SYS_TIME_H
14862 #include <sys/time.h>
14864 #if HAVE_SYS_SELECT_H
14865 #include <sys/select.h>
14867 #if HAVE_SYS_TYPES_H
14868 #include <sys/types.h>
14871 FILE *fp = fopen("conftestval", "w");
14872 fprintf (fp, "%d\n", FD_SETSIZE);
14877 rm -f conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_link") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 DEFAULT_FD_SETSIZE=`cat conftestval`
14899 echo "$as_me: program exited with status $ac_status" >&5
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ( exit $ac_status )
14904 DEFAULT_FD_SETSIZE=256
14906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14910 { echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5
14911 echo "${ECHO_T}$DEFAULT_FD_SETSIZE" >&6; }
14912 cat >>confdefs.h <<_ACEOF
14913 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
14918 # Check whether --with-maxfd was given.
14919 if test "${with_maxfd+set}" = set; then
14920 withval=$with_maxfd; case $withval in
14922 SQUID_MAXFD=$withval
14923 echo "Maximum filedescriptors set to $SQUID_MAXFD"
14926 echo "ERROR: Invalid --with-maxfd argument"
14933 if test -z "$SQUID_MAXFD"; then
14935 { echo "$as_me:$LINENO: checking Maximum number of filedescriptors we can open" >&5
14936 echo $ECHO_N "checking Maximum number of filedescriptors we can open... $ECHO_C" >&6; }
14937 TLDFLAGS="$LDFLAGS"
14939 i386-unknown-freebsd*)
14940 if echo "$LDFLAGS" | grep -q pthread; then
14941 LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"`
14944 if test "$cross_compiling" = yes; then
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14955 #include <unistd.h>
14956 #include <sys/time.h> /* needed on FreeBSD */
14957 #include <sys/param.h>
14958 #include <sys/resource.h>
14962 #if defined(__CYGWIN32__) || defined (__CYGWIN__)
14963 /* getrlimit and sysconf returns bogous values on cygwin32.
14964 * Number of fds is virtually unlimited in cygwin (sys/param.h)
14965 * __CYGWIN32__ is deprecated.
14971 #if defined(RLIMIT_NOFILE)
14972 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
14973 perror("getrlimit: RLIMIT_NOFILE");
14975 rl.rlim_cur = rl.rlim_max; /* set it to the max */
14976 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
14977 perror("setrlimit: RLIMIT_NOFILE");
14980 #elif defined(RLIMIT_OFILE)
14981 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
14982 perror("getrlimit: RLIMIT_OFILE");
14984 rl.rlim_cur = rl.rlim_max; /* set it to the max */
14985 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
14986 perror("setrlimit: RLIMIT_OFILE");
14989 #endif /* RLIMIT_NOFILE */
14990 #endif /* HAVE_SETRLIMIT */
14991 /* by starting at 2^14, we will never get higher
14992 than 2^15 for SQUID_MAXFD */
14996 if (dup2(0, i) < 0) {
15004 #endif /* IF !DEF CYGWIN */
15005 fp = fopen("conftestval", "w");
15006 fprintf (fp, "%d\n", i & ~0x3F);
15011 rm -f conftest$ac_exeext
15012 if { (ac_try="$ac_link"
15013 case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_link") 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15022 { (case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_try") 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 SQUID_MAXFD=`cat conftestval`
15033 echo "$as_me: program exited with status $ac_status" >&5
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ( exit $ac_status )
15040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $SQUID_MAXFD" >&5
15045 echo "${ECHO_T}$SQUID_MAXFD" >&6; }
15046 fi # --with-maxfd SQUID_MAXFD
15047 cat >>confdefs.h <<_ACEOF
15048 #define SQUID_MAXFD $SQUID_MAXFD
15051 if test "$SQUID_MAXFD" -lt 512 ; then
15052 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
15053 echo " cache will be very busy. Please see the FAQ page"
15054 echo " http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors"
15055 echo " on how to increase your filedescriptor limit"
15058 LDFLAGS="$TLDFLAGS"
15060 { echo "$as_me:$LINENO: checking Default UDP send buffer size" >&5
15061 echo $ECHO_N "checking Default UDP send buffer size... $ECHO_C" >&6; }
15062 if test "$cross_compiling" = yes; then
15063 SQUID_UDP_SO_SNDBUF=16384
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15072 #include <stdlib.h>
15074 #include <sys/types.h>
15075 #include <sys/socket.h>
15076 #include <netinet/in.h>
15080 int fd,val=0,len=sizeof(int);
15081 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
15082 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
15083 if (val<=0) exit(1);
15084 fp = fopen("conftestval", "w");
15085 fprintf (fp, "%d\n", val);
15090 rm -f conftest$ac_exeext
15091 if { (ac_try="$ac_link"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_link") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 SQUID_UDP_SO_SNDBUF=`cat conftestval`
15112 echo "$as_me: program exited with status $ac_status" >&5
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ( exit $ac_status )
15117 SQUID_UDP_SO_SNDBUF=16384
15119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15123 { echo "$as_me:$LINENO: result: $SQUID_UDP_SO_SNDBUF" >&5
15124 echo "${ECHO_T}$SQUID_UDP_SO_SNDBUF" >&6; }
15125 cat >>confdefs.h <<_ACEOF
15126 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
15130 { echo "$as_me:$LINENO: checking Default UDP receive buffer size" >&5
15131 echo $ECHO_N "checking Default UDP receive buffer size... $ECHO_C" >&6; }
15132 if test "$cross_compiling" = yes; then
15133 SQUID_UDP_SO_RCVBUF=16384
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15142 #include <stdlib.h>
15144 #include <sys/types.h>
15145 #include <sys/socket.h>
15146 #include <netinet/in.h>
15150 int fd,val=0,len=sizeof(int);
15151 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
15152 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
15153 if (val <= 0) exit(1);
15154 fp = fopen("conftestval", "w");
15155 fprintf (fp, "%d\n", val);
15160 rm -f conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_link") 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15171 { (case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_try") 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15180 SQUID_UDP_SO_RCVBUF=`cat conftestval`
15182 echo "$as_me: program exited with status $ac_status" >&5
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ( exit $ac_status )
15187 SQUID_UDP_SO_RCVBUF=16384
15189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $SQUID_UDP_SO_RCVBUF" >&5
15194 echo "${ECHO_T}$SQUID_UDP_SO_RCVBUF" >&6; }
15195 cat >>confdefs.h <<_ACEOF
15196 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
15200 { echo "$as_me:$LINENO: checking Default TCP send buffer size" >&5
15201 echo $ECHO_N "checking Default TCP send buffer size... $ECHO_C" >&6; }
15202 if test "$cross_compiling" = yes; then
15203 SQUID_TCP_SO_SNDBUF=16384
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15212 #include <stdlib.h>
15214 #include <sys/types.h>
15215 #include <sys/socket.h>
15216 #include <netinet/in.h>
15220 int fd,val=0,len=sizeof(int);
15221 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
15222 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
15223 if (val <= 0) exit(1);
15224 fp = fopen("conftestval", "w");
15225 fprintf (fp, "%d\n", val);
15230 rm -f conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 SQUID_TCP_SO_SNDBUF=`cat conftestval`
15252 echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ( exit $ac_status )
15257 SQUID_TCP_SO_SNDBUF=16384
15259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result: $SQUID_TCP_SO_SNDBUF" >&5
15264 echo "${ECHO_T}$SQUID_TCP_SO_SNDBUF" >&6; }
15265 if test $SQUID_TCP_SO_SNDBUF -gt 32768; then
15266 echo "Limiting send buffer size to 32K"
15267 SQUID_TCP_SO_SNDBUF=32768
15269 cat >>confdefs.h <<_ACEOF
15270 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
15274 { echo "$as_me:$LINENO: checking Default TCP receive buffer size" >&5
15275 echo $ECHO_N "checking Default TCP receive buffer size... $ECHO_C" >&6; }
15276 if test "$cross_compiling" = yes; then
15277 SQUID_TCP_SO_RCVBUF=16384
15279 cat >conftest.$ac_ext <<_ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15286 #include <stdlib.h>
15288 #include <sys/types.h>
15289 #include <sys/socket.h>
15290 #include <netinet/in.h>
15294 int fd,val=0,len=sizeof(int);
15295 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
15296 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
15297 if (val <= 0) exit(1);
15298 fp = fopen("conftestval", "w");
15299 fprintf (fp, "%d\n", val);
15304 rm -f conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_link") 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 SQUID_TCP_SO_RCVBUF=`cat conftestval`
15326 echo "$as_me: program exited with status $ac_status" >&5
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ( exit $ac_status )
15331 SQUID_TCP_SO_RCVBUF=16384
15333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $SQUID_TCP_SO_RCVBUF" >&5
15338 echo "${ECHO_T}$SQUID_TCP_SO_RCVBUF" >&6; }
15339 if test $SQUID_TCP_SO_RCVBUF -gt 65535; then
15340 echo "Limiting receive buffer size to 64K"
15341 SQUID_TCP_SO_RCVBUF=65535
15343 cat >>confdefs.h <<_ACEOF
15344 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
15347 { echo "$as_me:$LINENO: checking if sys_errlist is already defined" >&5
15348 echo $ECHO_N "checking if sys_errlist is already defined... $ECHO_C" >&6; }
15349 if test "${ac_cv_needs_sys_errlist+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15362 char *s = sys_errlist;
15367 rm -f conftest.$ac_objext
15368 if { (ac_try="$ac_compile"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_compile") 2>conftest.er1
15376 grep -v '^ *+' conftest.er1 >conftest.err
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest.$ac_objext; then
15384 ac_cv_needs_sys_errlist="no"
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_cv_needs_sys_errlist="yes"
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 { echo "$as_me:$LINENO: result: $ac_cv_needs_sys_errlist" >&5
15396 echo "${ECHO_T}$ac_cv_needs_sys_errlist" >&6; }
15397 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define NEED_SYS_ERRLIST 1
15404 { echo "$as_me:$LINENO: checking for libresolv _dns_ttl_ hack" >&5
15405 echo $ECHO_N "checking for libresolv _dns_ttl_ hack... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 extern int _dns_ttl_;
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_link") 2>conftest.er1
15430 grep -v '^ *+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && {
15435 test -z "$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 } && test -s conftest$ac_exeext &&
15438 $as_test_x conftest$ac_exeext; then
15439 { echo "$as_me:$LINENO: result: yes" >&5
15440 echo "${ECHO_T}yes" >&6; }
15441 cat >>confdefs.h <<\_ACEOF
15442 #define LIBRESOLV_DNS_TTL_HACK 1
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 { echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6; }
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15457 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
15458 { echo "$as_me:$LINENO: checking for working statvfs() interface" >&5
15459 echo $ECHO_N "checking for working statvfs() interface... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15467 #include <stdlib.h>
15469 #include <sys/types.h>
15470 #include <sys/statvfs.h>
15476 struct statvfs sfs;
15477 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
15478 sfs.f_files = sfs.f_ffree = 0;
15479 statvfs("/tmp", &sfs);
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_compile") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest.$ac_objext; then
15502 ac_cv_func_statvfs=yes
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 ac_cv_func_statvfs=no
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
15512 echo "${ECHO_T}$ac_cv_func_statvfs" >&6; }
15513 if test "$ac_cv_func_statvfs" = "yes" ; then
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_STATVFS 1
15521 { echo "$as_me:$LINENO: checking for _res.nsaddr_list" >&5
15522 echo $ECHO_N "checking for _res.nsaddr_list... $ECHO_C" >&6; }
15523 if test "${ac_cv_have_res_nsaddr_list+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15533 #if HAVE_SYS_TYPES_H
15534 #include <sys/types.h>
15536 #if HAVE_NETINET_IN_H
15537 #include <netinet/in.h>
15539 #if HAVE_ARPA_INET_H
15540 #include <arpa/inet.h>
15542 #if HAVE_ARPA_NAMESER_H
15543 #include <arpa/nameser.h>
15546 #include <resolv.h>
15552 _res.nsaddr_list[0];
15557 rm -f conftest.$ac_objext
15558 if { (ac_try="$ac_compile"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_compile") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_c_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest.$ac_objext; then
15574 ac_cv_have_res_nsaddr_list="yes"
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_cv_have_res_nsaddr_list="no"
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 { echo "$as_me:$LINENO: result: $ac_cv_have_res_nsaddr_list" >&5
15585 echo "${ECHO_T}$ac_cv_have_res_nsaddr_list" >&6; }
15586 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_RES_NSADDR_LIST 1
15593 if test $ac_cv_have_res_nsaddr_list = "no" ; then
15594 { echo "$as_me:$LINENO: checking for _res.ns_list" >&5
15595 echo $ECHO_N "checking for _res.ns_list... $ECHO_C" >&6; }
15596 if test "${ac_cv_have_res_ns_list+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15606 #if HAVE_SYS_TYPES_H
15607 #include <sys/types.h>
15609 #if HAVE_NETINET_IN_H
15610 #include <netinet/in.h>
15612 #if HAVE_ARPA_INET_H
15613 #include <arpa/inet.h>
15615 #if HAVE_ARPA_NAMESER_H
15616 #include <arpa/nameser.h>
15619 #include <resolv.h>
15625 _res.ns_list[0].addr;
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_compile") 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && {
15644 test -z "$ac_c_werror_flag" ||
15645 test ! -s conftest.err
15646 } && test -s conftest.$ac_objext; then
15647 ac_cv_have_res_ns_list="yes"
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_cv_have_res_ns_list="no"
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_cv_have_res_ns_list" >&5
15658 echo "${ECHO_T}$ac_cv_have_res_ns_list" >&6; }
15659 if test $ac_cv_have_res_ns_list = "yes" ; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_RES_NS_LIST 1
15668 if test "$ac_cv_lib_malloc_main" = "yes" ; then
15669 if test -r /usr/lib/debug/malloc.o ; then
15670 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
15672 if test -r /usr/lib/debug/mallocmap.o ; then
15673 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
15679 if test -z "$XTRA_LIBS"; then
15681 XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
15691 ac_config_files="$ac_config_files Makefile lib/Makefile scripts/Makefile scripts/RunCache scripts/RunAccel src/Makefile src/fs/Makefile src/repl/Makefile src/auth/Makefile src/auth/basic/Makefile src/auth/digest/Makefile src/auth/ntlm/Makefile contrib/Makefile snmplib/Makefile icons/Makefile errors/Makefile src/fs/aufs/Makefile src/fs/coss/Makefile src/fs/diskd/Makefile src/fs/null/Makefile src/fs/ufs/Makefile src/repl/heap/Makefile src/repl/lru/Makefile doc/Makefile helpers/Makefile helpers/basic_auth/Makefile helpers/basic_auth/LDAP/Makefile helpers/basic_auth/MSNT/Makefile helpers/basic_auth/NCSA/Makefile helpers/basic_auth/PAM/Makefile helpers/basic_auth/SMB/Makefile helpers/basic_auth/YP/Makefile helpers/basic_auth/getpwnam/Makefile helpers/basic_auth/multi-domain-NTLM/Makefile helpers/basic_auth/SASL/Makefile helpers/basic_auth/winbind/Makefile helpers/digest_auth/Makefile helpers/digest_auth/password/Makefile helpers/ntlm_auth/Makefile helpers/ntlm_auth/fakeauth/Makefile helpers/ntlm_auth/no_check/Makefile helpers/ntlm_auth/SMB/Makefile helpers/ntlm_auth/SMB/smbval/Makefile helpers/ntlm_auth/winbind/Makefile helpers/external_acl/Makefile helpers/external_acl/ip_user/Makefile helpers/external_acl/ldap_group/Makefile helpers/external_acl/unix_group/Makefile helpers/external_acl/wbinfo_group/Makefile helpers/external_acl/winbind_group/Makefile"
15693 cat >confcache <<\_ACEOF
15694 # This file is a shell script that caches the results of configure
15695 # tests run on this system so they can be shared between configure
15696 # scripts and configure runs, see configure's option --config-cache.
15697 # It is not useful on other systems. If it contains results you don't
15698 # want to keep, you may remove or edit it.
15700 # config.status only pays attention to the cache file if you give it
15701 # the --recheck option to rerun configure.
15703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15705 # following values.
15709 # The following way of writing the cache mishandles newlines in values,
15710 # but we know of no workaround that is simple, portable, and efficient.
15711 # So, we kill variables containing newlines.
15712 # Ultrix sh set writes to stderr and can't be redirected directly,
15713 # and sets the high bit in the cache file unless we assign to the vars.
15715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15716 eval ac_val=\$$ac_var
15720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15724 _ | IFS | as_nl) ;; #(
15725 *) $as_unset $ac_var ;;
15731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15732 *${as_nl}ac_space=\ *)
15733 # `set' does not quote correctly, so add quotes (double-quote
15734 # substitution turns \\\\ into \\, and sed turns \\ into \).
15737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15740 # `set' quotes correctly as required by POSIX, so do not add quotes.
15741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15755 if test -w "$cache_file"; then
15756 test "x$cache_file" != "x/dev/null" &&
15757 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15758 echo "$as_me: updating cache $cache_file" >&6;}
15759 cat confcache >$cache_file
15761 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15768 # Let make expand exec_prefix.
15769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15771 DEFS=-DHAVE_CONFIG_H
15775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15776 # 1. Remove the extension, and $U if already installed.
15777 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15778 ac_i=`echo "$ac_i" | sed "$ac_script"`
15779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15780 # will be set to the directory where LIBOBJS objects are built.
15781 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15782 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15784 LIBOBJS=$ac_libobjs
15786 LTLIBOBJS=$ac_ltlibobjs
15789 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15790 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15791 Usually this means the macro was only invoked conditionally." >&5
15792 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&2;}
15794 { (exit 1); exit 1; }; }
15796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15797 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15798 Usually this means the macro was only invoked conditionally." >&5
15799 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&2;}
15801 { (exit 1); exit 1; }; }
15803 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
15804 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15805 Usually this means the macro was only invoked conditionally." >&5
15806 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15807 Usually this means the macro was only invoked conditionally." >&2;}
15808 { (exit 1); exit 1; }; }
15810 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
15811 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15812 Usually this means the macro was only invoked conditionally." >&5
15813 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15814 Usually this means the macro was only invoked conditionally." >&2;}
15815 { (exit 1); exit 1; }; }
15817 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
15818 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
15819 Usually this means the macro was only invoked conditionally." >&5
15820 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
15821 Usually this means the macro was only invoked conditionally." >&2;}
15822 { (exit 1); exit 1; }; }
15824 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
15825 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
15826 Usually this means the macro was only invoked conditionally." >&5
15827 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
15828 Usually this means the macro was only invoked conditionally." >&2;}
15829 { (exit 1); exit 1; }; }
15831 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
15832 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
15833 Usually this means the macro was only invoked conditionally." >&5
15834 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
15835 Usually this means the macro was only invoked conditionally." >&2;}
15836 { (exit 1); exit 1; }; }
15838 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
15839 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
15840 Usually this means the macro was only invoked conditionally." >&5
15841 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
15842 Usually this means the macro was only invoked conditionally." >&2;}
15843 { (exit 1); exit 1; }; }
15845 if test -z "${USE_ICAP_TRUE}" && test -z "${USE_ICAP_FALSE}"; then
15846 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&5
15848 echo "$as_me: error: conditional \"USE_ICAP\" was never defined.
15849 Usually this means the macro was only invoked conditionally." >&2;}
15850 { (exit 1); exit 1; }; }
15852 if test -z "${USE_ICAP_TRUE}" && test -z "${USE_ICAP_FALSE}"; then
15853 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&5
15855 echo "$as_me: error: conditional \"USE_ICAP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&2;}
15857 { (exit 1); exit 1; }; }
15859 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
15860 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&5
15862 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&2;}
15864 { (exit 1); exit 1; }; }
15866 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
15867 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&5
15869 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&2;}
15871 { (exit 1); exit 1; }; }
15873 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
15874 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
15875 Usually this means the macro was only invoked conditionally." >&5
15876 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&2;}
15878 { (exit 1); exit 1; }; }
15880 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
15881 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
15882 Usually this means the macro was only invoked conditionally." >&5
15883 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&2;}
15885 { (exit 1); exit 1; }; }
15887 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15888 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
15889 Usually this means the macro was only invoked conditionally." >&5
15890 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
15891 Usually this means the macro was only invoked conditionally." >&2;}
15892 { (exit 1); exit 1; }; }
15894 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15895 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
15896 Usually this means the macro was only invoked conditionally." >&5
15897 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
15898 Usually this means the macro was only invoked conditionally." >&2;}
15899 { (exit 1); exit 1; }; }
15901 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
15902 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
15903 Usually this means the macro was only invoked conditionally." >&5
15904 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
15905 Usually this means the macro was only invoked conditionally." >&2;}
15906 { (exit 1); exit 1; }; }
15908 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
15909 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
15910 Usually this means the macro was only invoked conditionally." >&5
15911 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
15912 Usually this means the macro was only invoked conditionally." >&2;}
15913 { (exit 1); exit 1; }; }
15915 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
15916 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&5
15918 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15919 Usually this means the macro was only invoked conditionally." >&2;}
15920 { (exit 1); exit 1; }; }
15922 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
15923 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&5
15925 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15926 Usually this means the macro was only invoked conditionally." >&2;}
15927 { (exit 1); exit 1; }; }
15929 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
15930 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&5
15932 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
15933 Usually this means the macro was only invoked conditionally." >&2;}
15934 { (exit 1); exit 1; }; }
15936 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
15937 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&5
15939 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
15940 Usually this means the macro was only invoked conditionally." >&2;}
15941 { (exit 1); exit 1; }; }
15943 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
15944 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&5
15946 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
15947 Usually this means the macro was only invoked conditionally." >&2;}
15948 { (exit 1); exit 1; }; }
15950 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
15951 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&5
15953 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&2;}
15955 { (exit 1); exit 1; }; }
15957 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
15958 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&5
15960 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&2;}
15962 { (exit 1); exit 1; }; }
15964 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
15965 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&5
15967 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&2;}
15969 { (exit 1); exit 1; }; }
15971 if test -z "${NEED_OWN_STRNSTR_TRUE}" && test -z "${NEED_OWN_STRNSTR_FALSE}"; then
15972 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&5
15974 echo "$as_me: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&2;}
15976 { (exit 1); exit 1; }; }
15978 if test -z "${NEED_OWN_STRNSTR_TRUE}" && test -z "${NEED_OWN_STRNSTR_FALSE}"; then
15979 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&5
15981 echo "$as_me: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&2;}
15983 { (exit 1); exit 1; }; }
15985 if test -z "${NEED_OWN_STRCASESTR_TRUE}" && test -z "${NEED_OWN_STRCASESTR_FALSE}"; then
15986 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&5
15988 echo "$as_me: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&2;}
15990 { (exit 1); exit 1; }; }
15992 if test -z "${NEED_OWN_STRCASESTR_TRUE}" && test -z "${NEED_OWN_STRCASESTR_FALSE}"; then
15993 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&5
15995 echo "$as_me: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&2;}
15997 { (exit 1); exit 1; }; }
16000 : ${CONFIG_STATUS=./config.status}
16001 ac_clean_files_save=$ac_clean_files
16002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16005 cat >$CONFIG_STATUS <<_ACEOF
16007 # Generated by $as_me.
16008 # Run this file to recreate the current configuration.
16009 # Compiler output produced by configure, useful for debugging
16010 # configure, is in config.log if it exists.
16013 ac_cs_recheck=false
16015 SHELL=\${CONFIG_SHELL-$SHELL}
16018 cat >>$CONFIG_STATUS <<\_ACEOF
16019 ## --------------------- ##
16020 ## M4sh Initialization. ##
16021 ## --------------------- ##
16023 # Be more Bourne compatible
16024 DUALCASE=1; export DUALCASE # for MKS sh
16025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16028 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16029 # is contrary to our usage. Disable this feature.
16030 alias -g '${1+"$@"}'='"$@"'
16031 setopt NO_GLOB_SUBST
16033 case `(set -o) 2>/dev/null` in
16034 *posix*) set -o posix ;;
16043 # Avoid depending upon Character Ranges.
16044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16047 as_cr_digits='0123456789'
16048 as_cr_alnum=$as_cr_Letters$as_cr_digits
16050 # The user is always right.
16051 if test "${PATH_SEPARATOR+set}" != set; then
16052 echo "#! /bin/sh" >conf$$.sh
16053 echo "exit 0" >>conf$$.sh
16055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16063 # Support unset when possible.
16064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16072 # We need space, tab and new line, in precisely that order. Quoting is
16073 # there to prevent editors from complaining about space-tab.
16074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16075 # splitting by setting IFS to empty value.)
16080 # Find who we are. Look in the path if we contain no directory separator.
16082 *[\\/]* ) as_myself=$0 ;;
16083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16084 for as_dir in $PATH
16087 test -z "$as_dir" && as_dir=.
16088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16094 # We did not find ourselves, most probably we were run as `sh COMMAND'
16095 # in which case we are not to be found in the path.
16096 if test "x$as_myself" = x; then
16099 if test ! -f "$as_myself"; then
16100 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16101 { (exit 1); exit 1; }
16104 # Work around bugs in pre-3.0 UWIN ksh.
16105 for as_var in ENV MAIL MAILPATH
16106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16114 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16115 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16116 LC_TELEPHONE LC_TIME
16118 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16119 eval $as_var=C; export $as_var
16121 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16125 # Required to use basename.
16126 if expr a : '\(a\)' >/dev/null 2>&1 &&
16127 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16134 as_basename=basename
16140 # Name of the executable.
16141 as_me=`$as_basename -- "$0" ||
16142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16143 X"$0" : 'X\(//\)$' \| \
16144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16146 sed '/^.*\/\([^/][^/]*\)\/*$/{
16165 as_lineno_1=$LINENO
16166 as_lineno_2=$LINENO
16167 test "x$as_lineno_1" != "x$as_lineno_2" &&
16168 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16170 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16171 # uniformly replaced by the line number. The first 'sed' inserts a
16172 # line-number line after each line using $LINENO; the second 'sed'
16173 # does the real work. The second script uses 'N' to pair each
16174 # line-number line with the line containing $LINENO, and appends
16175 # trailing '-' during substitution so that $LINENO is not a special
16176 # case at line end.
16177 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16178 # scripts with optimization help from Paolo Bonzini. Blame Lee
16179 # E. McMahon (1931-1989) for sed's syntax. :-)
16191 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16194 ' >$as_me.lineno &&
16195 chmod +x "$as_me.lineno" ||
16196 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16197 { (exit 1); exit 1; }; }
16199 # Don't try to exec as it changes $[0], causing all sort of problems
16200 # (the dirname of $[0] is not the place where we might find the
16201 # original and so on. Autoconf is especially sensitive to this).
16202 . "./$as_me.lineno"
16203 # Exit status is that of the last command.
16208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16214 ECHO_C= ECHO_N= ECHO_T=
16215 case `echo -n x` in
16217 case `echo 'x\c'` in
16218 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16225 if expr a : '\(a\)' >/dev/null 2>&1 &&
16226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16232 rm -f conf$$ conf$$.exe conf$$.file
16233 if test -d conf$$.dir; then
16234 rm -f conf$$.dir/conf$$.file
16240 if ln -s conf$$.file conf$$ 2>/dev/null; then
16242 # ... but there are two gotchas:
16243 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16244 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16245 # In both cases, we have to default to `cp -p'.
16246 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16248 elif ln conf$$.file conf$$ 2>/dev/null; then
16253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16254 rmdir conf$$.dir 2>/dev/null
16256 if mkdir -p . 2>/dev/null; then
16259 test -d ./-p && rmdir ./-p
16263 if test -x / >/dev/null 2>&1; then
16264 as_test_x='test -x'
16266 if ls -dL / >/dev/null 2>&1; then
16273 if test -d "$1"; then
16279 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16280 ???[sx]*):;;*)false;;esac;fi
16284 as_executable_p=$as_test_x
16286 # Sed expression to map a string onto a valid CPP name.
16287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16289 # Sed expression to map a string onto a valid variable name.
16290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16295 # Save the log message, to keep $[0] and so on meaningful, and to
16296 # report actual input values of CONFIG_FILES etc. instead of their
16297 # values after options handling.
16299 This file was extended by $as_me, which was
16300 generated by GNU Autoconf 2.61. Invocation command line was
16302 CONFIG_FILES = $CONFIG_FILES
16303 CONFIG_HEADERS = $CONFIG_HEADERS
16304 CONFIG_LINKS = $CONFIG_LINKS
16305 CONFIG_COMMANDS = $CONFIG_COMMANDS
16308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16313 cat >>$CONFIG_STATUS <<_ACEOF
16314 # Files that config.status was made for.
16315 config_files="$ac_config_files"
16316 config_headers="$ac_config_headers"
16317 config_commands="$ac_config_commands"
16321 cat >>$CONFIG_STATUS <<\_ACEOF
16323 \`$as_me' instantiates files from templates according to the
16324 current configuration.
16326 Usage: $0 [OPTIONS] [FILE]...
16328 -h, --help print this help, then exit
16329 -V, --version print version number and configuration settings, then exit
16330 -q, --quiet do not print progress messages
16331 -d, --debug don't remove temporary files
16332 --recheck update $as_me by reconfiguring in the same conditions
16333 --file=FILE[:TEMPLATE]
16334 instantiate the configuration file FILE
16335 --header=FILE[:TEMPLATE]
16336 instantiate the configuration header FILE
16338 Configuration files:
16341 Configuration headers:
16344 Configuration commands:
16347 Report bugs to <bug-autoconf@gnu.org>."
16350 cat >>$CONFIG_STATUS <<_ACEOF
16353 configured by $0, generated by GNU Autoconf 2.61,
16354 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16356 Copyright (C) 2006 Free Software Foundation, Inc.
16357 This config.status script is free software; the Free Software Foundation
16358 gives unlimited permission to copy, distribute and modify it."
16365 cat >>$CONFIG_STATUS <<\_ACEOF
16366 # If no file are specified by the user, then we need to provide default
16367 # value. By we need to know if files were specified by the user.
16373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16385 # Handling of the options.
16386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16389 echo "$ac_cs_version"; exit ;;
16390 --debug | --debu | --deb | --de | --d | -d )
16392 --file | --fil | --fi | --f )
16394 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16395 ac_need_defaults=false;;
16396 --header | --heade | --head | --hea )
16398 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16399 ac_need_defaults=false;;
16401 # Conflict between --help and --header
16402 { echo "$as_me: error: ambiguous option: $1
16403 Try \`$0 --help' for more information." >&2
16404 { (exit 1); exit 1; }; };;
16405 --help | --hel | -h )
16406 echo "$ac_cs_usage"; exit ;;
16407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16411 # This is an error.
16412 -*) { echo "$as_me: error: unrecognized option: $1
16413 Try \`$0 --help' for more information." >&2
16414 { (exit 1); exit 1; }; } ;;
16416 *) ac_config_targets="$ac_config_targets $1"
16417 ac_need_defaults=false ;;
16423 ac_configure_extra_args=
16425 if $ac_cs_silent; then
16427 ac_configure_extra_args="$ac_configure_extra_args --silent"
16431 cat >>$CONFIG_STATUS <<_ACEOF
16432 if \$ac_cs_recheck; then
16433 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16434 CONFIG_SHELL=$SHELL
16435 export CONFIG_SHELL
16436 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16440 cat >>$CONFIG_STATUS <<\_ACEOF
16444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16445 ## Running $as_me. ##
16451 cat >>$CONFIG_STATUS <<_ACEOF
16455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16459 cat >>$CONFIG_STATUS <<\_ACEOF
16461 # Handling of arguments.
16462 for ac_config_target in $ac_config_targets
16464 case $ac_config_target in
16465 "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
16466 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16468 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16469 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16470 "scripts/RunCache") CONFIG_FILES="$CONFIG_FILES scripts/RunCache" ;;
16471 "scripts/RunAccel") CONFIG_FILES="$CONFIG_FILES scripts/RunAccel" ;;
16472 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16473 "src/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
16474 "src/repl/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
16475 "src/auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;;
16476 "src/auth/basic/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/basic/Makefile" ;;
16477 "src/auth/digest/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/digest/Makefile" ;;
16478 "src/auth/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/ntlm/Makefile" ;;
16479 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16480 "snmplib/Makefile") CONFIG_FILES="$CONFIG_FILES snmplib/Makefile" ;;
16481 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
16482 "errors/Makefile") CONFIG_FILES="$CONFIG_FILES errors/Makefile" ;;
16483 "src/fs/aufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/aufs/Makefile" ;;
16484 "src/fs/coss/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/coss/Makefile" ;;
16485 "src/fs/diskd/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/diskd/Makefile" ;;
16486 "src/fs/null/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/null/Makefile" ;;
16487 "src/fs/ufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/ufs/Makefile" ;;
16488 "src/repl/heap/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/heap/Makefile" ;;
16489 "src/repl/lru/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/lru/Makefile" ;;
16490 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16491 "helpers/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/Makefile" ;;
16492 "helpers/basic_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/Makefile" ;;
16493 "helpers/basic_auth/LDAP/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/LDAP/Makefile" ;;
16494 "helpers/basic_auth/MSNT/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/MSNT/Makefile" ;;
16495 "helpers/basic_auth/NCSA/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/NCSA/Makefile" ;;
16496 "helpers/basic_auth/PAM/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/PAM/Makefile" ;;
16497 "helpers/basic_auth/SMB/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SMB/Makefile" ;;
16498 "helpers/basic_auth/YP/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/YP/Makefile" ;;
16499 "helpers/basic_auth/getpwnam/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/getpwnam/Makefile" ;;
16500 "helpers/basic_auth/multi-domain-NTLM/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/multi-domain-NTLM/Makefile" ;;
16501 "helpers/basic_auth/SASL/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SASL/Makefile" ;;
16502 "helpers/basic_auth/winbind/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/winbind/Makefile" ;;
16503 "helpers/digest_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/Makefile" ;;
16504 "helpers/digest_auth/password/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/password/Makefile" ;;
16505 "helpers/ntlm_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/Makefile" ;;
16506 "helpers/ntlm_auth/fakeauth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/fakeauth/Makefile" ;;
16507 "helpers/ntlm_auth/no_check/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/no_check/Makefile" ;;
16508 "helpers/ntlm_auth/SMB/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/Makefile" ;;
16509 "helpers/ntlm_auth/SMB/smbval/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/smbval/Makefile" ;;
16510 "helpers/ntlm_auth/winbind/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/winbind/Makefile" ;;
16511 "helpers/external_acl/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/Makefile" ;;
16512 "helpers/external_acl/ip_user/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ip_user/Makefile" ;;
16513 "helpers/external_acl/ldap_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ldap_group/Makefile" ;;
16514 "helpers/external_acl/unix_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/unix_group/Makefile" ;;
16515 "helpers/external_acl/wbinfo_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/wbinfo_group/Makefile" ;;
16516 "helpers/external_acl/winbind_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/winbind_group/Makefile" ;;
16518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16520 { (exit 1); exit 1; }; };;
16525 # If the user did not use the arguments to specify the items to instantiate,
16526 # then the envvar interface is used. Set only those that are not.
16527 # We use the long form for the default assignment because of an extremely
16528 # bizarre bug on SunOS 4.1.3.
16529 if $ac_need_defaults; then
16530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16535 # Have a temporary directory for convenience. Make it in the build tree
16536 # simply because there is no reason against having it here, and in addition,
16537 # creating and moving files from /tmp can sometimes cause problems.
16538 # Hook for its removal unless debugging.
16539 # Note that there is a small window in which the directory will not be cleaned:
16540 # after its creation but before its name has been assigned to `$tmp'.
16544 trap 'exit_status=$?
16545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16547 trap '{ (exit 1); exit 1; }' 1 2 13 15
16549 # Create a (secure) tmp directory for tmp files.
16552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16553 test -n "$tmp" && test -d "$tmp"
16556 tmp=./conf$$-$RANDOM
16557 (umask 077 && mkdir "$tmp")
16560 echo "$me: cannot create a temporary directory in ." >&2
16561 { (exit 1); exit 1; }
16565 # Set up the sed scripts for CONFIG_FILES section.
16568 # No need to generate the scripts if there are no CONFIG_FILES.
16569 # This happens for instance when ./config.status config.h
16570 if test -n "$CONFIG_FILES"; then
16577 for ac_last_try in false false false false false :; do
16578 cat >conf$$subs.sed <<_ACEOF
16579 SHELL!$SHELL$ac_delim
16580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16586 exec_prefix!$exec_prefix$ac_delim
16587 prefix!$prefix$ac_delim
16588 program_transform_name!$program_transform_name$ac_delim
16589 bindir!$bindir$ac_delim
16590 sbindir!$sbindir$ac_delim
16591 libexecdir!$libexecdir$ac_delim
16592 datarootdir!$datarootdir$ac_delim
16593 datadir!$datadir$ac_delim
16594 sysconfdir!$sysconfdir$ac_delim
16595 sharedstatedir!$sharedstatedir$ac_delim
16596 localstatedir!$localstatedir$ac_delim
16597 includedir!$includedir$ac_delim
16598 oldincludedir!$oldincludedir$ac_delim
16599 docdir!$docdir$ac_delim
16600 infodir!$infodir$ac_delim
16601 htmldir!$htmldir$ac_delim
16602 dvidir!$dvidir$ac_delim
16603 pdfdir!$pdfdir$ac_delim
16604 psdir!$psdir$ac_delim
16605 libdir!$libdir$ac_delim
16606 localedir!$localedir$ac_delim
16607 mandir!$mandir$ac_delim
16608 DEFS!$DEFS$ac_delim
16609 ECHO_C!$ECHO_C$ac_delim
16610 ECHO_N!$ECHO_N$ac_delim
16611 ECHO_T!$ECHO_T$ac_delim
16612 LIBS!$LIBS$ac_delim
16613 build_alias!$build_alias$ac_delim
16614 host_alias!$host_alias$ac_delim
16615 target_alias!$target_alias$ac_delim
16616 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16617 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16618 INSTALL_DATA!$INSTALL_DATA$ac_delim
16619 PACKAGE!$PACKAGE$ac_delim
16620 VERSION!$VERSION$ac_delim
16621 ACLOCAL!$ACLOCAL$ac_delim
16622 AUTOCONF!$AUTOCONF$ac_delim
16623 AUTOMAKE!$AUTOMAKE$ac_delim
16624 AUTOHEADER!$AUTOHEADER$ac_delim
16625 MAKEINFO!$MAKEINFO$ac_delim
16626 AMTAR!$AMTAR$ac_delim
16627 install_sh!$install_sh$ac_delim
16628 STRIP!$STRIP$ac_delim
16629 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16631 SET_MAKE!$SET_MAKE$ac_delim
16632 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16633 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16634 MAINT!$MAINT$ac_delim
16636 CFLAGS!$CFLAGS$ac_delim
16637 LDFLAGS!$LDFLAGS$ac_delim
16638 CPPFLAGS!$CPPFLAGS$ac_delim
16639 ac_ct_CC!$ac_ct_CC$ac_delim
16640 EXEEXT!$EXEEXT$ac_delim
16641 OBJEXT!$OBJEXT$ac_delim
16642 DEPDIR!$DEPDIR$ac_delim
16643 am__include!$am__include$ac_delim
16644 am__quote!$am__quote$ac_delim
16645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16648 CCDEPMODE!$CCDEPMODE$ac_delim
16649 build!$build$ac_delim
16650 build_cpu!$build_cpu$ac_delim
16651 build_vendor!$build_vendor$ac_delim
16652 build_os!$build_os$ac_delim
16653 host!$host$ac_delim
16654 host_cpu!$host_cpu$ac_delim
16655 host_vendor!$host_vendor$ac_delim
16656 host_os!$host_os$ac_delim
16657 PKGCONFIG!$PKGCONFIG$ac_delim
16659 GREP!$GREP$ac_delim
16660 EGREP!$EGREP$ac_delim
16661 CGIEXT!$CGIEXT$ac_delim
16662 ENABLE_WIN32SPECIFIC_TRUE!$ENABLE_WIN32SPECIFIC_TRUE$ac_delim
16663 ENABLE_WIN32SPECIFIC_FALSE!$ENABLE_WIN32SPECIFIC_FALSE$ac_delim
16664 LIBDLMALLOC!$LIBDLMALLOC$ac_delim
16665 LIB_MALLOC!$LIB_MALLOC$ac_delim
16666 STORE_OBJS!$STORE_OBJS$ac_delim
16667 STORE_LIBS!$STORE_LIBS$ac_delim
16668 STORE_MODULES!$STORE_MODULES$ac_delim
16669 STORE_MODULE_SUBDIRS!$STORE_MODULE_SUBDIRS$ac_delim
16670 REPL_POLICIES!$REPL_POLICIES$ac_delim
16671 REPL_OBJS!$REPL_OBJS$ac_delim
16672 REPL_LIBS!$REPL_LIBS$ac_delim
16673 ENABLE_PINGER_TRUE!$ENABLE_PINGER_TRUE$ac_delim
16674 ENABLE_PINGER_FALSE!$ENABLE_PINGER_FALSE$ac_delim
16675 USE_DELAY_POOLS_TRUE!$USE_DELAY_POOLS_TRUE$ac_delim
16678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16680 elif $ac_last_try; then
16681 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16683 { (exit 1); exit 1; }; }
16685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16689 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16690 if test -n "$ac_eof"; then
16691 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16692 ac_eof=`expr $ac_eof + 1`
16695 cat >>$CONFIG_STATUS <<_ACEOF
16696 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16701 s/^/s,@/; s/!/@,|#_!!_#|/
16704 s/'"$ac_delim"'$/,g/; t
16706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16707 ' >>$CONFIG_STATUS <conf$$subs.sed
16708 rm -f conf$$subs.sed
16709 cat >>$CONFIG_STATUS <<_ACEOF
16715 for ac_last_try in false false false false false :; do
16716 cat >conf$$subs.sed <<_ACEOF
16717 USE_DELAY_POOLS_FALSE!$USE_DELAY_POOLS_FALSE$ac_delim
16718 USE_ICAP_TRUE!$USE_ICAP_TRUE$ac_delim
16719 USE_ICAP_FALSE!$USE_ICAP_FALSE$ac_delim
16720 USE_SNMP_TRUE!$USE_SNMP_TRUE$ac_delim
16721 USE_SNMP_FALSE!$USE_SNMP_FALSE$ac_delim
16722 SNMPLIB!$SNMPLIB$ac_delim
16723 makesnmplib!$makesnmplib$ac_delim
16724 ENABLE_HTCP_TRUE!$ENABLE_HTCP_TRUE$ac_delim
16725 ENABLE_HTCP_FALSE!$ENABLE_HTCP_FALSE$ac_delim
16726 ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
16727 ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
16728 NEED_OWN_MD5_TRUE!$NEED_OWN_MD5_TRUE$ac_delim
16729 NEED_OWN_MD5_FALSE!$NEED_OWN_MD5_FALSE$ac_delim
16730 SSLLIB!$SSLLIB$ac_delim
16731 ERR_DEFAULT_LANGUAGE!$ERR_DEFAULT_LANGUAGE$ac_delim
16732 ERR_LANGUAGES!$ERR_LANGUAGES$ac_delim
16733 MAKE_LEAKFINDER_TRUE!$MAKE_LEAKFINDER_TRUE$ac_delim
16734 MAKE_LEAKFINDER_FALSE!$MAKE_LEAKFINDER_FALSE$ac_delim
16735 USE_DNSSERVER_TRUE!$USE_DNSSERVER_TRUE$ac_delim
16736 USE_DNSSERVER_FALSE!$USE_DNSSERVER_FALSE$ac_delim
16737 AUTH_MODULES!$AUTH_MODULES$ac_delim
16738 AUTH_OBJS!$AUTH_OBJS$ac_delim
16739 AUTH_LIBS!$AUTH_LIBS$ac_delim
16740 BASIC_AUTH_HELPERS!$BASIC_AUTH_HELPERS$ac_delim
16741 NTLM_AUTH_HELPERS!$NTLM_AUTH_HELPERS$ac_delim
16742 DIGEST_AUTH_HELPERS!$DIGEST_AUTH_HELPERS$ac_delim
16743 EXTERNAL_ACL_HELPERS!$EXTERNAL_ACL_HELPERS$ac_delim
16744 SAMBASOURCES!$SAMBASOURCES$ac_delim
16745 LIBSASL!$LIBSASL$ac_delim
16746 ENABLE_UNLINKD_TRUE!$ENABLE_UNLINKD_TRUE$ac_delim
16747 ENABLE_UNLINKD_FALSE!$ENABLE_UNLINKD_FALSE$ac_delim
16748 RANLIB!$RANLIB$ac_delim
16749 LN_S!$LN_S$ac_delim
16751 FALSE!$FALSE$ac_delim
16752 TRUE!$TRUE$ac_delim
16755 MKDIR!$MKDIR$ac_delim
16757 PERL!$PERL$ac_delim
16759 AR_R!$AR_R$ac_delim
16760 ALLOCA!$ALLOCA$ac_delim
16761 CRYPTLIB!$CRYPTLIB$ac_delim
16762 LIB_LBER!$LIB_LBER$ac_delim
16763 NEED_OWN_SNPRINTF_TRUE!$NEED_OWN_SNPRINTF_TRUE$ac_delim
16764 NEED_OWN_SNPRINTF_FALSE!$NEED_OWN_SNPRINTF_FALSE$ac_delim
16765 NEED_OWN_STRNSTR_TRUE!$NEED_OWN_STRNSTR_TRUE$ac_delim
16766 NEED_OWN_STRNSTR_FALSE!$NEED_OWN_STRNSTR_FALSE$ac_delim
16767 NEED_OWN_STRCASESTR_TRUE!$NEED_OWN_STRCASESTR_TRUE$ac_delim
16768 NEED_OWN_STRCASESTR_FALSE!$NEED_OWN_STRCASESTR_FALSE$ac_delim
16769 REGEXLIB!$REGEXLIB$ac_delim
16770 LIBREGEX!$LIBREGEX$ac_delim
16771 LIBOBJS!$LIBOBJS$ac_delim
16772 XTRA_OBJS!$XTRA_OBJS$ac_delim
16773 XTRA_LIBS!$XTRA_LIBS$ac_delim
16774 LTLIBOBJS!$LTLIBOBJS$ac_delim
16777 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
16779 elif $ac_last_try; then
16780 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16781 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16782 { (exit 1); exit 1; }; }
16784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16788 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16789 if test -n "$ac_eof"; then
16790 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16791 ac_eof=`expr $ac_eof + 1`
16794 cat >>$CONFIG_STATUS <<_ACEOF
16795 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16799 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16800 s/^/s,@/; s/!/@,|#_!!_#|/
16803 s/'"$ac_delim"'$/,g/; t
16805 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16806 ' >>$CONFIG_STATUS <conf$$subs.sed
16807 rm -f conf$$subs.sed
16808 cat >>$CONFIG_STATUS <<_ACEOF
16815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16817 # trailing colons and then remove the whole line if VPATH becomes empty
16818 # (actually we leave an empty line to preserve line numbers).
16819 if test "x$srcdir" = x.; then
16820 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16821 s/:*\$(srcdir):*/:/
16822 s/:*\${srcdir}:*/:/
16824 s/^\([^=]*=[ ]*\):*/\1/
16830 cat >>$CONFIG_STATUS <<\_ACEOF
16831 fi # test -n "$CONFIG_FILES"
16834 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16837 :[FHLC]) ac_mode=$ac_tag; continue;;
16839 case $ac_mode$ac_tag in
16841 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16842 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16843 { (exit 1); exit 1; }; };;
16844 :[FH]-) ac_tag=-:-;;
16845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16862 -) ac_f="$tmp/stdin";;
16863 *) # Look for the file first in the build tree, then in the source tree
16864 # (if the path is not absolute). The absolute path cannot be DOS-style,
16865 # because $ac_f cannot contain `:'.
16869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16871 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16872 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16873 { (exit 1); exit 1; }; };;
16875 ac_file_inputs="$ac_file_inputs $ac_f"
16878 # Let's still pretend it is `configure' which instantiates (i.e., don't
16879 # use $as_me), people would be surprised to read:
16880 # /* config.h. Generated by config.status. */
16881 configure_input="Generated from "`IFS=:
16882 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16883 if test x"$ac_file" != x-; then
16884 configure_input="$ac_file. $configure_input"
16885 { echo "$as_me:$LINENO: creating $ac_file" >&5
16886 echo "$as_me: creating $ac_file" >&6;}
16890 *:-:* | *:-) cat >"$tmp/stdin";;
16895 ac_dir=`$as_dirname -- "$ac_file" ||
16896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16897 X"$ac_file" : 'X\(//\)[^/]' \| \
16898 X"$ac_file" : 'X\(//\)$' \| \
16899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16905 /^X\(\/\/\)[^/].*/{
16920 -*) as_dir=./$as_dir;;
16922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16926 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16927 *) as_qdir=$as_dir;;
16929 as_dirs="'$as_qdir' $as_dirs"
16930 as_dir=`$as_dirname -- "$as_dir" ||
16931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932 X"$as_dir" : 'X\(//\)[^/]' \| \
16933 X"$as_dir" : 'X\(//\)$' \| \
16934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16940 /^X\(\/\/\)[^/].*/{
16953 test -d "$as_dir" && break
16955 test -z "$as_dirs" || eval "mkdir $as_dirs"
16956 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16957 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16958 { (exit 1); exit 1; }; }; }
16962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16965 # A ".." for each directory in $ac_dir_suffix.
16966 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16967 case $ac_top_builddir_sub in
16968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16972 ac_abs_top_builddir=$ac_pwd
16973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16974 # for backward compatibility:
16975 ac_top_builddir=$ac_top_build_prefix
16978 .) # We are building in place.
16980 ac_top_srcdir=$ac_top_builddir_sub
16981 ac_abs_top_srcdir=$ac_pwd ;;
16982 [\\/]* | ?:[\\/]* ) # Absolute name.
16983 ac_srcdir=$srcdir$ac_dir_suffix;
16984 ac_top_srcdir=$srcdir
16985 ac_abs_top_srcdir=$srcdir ;;
16986 *) # Relative name.
16987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16988 ac_top_srcdir=$ac_top_build_prefix$srcdir
16989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17006 cat >>$CONFIG_STATUS <<\_ACEOF
17007 # If the template does not know about datarootdir, expand it.
17008 # FIXME: This hack should be removed a few years after 2.60.
17009 ac_datarootdir_hack=; ac_datarootdir_seen=
17011 case `sed -n '/datarootdir/ {
17020 ' $ac_file_inputs` in
17021 *datarootdir*) ac_datarootdir_seen=yes;;
17022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17023 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17024 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17026 cat >>$CONFIG_STATUS <<_ACEOF
17027 ac_datarootdir_hack='
17028 s&@datadir@&$datadir&g
17029 s&@docdir@&$docdir&g
17030 s&@infodir@&$infodir&g
17031 s&@localedir@&$localedir&g
17032 s&@mandir@&$mandir&g
17033 s&\\\${datarootdir}&$datarootdir&g' ;;
17037 # Neutralize VPATH when `$srcdir' = `.'.
17038 # Shell code in configure.ac might set extrasub.
17039 # FIXME: do we really want to maintain this feature?
17040 cat >>$CONFIG_STATUS <<_ACEOF
17044 cat >>$CONFIG_STATUS <<\_ACEOF
17046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17047 s&@configure_input@&$configure_input&;t t
17048 s&@top_builddir@&$ac_top_builddir_sub&;t t
17049 s&@srcdir@&$ac_srcdir&;t t
17050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17051 s&@top_srcdir@&$ac_top_srcdir&;t t
17052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17053 s&@builddir@&$ac_builddir&;t t
17054 s&@abs_builddir@&$ac_abs_builddir&;t t
17055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17056 s&@INSTALL@&$ac_INSTALL&;t t
17057 $ac_datarootdir_hack
17058 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17063 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17064 which seems to be undefined. Please make sure it is defined." >&5
17065 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17066 which seems to be undefined. Please make sure it is defined." >&2;}
17070 -) cat "$tmp/out"; rm -f "$tmp/out";;
17071 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17080 # Transform confdefs.h into a sed script `conftest.defines', that
17081 # substitutes the proper values into config.h.in to produce config.h.
17082 rm -f conftest.defines conftest.tail
17083 # First, append a space to every undef/define line, to ease matching.
17084 echo 's/$/ /' >conftest.defines
17085 # Then, protect against being on the right side of a sed subst, or in
17086 # an unquoted here document, in config.status. If some macros were
17087 # called several times there might be several #defines for the same
17088 # symbol, which is useless. But do not sort them, since the last
17089 # AC_DEFINE must be honored.
17090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17091 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17092 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17093 # PARAMS is the parameter list in the macro definition--in most cases, it's
17094 # just an empty string.
17095 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17096 ac_dB='\\)[ (].*,\\1define\\2'
17104 s/^[ ]*#[ ]*define[ ][ ]*//
17109 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17110 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17111 ' >>conftest.defines
17113 # Remove the space that was appended to ease matching.
17114 # Then replace #undef with comments. This is necessary, for
17115 # example, in the case of _POSIX_SOURCE, which is predefined and required
17116 # on some systems where configure will not decide to define it.
17117 # (The regexp can be short, since the line contains either #define or #undef.)
17119 s,^[ #]*u.*,/* & */,' >>conftest.defines
17121 # Break up conftest.defines:
17122 ac_max_sed_lines=50
17124 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17125 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17126 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17128 ac_in='$ac_file_inputs'
17129 ac_out='"$tmp/out1"'
17130 ac_nxt='"$tmp/out2"'
17134 # Write a here document:
17135 cat >>$CONFIG_STATUS <<_ACEOF
17136 # First, check the format of the line:
17137 cat >"\$tmp/defines.sed" <<\\CEOF
17138 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17139 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17143 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17145 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17146 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17147 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17148 grep . conftest.tail >/dev/null || break
17149 rm -f conftest.defines
17150 mv conftest.tail conftest.defines
17152 rm -f conftest.defines conftest.tail
17154 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17155 cat >>$CONFIG_STATUS <<\_ACEOF
17156 if test x"$ac_file" != x-; then
17157 echo "/* $configure_input */" >"$tmp/config.h"
17158 cat "$ac_result" >>"$tmp/config.h"
17159 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17161 echo "$as_me: $ac_file is unchanged" >&6;}
17164 mv "$tmp/config.h" $ac_file
17167 echo "/* $configure_input */"
17173 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17174 echo "$as_me: executing $ac_file commands" >&6;}
17179 case $ac_file$ac_mode in
17180 "include/autoconf.h":H) # update the timestamp
17181 echo 'timestamp for include/autoconf.h' >"include/stamp-h1"
17183 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17184 # Strip MF so we end up with the name of the file.
17185 mf=`echo "$mf" | sed -e 's/:.*$//'`
17186 # Check whether this is an Automake generated Makefile or not.
17187 # We used to match only the files named `Makefile.in', but
17188 # some people rename them; so instead we look at the file content.
17189 # Grep'ing the first line is not enough: some people post-process
17190 # each Makefile.in and add a new line on top of each file to say so.
17191 # So let's grep whole file.
17192 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17193 dirpart=`$as_dirname -- "$mf" ||
17194 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195 X"$mf" : 'X\(//\)[^/]' \| \
17196 X"$mf" : 'X\(//\)$' \| \
17197 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17203 /^X\(\/\/\)[^/].*/{
17219 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17220 # Extract the definition of DEP_FILES from the Makefile without
17222 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17223 test -z "$DEPDIR" && continue
17224 # When using ansi2knr, U may be empty or an underscore; expand it
17225 U=`sed -n -e '/^U = / s///p' < "$mf"`
17226 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17227 # We invoke sed twice because it is the simplest approach to
17228 # changing $(DEPDIR) to its actual value in the expansion.
17229 for file in `sed -n -e '
17230 /^DEP_FILES = .*\\\\$/ {
17239 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17241 # Make sure the directory exists.
17242 test -f "$dirpart/$file" && continue
17243 fdir=`$as_dirname -- "$file" ||
17244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X"$file" : 'X\(//\)[^/]' \| \
17246 X"$file" : 'X\(//\)$' \| \
17247 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17253 /^X\(\/\/\)[^/].*/{
17266 { as_dir=$dirpart/$fdir
17268 -*) as_dir=./$as_dir;;
17270 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17274 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17275 *) as_qdir=$as_dir;;
17277 as_dirs="'$as_qdir' $as_dirs"
17278 as_dir=`$as_dirname -- "$as_dir" ||
17279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$as_dir" : 'X\(//\)[^/]' \| \
17281 X"$as_dir" : 'X\(//\)$' \| \
17282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17288 /^X\(\/\/\)[^/].*/{
17301 test -d "$as_dir" && break
17303 test -z "$as_dirs" || eval "mkdir $as_dirs"
17304 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17305 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17306 { (exit 1); exit 1; }; }; }
17307 # echo "creating $dirpart/$file"
17308 echo '# dummy' > "$dirpart/$file"
17317 { (exit 0); exit 0; }
17319 chmod +x $CONFIG_STATUS
17320 ac_clean_files=$ac_clean_files_save
17323 # configure is writing to config.log, and then calls config.status.
17324 # config.status does its own redirection, appending to config.log.
17325 # Unfortunately, on DOS this fails, as config.log is still kept open
17326 # by configure, so config.status won't be able to write to it; its
17327 # output is simply discarded. So we exec the FD to /dev/null,
17328 # effectively closing config.log, so it can be properly (re)opened and
17329 # appended to by config.status. When coming back to configure, we
17330 # need to make the FD available again.
17331 if test "$no_create" != yes; then
17333 ac_config_status_args=
17334 test "$silent" = yes &&
17335 ac_config_status_args="$ac_config_status_args --quiet"
17337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17340 # would make configure fail if this is the last instruction.
17341 $ac_cs_success || { (exit 1); exit 1; }