2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="ctdb.h"
565 ac_unique_file="ctdb_test.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
570 # include <sys/types.h>
573 # include <sys/stat.h>
584 # if !STDC_HEADERS && HAVE_MEMORY_H
590 # include <strings.h>
593 # include <inttypes.h>
611 program_transform_name
666 libreplace_cv_immediate_structures
678 ac_precious_vars='build_alias
688 # Initialize some variables set by options.
690 ac_init_version=false
691 # The variables have the same names as the options, with
692 # dashes changed to underlines.
700 program_transform_name=s,x,x,
708 # Installation directory options.
709 # These are left unexpanded so users can "make install exec_prefix=/foo"
710 # and all the variables that are supposed to be based on exec_prefix
711 # by default will actually change.
712 # Use braces instead of parens because sh, perl, etc. also accept them.
713 # (The list follows the same order as the GNU Coding Standards.)
714 bindir='${exec_prefix}/bin'
715 sbindir='${exec_prefix}/sbin'
716 libexecdir='${exec_prefix}/libexec'
717 datarootdir='${prefix}/share'
718 datadir='${datarootdir}'
719 sysconfdir='${prefix}/etc'
720 sharedstatedir='${prefix}/com'
721 localstatedir='${prefix}/var'
722 includedir='${prefix}/include'
723 oldincludedir='/usr/include'
724 docdir='${datarootdir}/doc/${PACKAGE}'
725 infodir='${datarootdir}/info'
730 libdir='${exec_prefix}/lib'
731 localedir='${datarootdir}/locale'
732 mandir='${datarootdir}/man'
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
740 eval $ac_prev=\$ac_option
746 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 # Accept the important Cygnus configure options, so we can diagnose typos.
752 case $ac_dashdash$ac_option in
756 -bindir | --bindir | --bindi | --bind | --bin | --bi)
758 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761 -build | --build | --buil | --bui | --bu)
762 ac_prev=build_alias ;;
763 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
764 build_alias=$ac_optarg ;;
766 -cache-file | --cache-file | --cache-fil | --cache-fi \
767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768 ac_prev=cache_file ;;
769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
771 cache_file=$ac_optarg ;;
774 cache_file=config.cache ;;
776 -datadir | --datadir | --datadi | --datad)
778 -datadir=* | --datadir=* | --datadi=* | --datad=*)
779 datadir=$ac_optarg ;;
781 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782 | --dataroo | --dataro | --datar)
783 ac_prev=datarootdir ;;
784 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786 datarootdir=$ac_optarg ;;
788 -disable-* | --disable-*)
789 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
793 { (exit 1); exit 1; }; }
794 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
795 eval enable_$ac_feature=no ;;
797 -docdir | --docdir | --docdi | --doc | --do)
799 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
802 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
804 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
807 -enable-* | --enable-*)
808 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
811 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
812 { (exit 1); exit 1; }; }
813 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
814 eval enable_$ac_feature=\$ac_optarg ;;
816 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
817 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
818 | --exec | --exe | --ex)
819 ac_prev=exec_prefix ;;
820 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
821 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
822 | --exec=* | --exe=* | --ex=*)
823 exec_prefix=$ac_optarg ;;
825 -gas | --gas | --ga | --g)
826 # Obsolete; use --with-gas.
829 -help | --help | --hel | --he | -h)
831 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
832 ac_init_help=recursive ;;
833 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
834 ac_init_help=short ;;
836 -host | --host | --hos | --ho)
837 ac_prev=host_alias ;;
838 -host=* | --host=* | --hos=* | --ho=*)
839 host_alias=$ac_optarg ;;
841 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
843 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
845 htmldir=$ac_optarg ;;
847 -includedir | --includedir | --includedi | --included | --include \
848 | --includ | --inclu | --incl | --inc)
849 ac_prev=includedir ;;
850 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
851 | --includ=* | --inclu=* | --incl=* | --inc=*)
852 includedir=$ac_optarg ;;
854 -infodir | --infodir | --infodi | --infod | --info | --inf)
856 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
857 infodir=$ac_optarg ;;
859 -libdir | --libdir | --libdi | --libd)
861 -libdir=* | --libdir=* | --libdi=* | --libd=*)
864 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
865 | --libexe | --libex | --libe)
866 ac_prev=libexecdir ;;
867 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
868 | --libexe=* | --libex=* | --libe=*)
869 libexecdir=$ac_optarg ;;
871 -localedir | --localedir | --localedi | --localed | --locale)
873 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
874 localedir=$ac_optarg ;;
876 -localstatedir | --localstatedir | --localstatedi | --localstated \
877 | --localstate | --localstat | --localsta | --localst | --locals)
878 ac_prev=localstatedir ;;
879 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
880 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
881 localstatedir=$ac_optarg ;;
883 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
885 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889 # Obsolete; use --without-fp.
892 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
893 | --no-cr | --no-c | -n)
896 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
897 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
900 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
901 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
902 | --oldin | --oldi | --old | --ol | --o)
903 ac_prev=oldincludedir ;;
904 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
905 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
906 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
907 oldincludedir=$ac_optarg ;;
909 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
911 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
914 -program-prefix | --program-prefix | --program-prefi | --program-pref \
915 | --program-pre | --program-pr | --program-p)
916 ac_prev=program_prefix ;;
917 -program-prefix=* | --program-prefix=* | --program-prefi=* \
918 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
919 program_prefix=$ac_optarg ;;
921 -program-suffix | --program-suffix | --program-suffi | --program-suff \
922 | --program-suf | --program-su | --program-s)
923 ac_prev=program_suffix ;;
924 -program-suffix=* | --program-suffix=* | --program-suffi=* \
925 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
926 program_suffix=$ac_optarg ;;
928 -program-transform-name | --program-transform-name \
929 | --program-transform-nam | --program-transform-na \
930 | --program-transform-n | --program-transform- \
931 | --program-transform | --program-transfor \
932 | --program-transfo | --program-transf \
933 | --program-trans | --program-tran \
934 | --progr-tra | --program-tr | --program-t)
935 ac_prev=program_transform_name ;;
936 -program-transform-name=* | --program-transform-name=* \
937 | --program-transform-nam=* | --program-transform-na=* \
938 | --program-transform-n=* | --program-transform-=* \
939 | --program-transform=* | --program-transfor=* \
940 | --program-transfo=* | --program-transf=* \
941 | --program-trans=* | --program-tran=* \
942 | --progr-tra=* | --program-tr=* | --program-t=*)
943 program_transform_name=$ac_optarg ;;
945 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
947 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
950 -psdir | --psdir | --psdi | --psd | --ps)
952 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
956 | -silent | --silent | --silen | --sile | --sil)
959 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
961 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
963 sbindir=$ac_optarg ;;
965 -sharedstatedir | --sharedstatedir | --sharedstatedi \
966 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
967 | --sharedst | --shareds | --shared | --share | --shar \
969 ac_prev=sharedstatedir ;;
970 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
971 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
972 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
974 sharedstatedir=$ac_optarg ;;
976 -site | --site | --sit)
978 -site=* | --site=* | --sit=*)
981 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
983 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
986 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
987 | --syscon | --sysco | --sysc | --sys | --sy)
988 ac_prev=sysconfdir ;;
989 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
990 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
991 sysconfdir=$ac_optarg ;;
993 -target | --target | --targe | --targ | --tar | --ta | --t)
994 ac_prev=target_alias ;;
995 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
996 target_alias=$ac_optarg ;;
998 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1001 -version | --version | --versio | --versi | --vers | -V)
1002 ac_init_version=: ;;
1005 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid package name: $ac_package" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_package=`echo $ac_package| sed 's/-/_/g'`
1011 eval with_$ac_package=\$ac_optarg ;;
1013 -without-* | --without-*)
1014 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid package name: $ac_package" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_package=`echo $ac_package | sed 's/-/_/g'`
1020 eval with_$ac_package=no ;;
1023 # Obsolete; use --with-x.
1026 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1027 | --x-incl | --x-inc | --x-in | --x-i)
1028 ac_prev=x_includes ;;
1029 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1030 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1031 x_includes=$ac_optarg ;;
1033 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1034 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1035 ac_prev=x_libraries ;;
1036 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1037 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1038 x_libraries=$ac_optarg ;;
1040 -*) { echo "$as_me: error: unrecognized option: $ac_option
1041 Try \`$0 --help' for more information." >&2
1042 { (exit 1); exit 1; }; }
1046 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1050 { (exit 1); exit 1; }; }
1051 eval $ac_envvar=\$ac_optarg
1052 export $ac_envvar ;;
1055 # FIXME: should be removed in autoconf 3.0.
1056 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1065 if test -n "$ac_prev"; then
1066 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1067 { echo "$as_me: error: missing argument to $ac_option" >&2
1068 { (exit 1); exit 1; }; }
1071 # Be sure to have absolute directory names.
1072 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1073 datadir sysconfdir sharedstatedir localstatedir includedir \
1074 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1075 libdir localedir mandir
1077 eval ac_val=\$$ac_var
1079 [\\/$]* | ?:[\\/]* ) continue;;
1080 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1082 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1083 { (exit 1); exit 1; }; }
1086 # There might be people who depend on the old broken behavior: `$host'
1087 # used to hold the argument of --host etc.
1088 # FIXME: To remove some day.
1091 target=$target_alias
1093 # FIXME: To remove some day.
1094 if test "x$host_alias" != x; then
1095 if test "x$build_alias" = x; then
1096 cross_compiling=maybe
1097 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1098 If a cross compiler is detected then cross compile mode will be used." >&2
1099 elif test "x$build_alias" != "x$host_alias"; then
1105 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1107 test "$silent" = yes && exec 6>/dev/null
1110 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1111 ac_ls_di=`ls -di .` &&
1112 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1113 { echo "$as_me: error: Working directory cannot be determined" >&2
1114 { (exit 1); exit 1; }; }
1115 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1116 { echo "$as_me: error: pwd does not report name of working directory" >&2
1117 { (exit 1); exit 1; }; }
1120 # Find the source files, if location was not specified.
1121 if test -z "$srcdir"; then
1122 ac_srcdir_defaulted=yes
1123 # Try the directory containing this script, then the parent directory.
1124 ac_confdir=`$as_dirname -- "$0" ||
1125 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1126 X"$0" : 'X\(//\)[^/]' \| \
1127 X"$0" : 'X\(//\)$' \| \
1128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1148 if test ! -r "$srcdir/$ac_unique_file"; then
1152 ac_srcdir_defaulted=no
1154 if test ! -r "$srcdir/$ac_unique_file"; then
1155 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1156 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1157 { (exit 1); exit 1; }; }
1159 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1161 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1162 { (exit 1); exit 1; }; }
1164 # When building in place, set srcdir=.
1165 if test "$ac_abs_confdir" = "$ac_pwd"; then
1168 # Remove unnecessary trailing slashes from srcdir.
1169 # Double slashes in file names in object file debugging info
1170 # mess up M-x gdb in Emacs.
1172 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1174 for ac_var in $ac_precious_vars; do
1175 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1176 eval ac_env_${ac_var}_value=\$${ac_var}
1177 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1178 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1182 # Report the --help message.
1184 if test "$ac_init_help" = "long"; then
1185 # Omit some internal or obsolete options to make the list less imposing.
1186 # This message is too long to be a string in the A/UX 3.1 sh.
1188 \`configure' configures this package to adapt to many kinds of systems.
1190 Usage: $0 [OPTION]... [VAR=VALUE]...
1192 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1193 VAR=VALUE. See below for descriptions of some of the useful variables.
1195 Defaults for the options are specified in brackets.
1198 -h, --help display this help and exit
1199 --help=short display options specific to this package
1200 --help=recursive display the short help of all the included packages
1201 -V, --version display version information and exit
1202 -q, --quiet, --silent do not print \`checking...' messages
1203 --cache-file=FILE cache test results in FILE [disabled]
1204 -C, --config-cache alias for \`--cache-file=config.cache'
1205 -n, --no-create do not create output files
1206 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1208 Installation directories:
1209 --prefix=PREFIX install architecture-independent files in PREFIX
1210 [$ac_default_prefix]
1211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1214 By default, \`make install' will install all the files in
1215 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1216 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1217 for instance \`--prefix=\$HOME'.
1219 For better control, use the options below.
1221 Fine tuning of the installation directories:
1222 --bindir=DIR user executables [EPREFIX/bin]
1223 --sbindir=DIR system admin executables [EPREFIX/sbin]
1224 --libexecdir=DIR program executables [EPREFIX/libexec]
1225 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1226 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1227 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1228 --libdir=DIR object code libraries [EPREFIX/lib]
1229 --includedir=DIR C header files [PREFIX/include]
1230 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1231 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1232 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1233 --infodir=DIR info documentation [DATAROOTDIR/info]
1234 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1235 --mandir=DIR man documentation [DATAROOTDIR/man]
1236 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1237 --htmldir=DIR html documentation [DOCDIR]
1238 --dvidir=DIR dvi documentation [DOCDIR]
1239 --pdfdir=DIR pdf documentation [DOCDIR]
1240 --psdir=DIR ps documentation [DOCDIR]
1246 --build=BUILD configure for building on BUILD [guessed]
1247 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1248 --target=TARGET configure for building compilers for TARGET [HOST]
1252 if test -n "$ac_init_help"; then
1257 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1258 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1259 --disable-largefile omit support for large files
1262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1264 --with-python=PYTHONNAME build Python libraries
1266 Some influential environment variables:
1267 CC C compiler command
1268 CFLAGS C compiler flags
1269 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1270 nonstandard directory <lib dir>
1271 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1272 you have headers in a nonstandard directory <include dir>
1275 Use these variables to override the choices made by `configure' or to help
1276 it to find libraries and programs with nonstandard names/locations.
1282 if test "$ac_init_help" = "recursive"; then
1283 # If there are subdirs, report their specific --help.
1284 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1285 test -d "$ac_dir" || continue
1289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1292 # A ".." for each directory in $ac_dir_suffix.
1293 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1294 case $ac_top_builddir_sub in
1295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1299 ac_abs_top_builddir=$ac_pwd
1300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1301 # for backward compatibility:
1302 ac_top_builddir=$ac_top_build_prefix
1305 .) # We are building in place.
1307 ac_top_srcdir=$ac_top_builddir_sub
1308 ac_abs_top_srcdir=$ac_pwd ;;
1309 [\\/]* | ?:[\\/]* ) # Absolute name.
1310 ac_srcdir=$srcdir$ac_dir_suffix;
1311 ac_top_srcdir=$srcdir
1312 ac_abs_top_srcdir=$srcdir ;;
1314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1315 ac_top_srcdir=$ac_top_build_prefix$srcdir
1316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1320 cd "$ac_dir" || { ac_status=$?; continue; }
1321 # Check for guested configure.
1322 if test -f "$ac_srcdir/configure.gnu"; then
1324 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1325 elif test -f "$ac_srcdir/configure"; then
1327 $SHELL "$ac_srcdir/configure" --help=recursive
1329 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331 cd "$ac_pwd" || { ac_status=$?; break; }
1335 test -n "$ac_init_help" && exit $ac_status
1336 if $ac_init_version; then
1339 generated by GNU Autoconf 2.60
1341 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1342 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1343 This configure script is free software; the Free Software Foundation
1344 gives unlimited permission to copy, distribute and modify it.
1348 cat >config.log <<_ACEOF
1349 This file contains any messages produced by compilers while
1350 running configure, to aid debugging if configure makes a mistake.
1352 It was created by $as_me, which was
1353 generated by GNU Autoconf 2.60. Invocation command line was
1365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1372 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1374 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1375 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1377 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1378 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1379 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1380 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 echo "PATH: $as_dir"
1405 # Keep a trace of the command line.
1406 # Strip out --no-create and --no-recursion so they do not pile up.
1407 # Strip out --silent because we don't want to record it for future runs.
1408 # Also quote any args containing shell meta-characters.
1409 # Make two passes to allow for proper duplicate-argument suppression.
1413 ac_must_keep_next=false
1419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1424 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1427 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1430 if test $ac_must_keep_next = true; then
1431 ac_must_keep_next=false # Got value, back to normal.
1434 *=* | --config-cache | -C | -disable-* | --disable-* \
1435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1437 | -with-* | --with-* | -without-* | --without-* | --x)
1438 case "$ac_configure_args0 " in
1439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1442 -* ) ac_must_keep_next=true ;;
1445 ac_configure_args="$ac_configure_args '$ac_arg'"
1450 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1451 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1453 # When interrupted or exit'd, cleanup temporary files, and complete
1454 # config.log. We remove comments because anyway the quotes in there
1455 # would cause problems or look ugly.
1456 # WARNING: Use '\'' to represent an apostrophe within the trap.
1457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1458 trap 'exit_status=$?
1459 # Save into config.log some information that might help in debugging.
1464 ## ---------------- ##
1465 ## Cache variables. ##
1466 ## ---------------- ##
1469 # The following way of writing the cache mishandles newlines in values,
1471 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1472 eval ac_val=\$$ac_var
1476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1480 _ | IFS | as_nl) ;; #(
1481 *) $as_unset $ac_var ;;
1486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1487 *${as_nl}ac_space=\ *)
1489 "s/'\''/'\''\\\\'\'''\''/g;
1490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1501 ## ----------------- ##
1502 ## Output variables. ##
1503 ## ----------------- ##
1506 for ac_var in $ac_subst_vars
1508 eval ac_val=\$$ac_var
1510 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1512 echo "$ac_var='\''$ac_val'\''"
1516 if test -n "$ac_subst_files"; then
1518 ## ------------------- ##
1519 ## File substitutions. ##
1520 ## ------------------- ##
1523 for ac_var in $ac_subst_files
1525 eval ac_val=\$$ac_var
1527 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1529 echo "$ac_var='\''$ac_val'\''"
1534 if test -s confdefs.h; then
1544 test "$ac_signal" != 0 &&
1545 echo "$as_me: caught signal $ac_signal"
1546 echo "$as_me: exit $exit_status"
1548 rm -f core *.core core.conftest.* &&
1549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1552 for ac_signal in 1 2 13 15; do
1553 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1558 rm -f -r conftest* confdefs.h
1560 # Predefined preprocessor variables.
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_NAME "$PACKAGE_NAME"
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_STRING "$PACKAGE_STRING"
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1587 # Let the site file select an alternate cache file if it wants to.
1588 # Prefer explicitly selected file to automatically selected ones.
1589 if test -n "$CONFIG_SITE"; then
1590 set x "$CONFIG_SITE"
1591 elif test "x$prefix" != xNONE; then
1592 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1594 set x "$ac_default_prefix/share/config.site" \
1595 "$ac_default_prefix/etc/config.site"
1600 if test -r "$ac_site_file"; then
1601 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1602 echo "$as_me: loading site script $ac_site_file" >&6;}
1603 sed 's/^/| /' "$ac_site_file" >&5
1608 if test -r "$cache_file"; then
1609 # Some versions of bash will fail to source /dev/null (special
1610 # files actually), so we avoid doing that.
1611 if test -f "$cache_file"; then
1612 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1613 echo "$as_me: loading cache $cache_file" >&6;}
1615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1616 *) . "./$cache_file";;
1620 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1621 echo "$as_me: creating cache $cache_file" >&6;}
1625 # Check that the precious variables saved in the cache have kept the same
1627 ac_cache_corrupted=false
1628 for ac_var in $ac_precious_vars; do
1629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1630 eval ac_new_set=\$ac_env_${ac_var}_set
1631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1632 eval ac_new_val=\$ac_env_${ac_var}_value
1633 case $ac_old_set,$ac_new_set in
1635 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1636 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1637 ac_cache_corrupted=: ;;
1639 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1640 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1641 ac_cache_corrupted=: ;;
1644 if test "x$ac_old_val" != "x$ac_new_val"; then
1645 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1646 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1647 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1648 echo "$as_me: former value: $ac_old_val" >&2;}
1649 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1650 echo "$as_me: current value: $ac_new_val" >&2;}
1651 ac_cache_corrupted=:
1654 # Pass precious variables to config.status.
1655 if test "$ac_new_set" = set; then
1657 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 *) ac_arg=$ac_var=$ac_new_val ;;
1660 case " $ac_configure_args " in
1661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1662 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1666 if $ac_cache_corrupted; then
1667 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1668 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1669 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1670 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1671 { (exit 1); exit 1; }; }
1691 ac_cpp='$CPP $CPPFLAGS'
1692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1701 #LIBREPLACE_ALL_CHECKS: START"
1704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1705 if test -f "$ac_dir/install-sh"; then
1707 ac_install_sh="$ac_aux_dir/install-sh -c"
1709 elif test -f "$ac_dir/install.sh"; then
1711 ac_install_sh="$ac_aux_dir/install.sh -c"
1713 elif test -f "$ac_dir/shtool"; then
1715 ac_install_sh="$ac_aux_dir/shtool install -c"
1719 if test -z "$ac_aux_dir"; then
1720 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1721 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1722 { (exit 1); exit 1; }; }
1725 # These three variables are undocumented and unsupported,
1726 # and are intended to be withdrawn in a future Autoconf release.
1727 # They can cause serious problems if a builder's source tree is in a directory
1728 # whose full name contains unusual characters.
1729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1735 echo "LIBREPLACE_LOCATION_CHECKS: START"
1738 libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace"
1739 for d in $libreplacepaths; do
1740 if test -f "$d/replace.c"; then
1746 if test x"$libreplacedir" = "x"; then
1747 { { echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
1748 echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
1749 { (exit 1); exit 1; }; }
1751 LIBREPLACEOBJ="replace.o"
1754 # Make sure we can run config.sub.
1755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1756 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1757 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1758 { (exit 1); exit 1; }; }
1760 { echo "$as_me:$LINENO: checking build system type" >&5
1761 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1762 if test "${ac_cv_build+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 ac_build_alias=$build_alias
1766 test "x$ac_build_alias" = x &&
1767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1768 test "x$ac_build_alias" = x &&
1769 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1770 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1771 { (exit 1); exit 1; }; }
1772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1773 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1774 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1775 { (exit 1); exit 1; }; }
1778 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1779 echo "${ECHO_T}$ac_cv_build" >&6; }
1780 case $ac_cv_build in
1782 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1783 echo "$as_me: error: invalid value of canonical build" >&2;}
1784 { (exit 1); exit 1; }; };;
1787 ac_save_IFS=$IFS; IFS='-'
1793 # Remember, the first character of IFS is used to create $*,
1794 # except with old shells:
1797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1800 { echo "$as_me:$LINENO: checking host system type" >&5
1801 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1802 if test "${ac_cv_host+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test "x$host_alias" = x; then
1806 ac_cv_host=$ac_cv_build
1808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816 echo "${ECHO_T}$ac_cv_host" >&6; }
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1820 echo "$as_me: error: invalid value of canonical host" >&2;}
1821 { (exit 1); exit 1; }; };;
1824 ac_save_IFS=$IFS; IFS='-'
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1837 { echo "$as_me:$LINENO: checking target system type" >&5
1838 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_target+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test "x$target_alias" = x; then
1843 ac_cv_target=$ac_cv_host
1845 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1848 { (exit 1); exit 1; }; }
1852 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1853 echo "${ECHO_T}$ac_cv_target" >&6; }
1854 case $ac_cv_target in
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1857 echo "$as_me: error: invalid value of canonical target" >&2;}
1858 { (exit 1); exit 1; }; };;
1860 target=$ac_cv_target
1861 ac_save_IFS=$IFS; IFS='-'
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1871 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1874 # The aliases save the names the user supplied, while $host etc.
1875 # will get canonicalized.
1876 test -n "$target_alias" &&
1877 test "$program_prefix$program_suffix$program_transform_name" = \
1879 program_prefix=${target_alias}-
1881 echo "LIBREPLACE_LOCATION_CHECKS: END"
1885 echo "LIBREPLACE_CC_CHECKS: START"
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 { echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6; }
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1935 if test -z "$ac_cv_prog_CC"; then
1937 # Extract the first word of "gcc", so it can be a program name with args.
1938 set dummy gcc; ac_word=$2
1939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$ac_ct_CC"; then
1945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1954 ac_cv_prog_ac_ct_CC="gcc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6; }
1969 { echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6; }
1973 if test "x$ac_ct_CC" = x; then
1976 case $cross_compiling:$ac_tool_warned in
1978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1979 whose name does not start with the host triplet. If you think this
1980 configuration is useful to you, please write to autoconf@gnu.org." >&5
1981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1982 whose name does not start with the host triplet. If you think this
1983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1984 ac_tool_warned=yes ;;
1992 if test -z "$CC"; then
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}cc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_CC="${ac_tool_prefix}cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2033 if test -z "$CC"; then
2034 # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2053 ac_prog_rejected=yes
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test $ac_prog_rejected = yes; then
2065 # We found a bogon in the path, so make sure we never use it.
2066 set dummy $ac_cv_prog_CC
2068 if test $# != 0; then
2069 # We chose a different compiler from the bogus one.
2070 # However, it has the same basename, so the bogon will be chosen
2071 # first if we set CC to just the basename; use the full file name.
2073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2079 if test -n "$CC"; then
2080 { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2089 if test -z "$CC"; then
2090 if test -n "$ac_tool_prefix"; then
2091 for ac_prog in cl.exe
2093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2130 test -n "$CC" && break
2133 if test -z "$CC"; then
2135 for ac_prog in cl.exe
2137 # Extract the first word of "$ac_prog", so it can be a program name with args.
2138 set dummy $ac_prog; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test -n "$ac_ct_CC"; then
2145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_ac_ct_CC="$ac_prog"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2174 test -n "$ac_ct_CC" && break
2177 if test "x$ac_ct_CC" = x; then
2180 case $cross_compiling:$ac_tool_warned in
2182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet. If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&5
2185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet. If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2188 ac_tool_warned=yes ;;
2197 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: no acceptable C compiler found in \$PATH
2200 See \`config.log' for more details." >&2;}
2201 { (exit 1); exit 1; }; }
2203 # Provide some information about the compiler.
2204 echo "$as_me:$LINENO: checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (ac_try="$ac_compiler --version >&5"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_compiler --version >&5") 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (ac_try="$ac_compiler -v >&5"
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_compiler -v >&5") 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }
2226 { (ac_try="$ac_compiler -V >&5"
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_compiler -V >&5") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }
2237 cat >conftest.$ac_ext <<_ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2252 ac_clean_files_save=$ac_clean_files
2253 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2254 # Try to create an executable without -o first, disregard a.out.
2255 # It will help us diagnose broken compilers, and finding out an intuition
2257 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2258 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2259 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261 # List of possible output files, starting from the most likely.
2262 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2263 # only as a last resort. b.out is created by i960 compilers.
2264 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2266 # The IRIX 6 linker writes into existing files which may not be
2267 # executable, retaining their permissions. Remove them first so a
2268 # subsequent execution test works.
2270 for ac_file in $ac_files
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2279 if { (ac_try="$ac_link_default"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_link_default") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2291 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2292 # so that the user can short-circuit this test for compilers unknown to
2294 for ac_file in $ac_files
2296 test -f "$ac_file" || continue
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2301 # We found the default executable, but exeext='' is most
2305 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2307 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309 # We set ac_cv_exeext here because the later test for it is not
2310 # safe: cross compilers may not add the suffix if given an `-o'
2311 # argument, so we may need to know it at that point already.
2312 # Even if this section looks crufty: it has the advantage of
2319 test "$ac_cv_exeext" = no && ac_cv_exeext=
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: C compiler cannot create executables
2328 See \`config.log' for more details." >&2;}
2329 { (exit 77); exit 77; }; }
2332 ac_exeext=$ac_cv_exeext
2333 { echo "$as_me:$LINENO: result: $ac_file" >&5
2334 echo "${ECHO_T}$ac_file" >&6; }
2336 # Check that the compiler produces executables we can run. If not, either
2337 # the compiler is broken, or we cross compile.
2338 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2341 # If not cross compiling, check that we can run a simple program.
2342 if test "$cross_compiling" != yes; then
2343 if { ac_try='./$ac_file'
2344 { (case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_try") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 if test "$cross_compiling" = maybe; then
2358 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot run C compiled programs.
2362 If you meant to cross compile, use \`--host'.
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2371 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2372 ac_clean_files=$ac_clean_files_save
2373 # Check that the compiler produces executables we can run. If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2376 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2377 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2378 echo "${ECHO_T}$cross_compiling" >&6; }
2380 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2381 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2382 if { (ac_try="$ac_link"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_link") 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; then
2392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2394 # work properly (i.e., refer to `conftest.exe'), while it won't with
2396 for ac_file in conftest.exe conftest conftest.*; do
2397 test -f "$ac_file" || continue
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest$ac_cv_exeext
2414 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2417 rm -f conftest.$ac_ext
2418 EXEEXT=$ac_cv_exeext
2420 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2422 if test "${ac_cv_objext+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.$ac_ext <<_ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.o conftest.obj
2441 if { (ac_try="$ac_compile"
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compile") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 for ac_file in conftest.o conftest.obj conftest.*; do
2452 test -f "$ac_file" || continue;
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2472 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473 echo "${ECHO_T}$ac_cv_objext" >&6; }
2474 OBJEXT=$ac_cv_objext
2476 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>conftest.er1
2508 grep -v '^ *+' conftest.er1 >conftest.err
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2514 { (case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_try") 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_try") 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2545 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2547 GCC=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CFLAGS=${CFLAGS+set}
2549 ac_save_CFLAGS=$CFLAGS
2550 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 ac_save_c_werror_flag=$ac_c_werror_flag
2556 ac_c_werror_flag=yes
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2614 cat >conftest.$ac_ext <<_ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_compile") 2>conftest.er1
2638 grep -v '^ *+' conftest.er1 >conftest.err
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2644 { (case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_try") 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_try") 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_c_werror_flag=$ac_save_c_werror_flag
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_c_werror_flag=$ac_save_c_werror_flag
2736 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2738 if test "$ac_test_CFLAGS" = set; then
2739 CFLAGS=$ac_save_CFLAGS
2740 elif test $ac_cv_prog_cc_g = yes; then
2741 if test "$GCC" = yes; then
2747 if test "$GCC" = yes; then
2753 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2754 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_cc_c89+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_cv_prog_cc_c89=no
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2768 #include <sys/types.h>
2769 #include <sys/stat.h>
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2784 s = g (p, va_arg (v,int));
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 function prototypes and stuff, but not '\xHH' hex character constants.
2791 These don't provoke an error unfortunately, instead are silently treated
2792 as 'x'. The following induces an error, until -std is added to get
2793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2794 array size at least. It's necessary to write '\x00'==0 to get something
2795 that's true only with -std. */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2799 inside strings and character constants. */
2801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2820 CC="$ac_save_CC $ac_arg"
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compile") 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836 { (case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_try") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_try") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_prog_cc_c89=$ac_arg
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f core conftest.err conftest.$ac_objext
2864 test "x$ac_cv_prog_cc_c89" != "xno" && break
2866 rm -f conftest.$ac_ext
2871 case "x$ac_cv_prog_cc_c89" in
2873 { echo "$as_me:$LINENO: result: none needed" >&5
2874 echo "${ECHO_T}none needed" >&6; } ;;
2876 { echo "$as_me:$LINENO: result: unsupported" >&5
2877 echo "${ECHO_T}unsupported" >&6; } ;;
2879 CC="$CC $ac_cv_prog_cc_c89"
2880 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 if test x"$GCC" != x"yes" ; then
2894 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2895 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_cc_c99+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 ac_cv_prog_cc_c99=no
2901 cat >conftest.$ac_ext <<_ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 #include <stdbool.h>
2913 struct incomplete_array
2921 const wchar_t *name;
2925 typedef const char *ccp;
2928 test_restrict(ccp restrict text)
2930 // See if C++-style comments work.
2931 // Iterate through items via the restricted pointer.
2932 // Also check for declarations in for loops.
2933 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2938 // Check varargs and va_copy work.
2940 test_varargs(const char *format, ...)
2943 va_start(args, format);
2945 va_copy(args_copy, args);
2956 str = va_arg(args_copy, const char *);
2959 number = va_arg(args_copy, int);
2962 fnumber = (float) va_arg(args_copy, double);
2976 // Check bool and long long datatypes.
2977 _Bool success = false;
2978 long long int bignum = -1234567890LL;
2979 unsigned long long int ubignum = 1234567890uLL;
2982 if (test_restrict("String literal") != 0)
2984 char *restrict newvar = "Another string";
2987 test_varargs("s, d' f .", "string", 65, 34.234);
2989 // Check incomplete arrays work.
2990 struct incomplete_array *ia =
2991 malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
2993 for (int i = 0; i < ia->datasize; ++i)
2994 ia->data[i] = (double) i * 1.234;
2996 // Check named initialisers.
2997 struct named_init ni = {
2999 .name = L"Test wide string",
3000 .average = 543.34343,
3005 int dynamic_array[ni.number];
3006 dynamic_array[43] = 543;
3008 // work around unused variable warnings
3009 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
3015 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3017 CC="$ac_save_CC $ac_arg"
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cc_c99=$ac_arg
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f core conftest.err conftest.$ac_objext
3061 test "x$ac_cv_prog_cc_c99" != "xno" && break
3063 rm -f conftest.$ac_ext
3068 case "x$ac_cv_prog_cc_c99" in
3070 { echo "$as_me:$LINENO: result: none needed" >&5
3071 echo "${ECHO_T}none needed" >&6; } ;;
3073 { echo "$as_me:$LINENO: result: unsupported" >&5
3074 echo "${ECHO_T}unsupported" >&6; } ;;
3076 CC="$CC $ac_cv_prog_cc_c99"
3077 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3078 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3085 if test x"$GCC" = x"yes" ; then
3086 { echo "$as_me:$LINENO: checking for version of gcc" >&5
3087 echo $ECHO_N "checking for version of gcc... $ECHO_C" >&6; }
3088 GCC_VERSION=`$CC -dumpversion`
3089 { echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3090 echo "${ECHO_T}${GCC_VERSION}" >&6; }
3093 cat >>confdefs.h <<\_ACEOF
3094 #define _GNU_SOURCE 1
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 # include <limits.h>
3135 # include <assert.h>
3139 if { (ac_try="$ac_cpp conftest.$ac_ext"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null; then
3152 if test -s conftest.err; then
3153 ac_cpp_err=$ac_c_preproc_warn_flag
3154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3161 if test -z "$ac_cpp_err"; then
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 # Broken: fails on valid input.
3171 rm -f conftest.err conftest.$ac_ext
3173 # OK, works on sane cases. Now check whether nonexistent headers
3174 # can be detected and how.
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #include <ac_nonexistent.h>
3183 if { (ac_try="$ac_cpp conftest.$ac_ext"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 if test -z "$ac_cpp_err"; then
3206 # Broken: success on invalid input.
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 # Passes both tests.
3217 rm -f conftest.err conftest.$ac_ext
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3234 { echo "$as_me:$LINENO: result: $CPP" >&5
3235 echo "${ECHO_T}$CPP" >&6; }
3237 for ac_c_preproc_warn_flag in '' yes
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3252 # include <limits.h>
3254 # include <assert.h>
3258 if { (ac_try="$ac_cpp conftest.$ac_ext"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3266 grep -v '^ *+' conftest.er1 >conftest.err
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } >/dev/null; then
3271 if test -s conftest.err; then
3272 ac_cpp_err=$ac_c_preproc_warn_flag
3273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3280 if test -z "$ac_cpp_err"; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 # Broken: fails on valid input.
3290 rm -f conftest.err conftest.$ac_ext
3292 # OK, works on sane cases. Now check whether nonexistent headers
3293 # can be detected and how.
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <ac_nonexistent.h>
3302 if { (ac_try="$ac_cpp conftest.$ac_ext"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 if test -z "$ac_cpp_err"; then
3325 # Broken: success on invalid input.
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Passes both tests.
3336 rm -f conftest.err conftest.$ac_ext
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3344 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3359 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3360 if test "${ac_cv_path_GREP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # Extract the first word of "grep ggrep" to use in msg output
3364 if test -z "$GREP"; then
3365 set dummy grep ggrep; ac_prog_name=$2
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 ac_path_GREP_found=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3375 test -z "$as_dir" && as_dir=.
3376 for ac_prog in grep ggrep; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3379 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3380 # Check for GNU ac_path_GREP and select it if it is found.
3381 # Check for GNU $ac_path_GREP
3382 case `"$ac_path_GREP" --version 2>&1` in
3384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3387 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3390 cat "conftest.in" "conftest.in" >"conftest.tmp"
3391 mv "conftest.tmp" "conftest.in"
3392 cp "conftest.in" "conftest.nl"
3393 echo 'GREP' >> "conftest.nl"
3394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396 ac_count=`expr $ac_count + 1`
3397 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3398 # Best one so far, save it but keep looking for a better one
3399 ac_cv_path_GREP="$ac_path_GREP"
3400 ac_path_GREP_max=$ac_count
3402 # 10*(2^10) chars as input seems more than enough
3403 test $ac_count -gt 10 && break
3405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3409 $ac_path_GREP_found && break 3
3419 GREP="$ac_cv_path_GREP"
3420 if test -z "$GREP"; then
3421 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3422 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3423 { (exit 1); exit 1; }; }
3427 ac_cv_path_GREP=$GREP
3432 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3433 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3434 GREP="$ac_cv_path_GREP"
3437 { echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3439 if test "${ac_cv_path_EGREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3443 then ac_cv_path_EGREP="$GREP -E"
3445 # Extract the first word of "egrep" to use in msg output
3446 if test -z "$EGREP"; then
3447 set dummy egrep; ac_prog_name=$2
3448 if test "${ac_cv_path_EGREP+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 ac_path_EGREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in egrep; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3461 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3462 # Check for GNU ac_path_EGREP and select it if it is found.
3463 # Check for GNU $ac_path_EGREP
3464 case `"$ac_path_EGREP" --version 2>&1` in
3466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3469 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3472 cat "conftest.in" "conftest.in" >"conftest.tmp"
3473 mv "conftest.tmp" "conftest.in"
3474 cp "conftest.in" "conftest.nl"
3475 echo 'EGREP' >> "conftest.nl"
3476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478 ac_count=`expr $ac_count + 1`
3479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3480 # Best one so far, save it but keep looking for a better one
3481 ac_cv_path_EGREP="$ac_path_EGREP"
3482 ac_path_EGREP_max=$ac_count
3484 # 10*(2^10) chars as input seems more than enough
3485 test $ac_count -gt 10 && break
3487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3491 $ac_path_EGREP_found && break 3
3501 EGREP="$ac_cv_path_EGREP"
3502 if test -z "$EGREP"; then
3503 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3504 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3505 { (exit 1); exit 1; }; }
3509 ac_cv_path_EGREP=$EGREP
3515 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3516 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3517 EGREP="$ac_cv_path_EGREP"
3521 { echo "$as_me:$LINENO: checking for AIX" >&5
3522 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535 $EGREP "yes" >/dev/null 2>&1; then
3536 { echo "$as_me:$LINENO: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6; }
3538 cat >>confdefs.h <<\_ACEOF
3539 #define _ALL_SOURCE 1
3543 { echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6; }
3549 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3588 { (case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_try") 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_try") 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_header_stdc=yes
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 ac_cv_header_stdc=no
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then
3632 ac_cv_header_stdc=no
3638 if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then
3653 ac_cv_header_stdc=no
3659 if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3676 # define ISLOWER(c) \
3677 (('a' <= (c) && (c) <= 'i') \
3678 || ('j' <= (c) && (c) <= 'r') \
3679 || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 for (i = 0; i < 256; i++)
3689 if (XOR (islower (i), ISLOWER (i))
3690 || toupper (i) != TOUPPER (i))
3695 rm -f conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3706 { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3730 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3732 if test $ac_cv_header_stdc = yes; then
3734 cat >>confdefs.h <<\_ACEOF
3735 #define STDC_HEADERS 1
3740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3751 inttypes.h stdint.h unistd.h
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3767 #include <$ac_header>
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_try") 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_try") 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 eval "$as_ac_Header=yes"
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 eval "$as_ac_Header=no"
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_res=`eval echo '${'$as_ac_Header'}'`
3814 { echo "$as_me:$LINENO: result: $ac_res" >&5
3815 echo "${ECHO_T}$ac_res" >&6; }
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3826 if test "${ac_cv_header_minix_config_h+set}" = set; then
3827 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3828 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3833 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3835 # Is the header compilable?
3836 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3837 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 $ac_includes_default
3845 #include <minix/config.h>
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3856 grep -v '^ *+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_try") 2>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_header_compiler=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_header_compiler=no
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3891 echo "${ECHO_T}$ac_header_compiler" >&6; }
3893 # Is the header present?
3894 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3895 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 #include <minix/config.h>
3904 if { (ac_try="$ac_cpp conftest.$ac_ext"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } >/dev/null; then
3917 if test -s conftest.err; then
3918 ac_cpp_err=$ac_c_preproc_warn_flag
3919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926 if test -z "$ac_cpp_err"; then
3927 ac_header_preproc=yes
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 ac_header_preproc=no
3935 rm -f conftest.err conftest.$ac_ext
3936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3937 echo "${ECHO_T}$ac_header_preproc" >&6; }
3939 # So? What about this header?
3940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3942 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3943 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3945 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3946 ac_header_preproc=yes
3949 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3950 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3952 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3953 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3954 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3956 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3957 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3958 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3959 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3960 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3964 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3965 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3966 if test "${ac_cv_header_minix_config_h+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_cv_header_minix_config_h=$ac_header_preproc
3971 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3972 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3975 if test $ac_cv_header_minix_config_h = yes; then
3982 if test "$MINIX" = yes; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define _POSIX_SOURCE 1
3989 cat >>confdefs.h <<\_ACEOF
3990 #define _POSIX_1_SOURCE 2
3994 cat >>confdefs.h <<\_ACEOF
4010 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4011 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4012 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4022 # define __EXTENSIONS__ 1
4023 $ac_includes_default
4032 rm -f conftest.$ac_objext
4033 if { (ac_try="$ac_compile"
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039 (eval "$ac_compile") 2>conftest.er1
4041 grep -v '^ *+' conftest.er1 >conftest.err
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_try") 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 ac_cv_safe_to_define___extensions__=yes
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 ac_cv_safe_to_define___extensions__=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4077 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4078 test $ac_cv_safe_to_define___extensions__ = yes &&
4079 cat >>confdefs.h <<\_ACEOF
4080 #define __EXTENSIONS__ 1
4083 cat >>confdefs.h <<\_ACEOF
4084 #define _POSIX_PTHREAD_SEMANTICS 1
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4161 #if BYTE_ORDER != BIG_ENDIAN
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_cv_c_bigendian=yes
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_c_bigendian=no
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218 # try to guess the endianness by grepping values into an object file
4219 ac_cv_c_bigendian=unknown
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 _ascii (); _ebcdic ();
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275 ac_cv_c_bigendian=yes
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278 if test "$ac_cv_c_bigendian" = unknown; then
4279 ac_cv_c_bigendian=no
4281 # finding both strings is unlikely to happen, but who knows?
4282 ac_cv_c_bigendian=unknown
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4305 /* Are we little or big endian? From Harbison&Steele. */
4309 char c[sizeof (long int)];
4312 return u.c[sizeof (long int) - 1] == 1;
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_c_bigendian=no
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_c_bigendian=yes
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4360 cat >>confdefs.h <<\_ACEOF
4361 #define WORDS_BIGENDIAN 1
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4374 { echo "$as_me:$LINENO: checking for inline" >&5
4375 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_inline+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 for ac_kw in inline __inline__ __inline; do
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4389 static $ac_kw foo_t static_foo () {return 0; }
4390 $ac_kw foo_t foo () {return 0; }
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_c_inline=$ac_kw
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 test "$ac_cv_c_inline" != no && break
4441 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4442 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4445 case $ac_cv_c_inline in
4448 case $ac_cv_c_inline in
4450 *) ac_val=$ac_cv_c_inline;;
4452 cat >>confdefs.h <<_ACEOF
4454 #define inline $ac_val
4461 saved_CFLAGS="$CFLAGS";
4463 if test x"$c99_init" = x"no"; then
4464 { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4465 echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
4466 CFLAGS="$saved_CFLAGS";
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4477 struct foo {int x;char y;};
4478 struct foo bar = { .y = 'X', .x = 1 };
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4499 { (case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_try") 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514 (eval "$ac_try") 2>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 { echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 if test x"$c99_init" = x"no"; then
4531 { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4532 echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
4533 CFLAGS="$saved_CFLAGS -AC99";
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4544 struct foo {int x;char y;};
4545 struct foo bar = { .y = 'X', .x = 1 };
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_compile") 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 { echo "$as_me:$LINENO: result: yes" >&5
4586 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 if test x"$c99_init" = x"no"; then
4598 { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4599 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
4600 CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4611 struct foo {int x;char y;};
4612 struct foo bar = { .y = 'X', .x = 1 };
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_compile") 2>conftest.er1
4627 grep -v '^ *+' conftest.er1 >conftest.err
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4633 { (case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_try") 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_try") 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 { echo "$as_me:$LINENO: result: yes" >&5
4653 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test x"$c99_init" = x"no"; then
4665 { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4666 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
4667 CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4678 struct foo {int x;char y;};
4679 struct foo bar = { .y = 'X', .x = 1 };
4685 rm -f conftest.$ac_objext
4686 if { (ac_try="$ac_compile"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_compile") 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_try") 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 { echo "$as_me:$LINENO: result: yes" >&5
4720 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 if test x"$c99_init" = x"no"; then
4732 { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4733 echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
4734 CFLAGS="$saved_CFLAGS -c99"
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4745 struct foo {int x;char y;};
4746 struct foo bar = { .y = 'X', .x = 1 };
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_compile") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4767 { (case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_try") 2>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 { echo "$as_me:$LINENO: result: yes" >&5
4787 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 if test "`uname`" = "HP-UX"; then
4800 if test "$ac_cv_c_compiler_gnu" = no; then
4801 # special override for broken HP-UX compiler - I can't find a way to test
4802 # this properly (its a compiler bug)
4803 CFLAGS="$CFLAGS -AC99";
4808 if test x"$c99_init" = x"yes"; then
4812 CFLAGS="$saved_CFLAGS"
4814 { echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4815 echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4819 # Find a good install program. We prefer a C program (faster),
4820 # so one script is as good as another. But avoid the broken or
4821 # incompatible versions:
4822 # SysV /etc/install, /usr/sbin/install
4823 # SunOS /usr/etc/install
4824 # IRIX /sbin/install
4826 # AmigaOS /C/install, which installs bootblocks on floppy discs
4827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4830 # OS/2's system install, which has a completely different semantic
4831 # ./install, which can be erroneously created by make from ./install.sh.
4832 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4834 if test -z "$INSTALL"; then
4835 if test "${ac_cv_path_install+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 # Account for people who put trailing slashes in PATH elements.
4845 ./ | .// | /cC/* | \
4846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4847 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4850 # OSF1 and SCO ODT 3.0 have their own names for install.
4851 # Don't use installbsd from OSF since it installs stuff as root
4853 for ac_prog in ginstall scoinst install; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4856 if test $ac_prog = install &&
4857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4858 # AIX install. It has an incompatible calling convention.
4860 elif test $ac_prog = install &&
4861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4862 # program-specific install script used by HP pwplus--don't use.
4865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4878 if test "${ac_cv_path_install+set}" = set; then
4879 INSTALL=$ac_cv_path_install
4881 # As a last resort, use the slow shell script. Don't cache a
4882 # value for INSTALL within a source directory, because that will
4883 # break other packages using the cache if that directory is
4884 # removed, or if the value is a relative name.
4885 INSTALL=$ac_install_sh
4888 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4889 echo "${ECHO_T}$INSTALL" >&6; }
4891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4892 # It thinks the first close brace ends the variable substitution.
4893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4900 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4901 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4902 if test "${ac_cv_search_strerror+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 ac_func_search_save_LIBS=$LIBS
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4913 /* Override any GCC internal prototype to avoid an error.
4914 Use char because int might match the return type of a GCC
4915 builtin and then its argument prototype would still apply. */
4928 for ac_lib in '' cposix; do
4929 if test -z "$ac_lib"; then
4930 ac_res="none required"
4933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4935 rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (ac_try="$ac_link"
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_link") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4950 { (case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_try") 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_try") 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_search_strerror=$ac_res
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f core conftest.err conftest.$ac_objext \
4979 if test "${ac_cv_search_strerror+set}" = set; then
4983 if test "${ac_cv_search_strerror+set}" = set; then
4986 ac_cv_search_strerror=no
4989 LIBS=$ac_func_search_save_LIBS
4991 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4992 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4993 ac_res=$ac_cv_search_strerror
4994 if test "$ac_res" != no; then
4995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5000 cat >>confdefs.h <<\EOF
5001 #ifndef _XOPEN_SOURCE_EXTENDED
5002 # define _XOPEN_SOURCE_EXTENDED 1
5009 cat >>confdefs.h <<\EOF
5011 # define _OSF_SOURCE 1
5018 # Check whether --enable-largefile was given.
5019 if test "${enable_largefile+set}" = set; then
5020 enableval=$enable_largefile;
5023 if test "$enable_largefile" != no; then
5025 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5026 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5027 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_sys_largefile_CC=no
5031 if test "$GCC" != yes; then
5034 # IRIX 6.2 and later do not support large files by default,
5035 # so use the C compiler's -n32 option if that helps.
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5074 { (case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_try") 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_try") 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext
5103 rm -f conftest.$ac_objext
5104 if { (ac_try="$ac_compile"
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_compile") 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5118 { (case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_try") 2>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try='test -s conftest.$ac_objext'
5128 { (case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_try") 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_sys_largefile_CC=' -n32'; break
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5145 rm -f core conftest.err conftest.$ac_objext
5149 rm -f conftest.$ac_ext
5152 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5153 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5154 if test "$ac_cv_sys_largefile_CC" != no; then
5155 CC=$CC$ac_cv_sys_largefile_CC
5158 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5159 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5160 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_cv_sys_file_offset_bits=no
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <sys/types.h>
5172 /* Check that off_t can represent 2**63 - 1 correctly.
5173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5174 since some C++ compilers masquerading as C compilers
5175 incorrectly reject 9223372036854775807. */
5176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5178 && LARGE_OFF_T % 2147483647 == 1)
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5203 { (case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_try") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #define _FILE_OFFSET_BITS 64
5238 #include <sys/types.h>
5239 /* Check that off_t can represent 2**63 - 1 correctly.
5240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5241 since some C++ compilers masquerading as C compilers
5242 incorrectly reject 9223372036854775807. */
5243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5245 && LARGE_OFF_T % 2147483647 == 1)
5255 rm -f conftest.$ac_objext
5256 if { (ac_try="$ac_compile"
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5270 { (case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_try") 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest.$ac_objext'
5280 { (case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_try") 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_sys_file_offset_bits=64; break
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5302 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5303 if test "$ac_cv_sys_file_offset_bits" != no; then
5305 cat >>confdefs.h <<_ACEOF
5306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5311 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5312 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5313 if test "${ac_cv_sys_large_files+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 ac_cv_sys_large_files=no
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <sys/types.h>
5325 /* Check that off_t can represent 2**63 - 1 correctly.
5326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5327 since some C++ compilers masquerading as C compilers
5328 incorrectly reject 9223372036854775807. */
5329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5331 && LARGE_OFF_T % 2147483647 == 1)
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 cat >conftest.$ac_ext <<_ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #define _LARGE_FILES 1
5391 #include <sys/types.h>
5392 /* Check that off_t can represent 2**63 - 1 correctly.
5393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5394 since some C++ compilers masquerading as C compilers
5395 incorrectly reject 9223372036854775807. */
5396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5398 && LARGE_OFF_T % 2147483647 == 1)
5408 rm -f conftest.$ac_objext
5409 if { (ac_try="$ac_compile"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compile") 2>conftest.er1
5417 grep -v '^ *+' conftest.er1 >conftest.err
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5423 { (case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_try") 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_try") 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_sys_large_files=1; break
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5455 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5456 if test "$ac_cv_sys_large_files" != no; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define _LARGE_FILES $ac_cv_sys_large_files
5468 *irix6*) cat >> confdefs.h <<\EOF
5469 #include <standards.h>
5474 # mmap on HPUX is completely broken...
5476 cat >>confdefs.h <<\_ACEOF
5477 #define MMAP_BLACKLIST 1
5480 if test "`uname -r`" = "B.11.11"; then
5481 { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.11 header bug workaround" >&5
5482 echo "$as_me: WARNING: Enabling HPUX 11.11 header bug workaround" >&2;}
5483 CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
5485 if test "`uname -r`" = "B.11.23"; then
5486 { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5487 echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5488 CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5493 cat >>confdefs.h <<\_ACEOF
5494 #define BROKEN_STRNDUP 1
5498 cat >>confdefs.h <<\_ACEOF
5499 #define BROKEN_STRNLEN 1
5502 if test "${GCC}" != "yes"; then
5503 ## for funky AIX compiler using strncpy()
5504 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5508 # VOS may need to have POSIX support and System V compatibility enabled.
5512 *-D_POSIX_C_SOURCE*);;
5514 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5516 cat >>confdefs.h <<\_ACEOF
5517 #define _POSIX_C_SOURCE 200112L
5523 *-D_SYSV*|*-D_SVID_SOURCE*);;
5525 CFLAGS="$CFLAGS -D_SYSV"
5527 cat >>confdefs.h <<\_ACEOF
5539 for ac_header in standards.h
5541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_res=`eval echo '${'$as_ac_Header'}'`
5549 { echo "$as_me:$LINENO: result: $ac_res" >&5
5550 echo "${ECHO_T}$ac_res" >&6; }
5552 # Is the header compilable?
5553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 $ac_includes_default
5562 #include <$ac_header>
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5579 { (case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_try") 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_try") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_header_compiler=yes
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ac_header_compiler=no
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5608 echo "${ECHO_T}$ac_header_compiler" >&6; }
5610 # Is the header present?
5611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <$ac_header>
5621 if { (ac_try="$ac_cpp conftest.$ac_ext"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643 if test -z "$ac_cpp_err"; then
5644 ac_header_preproc=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_header_preproc=no
5652 rm -f conftest.err conftest.$ac_ext
5653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5654 echo "${ECHO_T}$ac_header_preproc" >&6; }
5656 # So? What about this header?
5657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5663 ac_header_preproc=yes
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 eval "$as_ac_Header=\$ac_header_preproc"
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5703 # Solaris needs HAVE_LONG_LONG defined
5704 { echo "$as_me:$LINENO: checking for long long" >&5
5705 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5706 if test "${ac_cv_type_long_long+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 $ac_includes_default
5716 typedef long long ac__type_new_;
5720 if ((ac__type_new_ *) 0)
5722 if (sizeof (ac__type_new_))
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compile") 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_try") 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_try") 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_type_long_long=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_cv_type_long_long=no
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5773 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5774 if test $ac_cv_type_long_long = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define HAVE_LONG_LONG 1
5784 { echo "$as_me:$LINENO: checking for uint_t" >&5
5785 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
5786 if test "${ac_cv_type_uint_t+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 $ac_includes_default
5796 typedef uint_t ac__type_new_;
5800 if ((ac__type_new_ *) 0)
5802 if (sizeof (ac__type_new_))
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compile") 2>conftest.er1
5817 grep -v '^ *+' conftest.er1 >conftest.err
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5823 { (case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_try") 2>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_try") 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_cv_type_uint_t=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_cv_type_uint_t=no
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
5853 echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
5854 if test $ac_cv_type_uint_t = yes; then
5858 cat >>confdefs.h <<_ACEOF
5859 #define uint_t unsigned int
5864 { echo "$as_me:$LINENO: checking for int8_t" >&5
5865 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5866 if test "${ac_cv_type_int8_t+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 typedef int8_t ac__type_new_;
5880 if ((ac__type_new_ *) 0)
5882 if (sizeof (ac__type_new_))
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5903 { (case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_try") 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_type_int8_t=yes
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 ac_cv_type_int8_t=no
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5933 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
5934 if test $ac_cv_type_int8_t = yes; then
5938 cat >>confdefs.h <<_ACEOF
5944 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5945 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5946 if test "${ac_cv_type_uint8_t+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5956 typedef uint8_t ac__type_new_;
5960 if ((ac__type_new_ *) 0)
5962 if (sizeof (ac__type_new_))
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983 { (case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_try") 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest.$ac_objext'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_type_uint8_t=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_type_uint8_t=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6013 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6014 if test $ac_cv_type_uint8_t = yes; then
6018 cat >>confdefs.h <<_ACEOF
6019 #define uint8_t unsigned char
6024 { echo "$as_me:$LINENO: checking for int16_t" >&5
6025 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
6026 if test "${ac_cv_type_int16_t+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 $ac_includes_default
6036 typedef int16_t ac__type_new_;
6040 if ((ac__type_new_ *) 0)
6042 if (sizeof (ac__type_new_))
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6063 { (case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_try") 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_try") 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_type_int16_t=yes
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_type_int16_t=no
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6093 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
6094 if test $ac_cv_type_int16_t = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define int16_t short
6104 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6105 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6106 if test "${ac_cv_type_uint16_t+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 typedef uint16_t ac__type_new_;
6120 if ((ac__type_new_ *) 0)
6122 if (sizeof (ac__type_new_))
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_type_uint16_t=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_cv_type_uint16_t=no
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6174 if test $ac_cv_type_uint16_t = yes; then
6178 cat >>confdefs.h <<_ACEOF
6179 #define uint16_t unsigned short
6184 { echo "$as_me:$LINENO: checking for int32_t" >&5
6185 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
6186 if test "${ac_cv_type_int32_t+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6196 typedef int32_t ac__type_new_;
6200 if ((ac__type_new_ *) 0)
6202 if (sizeof (ac__type_new_))
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_type_int32_t=yes
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_type_int32_t=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
6254 if test $ac_cv_type_int32_t = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259 #define int32_t long
6264 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6265 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6266 if test "${ac_cv_type_uint32_t+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6276 typedef uint32_t ac__type_new_;
6280 if ((ac__type_new_ *) 0)
6282 if (sizeof (ac__type_new_))
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_compile") 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_type_uint32_t=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_cv_type_uint32_t=no
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6333 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6334 if test $ac_cv_type_uint32_t = yes; then
6338 cat >>confdefs.h <<_ACEOF
6339 #define uint32_t unsigned long
6344 { echo "$as_me:$LINENO: checking for int64_t" >&5
6345 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6346 if test "${ac_cv_type_int64_t+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6356 typedef int64_t ac__type_new_;
6360 if ((ac__type_new_ *) 0)
6362 if (sizeof (ac__type_new_))
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compile") 2>conftest.er1
6377 grep -v '^ *+' conftest.er1 >conftest.err
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_try") 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_type_int64_t=yes
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 ac_cv_type_int64_t=no
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6413 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6414 if test $ac_cv_type_int64_t = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define int64_t long long
6424 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6425 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6426 if test "${ac_cv_type_uint64_t+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 typedef uint64_t ac__type_new_;
6440 if ((ac__type_new_ *) 0)
6442 if (sizeof (ac__type_new_))
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_type_uint64_t=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_cv_type_uint64_t=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6494 if test $ac_cv_type_uint64_t = yes; then
6498 cat >>confdefs.h <<_ACEOF
6499 #define uint64_t unsigned long long
6505 { echo "$as_me:$LINENO: checking for size_t" >&5
6506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6507 if test "${ac_cv_type_size_t+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6517 typedef size_t ac__type_new_;
6521 if ((ac__type_new_ *) 0)
6523 if (sizeof (ac__type_new_))
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6544 { (case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_try") 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6563 ac_cv_type_size_t=yes
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_cv_type_size_t=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6574 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6575 if test $ac_cv_type_size_t = yes; then
6579 cat >>confdefs.h <<_ACEOF
6580 #define size_t unsigned int
6585 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6586 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6587 if test "${ac_cv_type_ssize_t+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6597 typedef ssize_t ac__type_new_;
6601 if ((ac__type_new_ *) 0)
6603 if (sizeof (ac__type_new_))
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6624 { (case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_try") 2>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest.$ac_objext'
6634 { (case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_try") 2>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_cv_type_ssize_t=yes
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_cv_type_ssize_t=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6654 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6655 if test $ac_cv_type_ssize_t = yes; then
6659 cat >>confdefs.h <<_ACEOF
6666 { echo "$as_me:$LINENO: checking for int" >&5
6667 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6668 if test "${ac_cv_type_int+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6678 typedef int ac__type_new_;
6682 if ((ac__type_new_ *) 0)
6684 if (sizeof (ac__type_new_))
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest.$ac_objext'
6715 { (case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_try") 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6735 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6737 { echo "$as_me:$LINENO: checking size of int" >&5
6738 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6739 if test "${ac_cv_sizeof_int+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test "$ac_cv_type_int" = yes; then
6743 # The cast to long int works around a bug in the HP C Compiler
6744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6746 # This bug is HP SR number 8606223364.
6747 if test "$cross_compiling" = yes; then
6748 # Depending upon the size, compute the lo and hi bounds.
6749 cat >conftest.$ac_ext <<_ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 $ac_includes_default
6756 typedef int ac__type_sizeof_;
6760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1 >conftest.err
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6782 { (case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_try") 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try='test -s conftest.$ac_objext'
6792 { (case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_try") 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 typedef int ac__type_sizeof_;
6814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6821 rm -f conftest.$ac_objext
6822 if { (ac_try="$ac_compile"
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_compile") 2>conftest.er1
6830 grep -v '^ *+' conftest.er1 >conftest.err
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_try") 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_try") 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_hi=$ac_mid; break
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_lo=`expr $ac_mid + 1`
6861 if test $ac_lo -le $ac_mid; then
6865 ac_mid=`expr 2 '*' $ac_mid + 1`
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 cat >conftest.$ac_ext <<_ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6881 typedef int ac__type_sizeof_;
6885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6892 rm -f conftest.$ac_objext
6893 if { (ac_try="$ac_compile"
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6899 (eval "$ac_compile") 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6907 { (case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_try") 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_try") 2>&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 typedef int ac__type_sizeof_;
6939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966 (eval "$ac_try") 2>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest.$ac_objext'
6971 { (case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_try") 2>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_lo=$ac_mid; break
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_hi=`expr '(' $ac_mid ')' - 1`
6986 if test $ac_mid -le $ac_hi; then
6990 ac_mid=`expr 2 '*' $ac_mid`
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 # Binary search between lo and hi bounds.
7007 while test "x$ac_lo" != "x$ac_hi"; do
7008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 $ac_includes_default
7016 typedef int ac__type_sizeof_;
7020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7027 rm -f conftest.$ac_objext
7028 if { (ac_try="$ac_compile"
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7042 { (case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_try") 2>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_try") 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_lo=`expr '(' $ac_mid ')' + 1`
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 ?*) ac_cv_sizeof_int=$ac_lo;;
7073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7074 See \`config.log' for more details." >&5
7075 echo "$as_me: error: cannot compute sizeof (int)
7076 See \`config.log' for more details." >&2;}
7077 { (exit 77); exit 77; }; } ;;
7080 cat >conftest.$ac_ext <<_ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7087 typedef int ac__type_sizeof_;
7088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7096 FILE *f = fopen ("conftest.val", "w");
7099 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7101 long int i = longval ();
7102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7104 fprintf (f, "%ld\n", i);
7108 unsigned long int i = ulongval ();
7109 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7111 fprintf (f, "%lu\n", i);
7113 return ferror (f) || fclose (f) != 0;
7119 rm -f conftest$ac_exeext
7120 if { (ac_try="$ac_link"
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7126 (eval "$ac_link") 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7130 { (case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_try") 2>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_cv_sizeof_int=`cat conftest.val`
7141 echo "$as_me: program exited with status $ac_status" >&5
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7147 See \`config.log' for more details." >&5
7148 echo "$as_me: error: cannot compute sizeof (int)
7149 See \`config.log' for more details." >&2;}
7150 { (exit 77); exit 77; }; }
7152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7160 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7161 cat >>confdefs.h <<_ACEOF
7162 #define SIZEOF_INT $ac_cv_sizeof_int
7166 { echo "$as_me:$LINENO: checking for char" >&5
7167 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7168 if test "${ac_cv_type_char+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 typedef char ac__type_new_;
7182 if ((ac__type_new_ *) 0)
7184 if (sizeof (ac__type_new_))
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7205 { (case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_try") 2>&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; } &&
7214 { ac_try='test -s conftest.$ac_objext'
7215 { (case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_try") 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7235 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7237 { echo "$as_me:$LINENO: checking size of char" >&5
7238 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7239 if test "${ac_cv_sizeof_char+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 if test "$ac_cv_type_char" = yes; then
7243 # The cast to long int works around a bug in the HP C Compiler
7244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7246 # This bug is HP SR number 8606223364.
7247 if test "$cross_compiling" = yes; then
7248 # Depending upon the size, compute the lo and hi bounds.
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 typedef char ac__type_sizeof_;
7260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_compile") 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7282 { (case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_try") 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_try") 2>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 typedef char ac__type_sizeof_;
7314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7336 { (case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_try") 2>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try='test -s conftest.$ac_objext'
7346 { (case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_try") 2>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_hi=$ac_mid; break
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_lo=`expr $ac_mid + 1`
7361 if test $ac_lo -le $ac_mid; then
7365 ac_mid=`expr 2 '*' $ac_mid + 1`
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 typedef char ac__type_sizeof_;
7385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7407 { (case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_try") 2>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_try") 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7435 typedef char ac__type_sizeof_;
7439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_compile") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7461 { (case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_try") 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_try") 2>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_lo=$ac_mid; break
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_hi=`expr '(' $ac_mid ')' - 1`
7486 if test $ac_mid -le $ac_hi; then
7490 ac_mid=`expr 2 '*' $ac_mid`
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 # Binary search between lo and hi bounds.
7507 while test "x$ac_lo" != "x$ac_hi"; do
7508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 $ac_includes_default
7516 typedef char ac__type_sizeof_;
7520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534 (eval "$ac_compile") 2>conftest.er1
7536 grep -v '^ *+' conftest.er1 >conftest.err
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542 { (case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_try") 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_try") 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_lo=`expr '(' $ac_mid ')' + 1`
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 ?*) ac_cv_sizeof_char=$ac_lo;;
7573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7574 See \`config.log' for more details." >&5
7575 echo "$as_me: error: cannot compute sizeof (char)
7576 See \`config.log' for more details." >&2;}
7577 { (exit 77); exit 77; }; } ;;
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 $ac_includes_default
7587 typedef char ac__type_sizeof_;
7588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7596 FILE *f = fopen ("conftest.val", "w");
7599 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7601 long int i = longval ();
7602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7604 fprintf (f, "%ld\n", i);
7608 unsigned long int i = ulongval ();
7609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7611 fprintf (f, "%lu\n", i);
7613 return ferror (f) || fclose (f) != 0;
7619 rm -f conftest$ac_exeext
7620 if { (ac_try="$ac_link"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_link") 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7630 { (case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_try") 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_sizeof_char=`cat conftest.val`
7641 echo "$as_me: program exited with status $ac_status" >&5
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7647 See \`config.log' for more details." >&5
7648 echo "$as_me: error: cannot compute sizeof (char)
7649 See \`config.log' for more details." >&2;}
7650 { (exit 77); exit 77; }; }
7652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7659 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7660 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7661 cat >>confdefs.h <<_ACEOF
7662 #define SIZEOF_CHAR $ac_cv_sizeof_char
7666 { echo "$as_me:$LINENO: checking for short" >&5
7667 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7668 if test "${ac_cv_type_short+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 $ac_includes_default
7678 typedef short ac__type_new_;
7682 if ((ac__type_new_ *) 0)
7684 if (sizeof (ac__type_new_))
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7705 { (case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_try") 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_try") 2>&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_type_short=yes
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7735 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7737 { echo "$as_me:$LINENO: checking size of short" >&5
7738 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7739 if test "${ac_cv_sizeof_short+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test "$ac_cv_type_short" = yes; then
7743 # The cast to long int works around a bug in the HP C Compiler
7744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7746 # This bug is HP SR number 8606223364.
7747 if test "$cross_compiling" = yes; then
7748 # Depending upon the size, compute the lo and hi bounds.
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 typedef short ac__type_sizeof_;
7760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest.$ac_objext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 typedef short ac__type_sizeof_;
7814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7836 { (case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841 (eval "$ac_try") 2>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_hi=$ac_mid; break
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_lo=`expr $ac_mid + 1`
7861 if test $ac_lo -le $ac_mid; then
7865 ac_mid=`expr 2 '*' $ac_mid + 1`
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 typedef short ac__type_sizeof_;
7885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 typedef short ac__type_sizeof_;
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest.$ac_objext'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_lo=$ac_mid; break
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ac_hi=`expr '(' $ac_mid ')' - 1`
7986 if test $ac_mid -le $ac_hi; then
7990 ac_mid=`expr 2 '*' $ac_mid`
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 # Binary search between lo and hi bounds.
8007 while test "x$ac_lo" != "x$ac_hi"; do
8008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8016 typedef short ac__type_sizeof_;
8020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_lo=`expr '(' $ac_mid ')' + 1`
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 ?*) ac_cv_sizeof_short=$ac_lo;;
8073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8074 See \`config.log' for more details." >&5
8075 echo "$as_me: error: cannot compute sizeof (short)
8076 See \`config.log' for more details." >&2;}
8077 { (exit 77); exit 77; }; } ;;
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 typedef short ac__type_sizeof_;
8088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8096 FILE *f = fopen ("conftest.val", "w");
8099 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8101 long int i = longval ();
8102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8104 fprintf (f, "%ld\n", i);
8108 unsigned long int i = ulongval ();
8109 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8111 fprintf (f, "%lu\n", i);
8113 return ferror (f) || fclose (f) != 0;
8119 rm -f conftest$ac_exeext
8120 if { (ac_try="$ac_link"
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_link") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_sizeof_short=`cat conftest.val`
8141 echo "$as_me: program exited with status $ac_status" >&5
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8147 See \`config.log' for more details." >&5
8148 echo "$as_me: error: cannot compute sizeof (short)
8149 See \`config.log' for more details." >&2;}
8150 { (exit 77); exit 77; }; }
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8156 ac_cv_sizeof_short=0
8159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8160 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8161 cat >>confdefs.h <<_ACEOF
8162 #define SIZEOF_SHORT $ac_cv_sizeof_short
8166 { echo "$as_me:$LINENO: checking for long" >&5
8167 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8168 if test "${ac_cv_type_long+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef long ac__type_new_;
8182 if ((ac__type_new_ *) 0)
8184 if (sizeof (ac__type_new_))
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8235 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8237 { echo "$as_me:$LINENO: checking size of long" >&5
8238 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8239 if test "${ac_cv_sizeof_long+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 if test "$ac_cv_type_long" = yes; then
8243 # The cast to long int works around a bug in the HP C Compiler
8244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8246 # This bug is HP SR number 8606223364.
8247 if test "$cross_compiling" = yes; then
8248 # Depending upon the size, compute the lo and hi bounds.
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 typedef long ac__type_sizeof_;
8260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; } &&
8291 { ac_try='test -s conftest.$ac_objext'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 $ac_includes_default
8310 typedef long ac__type_sizeof_;
8314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8336 { (case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_try") 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_hi=$ac_mid; break
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_lo=`expr $ac_mid + 1`
8361 if test $ac_lo -le $ac_mid; then
8365 ac_mid=`expr 2 '*' $ac_mid + 1`
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef long ac__type_sizeof_;
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407 { (case "(($ac_try" in
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_try") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 typedef long ac__type_sizeof_;
8439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_compile") 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest.$ac_objext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_lo=$ac_mid; break
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_hi=`expr '(' $ac_mid ')' - 1`
8486 if test $ac_mid -le $ac_hi; then
8490 ac_mid=`expr 2 '*' $ac_mid`
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 # Binary search between lo and hi bounds.
8507 while test "x$ac_lo" != "x$ac_hi"; do
8508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 $ac_includes_default
8516 typedef long ac__type_sizeof_;
8520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_try") 2>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_lo=`expr '(' $ac_mid ')' + 1`
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 ?*) ac_cv_sizeof_long=$ac_lo;;
8573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8574 See \`config.log' for more details." >&5
8575 echo "$as_me: error: cannot compute sizeof (long)
8576 See \`config.log' for more details." >&2;}
8577 { (exit 77); exit 77; }; } ;;
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef long ac__type_sizeof_;
8588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8596 FILE *f = fopen ("conftest.val", "w");
8599 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8601 long int i = longval ();
8602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8604 fprintf (f, "%ld\n", i);
8608 unsigned long int i = ulongval ();
8609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8611 fprintf (f, "%lu\n", i);
8613 return ferror (f) || fclose (f) != 0;
8619 rm -f conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_sizeof_long=`cat conftest.val`
8641 echo "$as_me: program exited with status $ac_status" >&5
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8647 See \`config.log' for more details." >&5
8648 echo "$as_me: error: cannot compute sizeof (long)
8649 See \`config.log' for more details." >&2;}
8650 { (exit 77); exit 77; }; }
8652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8660 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8661 cat >>confdefs.h <<_ACEOF
8662 #define SIZEOF_LONG $ac_cv_sizeof_long
8666 { echo "$as_me:$LINENO: checking for long long" >&5
8667 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8668 if test "${ac_cv_type_long_long+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 typedef long long ac__type_new_;
8682 if ((ac__type_new_ *) 0)
8684 if (sizeof (ac__type_new_))
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest.$ac_objext'
8715 { (case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_try") 2>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_type_long_long=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_cv_type_long_long=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8735 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8737 { echo "$as_me:$LINENO: checking size of long long" >&5
8738 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8739 if test "${ac_cv_sizeof_long_long+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 if test "$ac_cv_type_long_long" = yes; then
8743 # The cast to long int works around a bug in the HP C Compiler
8744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746 # This bug is HP SR number 8606223364.
8747 if test "$cross_compiling" = yes; then
8748 # Depending upon the size, compute the lo and hi bounds.
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 typedef long long ac__type_sizeof_;
8760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (case "(($ac_try" in
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_try") 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8810 typedef long long ac__type_sizeof_;
8814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_compile") 2>conftest.er1
8830 grep -v '^ *+' conftest.er1 >conftest.err
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8836 { (case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_try") 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_hi=$ac_mid; break
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_lo=`expr $ac_mid + 1`
8861 if test $ac_lo -le $ac_mid; then
8865 ac_mid=`expr 2 '*' $ac_mid + 1`
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 $ac_includes_default
8881 typedef long long ac__type_sizeof_;
8885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8892 rm -f conftest.$ac_objext
8893 if { (ac_try="$ac_compile"
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907 { (case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_try") 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_try") 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 $ac_includes_default
8935 typedef long long ac__type_sizeof_;
8939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_lo=$ac_mid; break
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_hi=`expr '(' $ac_mid ')' - 1`
8986 if test $ac_mid -le $ac_hi; then
8990 ac_mid=`expr 2 '*' $ac_mid`
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 # Binary search between lo and hi bounds.
9007 while test "x$ac_lo" != "x$ac_hi"; do
9008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 $ac_includes_default
9016 typedef long long ac__type_sizeof_;
9020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_compile") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest.$ac_objext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_lo=`expr '(' $ac_mid ')' + 1`
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9074 See \`config.log' for more details." >&5
9075 echo "$as_me: error: cannot compute sizeof (long long)
9076 See \`config.log' for more details." >&2;}
9077 { (exit 77); exit 77; }; } ;;
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 $ac_includes_default
9087 typedef long long ac__type_sizeof_;
9088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9096 FILE *f = fopen ("conftest.val", "w");
9099 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9101 long int i = longval ();
9102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9104 fprintf (f, "%ld\n", i);
9108 unsigned long int i = ulongval ();
9109 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9111 fprintf (f, "%lu\n", i);
9113 return ferror (f) || fclose (f) != 0;
9119 rm -f conftest$ac_exeext
9120 if { (ac_try="$ac_link"
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_link") 2>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_cv_sizeof_long_long=`cat conftest.val`
9141 echo "$as_me: program exited with status $ac_status" >&5
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9147 See \`config.log' for more details." >&5
9148 echo "$as_me: error: cannot compute sizeof (long long)
9149 See \`config.log' for more details." >&2;}
9150 { (exit 77); exit 77; }; }
9152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9156 ac_cv_sizeof_long_long=0
9159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9160 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9161 cat >>confdefs.h <<_ACEOF
9162 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9167 { echo "$as_me:$LINENO: checking for off_t" >&5
9168 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9169 if test "${ac_cv_type_off_t+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 $ac_includes_default
9179 typedef off_t ac__type_new_;
9183 if ((ac__type_new_ *) 0)
9185 if (sizeof (ac__type_new_))
9191 rm -f conftest.$ac_objext
9192 if { (ac_try="$ac_compile"
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9200 grep -v '^ *+' conftest.er1 >conftest.err
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } &&
9205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9206 { (case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_try") 2>&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_try") 2>&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_type_off_t=yes
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9236 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9238 { echo "$as_me:$LINENO: checking size of off_t" >&5
9239 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
9240 if test "${ac_cv_sizeof_off_t+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 if test "$ac_cv_type_off_t" = yes; then
9244 # The cast to long int works around a bug in the HP C Compiler
9245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9247 # This bug is HP SR number 8606223364.
9248 if test "$cross_compiling" = yes; then
9249 # Depending upon the size, compute the lo and hi bounds.
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef off_t ac__type_sizeof_;
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9283 { (case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_try") 2>&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_try") 2>&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9311 typedef off_t ac__type_sizeof_;
9315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9322 rm -f conftest.$ac_objext
9323 if { (ac_try="$ac_compile"
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_compile") 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9337 { (case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_try") 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try='test -s conftest.$ac_objext'
9347 { (case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_try") 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_hi=$ac_mid; break
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_lo=`expr $ac_mid + 1`
9362 if test $ac_lo -le $ac_mid; then
9366 ac_mid=`expr 2 '*' $ac_mid + 1`
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 typedef off_t ac__type_sizeof_;
9386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9408 { (case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_try") 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9429 cat >conftest.$ac_ext <<_ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 $ac_includes_default
9436 typedef off_t ac__type_sizeof_;
9440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9447 rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_compile") 2>conftest.er1
9456 grep -v '^ *+' conftest.er1 >conftest.err
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9462 { (case "(($ac_try" in
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467 (eval "$ac_try") 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_try") 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_lo=$ac_mid; break
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_hi=`expr '(' $ac_mid ')' - 1`
9487 if test $ac_mid -le $ac_hi; then
9491 ac_mid=`expr 2 '*' $ac_mid`
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 # Binary search between lo and hi bounds.
9508 while test "x$ac_lo" != "x$ac_hi"; do
9509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 $ac_includes_default
9517 typedef off_t ac__type_sizeof_;
9521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (case "(($ac_try" in
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_try") 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_lo=`expr '(' $ac_mid ')' + 1`
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9574 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9575 See \`config.log' for more details." >&5
9576 echo "$as_me: error: cannot compute sizeof (off_t)
9577 See \`config.log' for more details." >&2;}
9578 { (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 off_t 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_off_t=`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 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9648 See \`config.log' for more details." >&5
9649 echo "$as_me: error: cannot compute sizeof (off_t)
9650 See \`config.log' for more details." >&2;}
9651 { (exit 77); exit 77; }; }
9653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9657 ac_cv_sizeof_off_t=0
9660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9661 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
9662 cat >>confdefs.h <<_ACEOF
9663 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9667 { echo "$as_me:$LINENO: checking for size_t" >&5
9668 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9669 if test "${ac_cv_type_size_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 typedef size_t ac__type_new_;
9683 if ((ac__type_new_ *) 0)
9685 if (sizeof (ac__type_new_))
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_try") 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest.$ac_objext'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_type_size_t=yes
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 ac_cv_type_size_t=no
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9736 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9738 { echo "$as_me:$LINENO: checking size of size_t" >&5
9739 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9740 if test "${ac_cv_sizeof_size_t+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 if test "$ac_cv_type_size_t" = yes; then
9744 # The cast to long int works around a bug in the HP C Compiler
9745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9747 # This bug is HP SR number 8606223364.
9748 if test "$cross_compiling" = yes; then
9749 # Depending upon the size, compute the lo and hi bounds.
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 $ac_includes_default
9757 typedef size_t ac__type_sizeof_;
9761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9768 rm -f conftest.$ac_objext
9769 if { (ac_try="$ac_compile"
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_compile") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest.$ac_objext'
9793 { (case "(($ac_try" in
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_try") 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 typedef size_t ac__type_sizeof_;
9815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_compile") 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (case "(($ac_try" in
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_try") 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_hi=$ac_mid; break
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_lo=`expr $ac_mid + 1`
9862 if test $ac_lo -le $ac_mid; then
9866 ac_mid=`expr 2 '*' $ac_mid + 1`
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 $ac_includes_default
9882 typedef size_t ac__type_sizeof_;
9886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9936 typedef size_t ac__type_sizeof_;
9940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest.$ac_objext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_lo=$ac_mid; break
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_hi=`expr '(' $ac_mid ')' - 1`
9987 if test $ac_mid -le $ac_hi; then
9991 ac_mid=`expr 2 '*' $ac_mid`
9994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 # Binary search between lo and hi bounds.
10008 while test "x$ac_lo" != "x$ac_hi"; do
10009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 $ac_includes_default
10017 typedef size_t ac__type_sizeof_;
10021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_compile") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1 >conftest.err
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_lo=`expr '(' $ac_mid ')' + 1`
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10075 See \`config.log' for more details." >&5
10076 echo "$as_me: error: cannot compute sizeof (size_t)
10077 See \`config.log' for more details." >&2;}
10078 { (exit 77); exit 77; }; } ;;
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10088 typedef size_t ac__type_sizeof_;
10089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10092 #include <stdlib.h>
10097 FILE *f = fopen ("conftest.val", "w");
10100 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10102 long int i = longval ();
10103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10105 fprintf (f, "%ld\n", i);
10109 unsigned long int i = ulongval ();
10110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10112 fprintf (f, "%lu\n", i);
10114 return ferror (f) || fclose (f) != 0;
10120 rm -f conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_link") 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_sizeof_size_t=`cat conftest.val`
10142 echo "$as_me: program exited with status $ac_status" >&5
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ( exit $ac_status )
10147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10148 See \`config.log' for more details." >&5
10149 echo "$as_me: error: cannot compute sizeof (size_t)
10150 See \`config.log' for more details." >&2;}
10151 { (exit 77); exit 77; }; }
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10157 ac_cv_sizeof_size_t=0
10160 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10161 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10162 cat >>confdefs.h <<_ACEOF
10163 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10167 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10168 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10169 if test "${ac_cv_type_ssize_t+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 typedef ssize_t ac__type_new_;
10183 if ((ac__type_new_ *) 0)
10185 if (sizeof (ac__type_new_))
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_type_ssize_t=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_type_ssize_t=no
10233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10236 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10238 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
10239 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
10240 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 if test "$ac_cv_type_ssize_t" = yes; then
10244 # The cast to long int works around a bug in the HP C Compiler
10245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10247 # This bug is HP SR number 8606223364.
10248 if test "$cross_compiling" = yes; then
10249 # Depending upon the size, compute the lo and hi bounds.
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 $ac_includes_default
10257 typedef ssize_t ac__type_sizeof_;
10261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10268 rm -f conftest.$ac_objext
10269 if { (ac_try="$ac_compile"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_compile") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10292 { ac_try='test -s conftest.$ac_objext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 typedef ssize_t ac__type_sizeof_;
10315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_compile") 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_try") 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 ac_hi=$ac_mid; break
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_lo=`expr $ac_mid + 1`
10362 if test $ac_lo -le $ac_mid; then
10366 ac_mid=`expr 2 '*' $ac_mid + 1`
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 $ac_includes_default
10382 typedef ssize_t ac__type_sizeof_;
10386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10408 { (case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_try") 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_try") 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 typedef ssize_t ac__type_sizeof_;
10440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10462 { (case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_try") 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest.$ac_objext'
10472 { (case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_try") 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_lo=$ac_mid; break
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_hi=`expr '(' $ac_mid ')' - 1`
10487 if test $ac_mid -le $ac_hi; then
10491 ac_mid=`expr 2 '*' $ac_mid`
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 # Binary search between lo and hi bounds.
10508 while test "x$ac_lo" != "x$ac_hi"; do
10509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 $ac_includes_default
10517 typedef ssize_t ac__type_sizeof_;
10521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10528 rm -f conftest.$ac_objext
10529 if { (ac_try="$ac_compile"
10530 case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10537 grep -v '^ *+' conftest.er1 >conftest.err
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10543 { (case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_try") 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest.$ac_objext'
10553 { (case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_try") 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_lo=`expr '(' $ac_mid ')' + 1`
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10574 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10575 See \`config.log' for more details." >&5
10576 echo "$as_me: error: cannot compute sizeof (ssize_t)
10577 See \`config.log' for more details." >&2;}
10578 { (exit 77); exit 77; }; } ;;
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 $ac_includes_default
10588 typedef ssize_t ac__type_sizeof_;
10589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10592 #include <stdlib.h>
10597 FILE *f = fopen ("conftest.val", "w");
10600 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10602 long int i = longval ();
10603 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10605 fprintf (f, "%ld\n", i);
10609 unsigned long int i = ulongval ();
10610 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10612 fprintf (f, "%lu\n", i);
10614 return ferror (f) || fclose (f) != 0;
10620 rm -f conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_link") 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_sizeof_ssize_t=`cat conftest.val`
10642 echo "$as_me: program exited with status $ac_status" >&5
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 ( exit $ac_status )
10647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10648 See \`config.log' for more details." >&5
10649 echo "$as_me: error: cannot compute sizeof (ssize_t)
10650 See \`config.log' for more details." >&2;}
10651 { (exit 77); exit 77; }; }
10653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10657 ac_cv_sizeof_ssize_t=0
10660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10661 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
10662 cat >>confdefs.h <<_ACEOF
10663 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10668 { echo "$as_me:$LINENO: checking for intptr_t" >&5
10669 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
10670 if test "${ac_cv_type_intptr_t+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 $ac_includes_default
10680 typedef intptr_t ac__type_new_;
10684 if ((ac__type_new_ *) 0)
10686 if (sizeof (ac__type_new_))
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_compile") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 ac_cv_type_intptr_t=yes
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 ac_cv_type_intptr_t=no
10734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10737 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
10738 if test $ac_cv_type_intptr_t = yes; then
10742 cat >>confdefs.h <<_ACEOF
10743 #define intptr_t unsigned long long
10748 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10749 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10750 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10760 typedef ptrdiff_t ac__type_new_;
10764 if ((ac__type_new_ *) 0)
10766 if (sizeof (ac__type_new_))
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_compile") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest.$ac_objext'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_type_ptrdiff_t=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_cv_type_ptrdiff_t=no
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10817 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10818 if test $ac_cv_type_ptrdiff_t = yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define ptrdiff_t unsigned long long
10829 if test x"$ac_cv_type_long_long" != x"yes";then
10830 { { echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10831 echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10832 { (exit 1); exit 1; }; }
10834 if test $ac_cv_sizeof_long_long -lt 8;then
10835 { { echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10836 echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10837 { (exit 1); exit 1; }; }
10840 ############################################
10841 # check if the compiler can do immediate structures
10843 { echo "$as_me:$LINENO: checking for immediate structures" >&5
10844 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6; }
10845 if test "${libreplace_cv_immediate_structures+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10862 typedef struct {unsigned x;} FOOBAR;
10863 #define X_FOOBAR(x) ((FOOBAR) { x })
10864 #define FOO_ONE X_FOOBAR(1)
10865 FOOBAR f = FOO_ONE;
10866 static const struct {
10876 rm -f conftest.$ac_objext
10877 if { (ac_try="$ac_compile"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_compile") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest.$ac_objext'
10901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 libreplace_cv_immediate_structures=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 libreplace_cv_immediate_structures=no
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 { echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
10922 echo "${ECHO_T}$libreplace_cv_immediate_structures" >&6; }
10923 if test x"$libreplace_cv_immediate_structures" = x"yes"; then
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_IMMEDIATE_STRUCTURES 1
10932 echo "LIBREPLACE_CC_CHECKS: END"
10936 echo "LIBREPLACE_BROKEN_CHECKS: START"
10939 for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
10940 if test -f "$d/replace.c"; then
10946 LIBREPLACEOBJ="replace.o"
10949 LIBREPLACEOBJ="${LIBREPLACEOBJ} snprintf.o"
10951 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10953 if test "${ac_cv_type_signal+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <sys/types.h>
10963 #include <signal.h>
10968 return *(signal (0, 0)) (0) == 1;
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_compile") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 ac_cv_type_signal=int
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_cv_type_signal=void
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11018 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11020 cat >>confdefs.h <<_ACEOF
11021 #define RETSIGTYPE $ac_cv_type_signal
11025 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11026 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11027 if test "${ac_cv_type_uid_t+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <sys/types.h>
11039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11040 $EGREP "uid_t" >/dev/null 2>&1; then
11041 ac_cv_type_uid_t=yes
11043 ac_cv_type_uid_t=no
11048 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11049 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11050 if test $ac_cv_type_uid_t = no; then
11052 cat >>confdefs.h <<\_ACEOF
11057 cat >>confdefs.h <<\_ACEOF
11063 { echo "$as_me:$LINENO: checking for mode_t" >&5
11064 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11065 if test "${ac_cv_type_mode_t+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 $ac_includes_default
11075 typedef mode_t ac__type_new_;
11079 if ((ac__type_new_ *) 0)
11081 if (sizeof (ac__type_new_))
11087 rm -f conftest.$ac_objext
11088 if { (ac_try="$ac_compile"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_compile") 2>conftest.er1
11096 grep -v '^ *+' conftest.er1 >conftest.err
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_try") 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_cv_type_mode_t=yes
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ac_cv_type_mode_t=no
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11133 if test $ac_cv_type_mode_t = yes; then
11137 cat >>confdefs.h <<_ACEOF
11143 { echo "$as_me:$LINENO: checking for off_t" >&5
11144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11145 if test "${ac_cv_type_off_t+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 typedef off_t ac__type_new_;
11159 if ((ac__type_new_ *) 0)
11161 if (sizeof (ac__type_new_))
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_type_off_t=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_cv_type_off_t=no
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11211 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11212 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11213 if test $ac_cv_type_off_t = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define off_t long int
11223 { echo "$as_me:$LINENO: checking for size_t" >&5
11224 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11225 if test "${ac_cv_type_size_t+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 $ac_includes_default
11235 typedef size_t ac__type_new_;
11239 if ((ac__type_new_ *) 0)
11241 if (sizeof (ac__type_new_))
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11262 { (case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_try") 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_cv_type_size_t=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_cv_type_size_t=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11293 if test $ac_cv_type_size_t = yes; then
11297 cat >>confdefs.h <<_ACEOF
11298 #define size_t unsigned int
11303 { echo "$as_me:$LINENO: checking for pid_t" >&5
11304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11305 if test "${ac_cv_type_pid_t+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 typedef pid_t ac__type_new_;
11319 if ((ac__type_new_ *) 0)
11321 if (sizeof (ac__type_new_))
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_type_pid_t=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_cv_type_pid_t=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11372 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11373 if test $ac_cv_type_pid_t = yes; then
11377 cat >>confdefs.h <<_ACEOF
11383 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11384 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
11385 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 cat >conftest.$ac_ext <<_ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 $ac_includes_default
11398 static struct stat ac_aggr;
11399 if (ac_aggr.st_rdev)
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420 { (case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_try") 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_try") 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_member_struct_stat_st_rdev=yes
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11454 static struct stat ac_aggr;
11455 if (sizeof ac_aggr.st_rdev)
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_compile") 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_member_struct_stat_st_rdev=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_cv_member_struct_stat_st_rdev=no
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11509 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
11510 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11512 cat >>confdefs.h <<_ACEOF
11513 #define HAVE_STRUCT_STAT_ST_RDEV 1
11517 cat >>confdefs.h <<\_ACEOF
11518 #define HAVE_ST_RDEV 1
11524 { echo "$as_me:$LINENO: checking for ino_t" >&5
11525 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
11526 if test "${ac_cv_type_ino_t+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 typedef ino_t ac__type_new_;
11540 if ((ac__type_new_ *) 0)
11542 if (sizeof (ac__type_new_))
11548 rm -f conftest.$ac_objext
11549 if { (ac_try="$ac_compile"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_try") 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_type_ino_t=yes
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_cv_type_ino_t=no
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11593 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
11594 if test $ac_cv_type_ino_t = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define ino_t unsigned
11604 { echo "$as_me:$LINENO: checking for loff_t" >&5
11605 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
11606 if test "${ac_cv_type_loff_t+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 typedef loff_t ac__type_new_;
11620 if ((ac__type_new_ *) 0)
11622 if (sizeof (ac__type_new_))
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_compile") 2>conftest.er1
11637 grep -v '^ *+' conftest.er1 >conftest.err
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest.$ac_objext'
11653 { (case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_try") 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_type_loff_t=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_type_loff_t=no
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
11674 if test $ac_cv_type_loff_t = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define loff_t off_t
11684 { echo "$as_me:$LINENO: checking for offset_t" >&5
11685 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
11686 if test "${ac_cv_type_offset_t+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_includes_default
11696 typedef offset_t ac__type_new_;
11700 if ((ac__type_new_ *) 0)
11702 if (sizeof (ac__type_new_))
11708 rm -f conftest.$ac_objext
11709 if { (ac_try="$ac_compile"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_type_offset_t=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_type_offset_t=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 { echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11753 echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
11754 if test $ac_cv_type_offset_t = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define offset_t loff_t
11765 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11766 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11767 if test "${ac_cv_func_memcmp_working+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 if test "$cross_compiling" = yes; then
11771 ac_cv_func_memcmp_working=no
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 $ac_includes_default
11784 /* Some versions of memcmp are not 8-bit clean. */
11785 char c0 = '\100', c1 = '\200', c2 = '\201';
11786 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11789 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11790 or more and with at least one buffer not starting on a 4-byte boundary.
11791 William Lewis provided this test program. */
11796 for (i = 0; i < 4; i++)
11800 strcpy (a, "--------01111111");
11801 strcpy (b, "--------10000000");
11802 if (memcmp (a, b, 16) >= 0)
11812 rm -f conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_link") 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_func_memcmp_working=yes
11834 echo "$as_me: program exited with status $ac_status" >&5
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ( exit $ac_status )
11839 ac_cv_func_memcmp_working=no
11841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11846 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11847 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11848 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11849 *" memcmp.$ac_objext "* ) ;;
11850 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11866 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11882 #define $ac_func innocuous_$ac_func
11884 /* System header to define __stub macros and hopefully few prototypes,
11885 which can conflict with char $ac_func (); below.
11886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887 <limits.h> exists even on freestanding compilers. */
11890 # include <limits.h>
11892 # include <assert.h>
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11914 return $ac_func ();
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 eval "$as_ac_var=yes"
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 eval "$as_ac_var=no"
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965 { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 for ac_header in stdbool.h sys/select.h
11980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 ac_res=`eval echo '${'$as_ac_Header'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11991 # Is the header compilable?
11992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12001 #include <$ac_header>
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest.$ac_objext'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_header_compiler=yes
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_header_compiler=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12047 echo "${ECHO_T}$ac_header_compiler" >&6; }
12049 # Is the header present?
12050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 #include <$ac_header>
12060 if { (ac_try="$ac_cpp conftest.$ac_ext"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } >/dev/null; then
12073 if test -s conftest.err; then
12074 ac_cpp_err=$ac_c_preproc_warn_flag
12075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12082 if test -z "$ac_cpp_err"; then
12083 ac_header_preproc=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_header_preproc=no
12091 rm -f conftest.err conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093 echo "${ECHO_T}$ac_header_preproc" >&6; }
12095 # So? What about this header?
12096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12102 ac_header_preproc=yes
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 eval "$as_ac_Header=\$ac_header_preproc"
12127 ac_res=`eval echo '${'$as_ac_Header'}'`
12128 { echo "$as_me:$LINENO: result: $ac_res" >&5
12129 echo "${ECHO_T}$ac_res" >&6; }
12132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12133 cat >>confdefs.h <<_ACEOF
12134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12143 for ac_header in sys/epoll.h
12145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12156 # Is the header compilable?
12157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12166 #include <$ac_header>
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest.$ac_objext'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_header_compiler=yes
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_header_compiler=no
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12212 echo "${ECHO_T}$ac_header_compiler" >&6; }
12214 # Is the header present?
12215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 #include <$ac_header>
12225 if { (ac_try="$ac_cpp conftest.$ac_ext"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } >/dev/null; then
12238 if test -s conftest.err; then
12239 ac_cpp_err=$ac_c_preproc_warn_flag
12240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12247 if test -z "$ac_cpp_err"; then
12248 ac_header_preproc=yes
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_header_preproc=no
12256 rm -f conftest.err conftest.$ac_ext
12257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12258 echo "${ECHO_T}$ac_header_preproc" >&6; }
12260 # So? What about this header?
12261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12267 ac_header_preproc=yes
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 eval "$as_ac_Header=\$ac_header_preproc"
12292 ac_res=`eval echo '${'$as_ac_Header'}'`
12293 { echo "$as_me:$LINENO: result: $ac_res" >&5
12294 echo "${ECHO_T}$ac_res" >&6; }
12297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12298 cat >>confdefs.h <<_ACEOF
12299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12307 for ac_func in epoll_create
12309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12323 #define $ac_func innocuous_$ac_func
12325 /* System header to define __stub macros and hopefully few prototypes,
12326 which can conflict with char $ac_func (); below.
12327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12328 <limits.h> exists even on freestanding compilers. */
12331 # include <limits.h>
12333 # include <assert.h>
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12345 /* The GNU C library defines this for functions which it implements
12346 to always fail with ENOSYS. Some functions are actually named
12347 something starting with __ and the normal name is an alias. */
12348 #if defined __stub_$ac_func || defined __stub___$ac_func
12355 return $ac_func ();
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375 { (case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_try") 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "$as_ac_var=yes"
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 eval "$as_ac_var=no"
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12405 ac_res=`eval echo '${'$as_ac_var'}'`
12406 { echo "$as_me:$LINENO: result: $ac_res" >&5
12407 echo "${ECHO_T}$ac_res" >&6; }
12408 if test `eval echo '${'$as_ac_var'}'` = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12417 { echo "$as_me:$LINENO: checking for bool" >&5
12418 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
12419 if test "${ac_cv_type_bool+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 cat >conftest.$ac_ext <<_ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 $ac_includes_default
12430 #ifdef HAVE_STDBOOL_H
12431 #include <stdbool.h>
12435 typedef bool ac__type_new_;
12439 if ((ac__type_new_ *) 0)
12441 if (sizeof (ac__type_new_))
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_type_bool=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12492 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
12493 if test $ac_cv_type_bool = yes; then
12495 cat >>confdefs.h <<\_ACEOF
12496 #define HAVE_BOOL 1
12502 { echo "$as_me:$LINENO: checking for _Bool" >&5
12503 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12504 if test "${ac_cv_type__Bool+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 $ac_includes_default
12515 #ifdef HAVE_STDBOOL_H
12516 #include <stdbool.h>
12520 typedef _Bool ac__type_new_;
12524 if ((ac__type_new_ *) 0)
12526 if (sizeof (ac__type_new_))
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_type__Bool=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_type__Bool=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12577 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12578 if test $ac_cv_type__Bool = yes; then
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE__Bool 1
12587 { echo "$as_me:$LINENO: checking for working mmap" >&5
12588 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12589 if test "${samba_cv_HAVE_MMAP+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 if test "$cross_compiling" = yes; then
12594 samba_cv_HAVE_MMAP=cross
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include "$libreplacedir/test/shared_mmap.c"
12604 rm -f conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615 { (case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_try") 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 samba_cv_HAVE_MMAP=yes
12626 echo "$as_me: program exited with status $ac_status" >&5
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ( exit $ac_status )
12631 samba_cv_HAVE_MMAP=no
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12638 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
12639 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
12640 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_MMAP 1
12651 for ac_header in sys/syslog.h syslog.h
12653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 ac_res=`eval echo '${'$as_ac_Header'}'`
12661 { echo "$as_me:$LINENO: result: $ac_res" >&5
12662 echo "${ECHO_T}$ac_res" >&6; }
12664 # Is the header compilable?
12665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 $ac_includes_default
12674 #include <$ac_header>
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_compile") 2>conftest.er1
12685 grep -v '^ *+' conftest.er1 >conftest.err
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12691 { (case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_try") 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; } &&
12700 { ac_try='test -s conftest.$ac_objext'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_header_compiler=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_header_compiler=no
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12720 echo "${ECHO_T}$ac_header_compiler" >&6; }
12722 # Is the header present?
12723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 #include <$ac_header>
12733 if { (ac_try="$ac_cpp conftest.$ac_ext"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } >/dev/null; then
12746 if test -s conftest.err; then
12747 ac_cpp_err=$ac_c_preproc_warn_flag
12748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12755 if test -z "$ac_cpp_err"; then
12756 ac_header_preproc=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_header_preproc=no
12764 rm -f conftest.err conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12766 echo "${ECHO_T}$ac_header_preproc" >&6; }
12768 # So? What about this header?
12769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12775 ac_header_preproc=yes
12778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 eval "$as_ac_Header=\$ac_header_preproc"
12800 ac_res=`eval echo '${'$as_ac_Header'}'`
12801 { echo "$as_me:$LINENO: result: $ac_res" >&5
12802 echo "${ECHO_T}$ac_res" >&6; }
12805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12806 cat >>confdefs.h <<_ACEOF
12807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816 for ac_header in sys/time.h time.h
12818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 ac_res=`eval echo '${'$as_ac_Header'}'`
12826 { echo "$as_me:$LINENO: result: $ac_res" >&5
12827 echo "${ECHO_T}$ac_res" >&6; }
12829 # Is the header compilable?
12830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 $ac_includes_default
12839 #include <$ac_header>
12841 rm -f conftest.$ac_objext
12842 if { (ac_try="$ac_compile"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_compile") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_header_compiler=yes
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_header_compiler=no
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12885 echo "${ECHO_T}$ac_header_compiler" >&6; }
12887 # Is the header present?
12888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <$ac_header>
12898 if { (ac_try="$ac_cpp conftest.$ac_ext"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } >/dev/null; then
12911 if test -s conftest.err; then
12912 ac_cpp_err=$ac_c_preproc_warn_flag
12913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12920 if test -z "$ac_cpp_err"; then
12921 ac_header_preproc=yes
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ac_header_preproc=no
12929 rm -f conftest.err conftest.$ac_ext
12930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12931 echo "${ECHO_T}$ac_header_preproc" >&6; }
12933 # So? What about this header?
12934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12940 ac_header_preproc=yes
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 eval "$as_ac_Header=\$ac_header_preproc"
12965 ac_res=`eval echo '${'$as_ac_Header'}'`
12966 { echo "$as_me:$LINENO: result: $ac_res" >&5
12967 echo "${ECHO_T}$ac_res" >&6; }
12970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12971 cat >>confdefs.h <<_ACEOF
12972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12981 for ac_header in stdarg.h vararg.h
12983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 ac_res=`eval echo '${'$as_ac_Header'}'`
12991 { echo "$as_me:$LINENO: result: $ac_res" >&5
12992 echo "${ECHO_T}$ac_res" >&6; }
12994 # Is the header compilable?
12995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13004 #include <$ac_header>
13006 rm -f conftest.$ac_objext
13007 if { (ac_try="$ac_compile"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_compile") 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest.$ac_objext'
13031 { (case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_try") 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_header_compiler=yes
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ac_header_compiler=no
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13050 echo "${ECHO_T}$ac_header_compiler" >&6; }
13052 # Is the header present?
13053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 #include <$ac_header>
13063 if { (ac_try="$ac_cpp conftest.$ac_ext"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } >/dev/null; then
13076 if test -s conftest.err; then
13077 ac_cpp_err=$ac_c_preproc_warn_flag
13078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13085 if test -z "$ac_cpp_err"; then
13086 ac_header_preproc=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_header_preproc=no
13094 rm -f conftest.err conftest.$ac_ext
13095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13096 echo "${ECHO_T}$ac_header_preproc" >&6; }
13098 # So? What about this header?
13099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13105 ac_header_preproc=yes
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 eval "$as_ac_Header=\$ac_header_preproc"
13130 ac_res=`eval echo '${'$as_ac_Header'}'`
13131 { echo "$as_me:$LINENO: result: $ac_res" >&5
13132 echo "${ECHO_T}$ac_res" >&6; }
13135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13148 for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
13150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 ac_res=`eval echo '${'$as_ac_Header'}'`
13158 { echo "$as_me:$LINENO: result: $ac_res" >&5
13159 echo "${ECHO_T}$ac_res" >&6; }
13161 # Is the header compilable?
13162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 $ac_includes_default
13171 #include <$ac_header>
13173 rm -f conftest.$ac_objext
13174 if { (ac_try="$ac_compile"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_compile") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_header_compiler=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_header_compiler=no
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13217 echo "${ECHO_T}$ac_header_compiler" >&6; }
13219 # Is the header present?
13220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <$ac_header>
13230 if { (ac_try="$ac_cpp conftest.$ac_ext"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } >/dev/null; then
13243 if test -s conftest.err; then
13244 ac_cpp_err=$ac_c_preproc_warn_flag
13245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13252 if test -z "$ac_cpp_err"; then
13253 ac_header_preproc=yes
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 ac_header_preproc=no
13261 rm -f conftest.err conftest.$ac_ext
13262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13263 echo "${ECHO_T}$ac_header_preproc" >&6; }
13265 # So? What about this header?
13266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13272 ac_header_preproc=yes
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 eval "$as_ac_Header=\$ac_header_preproc"
13297 ac_res=`eval echo '${'$as_ac_Header'}'`
13298 { echo "$as_me:$LINENO: result: $ac_res" >&5
13299 echo "${ECHO_T}$ac_res" >&6; }
13302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13303 cat >>confdefs.h <<_ACEOF
13304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13315 for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
13317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 ac_res=`eval echo '${'$as_ac_Header'}'`
13325 { echo "$as_me:$LINENO: result: $ac_res" >&5
13326 echo "${ECHO_T}$ac_res" >&6; }
13328 # Is the header compilable?
13329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <$ac_header>
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_header_compiler=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_header_compiler=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6; }
13386 # Is the header present?
13387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 #include <$ac_header>
13397 if { (ac_try="$ac_cpp conftest.$ac_ext"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } >/dev/null; then
13410 if test -s conftest.err; then
13411 ac_cpp_err=$ac_c_preproc_warn_flag
13412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13419 if test -z "$ac_cpp_err"; then
13420 ac_header_preproc=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6; }
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 eval "$as_ac_Header=\$ac_header_preproc"
13464 ac_res=`eval echo '${'$as_ac_Header'}'`
13465 { echo "$as_me:$LINENO: result: $ac_res" >&5
13466 echo "${ECHO_T}$ac_res" >&6; }
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480 for ac_header in sys/sockio.h sys/un.h
13482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_res=`eval echo '${'$as_ac_Header'}'`
13490 { echo "$as_me:$LINENO: result: $ac_res" >&5
13491 echo "${ECHO_T}$ac_res" >&6; }
13493 # Is the header compilable?
13494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 $ac_includes_default
13503 #include <$ac_header>
13505 rm -f conftest.$ac_objext
13506 if { (ac_try="$ac_compile"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13520 { (case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_try") 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_header_compiler=yes
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_header_compiler=no
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13549 echo "${ECHO_T}$ac_header_compiler" >&6; }
13551 # Is the header present?
13552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <$ac_header>
13562 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13575 if test -s conftest.err; then
13576 ac_cpp_err=$ac_c_preproc_warn_flag
13577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13584 if test -z "$ac_cpp_err"; then
13585 ac_header_preproc=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6; }
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604 ac_header_preproc=yes
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 eval "$as_ac_Header=\$ac_header_preproc"
13629 ac_res=`eval echo '${'$as_ac_Header'}'`
13630 { echo "$as_me:$LINENO: result: $ac_res" >&5
13631 echo "${ECHO_T}$ac_res" >&6; }
13634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13635 cat >>confdefs.h <<_ACEOF
13636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645 { echo "$as_me:$LINENO: checking for usable net/if.h" >&5
13646 echo $ECHO_N "checking for usable net/if.h... $ECHO_C" >&6; }
13647 if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13658 $ac_includes_default
13659 #if HAVE_SYS_SOCKET_H
13660 # include <sys/socket.h>
13662 #include <net/if.h>
13663 int main(void) {return 0;}
13665 rm -f conftest.$ac_objext
13666 if { (ac_try="$ac_compile"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_compile") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_try") 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 libreplace_cv_USABLE_NET_IF_H=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 libreplace_cv_USABLE_NET_IF_H=no
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711 { echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
13712 echo "${ECHO_T}$libreplace_cv_USABLE_NET_IF_H" >&6; }
13713 if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
13715 cat >>confdefs.h <<\_ACEOF
13716 #define HAVE_NET_IF_H 1
13721 { echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
13722 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6; }
13723 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 if test "$cross_compiling" = yes; then
13728 samba_cv_REPLACE_INET_NTOA=cross
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13738 #include <unistd.h>
13739 #include <sys/types.h>
13740 #include <netinet/in.h>
13741 #ifdef HAVE_ARPA_INET_H
13742 #include <arpa/inet.h>
13744 main() { struct in_addr ip; ip.s_addr = 0x12345678;
13745 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
13746 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
13749 rm -f conftest$ac_exeext
13750 if { (ac_try="$ac_link"
13751 case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_link") 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 samba_cv_REPLACE_INET_NTOA=yes
13771 echo "$as_me: program exited with status $ac_status" >&5
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ( exit $ac_status )
13776 samba_cv_REPLACE_INET_NTOA=no
13778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13783 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
13784 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6; }
13785 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define REPLACE_INET_NTOA 1
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13800 #include <sys/types.h>
13802 #include <stdlib.h>
13803 #include <stddef.h>
13805 #include <sys/socket.h>
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_compile") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_try") 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13854 cat >>confdefs.h <<\_ACEOF
13855 #define socklen_t int
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
13871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13885 #define $ac_func innocuous_$ac_func
13887 /* System header to define __stub macros and hopefully few prototypes,
13888 which can conflict with char $ac_func (); below.
13889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890 <limits.h> exists even on freestanding compilers. */
13893 # include <limits.h>
13895 # include <assert.h>
13900 /* Override any GCC internal prototype to avoid an error.
13901 Use char because int might match the return type of a GCC
13902 builtin and then its argument prototype would still apply. */
13907 /* The GNU C library defines this for functions which it implements
13908 to always fail with ENOSYS. Some functions are actually named
13909 something starting with __ and the normal name is an alias. */
13910 #if defined __stub_$ac_func || defined __stub___$ac_func
13917 return $ac_func ();
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 eval "$as_ac_var=yes"
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 eval "$as_ac_var=no"
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13967 ac_res=`eval echo '${'$as_ac_var'}'`
13968 { echo "$as_me:$LINENO: result: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13984 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
13986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14000 #define $ac_func innocuous_$ac_func
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
14008 # include <limits.h>
14010 # include <assert.h>
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14022 /* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025 #if defined __stub_$ac_func || defined __stub___$ac_func
14032 return $ac_func ();
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_link") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 eval "$as_ac_var=yes"
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 eval "$as_ac_var=no"
14079 rm -f core conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14082 ac_res=`eval echo '${'$as_ac_var'}'`
14083 { echo "$as_me:$LINENO: result: $ac_res" >&5
14084 echo "${ECHO_T}$ac_res" >&6; }
14085 if test `eval echo '${'$as_ac_var'}'` = yes; then
14086 cat >>confdefs.h <<_ACEOF
14087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14100 for ac_func in waitpid strlcpy strlcat innetgr initgroups memmove strdup
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14116 #define $ac_func innocuous_$ac_func
14118 /* System header to define __stub macros and hopefully few prototypes,
14119 which can conflict with char $ac_func (); below.
14120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121 <limits.h> exists even on freestanding compilers. */
14124 # include <limits.h>
14126 # include <assert.h>
14131 /* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14138 /* The GNU C library defines this for functions which it implements
14139 to always fail with ENOSYS. Some functions are actually named
14140 something starting with __ and the normal name is an alias. */
14141 #if defined __stub_$ac_func || defined __stub___$ac_func
14148 return $ac_func ();
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 eval "$as_ac_var=yes"
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 eval "$as_ac_var=no"
14195 rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14198 ac_res=`eval echo '${'$as_ac_var'}'`
14199 { echo "$as_me:$LINENO: result: $ac_res" >&5
14200 echo "${ECHO_T}$ac_res" >&6; }
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202 cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14216 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp socketpair
14218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14232 #define $ac_func innocuous_$ac_func
14234 /* System header to define __stub macros and hopefully few prototypes,
14235 which can conflict with char $ac_func (); below.
14236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14237 <limits.h> exists even on freestanding compilers. */
14240 # include <limits.h>
14242 # include <assert.h>
14247 /* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14254 /* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257 #if defined __stub_$ac_func || defined __stub___$ac_func
14264 return $ac_func ();
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 eval "$as_ac_var=yes"
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 eval "$as_ac_var=no"
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14314 ac_res=`eval echo '${'$as_ac_var'}'`
14315 { echo "$as_me:$LINENO: result: $ac_res" >&5
14316 echo "${ECHO_T}$ac_res" >&6; }
14317 if test `eval echo '${'$as_ac_var'}'` = yes; then
14318 cat >>confdefs.h <<_ACEOF
14319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14326 { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
14327 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
14328 if test "${ac_cv_have_setresuid_decl+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 #include <unistd.h>
14342 int i = (int)setresuid
14347 rm -f conftest.$ac_objext
14348 if { (ac_try="$ac_compile"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_compile") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_try") 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_have_setresuid_decl=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_have_setresuid_decl=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 { echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
14392 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
14393 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_SETRESUID_DECL 1
14402 { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
14403 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
14404 if test "${ac_cv_have_setresgid_decl+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <unistd.h>
14418 int i = (int)setresgid
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438 { (case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_try") 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_try") 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_cv_have_setresgid_decl=yes
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_cv_have_setresgid_decl=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
14468 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
14469 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_SETRESGID_DECL 1
14478 { echo "$as_me:$LINENO: checking for errno declaration" >&5
14479 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
14480 if test "${ac_cv_have_errno_decl+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14499 rm -f conftest.$ac_objext
14500 if { (ac_try="$ac_compile"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_compile") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_have_errno_decl=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_cv_have_errno_decl=no
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 { echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
14544 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
14545 if test x"$ac_cv_have_errno_decl" = x"yes"; then
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_ERRNO_DECL 1
14554 { echo "$as_me:$LINENO: checking for secure mkstemp" >&5
14555 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
14556 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 if test "$cross_compiling" = yes; then
14561 samba_cv_HAVE_SECURE_MKSTEMP=cross
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 #include <stdlib.h>
14570 #include <sys/types.h>
14571 #include <sys/stat.h>
14572 #include <unistd.h>
14575 char tpl[20]="/tmp/test.XXXXXX";
14576 int fd = mkstemp(tpl);
14577 if (fd == -1) exit(1);
14579 if (fstat(fd, &st) != 0) exit(1);
14580 if ((st.st_mode & 0777) != 0600) exit(1);
14584 rm -f conftest$ac_exeext
14585 if { (ac_try="$ac_link"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_link") 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14595 { (case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_try") 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 samba_cv_HAVE_SECURE_MKSTEMP=yes
14606 echo "$as_me: program exited with status $ac_status" >&5
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ( exit $ac_status )
14611 samba_cv_HAVE_SECURE_MKSTEMP=no
14613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14618 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
14619 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
14620 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
14622 cat >>confdefs.h <<\_ACEOF
14623 #define HAVE_SECURE_MKSTEMP 1
14630 for ac_header in stdio.h strings.h
14632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 ac_res=`eval echo '${'$as_ac_Header'}'`
14640 { echo "$as_me:$LINENO: result: $ac_res" >&5
14641 echo "${ECHO_T}$ac_res" >&6; }
14643 # Is the header compilable?
14644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14653 #include <$ac_header>
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_try") 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 ac_header_compiler=yes
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ac_header_compiler=no
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14699 echo "${ECHO_T}$ac_header_compiler" >&6; }
14701 # Is the header present?
14702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <$ac_header>
14712 if { (ac_try="$ac_cpp conftest.$ac_ext"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } >/dev/null; then
14725 if test -s conftest.err; then
14726 ac_cpp_err=$ac_c_preproc_warn_flag
14727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14734 if test -z "$ac_cpp_err"; then
14735 ac_header_preproc=yes
14737 echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14740 ac_header_preproc=no
14743 rm -f conftest.err conftest.$ac_ext
14744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6; }
14747 # So? What about this header?
14748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754 ac_header_preproc=yes
14757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 eval "$as_ac_Header=\$ac_header_preproc"
14779 ac_res=`eval echo '${'$as_ac_Header'}'`
14780 { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14785 cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14794 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14795 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 $ac_includes_default
14809 char *p = (char *) snprintf;
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_try") 2>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_cv_have_decl_snprintf=yes
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_have_decl_snprintf=no
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14862 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14863 if test $ac_cv_have_decl_snprintf = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_DECL_SNPRINTF 1
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_DECL_SNPRINTF 0
14877 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14878 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
14879 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888 $ac_includes_default
14893 char *p = (char *) vsnprintf;
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_compile") 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916 { (case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_try") 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_have_decl_vsnprintf=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_have_decl_vsnprintf=no
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14946 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
14947 if test $ac_cv_have_decl_vsnprintf = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_VSNPRINTF 1
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_DECL_VSNPRINTF 0
14961 { echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
14962 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
14963 if test "${ac_cv_have_decl_asprintf+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14977 char *p = (char *) asprintf;
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_cv_have_decl_asprintf=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_cv_have_decl_asprintf=no
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
15030 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
15031 if test $ac_cv_have_decl_asprintf = yes; then
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_DECL_ASPRINTF 1
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_DECL_ASPRINTF 0
15045 { echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
15046 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
15047 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 $ac_includes_default
15061 char *p = (char *) vasprintf;
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15084 { (case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_try") 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_try") 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_cv_have_decl_vasprintf=yes
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_cv_have_decl_vasprintf=no
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
15114 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
15115 if test $ac_cv_have_decl_vasprintf = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_DECL_VASPRINTF 1
15123 cat >>confdefs.h <<_ACEOF
15124 #define HAVE_DECL_VASPRINTF 0
15135 for ac_func in snprintf vsnprintf asprintf vasprintf
15137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15151 #define $ac_func innocuous_$ac_func
15153 /* System header to define __stub macros and hopefully few prototypes,
15154 which can conflict with char $ac_func (); below.
15155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15156 <limits.h> exists even on freestanding compilers. */
15159 # include <limits.h>
15161 # include <assert.h>
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15173 /* The GNU C library defines this for functions which it implements
15174 to always fail with ENOSYS. Some functions are actually named
15175 something starting with __ and the normal name is an alias. */
15176 #if defined __stub_$ac_func || defined __stub___$ac_func
15183 return $ac_func ();
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15203 { (case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_try") 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; } &&
15212 { ac_try='test -s conftest$ac_exeext'
15213 { (case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_try") 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 eval "$as_ac_var=yes"
15224 echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15227 eval "$as_ac_var=no"
15230 rm -f core conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15233 ac_res=`eval echo '${'$as_ac_var'}'`
15234 { echo "$as_me:$LINENO: result: $ac_res" >&5
15235 echo "${ECHO_T}$ac_res" >&6; }
15236 if test `eval echo '${'$as_ac_var'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15245 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
15246 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
15247 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 if test "$cross_compiling" = yes; then
15252 samba_cv_HAVE_C99_VSNPRINTF=cross
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 #include <sys/types.h>
15263 #include <stdarg.h>
15264 #include <stdlib.h>
15265 void foo(const char *format, ...) {
15269 long long l = 1234567890;
15272 va_start(ap, format);
15273 len = vsnprintf(buf, 0, format, ap);
15275 if (len != 5) exit(1);
15277 va_start(ap, format);
15278 len = vsnprintf(0, 0, format, ap);
15280 if (len != 5) exit(2);
15282 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
15284 if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
15285 if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
15286 if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
15287 if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
15291 main() { foo("hello"); }
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 samba_cv_HAVE_C99_VSNPRINTF=yes
15316 echo "$as_me: program exited with status $ac_status" >&5
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ( exit $ac_status )
15321 samba_cv_HAVE_C99_VSNPRINTF=no
15323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
15329 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
15330 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_C99_VSNPRINTF 1
15339 { echo "$as_me:$LINENO: checking for va_copy" >&5
15340 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
15341 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 cat >conftest.$ac_ext <<_ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <stdarg.h>
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_link") 2>conftest.er1
15370 grep -v '^ *+' conftest.er1 >conftest.err
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest$ac_exeext'
15386 { (case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_try") 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 samba_cv_HAVE_VA_COPY=yes
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 samba_cv_HAVE_VA_COPY=no
15403 rm -f core conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
15406 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
15407 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
15408 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_VA_COPY 1
15416 if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
15417 { echo "$as_me:$LINENO: checking for __va_copy" >&5
15418 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
15419 if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <stdarg.h>
15434 __va_copy(ap1,ap2);
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_link") 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 samba_cv_HAVE___VA_COPY=yes
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 samba_cv_HAVE___VA_COPY=no
15481 rm -f core conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
15484 { echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
15485 echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
15486 if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE___VA_COPY 1
15495 { echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
15496 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
15497 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15511 printf("%s\n", __FUNCTION__);
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 samba_cv_HAVE_FUNCTION_MACRO=yes
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 samba_cv_HAVE_FUNCTION_MACRO=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
15561 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
15562 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_FUNCTION_MACRO 1
15569 { echo "$as_me:$LINENO: checking for __func__ macro" >&5
15570 echo $ECHO_N "checking for __func__ macro... $ECHO_C" >&6; }
15571 if test "${samba_cv_HAVE_func_MACRO+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15585 printf("%s\n", __func__);
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_compile") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15605 { (case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_try") 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_try") 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 samba_cv_HAVE_func_MACRO=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 samba_cv_HAVE_func_MACRO=no
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_func_MACRO" >&5
15635 echo "${ECHO_T}$samba_cv_HAVE_func_MACRO" >&6; }
15636 if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE_func_MACRO 1
15647 for ac_header in sys/param.h limits.h
15649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657 { echo "$as_me:$LINENO: result: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15660 # Is the header compilable?
15661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 $ac_includes_default
15670 #include <$ac_header>
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_compile") 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15687 { (case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_try") 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest.$ac_objext'
15697 { (case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_try") 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_header_compiler=yes
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_header_compiler=no
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15716 echo "${ECHO_T}$ac_header_compiler" >&6; }
15718 # Is the header present?
15719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 #include <$ac_header>
15729 if { (ac_try="$ac_cpp conftest.$ac_ext"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } >/dev/null; then
15742 if test -s conftest.err; then
15743 ac_cpp_err=$ac_c_preproc_warn_flag
15744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15751 if test -z "$ac_cpp_err"; then
15752 ac_header_preproc=yes
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_header_preproc=no
15760 rm -f conftest.err conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15762 echo "${ECHO_T}$ac_header_preproc" >&6; }
15764 # So? What about this header?
15765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15771 ac_header_preproc=yes
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 eval "$as_ac_Header=\$ac_header_preproc"
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802 cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 { echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15812 echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
15813 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 typedef comparison_fn_t ac__type_new_;
15827 if ((ac__type_new_ *) 0)
15829 if (sizeof (ac__type_new_))
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_type_comparison_fn_t=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_cv_type_comparison_fn_t=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15880 echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
15881 if test $ac_cv_type_comparison_fn_t = yes; then
15883 cat >>confdefs.h <<\_ACEOF
15884 #define HAVE_COMPARISON_FN_T 1
15892 for ac_func in strnlen setenv
15894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15908 #define $ac_func innocuous_$ac_func
15910 /* System header to define __stub macros and hopefully few prototypes,
15911 which can conflict with char $ac_func (); below.
15912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15913 <limits.h> exists even on freestanding compilers. */
15916 # include <limits.h>
15918 # include <assert.h>
15923 /* Override any GCC internal prototype to avoid an error.
15924 Use char because int might match the return type of a GCC
15925 builtin and then its argument prototype would still apply. */
15930 /* The GNU C library defines this for functions which it implements
15931 to always fail with ENOSYS. Some functions are actually named
15932 something starting with __ and the normal name is an alias. */
15933 #if defined __stub_$ac_func || defined __stub___$ac_func
15940 return $ac_func ();
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (ac_try="$ac_link"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_link") 2>conftest.er1
15954 grep -v '^ *+' conftest.er1 >conftest.err
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest$ac_exeext'
15970 { (case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_try") 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 eval "$as_ac_var=yes"
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 eval "$as_ac_var=no"
15987 rm -f core conftest.err conftest.$ac_objext \
15988 conftest$ac_exeext conftest.$ac_ext
15990 ac_res=`eval echo '${'$as_ac_var'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16007 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
16009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16023 #define $ac_func innocuous_$ac_func
16025 /* System header to define __stub macros and hopefully few prototypes,
16026 which can conflict with char $ac_func (); below.
16027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16028 <limits.h> exists even on freestanding compilers. */
16031 # include <limits.h>
16033 # include <assert.h>
16038 /* Override any GCC internal prototype to avoid an error.
16039 Use char because int might match the return type of a GCC
16040 builtin and then its argument prototype would still apply. */
16045 /* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048 #if defined __stub_$ac_func || defined __stub___$ac_func
16055 return $ac_func ();
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_try") 2>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 eval "$as_ac_var=yes"
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 eval "$as_ac_var=no"
16102 rm -f core conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16105 ac_res=`eval echo '${'$as_ac_var'}'`
16106 { echo "$as_me:$LINENO: result: $ac_res" >&5
16107 echo "${ECHO_T}$ac_res" >&6; }
16108 if test `eval echo '${'$as_ac_var'}'` = yes; then
16109 cat >>confdefs.h <<_ACEOF
16110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16117 # this test disabled as we don't actually need __VA_ARGS__ yet
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16125 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
16126 eprintf("bla", "bar");
16129 if { (ac_try="$ac_cpp conftest.$ac_ext"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16137 grep -v '^ *+' conftest.er1 >conftest.err
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } >/dev/null; then
16142 if test -s conftest.err; then
16143 ac_cpp_err=$ac_c_preproc_warn_flag
16144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16151 if test -z "$ac_cpp_err"; then
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE__VA_ARGS__MACRO 1
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16164 rm -f conftest.err conftest.$ac_ext
16166 # Check prerequisites
16170 for ac_func in memset printf syslog
16172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16186 #define $ac_func innocuous_$ac_func
16188 /* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char $ac_func (); below.
16190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191 <limits.h> exists even on freestanding compilers. */
16194 # include <limits.h>
16196 # include <assert.h>
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16208 /* The GNU C library defines this for functions which it implements
16209 to always fail with ENOSYS. Some functions are actually named
16210 something starting with __ and the normal name is an alias. */
16211 #if defined __stub_$ac_func || defined __stub___$ac_func
16218 return $ac_func ();
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest$ac_exeext'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 eval "$as_ac_var=yes"
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 eval "$as_ac_var=no"
16265 rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16268 ac_res=`eval echo '${'$as_ac_var'}'`
16269 { echo "$as_me:$LINENO: result: $ac_res" >&5
16270 echo "${ECHO_T}$ac_res" >&6; }
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 { { echo "$as_me:$LINENO: error: Required function not found" >&5
16278 echo "$as_me: error: Required function not found" >&2;}
16279 { (exit 1); exit 1; }; }
16284 { echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
16285 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
16286 if test "${samba_cv_sig_atomic_t+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16297 #include <sys/types.h>
16299 #include <stdlib.h>
16300 #include <stddef.h>
16302 #include <signal.h>
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_compile") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 samba_cv_sig_atomic_t=yes
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 samba_cv_sig_atomic_t=no
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
16356 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
16357 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_SIG_ATOMIC_T_TYPE 1
16366 { echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
16367 echo $ECHO_N "checking for O_DIRECT flag to open(2)... $ECHO_C" >&6; }
16368 if test "${samba_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16379 #include <unistd.h>
16380 #ifdef HAVE_FCNTL_H
16386 int fd = open("/dev/null", O_DIRECT);
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 samba_cv_HAVE_OPEN_O_DIRECT=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 samba_cv_HAVE_OPEN_O_DIRECT=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_OPEN_O_DIRECT" >&5
16436 echo "${ECHO_T}$samba_cv_HAVE_OPEN_O_DIRECT" >&6; }
16437 if test x"$samba_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_OPEN_O_DIRECT 1
16446 { echo "$as_me:$LINENO: checking that the C compiler can precompile header files" >&5
16447 echo $ECHO_N "checking that the C compiler can precompile header files... $ECHO_C" >&6; }
16448 if test "${samba_cv_precompiled_headers+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
16454 precompiled_headers=yes
16456 precompiled_headers=no
16459 { echo "$as_me:$LINENO: result: $samba_cv_precompiled_headers" >&5
16460 echo "${ECHO_T}$samba_cv_precompiled_headers" >&6; }
16464 { echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
16465 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
16466 if test "${samba_cv_volatile+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 #include <sys/types.h>
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_try") 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 samba_cv_volatile=yes
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16524 samba_cv_volatile=no
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 { echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
16530 echo "${ECHO_T}$samba_cv_volatile" >&6; }
16531 if test x"$samba_cv_volatile" = x"yes"; then
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_VOLATILE 1
16545 ac_header_dirent=no
16546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16547 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16548 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16549 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 #include <sys/types.h>
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 eval "$as_ac_Header=yes"
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 eval "$as_ac_Header=no"
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16623 ac_header_dirent=$ac_hdr; break
16627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16628 if test $ac_header_dirent = dirent.h; then
16629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16631 if test "${ac_cv_search_opendir+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 ac_func_search_save_LIBS=$LIBS
16635 cat >conftest.$ac_ext <<_ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16657 for ac_lib in '' dir; do
16658 if test -z "$ac_lib"; then
16659 ac_res="none required"
16662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_link") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest$ac_exeext'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_search_opendir=$ac_res
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16706 rm -f core conftest.err conftest.$ac_objext \
16708 if test "${ac_cv_search_opendir+set}" = set; then
16712 if test "${ac_cv_search_opendir+set}" = set; then
16715 ac_cv_search_opendir=no
16717 rm conftest.$ac_ext
16718 LIBS=$ac_func_search_save_LIBS
16720 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16721 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16722 ac_res=$ac_cv_search_opendir
16723 if test "$ac_res" != no; then
16724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16729 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16731 if test "${ac_cv_search_opendir+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 ac_func_search_save_LIBS=$LIBS
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16742 /* Override any GCC internal prototype to avoid an error.
16743 Use char because int might match the return type of a GCC
16744 builtin and then its argument prototype would still apply. */
16757 for ac_lib in '' x; do
16758 if test -z "$ac_lib"; then
16759 ac_res="none required"
16762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (ac_try="$ac_link"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_link") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest$ac_exeext'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_search_opendir=$ac_res
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16806 rm -f core conftest.err conftest.$ac_objext \
16808 if test "${ac_cv_search_opendir+set}" = set; then
16812 if test "${ac_cv_search_opendir+set}" = set; then
16815 ac_cv_search_opendir=no
16817 rm conftest.$ac_ext
16818 LIBS=$ac_func_search_save_LIBS
16820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16822 ac_res=$ac_cv_search_opendir
16823 if test "$ac_res" != no; then
16824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16839 for ac_header in fcntl.h sys/fcntl.h sys/acl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
16841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 ac_res=`eval echo '${'$as_ac_Header'}'`
16849 { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16852 # Is the header compilable?
16853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 $ac_includes_default
16862 #include <$ac_header>
16864 rm -f conftest.$ac_objext
16865 if { (ac_try="$ac_compile"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_compile") 2>conftest.er1
16873 grep -v '^ *+' conftest.er1 >conftest.err
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try='test -s conftest.$ac_objext'
16889 { (case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_try") 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_header_compiler=yes
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ac_header_compiler=no
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16908 echo "${ECHO_T}$ac_header_compiler" >&6; }
16910 # Is the header present?
16911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16913 cat >conftest.$ac_ext <<_ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <$ac_header>
16921 if { (ac_try="$ac_cpp conftest.$ac_ext"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16929 grep -v '^ *+' conftest.er1 >conftest.err
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } >/dev/null; then
16934 if test -s conftest.err; then
16935 ac_cpp_err=$ac_c_preproc_warn_flag
16936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16943 if test -z "$ac_cpp_err"; then
16944 ac_header_preproc=yes
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_header_preproc=no
16952 rm -f conftest.err conftest.$ac_ext
16953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16954 echo "${ECHO_T}$ac_header_preproc" >&6; }
16956 # So? What about this header?
16957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16963 ac_header_preproc=yes
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 eval "$as_ac_Header=\$ac_header_preproc"
16988 ac_res=`eval echo '${'$as_ac_Header'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005 for ac_header in sys/select.h
17007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 ac_res=`eval echo '${'$as_ac_Header'}'`
17015 { echo "$as_me:$LINENO: result: $ac_res" >&5
17016 echo "${ECHO_T}$ac_res" >&6; }
17018 # Is the header compilable?
17019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 $ac_includes_default
17028 #include <$ac_header>
17030 rm -f conftest.$ac_objext
17031 if { (ac_try="$ac_compile"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_compile") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1 >conftest.err
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_try") 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_header_compiler=yes
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 ac_header_compiler=no
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17074 echo "${ECHO_T}$ac_header_compiler" >&6; }
17076 # Is the header present?
17077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17079 cat >conftest.$ac_ext <<_ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 #include <$ac_header>
17087 if { (ac_try="$ac_cpp conftest.$ac_ext"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } >/dev/null; then
17100 if test -s conftest.err; then
17101 ac_cpp_err=$ac_c_preproc_warn_flag
17102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17109 if test -z "$ac_cpp_err"; then
17110 ac_header_preproc=yes
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_header_preproc=no
17118 rm -f conftest.err conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17120 echo "${ECHO_T}$ac_header_preproc" >&6; }
17122 # So? What about this header?
17123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17129 ac_header_preproc=yes
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 eval "$as_ac_Header=\$ac_header_preproc"
17154 ac_res=`eval echo '${'$as_ac_Header'}'`
17155 { echo "$as_me:$LINENO: result: $ac_res" >&5
17156 echo "${ECHO_T}$ac_res" >&6; }
17159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17172 for ac_header in sys/time.h utime.h
17174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 ac_res=`eval echo '${'$as_ac_Header'}'`
17182 { echo "$as_me:$LINENO: result: $ac_res" >&5
17183 echo "${ECHO_T}$ac_res" >&6; }
17185 # Is the header compilable?
17186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 $ac_includes_default
17195 #include <$ac_header>
17197 rm -f conftest.$ac_objext
17198 if { (ac_try="$ac_compile"
17199 case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_compile") 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest.$ac_objext'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 ac_header_compiler=yes
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 ac_header_compiler=no
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17241 echo "${ECHO_T}$ac_header_compiler" >&6; }
17243 # Is the header present?
17244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 #include <$ac_header>
17254 if { (ac_try="$ac_cpp conftest.$ac_ext"
17255 case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17262 grep -v '^ *+' conftest.er1 >conftest.err
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } >/dev/null; then
17267 if test -s conftest.err; then
17268 ac_cpp_err=$ac_c_preproc_warn_flag
17269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17276 if test -z "$ac_cpp_err"; then
17277 ac_header_preproc=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_preproc=no
17285 rm -f conftest.err conftest.$ac_ext
17286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 echo "${ECHO_T}$ac_header_preproc" >&6; }
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17296 ac_header_preproc=yes
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 eval "$as_ac_Header=\$ac_header_preproc"
17321 ac_res=`eval echo '${'$as_ac_Header'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17327 cat >>confdefs.h <<_ACEOF
17328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17335 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17336 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17337 if test "${ac_cv_header_time+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <sys/types.h>
17347 #include <sys/time.h>
17353 if ((struct tm *) 0)
17359 rm -f conftest.$ac_objext
17360 if { (ac_try="$ac_compile"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_compile") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest.$ac_objext'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 ac_cv_header_time=yes
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 ac_cv_header_time=no
17401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17404 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17405 if test $ac_cv_header_time = yes; then
17407 cat >>confdefs.h <<\_ACEOF
17408 #define TIME_WITH_SYS_TIME 1
17415 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17416 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
17417 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <sys/types.h>
17427 #include <sys/wait.h>
17428 #ifndef WEXITSTATUS
17429 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17432 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17440 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17445 rm -f conftest.$ac_objext
17446 if { (ac_try="$ac_compile"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_compile") 2>conftest.er1
17454 grep -v '^ *+' conftest.er1 >conftest.err
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_try") 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_header_sys_wait_h=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_header_sys_wait_h=no
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
17491 if test $ac_cv_header_sys_wait_h = yes; then
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_SYS_WAIT_H 1
17502 for ac_header in sys/capability.h
17504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 ac_res=`eval echo '${'$as_ac_Header'}'`
17512 { echo "$as_me:$LINENO: result: $ac_res" >&5
17513 echo "${ECHO_T}$ac_res" >&6; }
17515 # Is the header compilable?
17516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17518 cat >conftest.$ac_ext <<_ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524 $ac_includes_default
17525 #include <$ac_header>
17527 rm -f conftest.$ac_objext
17528 if { (ac_try="$ac_compile"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_compile") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest.$ac_objext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_header_compiler=yes
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ac_header_compiler=no
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571 echo "${ECHO_T}$ac_header_compiler" >&6; }
17573 # Is the header present?
17574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17576 cat >conftest.$ac_ext <<_ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <$ac_header>
17584 if { (ac_try="$ac_cpp conftest.$ac_ext"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } >/dev/null; then
17597 if test -s conftest.err; then
17598 ac_cpp_err=$ac_c_preproc_warn_flag
17599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17606 if test -z "$ac_cpp_err"; then
17607 ac_header_preproc=yes
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 ac_header_preproc=no
17615 rm -f conftest.err conftest.$ac_ext
17616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17617 echo "${ECHO_T}$ac_header_preproc" >&6; }
17619 # So? What about this header?
17620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17626 ac_header_preproc=yes
17629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 eval "$as_ac_Header=\$ac_header_preproc"
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652 { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17674 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 ac_res=`eval echo '${'$as_ac_Header'}'`
17684 { echo "$as_me:$LINENO: result: $ac_res" >&5
17685 echo "${ECHO_T}$ac_res" >&6; }
17687 # Is the header compilable?
17688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 $ac_includes_default
17697 #include <$ac_header>
17699 rm -f conftest.$ac_objext
17700 if { (ac_try="$ac_compile"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_compile") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17714 { (case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_try") 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 ac_header_compiler=yes
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 ac_header_compiler=no
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17743 echo "${ECHO_T}$ac_header_compiler" >&6; }
17745 # Is the header present?
17746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17754 #include <$ac_header>
17756 if { (ac_try="$ac_cpp conftest.$ac_ext"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } >/dev/null; then
17769 if test -s conftest.err; then
17770 ac_cpp_err=$ac_c_preproc_warn_flag
17771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17778 if test -z "$ac_cpp_err"; then
17779 ac_header_preproc=yes
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_header_preproc=no
17787 rm -f conftest.err conftest.$ac_ext
17788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17789 echo "${ECHO_T}$ac_header_preproc" >&6; }
17791 # So? What about this header?
17792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17798 ac_header_preproc=yes
17801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 eval "$as_ac_Header=\$ac_header_preproc"
17823 ac_res=`eval echo '${'$as_ac_Header'}'`
17824 { echo "$as_me:$LINENO: result: $ac_res" >&5
17825 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17829 cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17841 for ac_header in ctype.h locale.h
17843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 ac_res=`eval echo '${'$as_ac_Header'}'`
17851 { echo "$as_me:$LINENO: result: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17854 # Is the header compilable?
17855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <$ac_header>
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_header_compiler=yes
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_header_compiler=no
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17910 echo "${ECHO_T}$ac_header_compiler" >&6; }
17912 # Is the header present?
17913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17915 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 #include <$ac_header>
17923 if { (ac_try="$ac_cpp conftest.$ac_ext"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } >/dev/null; then
17936 if test -s conftest.err; then
17937 ac_cpp_err=$ac_c_preproc_warn_flag
17938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17945 if test -z "$ac_cpp_err"; then
17946 ac_header_preproc=yes
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_header_preproc=no
17954 rm -f conftest.err conftest.$ac_ext
17955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17956 echo "${ECHO_T}$ac_header_preproc" >&6; }
17958 # So? What about this header?
17959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17965 ac_header_preproc=yes
17968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 eval "$as_ac_Header=\$ac_header_preproc"
17990 ac_res=`eval echo '${'$as_ac_Header'}'`
17991 { echo "$as_me:$LINENO: result: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18007 for ac_header in fnmatch.h
18009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 ac_res=`eval echo '${'$as_ac_Header'}'`
18017 { echo "$as_me:$LINENO: result: $ac_res" >&5
18018 echo "${ECHO_T}$ac_res" >&6; }
18020 # Is the header compilable?
18021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 $ac_includes_default
18030 #include <$ac_header>
18032 rm -f conftest.$ac_objext
18033 if { (ac_try="$ac_compile"
18034 case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_compile") 2>conftest.er1
18041 grep -v '^ *+' conftest.er1 >conftest.err
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18047 { (case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_try") 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; } &&
18056 { ac_try='test -s conftest.$ac_objext'
18057 { (case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_try") 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_header_compiler=yes
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_compiler=no
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <$ac_header>
18089 if { (ac_try="$ac_cpp conftest.$ac_ext"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } >/dev/null; then
18102 if test -s conftest.err; then
18103 ac_cpp_err=$ac_c_preproc_warn_flag
18104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18111 if test -z "$ac_cpp_err"; then
18112 ac_header_preproc=yes
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_header_preproc=no
18120 rm -f conftest.err conftest.$ac_ext
18121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18122 echo "${ECHO_T}$ac_header_preproc" >&6; }
18124 # So? What about this header?
18125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18131 ac_header_preproc=yes
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 eval "$as_ac_Header=\$ac_header_preproc"
18156 ac_res=`eval echo '${'$as_ac_Header'}'`
18157 { echo "$as_me:$LINENO: result: $ac_res" >&5
18158 echo "${ECHO_T}$ac_res" >&6; }
18161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18162 cat >>confdefs.h <<_ACEOF
18163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18175 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 ac_res=`eval echo '${'$as_ac_Header'}'`
18185 { echo "$as_me:$LINENO: result: $ac_res" >&5
18186 echo "${ECHO_T}$ac_res" >&6; }
18188 # Is the header compilable?
18189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18191 cat >conftest.$ac_ext <<_ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 $ac_includes_default
18198 #include <$ac_header>
18200 rm -f conftest.$ac_objext
18201 if { (ac_try="$ac_compile"
18202 case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_compile") 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
18225 { (case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_try") 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_header_compiler=yes
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18239 ac_header_compiler=no
18242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18244 echo "${ECHO_T}$ac_header_compiler" >&6; }
18246 # Is the header present?
18247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 #include <$ac_header>
18257 if { (ac_try="$ac_cpp conftest.$ac_ext"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18265 grep -v '^ *+' conftest.er1 >conftest.err
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } >/dev/null; then
18270 if test -s conftest.err; then
18271 ac_cpp_err=$ac_c_preproc_warn_flag
18272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18279 if test -z "$ac_cpp_err"; then
18280 ac_header_preproc=yes
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_header_preproc=no
18288 rm -f conftest.err conftest.$ac_ext
18289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18290 echo "${ECHO_T}$ac_header_preproc" >&6; }
18292 # So? What about this header?
18293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18299 ac_header_preproc=yes
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 eval "$as_ac_Header=\$ac_header_preproc"
18324 ac_res=`eval echo '${'$as_ac_Header'}'`
18325 { echo "$as_me:$LINENO: result: $ac_res" >&5
18326 echo "${ECHO_T}$ac_res" >&6; }
18329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18343 for ac_header in termios.h termio.h sys/termio.h
18345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 ac_res=`eval echo '${'$as_ac_Header'}'`
18353 { echo "$as_me:$LINENO: result: $ac_res" >&5
18354 echo "${ECHO_T}$ac_res" >&6; }
18356 # Is the header compilable?
18357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18359 cat >conftest.$ac_ext <<_ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18365 $ac_includes_default
18366 #include <$ac_header>
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_compile") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_try") 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
18393 { (case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_try") 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_header_compiler=yes
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_compiler=no
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18412 echo "${ECHO_T}$ac_header_compiler" >&6; }
18414 # Is the header present?
18415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <$ac_header>
18425 if { (ac_try="$ac_cpp conftest.$ac_ext"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null; then
18438 if test -s conftest.err; then
18439 ac_cpp_err=$ac_c_preproc_warn_flag
18440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_header_preproc=no
18456 rm -f conftest.err conftest.$ac_ext
18457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6; }
18460 # So? What about this header?
18461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467 ac_header_preproc=yes
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 eval "$as_ac_Header=\$ac_header_preproc"
18492 ac_res=`eval echo '${'$as_ac_Header'}'`
18493 { echo "$as_me:$LINENO: result: $ac_res" >&5
18494 echo "${ECHO_T}$ac_res" >&6; }
18497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18498 cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18511 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18512 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18513 if test "${ac_cv_search_dlopen+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 ac_func_search_save_LIBS=$LIBS
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18539 for ac_lib in '' dl; do
18540 if test -z "$ac_lib"; then
18541 ac_res="none required"
18544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_link") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
18560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18561 { (case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_try") 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; } &&
18570 { ac_try='test -s conftest$ac_exeext'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 ac_cv_search_dlopen=$ac_res
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18588 rm -f core conftest.err conftest.$ac_objext \
18590 if test "${ac_cv_search_dlopen+set}" = set; then
18594 if test "${ac_cv_search_dlopen+set}" = set; then
18597 ac_cv_search_dlopen=no
18599 rm conftest.$ac_ext
18600 LIBS=$ac_func_search_save_LIBS
18602 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18603 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18604 ac_res=$ac_cv_search_dlopen
18605 if test "$ac_res" != no; then
18606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18612 for ac_header in dlfcn.h
18614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 ac_res=`eval echo '${'$as_ac_Header'}'`
18622 { echo "$as_me:$LINENO: result: $ac_res" >&5
18623 echo "${ECHO_T}$ac_res" >&6; }
18625 # Is the header compilable?
18626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18635 #include <$ac_header>
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_compile") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652 { (case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_try") 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_header_compiler=no
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18681 echo "${ECHO_T}$ac_header_compiler" >&6; }
18683 # Is the header present?
18684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18686 cat >conftest.$ac_ext <<_ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 #include <$ac_header>
18694 if { (ac_try="$ac_cpp conftest.$ac_ext"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } >/dev/null; then
18707 if test -s conftest.err; then
18708 ac_cpp_err=$ac_c_preproc_warn_flag
18709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18716 if test -z "$ac_cpp_err"; then
18717 ac_header_preproc=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_header_preproc=no
18725 rm -f conftest.err conftest.$ac_ext
18726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18727 echo "${ECHO_T}$ac_header_preproc" >&6; }
18729 # So? What about this header?
18730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18736 ac_header_preproc=yes
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18759 eval "$as_ac_Header=\$ac_header_preproc"
18761 ac_res=`eval echo '${'$as_ac_Header'}'`
18762 { echo "$as_me:$LINENO: result: $ac_res" >&5
18763 echo "${ECHO_T}$ac_res" >&6; }
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767 cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18776 libreplace_cv_dlfcn=no
18781 for ac_func in dlopen dlsym dlerror dlclose
18783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define $ac_func innocuous_$ac_func
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18829 return $ac_func ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 eval "$as_ac_var=yes"
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 eval "$as_ac_var=no"
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18888 libreplace_cv_dlfcn=yes
18893 if test x"${libreplace_cv_dlfcn}" = x"yes";then
18894 LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
18901 { echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18902 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
18903 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 SAVE_CPPFLAGS="$CPPFLAGS"
18908 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18916 #include "confdefs.h"
18917 #define _LIBREPLACE_REPLACE_H
18918 #define REPLACE_GETPASS 1
18919 #define main dont_declare_main
18920 #include "$libreplacedir/getpass.c"
18931 rm -f conftest.$ac_objext
18932 if { (ac_try="$ac_compile"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_compile") 2>conftest.er1
18940 grep -v '^ *+' conftest.er1 >conftest.err
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
18945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 samba_cv_REPLACE_GETPASS=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 samba_cv_REPLACE_GETPASS=no
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974 CPPFLAGS="$SAVE_CPPFLAGS"
18977 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18978 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
18979 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18981 cat >>confdefs.h <<\_ACEOF
18982 #define REPLACE_GETPASS 1
18985 LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
18992 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
18994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 ac_res=`eval echo '${'$as_ac_Header'}'`
19002 { echo "$as_me:$LINENO: result: $ac_res" >&5
19003 echo "${ECHO_T}$ac_res" >&6; }
19005 # Is the header compilable?
19006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 $ac_includes_default
19015 #include <$ac_header>
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_compile") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032 { (case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_try") 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest.$ac_objext'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_header_compiler=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_header_compiler=no
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19061 echo "${ECHO_T}$ac_header_compiler" >&6; }
19063 # Is the header present?
19064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19066 cat >conftest.$ac_ext <<_ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 #include <$ac_header>
19074 if { (ac_try="$ac_cpp conftest.$ac_ext"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } >/dev/null; then
19087 if test -s conftest.err; then
19088 ac_cpp_err=$ac_c_preproc_warn_flag
19089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19096 if test -z "$ac_cpp_err"; then
19097 ac_header_preproc=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_header_preproc=no
19105 rm -f conftest.err conftest.$ac_ext
19106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19107 echo "${ECHO_T}$ac_header_preproc" >&6; }
19109 # So? What about this header?
19110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19116 ac_header_preproc=yes
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 eval "$as_ac_Header=\$ac_header_preproc"
19141 ac_res=`eval echo '${'$as_ac_Header'}'`
19142 { echo "$as_me:$LINENO: result: $ac_res" >&5
19143 echo "${ECHO_T}$ac_res" >&6; }
19146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19156 #######################################
19157 # Check for mkdir mode
19158 { echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19159 echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
19160 if test "${ac_mkdir_has_mode+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 cat >conftest.$ac_ext <<_ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19171 #ifdef HAVE_DIRECT_H
19172 #include <direct.h>
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_mkdir_has_mode="yes"
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_mkdir_has_mode="no"
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 { echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
19230 echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
19232 if test "$ac_mkdir_has_mode" = "yes"
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_MKDIR_MODE 1
19242 for ac_func in timegm
19244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define $ac_func innocuous_$ac_func
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char $ac_func (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19266 # include <limits.h>
19268 # include <assert.h>
19273 /* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19280 /* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283 #if defined __stub_$ac_func || defined __stub___$ac_func
19290 return $ac_func ();
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
19309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19310 { (case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_try") 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_try") 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 eval "$as_ac_var=yes"
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 eval "$as_ac_var=no"
19337 rm -f core conftest.err conftest.$ac_objext \
19338 conftest$ac_exeext conftest.$ac_ext
19340 ac_res=`eval echo '${'$as_ac_var'}'`
19341 { echo "$as_me:$LINENO: result: $ac_res" >&5
19342 echo "${ECHO_T}$ac_res" >&6; }
19343 if test `eval echo '${'$as_ac_var'}'` = yes; then
19344 cat >>confdefs.h <<_ACEOF
19345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19349 LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
19354 { echo "$as_me:$LINENO: checking for broken readdir" >&5
19355 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
19356 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 if test "$cross_compiling" = yes; then
19361 libreplace_cv_READDIR_NEEDED="assuming not"
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 #define test_readdir_os2_delete main
19371 #include "$libreplacedir/test/os2_delete.c"
19373 rm -f conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 libreplace_cv_READDIR_NEEDED=no
19395 echo "$as_me: program exited with status $ac_status" >&5
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19399 ( exit $ac_status )
19400 libreplace_cv_READDIR_NEEDED=yes
19402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19408 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
19409 echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
19412 # try to replace with getdirentries() if needed
19414 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19416 for ac_func in getdirentries
19418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 cat >conftest.$ac_ext <<_ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19432 #define $ac_func innocuous_$ac_func
19434 /* System header to define __stub macros and hopefully few prototypes,
19435 which can conflict with char $ac_func (); below.
19436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19437 <limits.h> exists even on freestanding compilers. */
19440 # include <limits.h>
19442 # include <assert.h>
19447 /* Override any GCC internal prototype to avoid an error.
19448 Use char because int might match the return type of a GCC
19449 builtin and then its argument prototype would still apply. */
19454 /* The GNU C library defines this for functions which it implements
19455 to always fail with ENOSYS. Some functions are actually named
19456 something starting with __ and the normal name is an alias. */
19457 #if defined __stub_$ac_func || defined __stub___$ac_func
19464 return $ac_func ();
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest$ac_exeext'
19494 { (case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_try") 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 eval "$as_ac_var=yes"
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 eval "$as_ac_var=no"
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19514 ac_res=`eval echo '${'$as_ac_var'}'`
19515 { echo "$as_me:$LINENO: result: $ac_res" >&5
19516 echo "${ECHO_T}$ac_res" >&6; }
19517 if test `eval echo '${'$as_ac_var'}'` = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19525 { echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
19526 echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
19527 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 cat >conftest.$ac_ext <<_ACEOF
19532 $ac_includes_default
19534 #include <dirent.h>
19536 long telldir(const DIR *dir)
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; } &&
19568 { ac_try='test -s conftest.$ac_objext'
19569 { (case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_try") 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19579 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
19594 echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
19595 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define TELLDIR_TAKES_CONST_DIR 1
19607 { echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
19608 echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
19609 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 cat >conftest.$ac_ext <<_ACEOF
19614 $ac_includes_default
19616 #include <dirent.h>
19618 int seekdir(DIR *dir, long ofs)
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19661 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
19676 echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
19677 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define SEEKDIR_RETURNS_INT 1
19688 { echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
19689 echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
19690 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 if test "$cross_compiling" = yes; then
19695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19696 See \`config.log' for more details." >&5
19697 echo "$as_me: error: cannot run test program while cross compiling
19698 See \`config.log' for more details." >&2;}
19699 { (exit 1); exit 1; }; }
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 #define _LIBREPLACE_REPLACE_H
19709 #include "$libreplacedir/repdir_getdirentries.c"
19710 #define test_readdir_os2_delete main
19711 #include "$libreplacedir/test/os2_delete.c"
19713 rm -f conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 libreplace_cv_READDIR_GETDIRENTRIES=yes
19735 echo "$as_me: program exited with status $ac_status" >&5
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ( exit $ac_status )
19740 libreplace_cv_READDIR_GETDIRENTRIES=no
19742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19748 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
19749 echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
19751 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
19753 cat >>confdefs.h <<\_ACEOF
19754 #define REPLACE_READDIR 1
19758 cat >>confdefs.h <<\_ACEOF
19759 #define REPLACE_READDIR_GETDIRENTRIES 1
19762 LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
19763 libreplace_cv_READDIR_NEEDED=no
19767 # try to replace with getdents() if needed
19769 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19771 for ac_func in getdents
19773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19787 #define $ac_func innocuous_$ac_func
19789 /* System header to define __stub macros and hopefully few prototypes,
19790 which can conflict with char $ac_func (); below.
19791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19792 <limits.h> exists even on freestanding compilers. */
19795 # include <limits.h>
19797 # include <assert.h>
19802 /* Override any GCC internal prototype to avoid an error.
19803 Use char because int might match the return type of a GCC
19804 builtin and then its argument prototype would still apply. */
19809 /* The GNU C library defines this for functions which it implements
19810 to always fail with ENOSYS. Some functions are actually named
19811 something starting with __ and the normal name is an alias. */
19812 #if defined __stub_$ac_func || defined __stub___$ac_func
19819 return $ac_func ();
19824 rm -f conftest.$ac_objext conftest$ac_exeext
19825 if { (ac_try="$ac_link"
19826 case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_link") 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19839 { (case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_try") 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest$ac_exeext'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 eval "$as_ac_var=yes"
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 eval "$as_ac_var=no"
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19869 ac_res=`eval echo '${'$as_ac_var'}'`
19870 { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19872 if test `eval echo '${'$as_ac_var'}'` = yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19880 { echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
19881 echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
19882 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 if test "$cross_compiling" = yes; then
19887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19888 See \`config.log' for more details." >&5
19889 echo "$as_me: error: cannot run test program while cross compiling
19890 See \`config.log' for more details." >&2;}
19891 { (exit 1); exit 1; }; }
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19900 #define _LIBREPLACE_REPLACE_H
19901 #error _donot_use_getdents_replacement_anymore
19902 #include "$libreplacedir/repdir_getdents.c"
19903 #define test_readdir_os2_delete main
19904 #include "$libreplacedir/test/os2_delete.c"
19906 rm -f conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_link") 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917 { (case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_try") 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 libreplace_cv_READDIR_GETDENTS=yes
19928 echo "$as_me: program exited with status $ac_status" >&5
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ( exit $ac_status )
19933 libreplace_cv_READDIR_GETDENTS=no
19935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
19942 echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
19944 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
19946 cat >>confdefs.h <<\_ACEOF
19947 #define REPLACE_READDIR 1
19951 cat >>confdefs.h <<\_ACEOF
19952 #define REPLACE_READDIR_GETDENTS 1
19955 LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
19956 libreplace_cv_READDIR_NEEDED=no
19959 { echo "$as_me:$LINENO: checking a usable readdir()" >&5
19960 echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
19961 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19962 { echo "$as_me:$LINENO: result: no" >&5
19963 echo "${ECHO_T}no" >&6; }
19964 { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
19965 echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
19967 { echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6; }
19978 for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
19980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19994 #define $ac_func innocuous_$ac_func
19996 /* System header to define __stub macros and hopefully few prototypes,
19997 which can conflict with char $ac_func (); below.
19998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999 <limits.h> exists even on freestanding compilers. */
20002 # include <limits.h>
20004 # include <assert.h>
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20016 /* The GNU C library defines this for functions which it implements
20017 to always fail with ENOSYS. Some functions are actually named
20018 something starting with __ and the normal name is an alias. */
20019 #if defined __stub_$ac_func || defined __stub___$ac_func
20026 return $ac_func ();
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 eval "$as_ac_var=yes"
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 eval "$as_ac_var=no"
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20076 ac_res=`eval echo '${'$as_ac_var'}'`
20077 { echo "$as_me:$LINENO: result: $ac_res" >&5
20078 echo "${ECHO_T}$ac_res" >&6; }
20079 if test `eval echo '${'$as_ac_var'}'` = yes; then
20080 cat >>confdefs.h <<_ACEOF
20081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20085 { { echo "$as_me:$LINENO: error: Required function not found" >&5
20086 echo "$as_me: error: Required function not found" >&2;}
20087 { (exit 1); exit 1; }; }
20092 echo "LIBREPLACE_BROKEN_CHECKS: END"
20095 #LIBREPLACE_ALL_CHECKS: END"
20099 if test "$ac_cv_c_compiler_gnu" = yes; then
20100 CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
20103 ac_config_headers="$ac_config_headers config.h"
20109 tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
20110 for d in $tallocpaths; do
20111 if test -f "$d/talloc.c"; then
20117 if test x"$tallocdir" = "x"; then
20118 { { echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
20119 echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
20120 { (exit 1); exit 1; }; }
20122 TALLOCOBJ="talloc.o"
20125 { echo "$as_me:$LINENO: checking for size_t" >&5
20126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20127 if test "${ac_cv_type_size_t+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 typedef size_t ac__type_new_;
20141 if ((ac__type_new_ *) 0)
20143 if (sizeof (ac__type_new_))
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164 { (case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_try") 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_size_t=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_cv_type_size_t=no
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20194 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20196 { echo "$as_me:$LINENO: checking size of size_t" >&5
20197 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20198 if test "${ac_cv_sizeof_size_t+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 if test "$ac_cv_type_size_t" = yes; then
20202 # The cast to long int works around a bug in the HP C Compiler
20203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20205 # This bug is HP SR number 8606223364.
20206 if test "$cross_compiling" = yes; then
20207 # Depending upon the size, compute the lo and hi bounds.
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 $ac_includes_default
20215 typedef size_t ac__type_sizeof_;
20219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
20250 { ac_try='test -s conftest.$ac_objext'
20251 { (case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_try") 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20269 typedef size_t ac__type_sizeof_;
20273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20295 { (case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_try") 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest.$ac_objext'
20305 { (case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_try") 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_hi=$ac_mid; break
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_lo=`expr $ac_mid + 1`
20320 if test $ac_lo -le $ac_mid; then
20324 ac_mid=`expr 2 '*' $ac_mid + 1`
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 $ac_includes_default
20340 typedef size_t ac__type_sizeof_;
20344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20366 { (case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_try") 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 typedef size_t ac__type_sizeof_;
20398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_try") 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_lo=$ac_mid; break
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_hi=`expr '(' $ac_mid ')' - 1`
20445 if test $ac_mid -le $ac_hi; then
20449 ac_mid=`expr 2 '*' $ac_mid`
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 # Binary search between lo and hi bounds.
20466 while test "x$ac_lo" != "x$ac_hi"; do
20467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 typedef size_t ac__type_sizeof_;
20479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_try") 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_lo=`expr '(' $ac_mid ')' + 1`
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20533 See \`config.log' for more details." >&5
20534 echo "$as_me: error: cannot compute sizeof (size_t)
20535 See \`config.log' for more details." >&2;}
20536 { (exit 77); exit 77; }; } ;;
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 $ac_includes_default
20546 typedef size_t ac__type_sizeof_;
20547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20550 #include <stdlib.h>
20555 FILE *f = fopen ("conftest.val", "w");
20558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20560 long int i = longval ();
20561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20563 fprintf (f, "%ld\n", i);
20567 unsigned long int i = ulongval ();
20568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20570 fprintf (f, "%lu\n", i);
20572 return ferror (f) || fclose (f) != 0;
20578 rm -f conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20589 { (case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_try") 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 ac_cv_sizeof_size_t=`cat conftest.val`
20600 echo "$as_me: program exited with status $ac_status" >&5
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ( exit $ac_status )
20605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20606 See \`config.log' for more details." >&5
20607 echo "$as_me: error: cannot compute sizeof (size_t)
20608 See \`config.log' for more details." >&2;}
20609 { (exit 77); exit 77; }; }
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20615 ac_cv_sizeof_size_t=0
20618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20619 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20620 cat >>confdefs.h <<_ACEOF
20621 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20625 { echo "$as_me:$LINENO: checking for void *" >&5
20626 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20627 if test "${ac_cv_type_void_p+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20637 typedef void * ac__type_new_;
20641 if ((ac__type_new_ *) 0)
20643 if (sizeof (ac__type_new_))
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } &&
20663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; } &&
20673 { ac_try='test -s conftest.$ac_objext'
20674 { (case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_try") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_type_void_p=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_type_void_p=no
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20694 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20696 { echo "$as_me:$LINENO: checking size of void *" >&5
20697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20698 if test "${ac_cv_sizeof_void_p+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 if test "$ac_cv_type_void_p" = yes; then
20702 # The cast to long int works around a bug in the HP C Compiler
20703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20705 # This bug is HP SR number 8606223364.
20706 if test "$cross_compiling" = yes; then
20707 # Depending upon the size, compute the lo and hi bounds.
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 $ac_includes_default
20715 typedef void * ac__type_sizeof_;
20719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_try") 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 $ac_includes_default
20769 typedef void * ac__type_sizeof_;
20773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_try") 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_hi=$ac_mid; break
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_lo=`expr $ac_mid + 1`
20820 if test $ac_lo -le $ac_mid; then
20824 ac_mid=`expr 2 '*' $ac_mid + 1`
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 typedef void * ac__type_sizeof_;
20844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20866 { (case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_try") 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try='test -s conftest.$ac_objext'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 $ac_includes_default
20894 typedef void * ac__type_sizeof_;
20898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
20919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20920 { (case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_try") 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest.$ac_objext'
20930 { (case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_try") 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20939 ac_lo=$ac_mid; break
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_hi=`expr '(' $ac_mid ')' - 1`
20945 if test $ac_mid -le $ac_hi; then
20949 ac_mid=`expr 2 '*' $ac_mid`
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 # Binary search between lo and hi bounds.
20966 while test "x$ac_lo" != "x$ac_hi"; do
20967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20975 typedef void * ac__type_sizeof_;
20979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001 { (case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_try") 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest.$ac_objext'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_lo=`expr '(' $ac_mid ')' + 1`
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21032 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21033 See \`config.log' for more details." >&5
21034 echo "$as_me: error: cannot compute sizeof (void *)
21035 See \`config.log' for more details." >&2;}
21036 { (exit 77); exit 77; }; } ;;
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 $ac_includes_default
21046 typedef void * ac__type_sizeof_;
21047 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21048 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21050 #include <stdlib.h>
21055 FILE *f = fopen ("conftest.val", "w");
21058 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21060 long int i = longval ();
21061 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21063 fprintf (f, "%ld\n", i);
21067 unsigned long int i = ulongval ();
21068 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21070 fprintf (f, "%lu\n", i);
21072 return ferror (f) || fclose (f) != 0;
21078 rm -f conftest$ac_exeext
21079 if { (ac_try="$ac_link"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_link") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21089 { (case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_try") 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_sizeof_void_p=`cat conftest.val`
21100 echo "$as_me: program exited with status $ac_status" >&5
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ( exit $ac_status )
21105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21106 See \`config.log' for more details." >&5
21107 echo "$as_me: error: cannot compute sizeof (void *)
21108 See \`config.log' for more details." >&2;}
21109 { (exit 77); exit 77; }; }
21111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115 ac_cv_sizeof_void_p=0
21118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21119 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21120 cat >>confdefs.h <<_ACEOF
21121 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21126 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
21127 { echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
21128 echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
21130 echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
21132 echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
21134 echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
21135 { { echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
21136 echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
21137 { (exit 1); exit 1; }; }
21141 tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb"
21142 for d in $tdbpaths; do
21143 if test -f "$d/common/tdb.c"; then
21149 if test x"$tdbdir" = "x"; then
21150 { { echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
21151 echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
21152 { (exit 1); exit 1; }; }
21154 TDBOBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
21155 TDBOBJ="$TDBOBJ common/freelist.o common/io.o common/lock.o common/open.o"
21163 for ac_func in mmap pread pwrite getpagesize utime
21165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21179 #define $ac_func innocuous_$ac_func
21181 /* System header to define __stub macros and hopefully few prototypes,
21182 which can conflict with char $ac_func (); below.
21183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21184 <limits.h> exists even on freestanding compilers. */
21187 # include <limits.h>
21189 # include <assert.h>
21194 /* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21201 /* The GNU C library defines this for functions which it implements
21202 to always fail with ENOSYS. Some functions are actually named
21203 something starting with __ and the normal name is an alias. */
21204 #if defined __stub_$ac_func || defined __stub___$ac_func
21211 return $ac_func ();
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_link") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21231 { (case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_try") 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest$ac_exeext'
21241 { (case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_try") 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 eval "$as_ac_var=yes"
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 eval "$as_ac_var=no"
21258 rm -f core conftest.err conftest.$ac_objext \
21259 conftest$ac_exeext conftest.$ac_ext
21261 ac_res=`eval echo '${'$as_ac_var'}'`
21262 { echo "$as_me:$LINENO: result: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21264 if test `eval echo '${'$as_ac_var'}'` = yes; then
21265 cat >>confdefs.h <<_ACEOF
21266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21275 for ac_header in getopt.h sys/select.h sys/time.h
21277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 ac_res=`eval echo '${'$as_ac_Header'}'`
21285 { echo "$as_me:$LINENO: result: $ac_res" >&5
21286 echo "${ECHO_T}$ac_res" >&6; }
21288 # Is the header compilable?
21289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 $ac_includes_default
21298 #include <$ac_header>
21300 rm -f conftest.$ac_objext
21301 if { (ac_try="$ac_compile"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try='test -s conftest.$ac_objext'
21325 { (case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_try") 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_header_compiler=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_header_compiler=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21344 echo "${ECHO_T}$ac_header_compiler" >&6; }
21346 # Is the header present?
21347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <$ac_header>
21357 if { (ac_try="$ac_cpp conftest.$ac_ext"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } >/dev/null; then
21370 if test -s conftest.err; then
21371 ac_cpp_err=$ac_c_preproc_warn_flag
21372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21379 if test -z "$ac_cpp_err"; then
21380 ac_header_preproc=yes
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ac_header_preproc=no
21388 rm -f conftest.err conftest.$ac_ext
21389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21390 echo "${ECHO_T}$ac_header_preproc" >&6; }
21392 # So? What about this header?
21393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21399 ac_header_preproc=yes
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 eval "$as_ac_Header=\$ac_header_preproc"
21424 ac_res=`eval echo '${'$as_ac_Header'}'`
21425 { echo "$as_me:$LINENO: result: $ac_res" >&5
21426 echo "${ECHO_T}$ac_res" >&6; }
21429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21430 cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21440 { echo "$as_me:$LINENO: checking for pread declaration" >&5
21441 echo $ECHO_N "checking for pread declaration... $ECHO_C" >&6; }
21442 if test "${ac_cv_have_pread_decl+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <unistd.h>
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21476 { (case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_try") 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_try") 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 ac_cv_have_pread_decl=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_cv_have_pread_decl=no
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 { echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
21506 echo "${ECHO_T}$ac_cv_have_pread_decl" >&6; }
21507 if test x"$ac_cv_have_pread_decl" = x"yes"; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define HAVE_PREAD_DECL 1
21516 { echo "$as_me:$LINENO: checking for pwrite declaration" >&5
21517 echo $ECHO_N "checking for pwrite declaration... $ECHO_C" >&6; }
21518 if test "${ac_cv_have_pwrite_decl+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <unistd.h>
21532 int i = (int)pwrite
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_compile") 2>conftest.er1
21546 grep -v '^ *+' conftest.er1 >conftest.err
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21552 { (case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557 (eval "$ac_try") 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest.$ac_objext'
21562 { (case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_try") 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_have_pwrite_decl=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_have_pwrite_decl=no
21579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 { echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
21582 echo "${ECHO_T}$ac_cv_have_pwrite_decl" >&6; }
21583 if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
21585 cat >>confdefs.h <<\_ACEOF
21586 #define HAVE_PWRITE_DECL 1
21592 { echo "$as_me:$LINENO: checking for Python" >&5
21593 echo $ECHO_N "checking for Python... $ECHO_C" >&6; }
21598 # Check whether --with-python was given.
21599 if test "${with_python+set}" = set; then
21600 withval=$with_python; case "${withval-python}" in
21608 PYTHON=${withval-python}
21614 if test x"$PYTHON" != "x"; then
21615 incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[0], sys.version_info[1])'`
21616 CPPFLAGS="$CPPFLAGS -I $incdir"
21619 if test x"$PYTHON" != "x"; then
21620 { echo "$as_me:$LINENO: result: ${withval-python}" >&5
21621 echo "${ECHO_T}${withval-python}" >&6; }
21624 { echo "$as_me:$LINENO: result: no" >&5
21625 echo "${ECHO_T}no" >&6; }
21633 ac_config_files="$ac_config_files Makefile"
21635 cat >confcache <<\_ACEOF
21636 # This file is a shell script that caches the results of configure
21637 # tests run on this system so they can be shared between configure
21638 # scripts and configure runs, see configure's option --config-cache.
21639 # It is not useful on other systems. If it contains results you don't
21640 # want to keep, you may remove or edit it.
21642 # config.status only pays attention to the cache file if you give it
21643 # the --recheck option to rerun configure.
21645 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21646 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21647 # following values.
21651 # The following way of writing the cache mishandles newlines in values,
21652 # but we know of no workaround that is simple, portable, and efficient.
21653 # So, we kill variables containing newlines.
21654 # Ultrix sh set writes to stderr and can't be redirected directly,
21655 # and sets the high bit in the cache file unless we assign to the vars.
21657 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21658 eval ac_val=\$$ac_var
21662 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21666 _ | IFS | as_nl) ;; #(
21667 *) $as_unset $ac_var ;;
21673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21674 *${as_nl}ac_space=\ *)
21675 # `set' does not quote correctly, so add quotes (double-quote
21676 # substitution turns \\\\ into \\, and sed turns \\ into \).
21679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21682 # `set' quotes correctly as required by POSIX, so do not add quotes.
21683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21697 if test -w "$cache_file"; then
21698 test "x$cache_file" != "x/dev/null" &&
21699 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21700 echo "$as_me: updating cache $cache_file" >&6;}
21701 cat confcache >$cache_file
21703 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21704 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21710 # Let make expand exec_prefix.
21711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21713 DEFS=-DHAVE_CONFIG_H
21717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21718 # 1. Remove the extension, and $U if already installed.
21719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21720 ac_i=`echo "$ac_i" | sed "$ac_script"`
21721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21722 # will be set to the directory where LIBOBJS objects are built.
21723 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21724 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21726 LIBOBJS=$ac_libobjs
21728 LTLIBOBJS=$ac_ltlibobjs
21732 : ${CONFIG_STATUS=./config.status}
21733 ac_clean_files_save=$ac_clean_files
21734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21737 cat >$CONFIG_STATUS <<_ACEOF
21739 # Generated by $as_me.
21740 # Run this file to recreate the current configuration.
21741 # Compiler output produced by configure, useful for debugging
21742 # configure, is in config.log if it exists.
21745 ac_cs_recheck=false
21747 SHELL=\${CONFIG_SHELL-$SHELL}
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751 ## --------------------- ##
21752 ## M4sh Initialization. ##
21753 ## --------------------- ##
21755 # Be Bourne compatible
21756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21760 # is contrary to our usage. Disable this feature.
21761 alias -g '${1+"$@"}'='"$@"'
21762 setopt NO_GLOB_SUBST
21764 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21766 BIN_SH=xpg4; export BIN_SH # for Tru64
21767 DUALCASE=1; export DUALCASE # for MKS sh
21771 # Avoid depending upon Character Ranges.
21772 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21773 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21774 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21775 as_cr_digits='0123456789'
21776 as_cr_alnum=$as_cr_Letters$as_cr_digits
21778 # The user is always right.
21779 if test "${PATH_SEPARATOR+set}" != set; then
21780 echo "#! /bin/sh" >conf$$.sh
21781 echo "exit 0" >>conf$$.sh
21783 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21791 # Support unset when possible.
21792 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21800 # We need space, tab and new line, in precisely that order. Quoting is
21801 # there to prevent editors from complaining about space-tab.
21802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21803 # splitting by setting IFS to empty value.)
21808 # Find who we are. Look in the path if we contain no directory separator.
21810 *[\\/]* ) as_myself=$0 ;;
21811 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21815 test -z "$as_dir" && as_dir=.
21816 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21822 # We did not find ourselves, most probably we were run as `sh COMMAND'
21823 # in which case we are not to be found in the path.
21824 if test "x$as_myself" = x; then
21827 if test ! -f "$as_myself"; then
21828 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21829 { (exit 1); exit 1; }
21832 # Work around bugs in pre-3.0 UWIN ksh.
21833 for as_var in ENV MAIL MAILPATH
21834 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21842 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21843 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21844 LC_TELEPHONE LC_TIME
21846 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21847 eval $as_var=C; export $as_var
21849 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21853 # Required to use basename.
21854 if expr a : '\(a\)' >/dev/null 2>&1 &&
21855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21862 as_basename=basename
21868 # Name of the executable.
21869 as_me=`$as_basename -- "$0" ||
21870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21871 X"$0" : 'X\(//\)$' \| \
21872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21874 sed '/^.*\/\([^/][^/]*\)\/*$/{
21893 as_lineno_1=$LINENO
21894 as_lineno_2=$LINENO
21895 test "x$as_lineno_1" != "x$as_lineno_2" &&
21896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21899 # uniformly replaced by the line number. The first 'sed' inserts a
21900 # line-number line after each line using $LINENO; the second 'sed'
21901 # does the real work. The second script uses 'N' to pair each
21902 # line-number line with the line containing $LINENO, and appends
21903 # trailing '-' during substitution so that $LINENO is not a special
21904 # case at line end.
21905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21906 # scripts with optimization help from Paolo Bonzini. Blame Lee
21907 # E. McMahon (1931-1989) for sed's syntax. :-)
21919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21922 ' >$as_me.lineno &&
21923 chmod +x "$as_me.lineno" ||
21924 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21925 { (exit 1); exit 1; }; }
21927 # Don't try to exec as it changes $[0], causing all sort of problems
21928 # (the dirname of $[0] is not the place where we might find the
21929 # original and so on. Autoconf is especially sensitive to this).
21930 . "./$as_me.lineno"
21931 # Exit status is that of the last command.
21936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21942 ECHO_C= ECHO_N= ECHO_T=
21943 case `echo -n x` in
21945 case `echo 'x\c'` in
21946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21953 if expr a : '\(a\)' >/dev/null 2>&1 &&
21954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21960 rm -f conf$$ conf$$.exe conf$$.file
21961 if test -d conf$$.dir; then
21962 rm -f conf$$.dir/conf$$.file
21968 if ln -s conf$$.file conf$$ 2>/dev/null; then
21970 # ... but there are two gotchas:
21971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21973 # In both cases, we have to default to `cp -p'.
21974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21976 elif ln conf$$.file conf$$ 2>/dev/null; then
21981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21982 rmdir conf$$.dir 2>/dev/null
21984 if mkdir -p . 2>/dev/null; then
21987 test -d ./-p && rmdir ./-p
21991 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21992 # systems may use methods other than mode bits to determine executability.
21993 cat >conf$$.file <<_ASEOF
21997 chmod +x conf$$.file
21998 if test -x conf$$.file >/dev/null 2>&1; then
21999 as_executable_p="test -x"
22005 # Sed expression to map a string onto a valid CPP name.
22006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22008 # Sed expression to map a string onto a valid variable name.
22009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22014 # Save the log message, to keep $[0] and so on meaningful, and to
22015 # report actual input values of CONFIG_FILES etc. instead of their
22016 # values after options handling.
22018 This file was extended by $as_me, which was
22019 generated by GNU Autoconf 2.60. Invocation command line was
22021 CONFIG_FILES = $CONFIG_FILES
22022 CONFIG_HEADERS = $CONFIG_HEADERS
22023 CONFIG_LINKS = $CONFIG_LINKS
22024 CONFIG_COMMANDS = $CONFIG_COMMANDS
22027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22032 cat >>$CONFIG_STATUS <<_ACEOF
22033 # Files that config.status was made for.
22034 config_files="$ac_config_files"
22035 config_headers="$ac_config_headers"
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22041 \`$as_me' instantiates files from templates according to the
22042 current configuration.
22044 Usage: $0 [OPTIONS] [FILE]...
22046 -h, --help print this help, then exit
22047 -V, --version print version number, then exit
22048 -q, --quiet do not print progress messages
22049 -d, --debug don't remove temporary files
22050 --recheck update $as_me by reconfiguring in the same conditions
22051 --file=FILE[:TEMPLATE]
22052 instantiate the configuration file FILE
22053 --header=FILE[:TEMPLATE]
22054 instantiate the configuration header FILE
22056 Configuration files:
22059 Configuration headers:
22062 Report bugs to <bug-autoconf@gnu.org>."
22065 cat >>$CONFIG_STATUS <<_ACEOF
22068 configured by $0, generated by GNU Autoconf 2.60,
22069 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22071 Copyright (C) 2006 Free Software Foundation, Inc.
22072 This config.status script is free software; the Free Software Foundation
22073 gives unlimited permission to copy, distribute and modify it."
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 # If no file are specified by the user, then we need to provide default
22082 # value. By we need to know if files were specified by the user.
22088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22100 # Handling of the options.
22101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22104 echo "$ac_cs_version"; exit ;;
22105 --debug | --debu | --deb | --de | --d | -d )
22107 --file | --fil | --fi | --f )
22109 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22110 ac_need_defaults=false;;
22111 --header | --heade | --head | --hea )
22113 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22114 ac_need_defaults=false;;
22116 # Conflict between --help and --header
22117 { echo "$as_me: error: ambiguous option: $1
22118 Try \`$0 --help' for more information." >&2
22119 { (exit 1); exit 1; }; };;
22120 --help | --hel | -h )
22121 echo "$ac_cs_usage"; exit ;;
22122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22126 # This is an error.
22127 -*) { echo "$as_me: error: unrecognized option: $1
22128 Try \`$0 --help' for more information." >&2
22129 { (exit 1); exit 1; }; } ;;
22131 *) ac_config_targets="$ac_config_targets $1"
22132 ac_need_defaults=false ;;
22138 ac_configure_extra_args=
22140 if $ac_cs_silent; then
22142 ac_configure_extra_args="$ac_configure_extra_args --silent"
22146 cat >>$CONFIG_STATUS <<_ACEOF
22147 if \$ac_cs_recheck; then
22148 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22149 CONFIG_SHELL=$SHELL
22150 export CONFIG_SHELL
22151 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22155 cat >>$CONFIG_STATUS <<\_ACEOF
22159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22160 ## Running $as_me. ##
22166 cat >>$CONFIG_STATUS <<_ACEOF
22169 cat >>$CONFIG_STATUS <<\_ACEOF
22171 # Handling of arguments.
22172 for ac_config_target in $ac_config_targets
22174 case $ac_config_target in
22175 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22176 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22180 { (exit 1); exit 1; }; };;
22185 # If the user did not use the arguments to specify the items to instantiate,
22186 # then the envvar interface is used. Set only those that are not.
22187 # We use the long form for the default assignment because of an extremely
22188 # bizarre bug on SunOS 4.1.3.
22189 if $ac_need_defaults; then
22190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22194 # Have a temporary directory for convenience. Make it in the build tree
22195 # simply because there is no reason against having it here, and in addition,
22196 # creating and moving files from /tmp can sometimes cause problems.
22197 # Hook for its removal unless debugging.
22198 # Note that there is a small window in which the directory will not be cleaned:
22199 # after its creation but before its name has been assigned to `$tmp'.
22203 trap 'exit_status=$?
22204 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22206 trap '{ (exit 1); exit 1; }' 1 2 13 15
22208 # Create a (secure) tmp directory for tmp files.
22211 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22212 test -n "$tmp" && test -d "$tmp"
22215 tmp=./conf$$-$RANDOM
22216 (umask 077 && mkdir "$tmp")
22219 echo "$me: cannot create a temporary directory in ." >&2
22220 { (exit 1); exit 1; }
22224 # Set up the sed scripts for CONFIG_FILES section.
22227 # No need to generate the scripts if there are no CONFIG_FILES.
22228 # This happens for instance when ./config.status config.h
22229 if test -n "$CONFIG_FILES"; then
22236 for ac_last_try in false false false false false :; do
22237 cat >conf$$subs.sed <<_ACEOF
22238 SHELL!$SHELL$ac_delim
22239 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22240 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22241 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22242 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22243 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22244 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22245 exec_prefix!$exec_prefix$ac_delim
22246 prefix!$prefix$ac_delim
22247 program_transform_name!$program_transform_name$ac_delim
22248 bindir!$bindir$ac_delim
22249 sbindir!$sbindir$ac_delim
22250 libexecdir!$libexecdir$ac_delim
22251 datarootdir!$datarootdir$ac_delim
22252 datadir!$datadir$ac_delim
22253 sysconfdir!$sysconfdir$ac_delim
22254 sharedstatedir!$sharedstatedir$ac_delim
22255 localstatedir!$localstatedir$ac_delim
22256 includedir!$includedir$ac_delim
22257 oldincludedir!$oldincludedir$ac_delim
22258 docdir!$docdir$ac_delim
22259 infodir!$infodir$ac_delim
22260 htmldir!$htmldir$ac_delim
22261 dvidir!$dvidir$ac_delim
22262 pdfdir!$pdfdir$ac_delim
22263 psdir!$psdir$ac_delim
22264 libdir!$libdir$ac_delim
22265 localedir!$localedir$ac_delim
22266 mandir!$mandir$ac_delim
22267 DEFS!$DEFS$ac_delim
22268 ECHO_C!$ECHO_C$ac_delim
22269 ECHO_N!$ECHO_N$ac_delim
22270 ECHO_T!$ECHO_T$ac_delim
22271 LIBS!$LIBS$ac_delim
22272 build_alias!$build_alias$ac_delim
22273 host_alias!$host_alias$ac_delim
22274 target_alias!$target_alias$ac_delim
22275 libreplacedir!$libreplacedir$ac_delim
22276 LIBREPLACEOBJ!$LIBREPLACEOBJ$ac_delim
22277 build!$build$ac_delim
22278 build_cpu!$build_cpu$ac_delim
22279 build_vendor!$build_vendor$ac_delim
22280 build_os!$build_os$ac_delim
22281 host!$host$ac_delim
22282 host_cpu!$host_cpu$ac_delim
22283 host_vendor!$host_vendor$ac_delim
22284 host_os!$host_os$ac_delim
22285 target!$target$ac_delim
22286 target_cpu!$target_cpu$ac_delim
22287 target_vendor!$target_vendor$ac_delim
22288 target_os!$target_os$ac_delim
22290 CFLAGS!$CFLAGS$ac_delim
22291 LDFLAGS!$LDFLAGS$ac_delim
22292 CPPFLAGS!$CPPFLAGS$ac_delim
22293 ac_ct_CC!$ac_ct_CC$ac_delim
22294 EXEEXT!$EXEEXT$ac_delim
22295 OBJEXT!$OBJEXT$ac_delim
22297 GREP!$GREP$ac_delim
22298 EGREP!$EGREP$ac_delim
22299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22301 INSTALL_DATA!$INSTALL_DATA$ac_delim
22302 libreplace_cv_immediate_structures!$libreplace_cv_immediate_structures$ac_delim
22303 LIBOBJS!$LIBOBJS$ac_delim
22304 precompiled_headers!$precompiled_headers$ac_delim
22305 LIBDL!$LIBDL$ac_delim
22306 tallocdir!$tallocdir$ac_delim
22307 TALLOCOBJ!$TALLOCOBJ$ac_delim
22308 tdbdir!$tdbdir$ac_delim
22309 TDBOBJ!$TDBOBJ$ac_delim
22310 PYTHON!$PYTHON$ac_delim
22311 EXTRA_OBJ!$EXTRA_OBJ$ac_delim
22312 LTLIBOBJS!$LTLIBOBJS$ac_delim
22315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
22317 elif $ac_last_try; then
22318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22320 { (exit 1); exit 1; }; }
22322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22327 if test -n "$ac_eof"; then
22328 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22329 ac_eof=`expr $ac_eof + 1`
22332 cat >>$CONFIG_STATUS <<_ACEOF
22333 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22338 s/^/s,@/; s/!/@,|#_!!_#|/
22341 s/'"$ac_delim"'$/,g/; t
22343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22344 ' >>$CONFIG_STATUS <conf$$subs.sed
22345 rm -f conf$$subs.sed
22346 cat >>$CONFIG_STATUS <<_ACEOF
22353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22355 # trailing colons and then remove the whole line if VPATH becomes empty
22356 # (actually we leave an empty line to preserve line numbers).
22357 if test "x$srcdir" = x.; then
22358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22359 s/:*\$(srcdir):*/:/
22360 s/:*\${srcdir}:*/:/
22362 s/^\([^=]*=[ ]*\):*/\1/
22368 cat >>$CONFIG_STATUS <<\_ACEOF
22369 fi # test -n "$CONFIG_FILES"
22372 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
22375 :[FHLC]) ac_mode=$ac_tag; continue;;
22377 case $ac_mode$ac_tag in
22379 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22380 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22381 { (exit 1); exit 1; }; };;
22382 :[FH]-) ac_tag=-:-;;
22383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22400 -) ac_f="$tmp/stdin";;
22401 *) # Look for the file first in the build tree, then in the source tree
22402 # (if the path is not absolute). The absolute path cannot be DOS-style,
22403 # because $ac_f cannot contain `:'.
22407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22409 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22410 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22411 { (exit 1); exit 1; }; };;
22413 ac_file_inputs="$ac_file_inputs $ac_f"
22416 # Let's still pretend it is `configure' which instantiates (i.e., don't
22417 # use $as_me), people would be surprised to read:
22418 # /* config.h. Generated by config.status. */
22419 configure_input="Generated from "`IFS=:
22420 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22421 if test x"$ac_file" != x-; then
22422 configure_input="$ac_file. $configure_input"
22423 { echo "$as_me:$LINENO: creating $ac_file" >&5
22424 echo "$as_me: creating $ac_file" >&6;}
22428 *:-:* | *:-) cat >"$tmp/stdin";;
22433 ac_dir=`$as_dirname -- "$ac_file" ||
22434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22435 X"$ac_file" : 'X\(//\)[^/]' \| \
22436 X"$ac_file" : 'X\(//\)$' \| \
22437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22443 /^X\(\/\/\)[^/].*/{
22458 -*) as_dir=./$as_dir;;
22460 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22464 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22465 *) as_qdir=$as_dir;;
22467 as_dirs="'$as_qdir' $as_dirs"
22468 as_dir=`$as_dirname -- "$as_dir" ||
22469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470 X"$as_dir" : 'X\(//\)[^/]' \| \
22471 X"$as_dir" : 'X\(//\)$' \| \
22472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22478 /^X\(\/\/\)[^/].*/{
22491 test -d "$as_dir" && break
22493 test -z "$as_dirs" || eval "mkdir $as_dirs"
22494 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22495 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22496 { (exit 1); exit 1; }; }; }
22500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22503 # A ".." for each directory in $ac_dir_suffix.
22504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22505 case $ac_top_builddir_sub in
22506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22510 ac_abs_top_builddir=$ac_pwd
22511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22512 # for backward compatibility:
22513 ac_top_builddir=$ac_top_build_prefix
22516 .) # We are building in place.
22518 ac_top_srcdir=$ac_top_builddir_sub
22519 ac_abs_top_srcdir=$ac_pwd ;;
22520 [\\/]* | ?:[\\/]* ) # Absolute name.
22521 ac_srcdir=$srcdir$ac_dir_suffix;
22522 ac_top_srcdir=$srcdir
22523 ac_abs_top_srcdir=$srcdir ;;
22524 *) # Relative name.
22525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22526 ac_top_srcdir=$ac_top_build_prefix$srcdir
22527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22545 # If the template does not know about datarootdir, expand it.
22546 # FIXME: This hack should be removed a few years after 2.60.
22547 ac_datarootdir_hack=; ac_datarootdir_seen=
22549 case `sed -n '/datarootdir/ {
22558 ' $ac_file_inputs` in
22559 *datarootdir*) ac_datarootdir_seen=yes;;
22560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22561 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22562 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22564 cat >>$CONFIG_STATUS <<_ACEOF
22565 ac_datarootdir_hack='
22566 s&@datadir@&$datadir&g
22567 s&@docdir@&$docdir&g
22568 s&@infodir@&$infodir&g
22569 s&@localedir@&$localedir&g
22570 s&@mandir@&$mandir&g
22571 s&\\\${datarootdir}&$datarootdir&g' ;;
22575 # Neutralize VPATH when `$srcdir' = `.'.
22576 # Shell code in configure.ac might set extrasub.
22577 # FIXME: do we really want to maintain this feature?
22578 cat >>$CONFIG_STATUS <<_ACEOF
22582 cat >>$CONFIG_STATUS <<\_ACEOF
22584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22585 s&@configure_input@&$configure_input&;t t
22586 s&@top_builddir@&$ac_top_builddir_sub&;t t
22587 s&@srcdir@&$ac_srcdir&;t t
22588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22589 s&@top_srcdir@&$ac_top_srcdir&;t t
22590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22591 s&@builddir@&$ac_builddir&;t t
22592 s&@abs_builddir@&$ac_abs_builddir&;t t
22593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22594 s&@INSTALL@&$ac_INSTALL&;t t
22595 $ac_datarootdir_hack
22596 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22599 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22601 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22602 which seems to be undefined. Please make sure it is defined." >&5
22603 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22604 which seems to be undefined. Please make sure it is defined." >&2;}
22608 -) cat "$tmp/out"; rm -f "$tmp/out";;
22609 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22618 # Transform confdefs.h into a sed script `conftest.defines', that
22619 # substitutes the proper values into config.h.in to produce config.h.
22620 rm -f conftest.defines conftest.tail
22621 # First, append a space to every undef/define line, to ease matching.
22622 echo 's/$/ /' >conftest.defines
22623 # Then, protect against being on the right side of a sed subst, or in
22624 # an unquoted here document, in config.status. If some macros were
22625 # called several times there might be several #defines for the same
22626 # symbol, which is useless. But do not sort them, since the last
22627 # AC_DEFINE must be honored.
22628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22629 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22630 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22631 # PARAMS is the parameter list in the macro definition--in most cases, it's
22632 # just an empty string.
22633 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22634 ac_dB='\\)[ (].*,\\1define\\2'
22642 s/^[ ]*#[ ]*define[ ][ ]*//
22647 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22648 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22649 ' >>conftest.defines
22651 # Remove the space that was appended to ease matching.
22652 # Then replace #undef with comments. This is necessary, for
22653 # example, in the case of _POSIX_SOURCE, which is predefined and required
22654 # on some systems where configure will not decide to define it.
22655 # (The regexp can be short, since the line contains either #define or #undef.)
22657 s,^[ #]*u.*,/* & */,' >>conftest.defines
22659 # Break up conftest.defines:
22660 ac_max_sed_lines=50
22662 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22663 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22664 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22666 ac_in='$ac_file_inputs'
22667 ac_out='"$tmp/out1"'
22668 ac_nxt='"$tmp/out2"'
22672 # Write a here document:
22673 cat >>$CONFIG_STATUS <<_ACEOF
22674 # First, check the format of the line:
22675 cat >"\$tmp/defines.sed" <<\\CEOF
22676 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22677 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22681 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22683 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22684 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22685 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22686 grep . conftest.tail >/dev/null || break
22687 rm -f conftest.defines
22688 mv conftest.tail conftest.defines
22690 rm -f conftest.defines conftest.tail
22692 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22693 cat >>$CONFIG_STATUS <<\_ACEOF
22694 if test x"$ac_file" != x-; then
22695 echo "/* $configure_input */" >"$tmp/config.h"
22696 cat "$ac_result" >>"$tmp/config.h"
22697 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22699 echo "$as_me: $ac_file is unchanged" >&6;}
22702 mv "$tmp/config.h" $ac_file
22705 echo "/* $configure_input */"
22717 { (exit 0); exit 0; }
22719 chmod +x $CONFIG_STATUS
22720 ac_clean_files=$ac_clean_files_save
22723 # configure is writing to config.log, and then calls config.status.
22724 # config.status does its own redirection, appending to config.log.
22725 # Unfortunately, on DOS this fails, as config.log is still kept open
22726 # by configure, so config.status won't be able to write to it; its
22727 # output is simply discarded. So we exec the FD to /dev/null,
22728 # effectively closing config.log, so it can be properly (re)opened and
22729 # appended to by config.status. When coming back to configure, we
22730 # need to make the FD available again.
22731 if test "$no_create" != yes; then
22733 ac_config_status_args=
22734 test "$silent" = yes &&
22735 ac_config_status_args="$ac_config_status_args --quiet"
22737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22740 # would make configure fail if this is the last instruction.
22741 $ac_cs_success || { (exit 1); exit 1; }