2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a.
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_daemon.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_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.60a
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.60a. 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=
2325 { echo "$as_me:$LINENO: result: $ac_file" >&5
2326 echo "${ECHO_T}$ac_file" >&6; }
2327 if test -z "$ac_file"; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&2;}
2335 { (exit 77); exit 77; }; }
2338 ac_exeext=$ac_cv_exeext
2340 # Check that the compiler produces executables we can run. If not, either
2341 # the compiler is broken, or we cross compile.
2342 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2343 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2344 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2345 # If not cross compiling, check that we can run a simple program.
2346 if test "$cross_compiling" != yes; then
2347 if { ac_try='./$ac_file'
2348 { (case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_try") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 if test "$cross_compiling" = maybe; then
2362 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2372 { echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6; }
2375 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2376 ac_clean_files=$ac_clean_files_save
2377 # Check that the compiler produces executables we can run. If not, either
2378 # the compiler is broken, or we cross compile.
2379 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2381 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382 echo "${ECHO_T}$cross_compiling" >&6; }
2384 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2386 if { (ac_try="$ac_link"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_link") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2397 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2398 # work properly (i.e., refer to `conftest.exe'), while it won't with
2400 for ac_file in conftest.exe conftest conftest.*; do
2401 test -f "$ac_file" || continue
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest$ac_cv_exeext
2418 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2419 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2421 rm -f conftest.$ac_ext
2422 EXEEXT=$ac_cv_exeext
2424 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2425 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2426 if test "${ac_cv_objext+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 rm -f conftest.o conftest.obj
2445 if { (ac_try="$ac_compile"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compile") 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file in conftest.o conftest.obj conftest.*; do
2456 test -f "$ac_file" || continue;
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2476 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477 echo "${ECHO_T}$ac_cv_objext" >&6; }
2478 OBJEXT=$ac_cv_objext
2480 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2503 rm -f conftest.$ac_objext
2504 if { (ac_try="$ac_compile"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2512 grep -v '^ *+' conftest.er1 >conftest.err
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_try") 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compile") 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2648 { (case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_try") 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_try") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_c_werror_flag=$ac_save_c_werror_flag
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_try") 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_c_werror_flag=$ac_save_c_werror_flag
2740 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2741 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2742 if test "$ac_test_CFLAGS" = set; then
2743 CFLAGS=$ac_save_CFLAGS
2744 elif test $ac_cv_prog_cc_g = yes; then
2745 if test "$GCC" = yes; then
2751 if test "$GCC" = yes; then
2757 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2758 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2759 if test "${ac_cv_prog_cc_c89+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 ac_cv_prog_cc_c89=no
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2772 #include <sys/types.h>
2773 #include <sys/stat.h>
2774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2775 struct buf { int x; };
2776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2777 static char *e (p, i)
2783 static char *f (char * (*g) (char **, int), char **p, ...)
2788 s = g (p, va_arg (v,int));
2793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2794 function prototypes and stuff, but not '\xHH' hex character constants.
2795 These don't provoke an error unfortunately, instead are silently treated
2796 as 'x'. The following induces an error, until -std is added to get
2797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2798 array size at least. It's necessary to write '\x00'==0 to get something
2799 that's true only with -std. */
2800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2803 inside strings and character constants. */
2805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2824 CC="$ac_save_CC $ac_arg"
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_prog_cc_c89=$ac_arg
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f core conftest.err conftest.$ac_objext
2868 test "x$ac_cv_prog_cc_c89" != "xno" && break
2870 rm -f conftest.$ac_ext
2875 case "x$ac_cv_prog_cc_c89" in
2877 { echo "$as_me:$LINENO: result: none needed" >&5
2878 echo "${ECHO_T}none needed" >&6; } ;;
2880 { echo "$as_me:$LINENO: result: unsupported" >&5
2881 echo "${ECHO_T}unsupported" >&6; } ;;
2883 CC="$CC $ac_cv_prog_cc_c89"
2884 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897 if test x"$GCC" != x"yes" ; then
2898 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2899 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_cc_c99+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 ac_cv_prog_cc_c99=no
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2912 #include <stdbool.h>
2917 struct incomplete_array
2925 const wchar_t *name;
2929 typedef const char *ccp;
2932 test_restrict(ccp restrict text)
2934 // See if C++-style comments work.
2935 // Iterate through items via the restricted pointer.
2936 // Also check for declarations in for loops.
2937 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2942 // Check varargs and va_copy work.
2944 test_varargs(const char *format, ...)
2947 va_start(args, format);
2949 va_copy(args_copy, args);
2960 str = va_arg(args_copy, const char *);
2963 number = va_arg(args_copy, int);
2966 fnumber = (float) va_arg(args_copy, double);
2980 // Check bool and long long datatypes.
2981 _Bool success = false;
2982 long long int bignum = -1234567890LL;
2983 unsigned long long int ubignum = 1234567890uLL;
2986 if (test_restrict("String literal") != 0)
2988 char *restrict newvar = "Another string";
2991 test_varargs("s, d' f .", "string", 65, 34.234);
2993 // Check incomplete arrays work.
2994 struct incomplete_array *ia =
2995 malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
2997 for (int i = 0; i < ia->datasize; ++i)
2998 ia->data[i] = (double) i * 1.234;
3000 // Check named initialisers.
3001 struct named_init ni = {
3003 .name = L"Test wide string",
3004 .average = 543.34343,
3009 int dynamic_array[ni.number];
3010 dynamic_array[43] = 543;
3012 // work around unused variable warnings
3013 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
3019 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3021 CC="$ac_save_CC $ac_arg"
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cc_c99=$ac_arg
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c99" != "xno" && break
3067 rm -f conftest.$ac_ext
3072 case "x$ac_cv_prog_cc_c99" in
3074 { echo "$as_me:$LINENO: result: none needed" >&5
3075 echo "${ECHO_T}none needed" >&6; } ;;
3077 { echo "$as_me:$LINENO: result: unsupported" >&5
3078 echo "${ECHO_T}unsupported" >&6; } ;;
3080 CC="$CC $ac_cv_prog_cc_c99"
3081 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3082 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3089 if test x"$GCC" = x"yes" ; then
3090 { echo "$as_me:$LINENO: checking for version of gcc" >&5
3091 echo $ECHO_N "checking for version of gcc... $ECHO_C" >&6; }
3092 GCC_VERSION=`$CC -dumpversion`
3093 { echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3094 echo "${ECHO_T}${GCC_VERSION}" >&6; }
3097 cat >>confdefs.h <<\_ACEOF
3098 #define _GNU_SOURCE 1
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3114 if test -z "$CPP"; then
3115 if test "${ac_cv_prog_CPP+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 # Double quotes because CPP needs to be expanded
3119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 for ac_c_preproc_warn_flag in '' yes
3124 # Use a header file that comes with gcc, so configuring glibc
3125 # with a fresh cross-compiler works.
3126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127 # <limits.h> exists even on freestanding compilers.
3128 # On the NeXT, cc -E runs the code through the compiler's parser,
3129 # not just through cpp. "Syntax error" is here to catch this case.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3137 # include <limits.h>
3139 # include <assert.h>
3143 if { (ac_try="$ac_cpp conftest.$ac_ext"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } >/dev/null; then
3156 if test -s conftest.err; then
3157 ac_cpp_err=$ac_c_preproc_warn_flag
3158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165 if test -z "$ac_cpp_err"; then
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 # Broken: fails on valid input.
3175 rm -f conftest.err conftest.$ac_ext
3177 # OK, works on sane cases. Now check whether nonexistent headers
3178 # can be detected and how.
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #include <ac_nonexistent.h>
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209 if test -z "$ac_cpp_err"; then
3210 # Broken: success on invalid input.
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 # Passes both tests.
3221 rm -f conftest.err conftest.$ac_ext
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3238 { echo "$as_me:$LINENO: result: $CPP" >&5
3239 echo "${ECHO_T}$CPP" >&6; }
3241 for ac_c_preproc_warn_flag in '' yes
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 # include <limits.h>
3258 # include <assert.h>
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3284 if test -z "$ac_cpp_err"; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 # Broken: fails on valid input.
3294 rm -f conftest.err conftest.$ac_ext
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 if test -z "$ac_cpp_err"; then
3329 # Broken: success on invalid input.
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 # Passes both tests.
3340 rm -f conftest.err conftest.$ac_ext
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3351 See \`config.log' for more details." >&2;}
3352 { (exit 1); exit 1; }; }
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3363 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3364 if test "${ac_cv_path_GREP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 # Extract the first word of "grep ggrep" to use in msg output
3368 if test -z "$GREP"; then
3369 set dummy grep ggrep; ac_prog_name=$2
3370 if test "${ac_cv_path_GREP+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 ac_path_GREP_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in grep ggrep; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3384 # Check for GNU ac_path_GREP and select it if it is found.
3385 # Check for GNU $ac_path_GREP
3386 case `"$ac_path_GREP" --version 2>&1` in
3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 echo 'GREP' >> "conftest.nl"
3398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 ac_count=`expr $ac_count + 1`
3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_GREP="$ac_path_GREP"
3404 ac_path_GREP_max=$ac_count
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413 $ac_path_GREP_found && break 3
3423 GREP="$ac_cv_path_GREP"
3424 if test -z "$GREP"; then
3425 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3426 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3427 { (exit 1); exit 1; }; }
3431 ac_cv_path_GREP=$GREP
3436 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3437 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3438 GREP="$ac_cv_path_GREP"
3441 { echo "$as_me:$LINENO: checking for egrep" >&5
3442 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3443 if test "${ac_cv_path_EGREP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3447 then ac_cv_path_EGREP="$GREP -E"
3449 # Extract the first word of "egrep" to use in msg output
3450 if test -z "$EGREP"; then
3451 set dummy egrep; ac_prog_name=$2
3452 if test "${ac_cv_path_EGREP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_path_EGREP_found=false
3456 # Loop through the user's path and test for each of PROGNAME-LIST
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3461 test -z "$as_dir" && as_dir=.
3462 for ac_prog in egrep; do
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3465 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3466 # Check for GNU ac_path_EGREP and select it if it is found.
3467 # Check for GNU $ac_path_EGREP
3468 case `"$ac_path_EGREP" --version 2>&1` in
3470 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3473 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3476 cat "conftest.in" "conftest.in" >"conftest.tmp"
3477 mv "conftest.tmp" "conftest.in"
3478 cp "conftest.in" "conftest.nl"
3479 echo 'EGREP' >> "conftest.nl"
3480 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3482 ac_count=`expr $ac_count + 1`
3483 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3484 # Best one so far, save it but keep looking for a better one
3485 ac_cv_path_EGREP="$ac_path_EGREP"
3486 ac_path_EGREP_max=$ac_count
3488 # 10*(2^10) chars as input seems more than enough
3489 test $ac_count -gt 10 && break
3491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3495 $ac_path_EGREP_found && break 3
3505 EGREP="$ac_cv_path_EGREP"
3506 if test -z "$EGREP"; then
3507 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3508 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3509 { (exit 1); exit 1; }; }
3513 ac_cv_path_EGREP=$EGREP
3519 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3520 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3521 EGREP="$ac_cv_path_EGREP"
3525 { echo "$as_me:$LINENO: checking for AIX" >&5
3526 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "yes" >/dev/null 2>&1; then
3540 { echo "$as_me:$LINENO: result: yes" >&5
3541 echo "${ECHO_T}yes" >&6; }
3542 cat >>confdefs.h <<\_ACEOF
3543 #define _ALL_SOURCE 1
3547 { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3553 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3554 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3555 if test "${ac_cv_header_stdc+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compile") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592 { (case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_try") 2>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_header_stdc=yes
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_header_stdc=no
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then
3636 ac_cv_header_stdc=no
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then
3657 ac_cv_header_stdc=no
3663 if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3676 #if ((' ' & 0x0FF) == 0x020)
3677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3680 # define ISLOWER(c) \
3681 (('a' <= (c) && (c) <= 'i') \
3682 || ('j' <= (c) && (c) <= 'r') \
3683 || ('s' <= (c) && (c) <= 'z'))
3684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3692 for (i = 0; i < 256; i++)
3693 if (XOR (islower (i), ISLOWER (i))
3694 || toupper (i) != TOUPPER (i))
3699 rm -f conftest$ac_exeext
3700 if { (ac_try="$ac_link"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_link") 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710 { (case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_try") 2>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3721 echo "$as_me: program exited with status $ac_status" >&5
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3726 ac_cv_header_stdc=no
3728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3734 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3735 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3736 if test $ac_cv_header_stdc = yes; then
3738 cat >>confdefs.h <<\_ACEOF
3739 #define STDC_HEADERS 1
3744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3755 inttypes.h stdint.h unistd.h
3757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 $ac_includes_default
3771 #include <$ac_header>
3773 rm -f conftest.$ac_objext
3774 if { (ac_try="$ac_compile"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_compile") 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3788 { (case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_try") 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest.$ac_objext'
3798 { (case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_try") 2>&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 eval "$as_ac_Header=yes"
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 eval "$as_ac_Header=no"
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_res=`eval echo '${'$as_ac_Header'}'`
3818 { echo "$as_me:$LINENO: result: $ac_res" >&5
3819 echo "${ECHO_T}$ac_res" >&6; }
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830 if test "${ac_cv_header_minix_config_h+set}" = set; then
3831 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3832 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3833 if test "${ac_cv_header_minix_config_h+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3837 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3839 # Is the header compilable?
3840 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3841 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3849 #include <minix/config.h>
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_header_compiler=yes
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 ac_header_compiler=no
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3895 echo "${ECHO_T}$ac_header_compiler" >&6; }
3897 # Is the header present?
3898 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3899 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <minix/config.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3930 if test -z "$ac_cpp_err"; then
3931 ac_header_preproc=yes
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 ac_header_preproc=no
3939 rm -f conftest.err conftest.$ac_ext
3940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3941 echo "${ECHO_T}$ac_header_preproc" >&6; }
3943 # So? What about this header?
3944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3946 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3947 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3949 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3950 ac_header_preproc=yes
3953 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3954 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3956 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3957 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3958 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3959 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3960 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3961 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3962 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3963 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3964 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3968 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3969 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3970 if test "${ac_cv_header_minix_config_h+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_cv_header_minix_config_h=$ac_header_preproc
3975 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3976 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3979 if test $ac_cv_header_minix_config_h = yes; then
3986 if test "$MINIX" = yes; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define _POSIX_SOURCE 1
3993 cat >>confdefs.h <<\_ACEOF
3994 #define _POSIX_1_SOURCE 2
3998 cat >>confdefs.h <<\_ACEOF
4014 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4015 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4016 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4026 # define __EXTENSIONS__ 1
4027 $ac_includes_default
4036 rm -f conftest.$ac_objext
4037 if { (ac_try="$ac_compile"
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_compile") 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4051 { (case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_try") 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_cv_safe_to_define___extensions__=yes
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_cv_safe_to_define___extensions__=no
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4081 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4082 test $ac_cv_safe_to_define___extensions__ = yes &&
4083 cat >>confdefs.h <<\_ACEOF
4084 #define __EXTENSIONS__ 1
4087 cat >>confdefs.h <<\_ACEOF
4088 #define _POSIX_PTHREAD_SEMANTICS 1
4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094 if test "${ac_cv_c_bigendian+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 # See if sys/param.h defines the BYTE_ORDER macro.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <sys/types.h>
4105 #include <sys/param.h>
4110 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4111 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_compile") 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_try") 2>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 # It does; now see whether it defined to BIG_ENDIAN or not.
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <sys/types.h>
4161 #include <sys/param.h>
4166 #if BYTE_ORDER != BIG_ENDIAN
4174 rm -f conftest.$ac_objext
4175 if { (ac_try="$ac_compile"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4189 { (case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_try") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest.$ac_objext'
4199 { (case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_try") 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_c_bigendian=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_c_bigendian=no
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # It does not; compile a test program.
4222 if test "$cross_compiling" = yes; then
4223 # try to guess the endianness by grepping values into an object file
4224 ac_cv_c_bigendian=unknown
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4232 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4233 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4234 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4235 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4236 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4240 _ascii (); _ebcdic ();
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4280 ac_cv_c_bigendian=yes
4282 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4283 if test "$ac_cv_c_bigendian" = unknown; then
4284 ac_cv_c_bigendian=no
4286 # finding both strings is unlikely to happen, but who knows?
4287 ac_cv_c_bigendian=unknown
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4310 /* Are we little or big endian? From Harbison&Steele. */
4314 char c[sizeof (long int)];
4317 return u.c[sizeof (long int) - 1] == 1;
4323 rm -f conftest$ac_exeext
4324 if { (ac_try="$ac_link"
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_link") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_c_bigendian=no
4345 echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4350 ac_cv_c_bigendian=yes
4352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4361 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4362 case $ac_cv_c_bigendian in
4365 cat >>confdefs.h <<\_ACEOF
4366 #define WORDS_BIGENDIAN 1
4372 { { echo "$as_me:$LINENO: error: unknown endianness
4373 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4374 echo "$as_me: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4379 { echo "$as_me:$LINENO: checking for inline" >&5
4380 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4381 if test "${ac_cv_c_inline+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 for ac_kw in inline __inline__ __inline; do
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4394 static $ac_kw foo_t static_foo () {return 0; }
4395 $ac_kw foo_t foo () {return 0; }
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_try") 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_c_inline=$ac_kw
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 test "$ac_cv_c_inline" != no && break
4446 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4447 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4450 case $ac_cv_c_inline in
4453 case $ac_cv_c_inline in
4455 *) ac_val=$ac_cv_c_inline;;
4457 cat >>confdefs.h <<_ACEOF
4459 #define inline $ac_val
4466 saved_CFLAGS="$CFLAGS";
4468 if test x"$c99_init" = x"no"; then
4469 { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4470 echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
4471 CFLAGS="$saved_CFLAGS";
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4482 struct foo {int x;char y;};
4483 struct foo bar = { .y = 'X', .x = 1 };
4489 rm -f conftest.$ac_objext
4490 if { (ac_try="$ac_compile"
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_compile") 2>conftest.er1
4498 grep -v '^ *+' conftest.er1 >conftest.err
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 { echo "$as_me:$LINENO: result: yes" >&5
4524 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 if test x"$c99_init" = x"no"; then
4536 { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4537 echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
4538 CFLAGS="$saved_CFLAGS -AC99";
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4549 struct foo {int x;char y;};
4550 struct foo bar = { .y = 'X', .x = 1 };
4556 rm -f conftest.$ac_objext
4557 if { (ac_try="$ac_compile"
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_compile") 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571 { (case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_try") 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_try") 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 { echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 if test x"$c99_init" = x"no"; then
4603 { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4604 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
4605 CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4616 struct foo {int x;char y;};
4617 struct foo bar = { .y = 'X', .x = 1 };
4623 rm -f conftest.$ac_objext
4624 if { (ac_try="$ac_compile"
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4632 grep -v '^ *+' conftest.er1 >conftest.err
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4638 { (case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_try") 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_try") 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 { echo "$as_me:$LINENO: result: yes" >&5
4658 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 { echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6; }
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 if test x"$c99_init" = x"no"; then
4670 { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4671 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
4672 CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4673 cat >conftest.$ac_ext <<_ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4683 struct foo {int x;char y;};
4684 struct foo bar = { .y = 'X', .x = 1 };
4690 rm -f conftest.$ac_objext
4691 if { (ac_try="$ac_compile"
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_compile") 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4705 { (case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_try") 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 if test x"$c99_init" = x"no"; then
4737 { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4738 echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
4739 CFLAGS="$saved_CFLAGS -c99"
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4750 struct foo {int x;char y;};
4751 struct foo bar = { .y = 'X', .x = 1 };
4757 rm -f conftest.$ac_objext
4758 if { (ac_try="$ac_compile"
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_compile") 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_try") 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 { echo "$as_me:$LINENO: result: yes" >&5
4792 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 if test "`uname`" = "HP-UX"; then
4805 if test "$ac_cv_c_compiler_gnu" = no; then
4806 # special override for broken HP-UX compiler - I can't find a way to test
4807 # this properly (its a compiler bug)
4808 CFLAGS="$CFLAGS -AC99";
4813 if test x"$c99_init" = x"yes"; then
4817 CFLAGS="$saved_CFLAGS"
4819 { echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4820 echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4824 # Find a good install program. We prefer a C program (faster),
4825 # so one script is as good as another. But avoid the broken or
4826 # incompatible versions:
4827 # SysV /etc/install, /usr/sbin/install
4828 # SunOS /usr/etc/install
4829 # IRIX /sbin/install
4831 # AmigaOS /C/install, which installs bootblocks on floppy discs
4832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4835 # OS/2's system install, which has a completely different semantic
4836 # ./install, which can be erroneously created by make from ./install.sh.
4837 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4838 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4839 if test -z "$INSTALL"; then
4840 if test "${ac_cv_path_install+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 # Account for people who put trailing slashes in PATH elements.
4850 ./ | .// | /cC/* | \
4851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4852 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4855 # OSF1 and SCO ODT 3.0 have their own names for install.
4856 # Don't use installbsd from OSF since it installs stuff as root
4858 for ac_prog in ginstall scoinst install; do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4861 if test $ac_prog = install &&
4862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4863 # AIX install. It has an incompatible calling convention.
4865 elif test $ac_prog = install &&
4866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4867 # program-specific install script used by HP pwplus--don't use.
4870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4883 if test "${ac_cv_path_install+set}" = set; then
4884 INSTALL=$ac_cv_path_install
4886 # As a last resort, use the slow shell script. Don't cache a
4887 # value for INSTALL within a source directory, because that will
4888 # break other packages using the cache if that directory is
4889 # removed, or if the value is a relative name.
4890 INSTALL=$ac_install_sh
4893 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4894 echo "${ECHO_T}$INSTALL" >&6; }
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4905 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4906 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4907 if test "${ac_cv_search_strerror+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 ac_func_search_save_LIBS=$LIBS
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 /* Override any GCC internal prototype to avoid an error.
4919 Use char because int might match the return type of a GCC
4920 builtin and then its argument prototype would still apply. */
4933 for ac_lib in '' cposix; do
4934 if test -z "$ac_lib"; then
4935 ac_res="none required"
4938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (ac_try="$ac_link"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_link") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4955 { (case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_try") 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest$ac_exeext'
4965 { (case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_try") 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_cv_search_strerror=$ac_res
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4984 if test "${ac_cv_search_strerror+set}" = set; then
4988 if test "${ac_cv_search_strerror+set}" = set; then
4991 ac_cv_search_strerror=no
4994 LIBS=$ac_func_search_save_LIBS
4996 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4997 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4998 ac_res=$ac_cv_search_strerror
4999 if test "$ac_res" != no; then
5000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5005 cat >>confdefs.h <<\EOF
5006 #ifndef _XOPEN_SOURCE_EXTENDED
5007 # define _XOPEN_SOURCE_EXTENDED 1
5014 cat >>confdefs.h <<\EOF
5016 # define _OSF_SOURCE 1
5023 # Check whether --enable-largefile was given.
5024 if test "${enable_largefile+set}" = set; then
5025 enableval=$enable_largefile;
5028 if test "$enable_largefile" != no; then
5030 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5031 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5032 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_cv_sys_largefile_CC=no
5036 if test "$GCC" != yes; then
5039 # IRIX 6.2 and later do not support large files by default,
5040 # so use the C compiler's -n32 option if that helps.
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 #include <sys/types.h>
5048 /* Check that off_t can represent 2**63 - 1 correctly.
5049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5050 since some C++ compilers masquerading as C compilers
5051 incorrectly reject 9223372036854775807. */
5052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5054 && LARGE_OFF_T % 2147483647 == 1)
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5073 grep -v '^ *+' conftest.er1 >conftest.err
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079 { (case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_try") 2>&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_try") 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext
5108 rm -f conftest.$ac_objext
5109 if { (ac_try="$ac_compile"
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compile") 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5123 { (case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_try") 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_try") 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_sys_largefile_CC=' -n32'; break
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5150 rm -f core conftest.err conftest.$ac_objext
5154 rm -f conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5158 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5159 if test "$ac_cv_sys_largefile_CC" != no; then
5160 CC=$CC$ac_cv_sys_largefile_CC
5163 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5164 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5165 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_cv_sys_file_offset_bits=no
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #include <sys/types.h>
5177 /* Check that off_t can represent 2**63 - 1 correctly.
5178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179 since some C++ compilers masquerading as C compilers
5180 incorrectly reject 9223372036854775807. */
5181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183 && LARGE_OFF_T % 2147483647 == 1)
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_try") 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #define _FILE_OFFSET_BITS 64
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5275 { (case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_try") 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_try") 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_sys_file_offset_bits=64; break
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5307 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5308 if test "$ac_cv_sys_file_offset_bits" != no; then
5310 cat >>confdefs.h <<_ACEOF
5311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5316 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5317 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5318 if test "${ac_cv_sys_large_files+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 ac_cv_sys_large_files=no
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332 since some C++ compilers masquerading as C compilers
5333 incorrectly reject 9223372036854775807. */
5334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336 && LARGE_OFF_T % 2147483647 == 1)
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_try") 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 #define _LARGE_FILES 1
5396 #include <sys/types.h>
5397 /* Check that off_t can represent 2**63 - 1 correctly.
5398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5399 since some C++ compilers masquerading as C compilers
5400 incorrectly reject 9223372036854775807. */
5401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5403 && LARGE_OFF_T % 2147483647 == 1)
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_compile") 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5428 { (case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_try") 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_try") 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_sys_large_files=1; break
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5460 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5461 if test "$ac_cv_sys_large_files" != no; then
5463 cat >>confdefs.h <<_ACEOF
5464 #define _LARGE_FILES $ac_cv_sys_large_files
5473 *irix6*) cat >> confdefs.h <<\EOF
5474 #include <standards.h>
5479 # mmap on HPUX is completely broken...
5481 cat >>confdefs.h <<\_ACEOF
5482 #define MMAP_BLACKLIST 1
5485 if test "`uname -r`" = "B.11.11"; then
5486 { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.11 header bug workaround" >&5
5487 echo "$as_me: WARNING: Enabling HPUX 11.11 header bug workaround" >&2;}
5488 CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
5490 if test "`uname -r`" = "B.11.23"; then
5491 { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5492 echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5493 CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5498 cat >>confdefs.h <<\_ACEOF
5499 #define BROKEN_STRNDUP 1
5503 cat >>confdefs.h <<\_ACEOF
5504 #define BROKEN_STRNLEN 1
5507 if test "${GCC}" != "yes"; then
5508 ## for funky AIX compiler using strncpy()
5509 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5513 # VOS may need to have POSIX support and System V compatibility enabled.
5517 *-D_POSIX_C_SOURCE*);;
5519 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5521 cat >>confdefs.h <<\_ACEOF
5522 #define _POSIX_C_SOURCE 200112L
5528 *-D_SYSV*|*-D_SVID_SOURCE*);;
5530 CFLAGS="$CFLAGS -D_SYSV"
5532 cat >>confdefs.h <<\_ACEOF
5544 for ac_header in standards.h
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_res=`eval echo '${'$as_ac_Header'}'`
5554 { echo "$as_me:$LINENO: result: $ac_res" >&5
5555 echo "${ECHO_T}$ac_res" >&6; }
5557 # Is the header compilable?
5558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 #include <$ac_header>
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5584 { (case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_try") 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_try") 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_header_compiler=yes
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_compiler=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6; }
5615 # Is the header present?
5616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5618 cat >conftest.$ac_ext <<_ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <$ac_header>
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null; then
5639 if test -s conftest.err; then
5640 ac_cpp_err=$ac_c_preproc_warn_flag
5641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5648 if test -z "$ac_cpp_err"; then
5649 ac_header_preproc=yes
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_header_preproc=no
5657 rm -f conftest.err conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6; }
5661 # So? What about this header?
5662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5668 ac_header_preproc=yes
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 eval "$as_ac_Header=\$ac_header_preproc"
5693 ac_res=`eval echo '${'$as_ac_Header'}'`
5694 { echo "$as_me:$LINENO: result: $ac_res" >&5
5695 echo "${ECHO_T}$ac_res" >&6; }
5698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5699 cat >>confdefs.h <<_ACEOF
5700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5708 # Solaris needs HAVE_LONG_LONG defined
5709 { echo "$as_me:$LINENO: checking for long long" >&5
5710 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5711 if test "${ac_cv_type_long_long+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 $ac_includes_default
5721 typedef long long ac__type_new_;
5725 if ((ac__type_new_ *) 0)
5727 if (sizeof (ac__type_new_))
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5748 { (case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_try") 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_try") 2>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_type_long_long=yes
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 ac_cv_type_long_long=no
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5778 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5779 if test $ac_cv_type_long_long = yes; then
5781 cat >>confdefs.h <<_ACEOF
5782 #define HAVE_LONG_LONG 1
5789 { echo "$as_me:$LINENO: checking for uint_t" >&5
5790 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
5791 if test "${ac_cv_type_uint_t+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5801 typedef uint_t ac__type_new_;
5805 if ((ac__type_new_ *) 0)
5807 if (sizeof (ac__type_new_))
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_type_uint_t=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_cv_type_uint_t=no
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
5858 echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
5859 if test $ac_cv_type_uint_t = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define uint_t unsigned int
5869 { echo "$as_me:$LINENO: checking for int8_t" >&5
5870 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5871 if test "${ac_cv_type_int8_t+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 typedef int8_t ac__type_new_;
5885 if ((ac__type_new_ *) 0)
5887 if (sizeof (ac__type_new_))
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_cv_type_int8_t=yes
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_cv_type_int8_t=no
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5938 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
5939 if test $ac_cv_type_int8_t = yes; then
5943 cat >>confdefs.h <<_ACEOF
5949 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5950 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5951 if test "${ac_cv_type_uint8_t+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 typedef uint8_t ac__type_new_;
5965 if ((ac__type_new_ *) 0)
5967 if (sizeof (ac__type_new_))
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_try") 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_type_uint8_t=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_type_uint8_t=no
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6018 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6019 if test $ac_cv_type_uint8_t = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define uint8_t unsigned char
6029 { echo "$as_me:$LINENO: checking for int16_t" >&5
6030 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
6031 if test "${ac_cv_type_int16_t+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6041 typedef int16_t ac__type_new_;
6045 if ((ac__type_new_ *) 0)
6047 if (sizeof (ac__type_new_))
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_int16_t=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_type_int16_t=no
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6098 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
6099 if test $ac_cv_type_int16_t = yes; then
6103 cat >>confdefs.h <<_ACEOF
6104 #define int16_t short
6109 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6110 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6111 if test "${ac_cv_type_uint16_t+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 typedef uint16_t ac__type_new_;
6125 if ((ac__type_new_ *) 0)
6127 if (sizeof (ac__type_new_))
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_try") 2>&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_try") 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_cv_type_uint16_t=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_cv_type_uint16_t=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6178 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6179 if test $ac_cv_type_uint16_t = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184 #define uint16_t unsigned short
6189 { echo "$as_me:$LINENO: checking for int32_t" >&5
6190 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
6191 if test "${ac_cv_type_int32_t+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 cat >conftest.$ac_ext <<_ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6201 typedef int32_t ac__type_new_;
6205 if ((ac__type_new_ *) 0)
6207 if (sizeof (ac__type_new_))
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_type_int32_t=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_cv_type_int32_t=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6258 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
6259 if test $ac_cv_type_int32_t = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264 #define int32_t long
6269 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6270 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6271 if test "${ac_cv_type_uint32_t+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6281 typedef uint32_t ac__type_new_;
6285 if ((ac__type_new_ *) 0)
6287 if (sizeof (ac__type_new_))
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_type_uint32_t=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 ac_cv_type_uint32_t=no
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6338 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6339 if test $ac_cv_type_uint32_t = yes; then
6343 cat >>confdefs.h <<_ACEOF
6344 #define uint32_t unsigned long
6349 { echo "$as_me:$LINENO: checking for int64_t" >&5
6350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6351 if test "${ac_cv_type_int64_t+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 $ac_includes_default
6361 typedef int64_t ac__type_new_;
6365 if ((ac__type_new_ *) 0)
6367 if (sizeof (ac__type_new_))
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6388 { (case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_try") 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_try") 2>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_cv_type_int64_t=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_cv_type_int64_t=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6418 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6419 if test $ac_cv_type_int64_t = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define int64_t long long
6429 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6430 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6431 if test "${ac_cv_type_uint64_t+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6441 typedef uint64_t ac__type_new_;
6445 if ((ac__type_new_ *) 0)
6447 if (sizeof (ac__type_new_))
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_type_uint64_t=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_cv_type_uint64_t=no
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6498 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6499 if test $ac_cv_type_uint64_t = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define uint64_t unsigned long long
6510 { echo "$as_me:$LINENO: checking for size_t" >&5
6511 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6512 if test "${ac_cv_type_size_t+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6522 typedef size_t ac__type_new_;
6526 if ((ac__type_new_ *) 0)
6528 if (sizeof (ac__type_new_))
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_cv_type_size_t=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_type_size_t=no
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6579 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6580 if test $ac_cv_type_size_t = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define size_t unsigned int
6590 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6591 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6592 if test "${ac_cv_type_ssize_t+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 cat >conftest.$ac_ext <<_ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6602 typedef ssize_t ac__type_new_;
6606 if ((ac__type_new_ *) 0)
6608 if (sizeof (ac__type_new_))
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6629 { (case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_try") 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_type_ssize_t=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_cv_type_ssize_t=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6659 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6660 if test $ac_cv_type_ssize_t = yes; then
6664 cat >>confdefs.h <<_ACEOF
6671 { echo "$as_me:$LINENO: checking for int" >&5
6672 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6673 if test "${ac_cv_type_int+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 $ac_includes_default
6683 typedef int ac__type_new_;
6687 if ((ac__type_new_ *) 0)
6689 if (sizeof (ac__type_new_))
6695 rm -f conftest.$ac_objext
6696 if { (ac_try="$ac_compile"
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_compile") 2>conftest.er1
6704 grep -v '^ *+' conftest.er1 >conftest.err
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6710 { (case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_try") 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (case "(($ac_try" in
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_try") 2>&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6740 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6742 # The cast to long int works around a bug in the HP C Compiler
6743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6745 # This bug is HP SR number 8606223364.
6746 { echo "$as_me:$LINENO: checking size of int" >&5
6747 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6748 if test "${ac_cv_sizeof_int+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 if test "$cross_compiling" = yes; then
6752 # Depending upon the size, compute the lo and hi bounds.
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 typedef int ac__type_sizeof_;
6765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6787 { (case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_try") 2>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
6797 { (case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_try") 2>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6815 typedef int ac__type_sizeof_;
6820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6842 { (case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_try") 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; } &&
6851 { ac_try='test -s conftest.$ac_objext'
6852 { (case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_try") 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_hi=$ac_mid; break
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_lo=`expr $ac_mid + 1`
6867 if test $ac_lo -le $ac_mid; then
6871 ac_mid=`expr 2 '*' $ac_mid + 1`
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6887 typedef int ac__type_sizeof_;
6892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_try") 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929 (eval "$ac_try") 2>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6942 typedef int ac__type_sizeof_;
6947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6969 { (case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_try") 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest.$ac_objext'
6979 { (case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_try") 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 ac_lo=$ac_mid; break
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_hi=`expr '(' $ac_mid ')' - 1`
6994 if test $ac_mid -le $ac_hi; then
6998 ac_mid=`expr 2 '*' $ac_mid`
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 # Binary search between lo and hi bounds.
7015 while test "x$ac_lo" != "x$ac_hi"; do
7016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 typedef int ac__type_sizeof_;
7029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7036 rm -f conftest.$ac_objext
7037 if { (ac_try="$ac_compile"
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_compile") 2>conftest.er1
7045 grep -v '^ *+' conftest.er1 >conftest.err
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_try") 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 ac_lo=`expr '(' $ac_mid ')' + 1`
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 ?*) ac_cv_sizeof_int=$ac_lo;;
7082 '') if test "$ac_cv_type_int" = yes; then
7083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7084 See \`config.log' for more details." >&5
7085 echo "$as_me: error: cannot compute sizeof (int)
7086 See \`config.log' for more details." >&2;}
7087 { (exit 77); exit 77; }; }
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7100 typedef int ac__type_sizeof_;
7102 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7103 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7110 FILE *f = fopen ("conftest.val", "w");
7113 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7115 long int i = longval ();
7116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7118 fprintf (f, "%ld\n", i);
7122 unsigned long int i = ulongval ();
7123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7125 fprintf (f, "%lu\n", i);
7127 return ferror (f) || fclose (f) != 0;
7133 rm -f conftest$ac_exeext
7134 if { (ac_try="$ac_link"
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_link") 2>&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7144 { (case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_try") 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_sizeof_int=`cat conftest.val`
7155 echo "$as_me: program exited with status $ac_status" >&5
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7160 if test "$ac_cv_type_int" = yes; then
7161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7162 See \`config.log' for more details." >&5
7163 echo "$as_me: error: cannot compute sizeof (int)
7164 See \`config.log' for more details." >&2;}
7165 { (exit 77); exit 77; }; }
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7179 cat >>confdefs.h <<_ACEOF
7180 #define SIZEOF_INT $ac_cv_sizeof_int
7184 { echo "$as_me:$LINENO: checking for char" >&5
7185 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7186 if test "${ac_cv_type_char+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 $ac_includes_default
7196 typedef char ac__type_new_;
7200 if ((ac__type_new_ *) 0)
7202 if (sizeof (ac__type_new_))
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_compile") 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7223 { (case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_try") 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_try") 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7253 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7255 # The cast to long int works around a bug in the HP C Compiler
7256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7258 # This bug is HP SR number 8606223364.
7259 { echo "$as_me:$LINENO: checking size of char" >&5
7260 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7261 if test "${ac_cv_sizeof_char+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 typedef char ac__type_sizeof_;
7278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_try") 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; } &&
7309 { ac_try='test -s conftest.$ac_objext'
7310 { (case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_try") 2>&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7328 typedef char ac__type_sizeof_;
7333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7355 { (case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_try") 2>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest.$ac_objext'
7365 { (case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_try") 2>&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_hi=$ac_mid; break
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_lo=`expr $ac_mid + 1`
7380 if test $ac_lo -le $ac_mid; then
7384 ac_mid=`expr 2 '*' $ac_mid + 1`
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef char ac__type_sizeof_;
7405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_try") 2>&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest.$ac_objext'
7437 { (case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_try") 2>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 $ac_includes_default
7455 typedef char ac__type_sizeof_;
7460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7476 grep -v '^ *+' conftest.er1 >conftest.err
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7482 { (case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_try") 2>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try='test -s conftest.$ac_objext'
7492 { (case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_try") 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_lo=$ac_mid; break
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_hi=`expr '(' $ac_mid ')' - 1`
7507 if test $ac_mid -le $ac_hi; then
7511 ac_mid=`expr 2 '*' $ac_mid`
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 # Binary search between lo and hi bounds.
7528 while test "x$ac_lo" != "x$ac_hi"; do
7529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7537 typedef char ac__type_sizeof_;
7542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7549 rm -f conftest.$ac_objext
7550 if { (ac_try="$ac_compile"
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_compile") 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_try") 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest.$ac_objext'
7574 { (case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_try") 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_lo=`expr '(' $ac_mid ')' + 1`
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 ?*) ac_cv_sizeof_char=$ac_lo;;
7595 '') if test "$ac_cv_type_char" = yes; then
7596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7597 See \`config.log' for more details." >&5
7598 echo "$as_me: error: cannot compute sizeof (char)
7599 See \`config.log' for more details." >&2;}
7600 { (exit 77); exit 77; }; }
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7613 typedef char ac__type_sizeof_;
7615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7623 FILE *f = fopen ("conftest.val", "w");
7626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7628 long int i = longval ();
7629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7631 fprintf (f, "%ld\n", i);
7635 unsigned long int i = ulongval ();
7636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7638 fprintf (f, "%lu\n", i);
7640 return ferror (f) || fclose (f) != 0;
7646 rm -f conftest$ac_exeext
7647 if { (ac_try="$ac_link"
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_link") 2>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7657 { (case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_try") 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_sizeof_char=`cat conftest.val`
7668 echo "$as_me: program exited with status $ac_status" >&5
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7673 if test "$ac_cv_type_char" = yes; then
7674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7675 See \`config.log' for more details." >&5
7676 echo "$as_me: error: cannot compute sizeof (char)
7677 See \`config.log' for more details." >&2;}
7678 { (exit 77); exit 77; }; }
7683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7687 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7688 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7692 cat >>confdefs.h <<_ACEOF
7693 #define SIZEOF_CHAR $ac_cv_sizeof_char
7697 { echo "$as_me:$LINENO: checking for short" >&5
7698 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7699 if test "${ac_cv_type_short+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7708 $ac_includes_default
7709 typedef short ac__type_new_;
7713 if ((ac__type_new_ *) 0)
7715 if (sizeof (ac__type_new_))
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } &&
7735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7736 { (case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_try") 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest.$ac_objext'
7746 { (case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_try") 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_type_short=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7766 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7768 # The cast to long int works around a bug in the HP C Compiler
7769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7771 # This bug is HP SR number 8606223364.
7772 { echo "$as_me:$LINENO: checking size of short" >&5
7773 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7774 if test "${ac_cv_sizeof_short+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 if test "$cross_compiling" = yes; then
7778 # Depending upon the size, compute the lo and hi bounds.
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 typedef short ac__type_sizeof_;
7791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
7823 { (case "(($ac_try" in
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_try") 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 $ac_includes_default
7841 typedef short ac__type_sizeof_;
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_hi=$ac_mid; break
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_lo=`expr $ac_mid + 1`
7893 if test $ac_lo -le $ac_mid; then
7897 ac_mid=`expr 2 '*' $ac_mid + 1`
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 typedef short ac__type_sizeof_;
7918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7934 grep -v '^ *+' conftest.er1 >conftest.err
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
7939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7940 { (case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_try") 2>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_try") 2>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 typedef short ac__type_sizeof_;
7973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_compile") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995 { (case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_try") 2>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_try") 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_lo=$ac_mid; break
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_hi=`expr '(' $ac_mid ')' - 1`
8020 if test $ac_mid -le $ac_hi; then
8024 ac_mid=`expr 2 '*' $ac_mid`
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 # Binary search between lo and hi bounds.
8041 while test "x$ac_lo" != "x$ac_hi"; do
8042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef short ac__type_sizeof_;
8055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_lo=`expr '(' $ac_mid ')' + 1`
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 ?*) ac_cv_sizeof_short=$ac_lo;;
8108 '') if test "$ac_cv_type_short" = yes; then
8109 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8110 See \`config.log' for more details." >&5
8111 echo "$as_me: error: cannot compute sizeof (short)
8112 See \`config.log' for more details." >&2;}
8113 { (exit 77); exit 77; }; }
8115 ac_cv_sizeof_short=0
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 typedef short ac__type_sizeof_;
8128 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8129 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8136 FILE *f = fopen ("conftest.val", "w");
8139 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8141 long int i = longval ();
8142 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8144 fprintf (f, "%ld\n", i);
8148 unsigned long int i = ulongval ();
8149 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8151 fprintf (f, "%lu\n", i);
8153 return ferror (f) || fclose (f) != 0;
8159 rm -f conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_link") 2>&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_sizeof_short=`cat conftest.val`
8181 echo "$as_me: program exited with status $ac_status" >&5
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8186 if test "$ac_cv_type_short" = yes; then
8187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8188 See \`config.log' for more details." >&5
8189 echo "$as_me: error: cannot compute sizeof (short)
8190 See \`config.log' for more details." >&2;}
8191 { (exit 77); exit 77; }; }
8193 ac_cv_sizeof_short=0
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8201 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8205 cat >>confdefs.h <<_ACEOF
8206 #define SIZEOF_SHORT $ac_cv_sizeof_short
8210 { echo "$as_me:$LINENO: checking for long" >&5
8211 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8212 if test "${ac_cv_type_long+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 cat >conftest.$ac_ext <<_ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 $ac_includes_default
8222 typedef long ac__type_new_;
8226 if ((ac__type_new_ *) 0)
8228 if (sizeof (ac__type_new_))
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8279 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8281 # The cast to long int works around a bug in the HP C Compiler
8282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8284 # This bug is HP SR number 8606223364.
8285 { echo "$as_me:$LINENO: checking size of long" >&5
8286 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8287 if test "${ac_cv_sizeof_long+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 if test "$cross_compiling" = yes; then
8291 # Depending upon the size, compute the lo and hi bounds.
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 typedef long ac__type_sizeof_;
8304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8326 { (case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_try") 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 typedef long ac__type_sizeof_;
8359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8381 { (case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_try") 2>&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest.$ac_objext'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_hi=$ac_mid; break
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_lo=`expr $ac_mid + 1`
8406 if test $ac_lo -le $ac_mid; then
8410 ac_mid=`expr 2 '*' $ac_mid + 1`
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 typedef long ac__type_sizeof_;
8431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8474 cat >conftest.$ac_ext <<_ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 $ac_includes_default
8481 typedef long ac__type_sizeof_;
8486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_try") 2>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_lo=$ac_mid; break
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_hi=`expr '(' $ac_mid ')' - 1`
8533 if test $ac_mid -le $ac_hi; then
8537 ac_mid=`expr 2 '*' $ac_mid`
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 # Binary search between lo and hi bounds.
8554 while test "x$ac_lo" != "x$ac_hi"; do
8555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 $ac_includes_default
8563 typedef long ac__type_sizeof_;
8568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_lo=`expr '(' $ac_mid ')' + 1`
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 ?*) ac_cv_sizeof_long=$ac_lo;;
8621 '') if test "$ac_cv_type_long" = yes; then
8622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8623 See \`config.log' for more details." >&5
8624 echo "$as_me: error: cannot compute sizeof (long)
8625 See \`config.log' for more details." >&2;}
8626 { (exit 77); exit 77; }; }
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 typedef long ac__type_sizeof_;
8641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8649 FILE *f = fopen ("conftest.val", "w");
8652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8654 long int i = longval ();
8655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8657 fprintf (f, "%ld\n", i);
8661 unsigned long int i = ulongval ();
8662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8664 fprintf (f, "%lu\n", i);
8666 return ferror (f) || fclose (f) != 0;
8672 rm -f conftest$ac_exeext
8673 if { (ac_try="$ac_link"
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_link") 2>&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_sizeof_long=`cat conftest.val`
8694 echo "$as_me: program exited with status $ac_status" >&5
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8699 if test "$ac_cv_type_long" = yes; then
8700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8701 See \`config.log' for more details." >&5
8702 echo "$as_me: error: cannot compute sizeof (long)
8703 See \`config.log' for more details." >&2;}
8704 { (exit 77); exit 77; }; }
8709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8714 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8718 cat >>confdefs.h <<_ACEOF
8719 #define SIZEOF_LONG $ac_cv_sizeof_long
8723 { echo "$as_me:$LINENO: checking for long long" >&5
8724 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8725 if test "${ac_cv_type_long_long+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 $ac_includes_default
8735 typedef long long ac__type_new_;
8739 if ((ac__type_new_ *) 0)
8741 if (sizeof (ac__type_new_))
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8762 { (case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_type_long_long=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_type_long_long=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8792 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8794 # The cast to long int works around a bug in the HP C Compiler
8795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8797 # This bug is HP SR number 8606223364.
8798 { echo "$as_me:$LINENO: checking size of long long" >&5
8799 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8800 if test "${ac_cv_sizeof_long_long+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 if test "$cross_compiling" = yes; then
8804 # Depending upon the size, compute the lo and hi bounds.
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 $ac_includes_default
8812 typedef long long ac__type_sizeof_;
8817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839 { (case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_try") 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866 $ac_includes_default
8867 typedef long long ac__type_sizeof_;
8872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8894 { (case "(($ac_try" in
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_try") 2>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; } &&
8903 { ac_try='test -s conftest.$ac_objext'
8904 { (case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_try") 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_hi=$ac_mid; break
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_lo=`expr $ac_mid + 1`
8919 if test $ac_lo -le $ac_mid; then
8923 ac_mid=`expr 2 '*' $ac_mid + 1`
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 cat >conftest.$ac_ext <<_ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 typedef long long ac__type_sizeof_;
8944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_compile") 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 $ac_includes_default
8994 typedef long long ac__type_sizeof_;
8999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try='test -s conftest.$ac_objext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_lo=$ac_mid; break
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_hi=`expr '(' $ac_mid ')' - 1`
9046 if test $ac_mid -le $ac_hi; then
9050 ac_mid=`expr 2 '*' $ac_mid`
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 # Binary search between lo and hi bounds.
9067 while test "x$ac_lo" != "x$ac_hi"; do
9068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 typedef long long ac__type_sizeof_;
9081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_compile") 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9103 { (case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_try") 2>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest.$ac_objext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_lo=`expr '(' $ac_mid ')' + 1`
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9134 '') if test "$ac_cv_type_long_long" = yes; then
9135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9136 See \`config.log' for more details." >&5
9137 echo "$as_me: error: cannot compute sizeof (long long)
9138 See \`config.log' for more details." >&2;}
9139 { (exit 77); exit 77; }; }
9141 ac_cv_sizeof_long_long=0
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 typedef long long ac__type_sizeof_;
9154 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9155 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9162 FILE *f = fopen ("conftest.val", "w");
9165 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9167 long int i = longval ();
9168 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9170 fprintf (f, "%ld\n", i);
9174 unsigned long int i = ulongval ();
9175 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9177 fprintf (f, "%lu\n", i);
9179 return ferror (f) || fclose (f) != 0;
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_sizeof_long_long=`cat conftest.val`
9207 echo "$as_me: program exited with status $ac_status" >&5
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9212 if test "$ac_cv_type_long_long" = yes; then
9213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9214 See \`config.log' for more details." >&5
9215 echo "$as_me: error: cannot compute sizeof (long long)
9216 See \`config.log' for more details." >&2;}
9217 { (exit 77); exit 77; }; }
9219 ac_cv_sizeof_long_long=0
9222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9227 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9231 cat >>confdefs.h <<_ACEOF
9232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9237 { echo "$as_me:$LINENO: checking for off_t" >&5
9238 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9239 if test "${ac_cv_type_off_t+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 $ac_includes_default
9249 typedef off_t ac__type_new_;
9253 if ((ac__type_new_ *) 0)
9255 if (sizeof (ac__type_new_))
9261 rm -f conftest.$ac_objext
9262 if { (ac_try="$ac_compile"
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_compile") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9276 { (case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_try") 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest.$ac_objext'
9286 { (case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_try") 2>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_type_off_t=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9306 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9308 # The cast to long int works around a bug in the HP C Compiler
9309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9311 # This bug is HP SR number 8606223364.
9312 { echo "$as_me:$LINENO: checking size of off_t" >&5
9313 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
9314 if test "${ac_cv_sizeof_off_t+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 if test "$cross_compiling" = yes; then
9318 # Depending upon the size, compute the lo and hi bounds.
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 $ac_includes_default
9326 typedef off_t ac__type_sizeof_;
9331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9338 rm -f conftest.$ac_objext
9339 if { (ac_try="$ac_compile"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_compile") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9353 { (case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_try") 2>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; } &&
9362 { ac_try='test -s conftest.$ac_objext'
9363 { (case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_try") 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9374 cat >conftest.$ac_ext <<_ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 typedef off_t ac__type_sizeof_;
9386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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
9427 ac_hi=$ac_mid; break
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_lo=`expr $ac_mid + 1`
9433 if test $ac_lo -le $ac_mid; then
9437 ac_mid=`expr 2 '*' $ac_mid + 1`
9440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 cat >conftest.$ac_ext <<_ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 typedef off_t ac__type_sizeof_;
9458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480 { (case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_try") 2>&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 $ac_includes_default
9508 typedef off_t ac__type_sizeof_;
9513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9520 rm -f conftest.$ac_objext
9521 if { (ac_try="$ac_compile"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_compile") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9535 { (case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_try") 2>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; } &&
9544 { ac_try='test -s conftest.$ac_objext'
9545 { (case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_try") 2>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_lo=$ac_mid; break
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_hi=`expr '(' $ac_mid ')' - 1`
9560 if test $ac_mid -le $ac_hi; then
9564 ac_mid=`expr 2 '*' $ac_mid`
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 # Binary search between lo and hi bounds.
9581 while test "x$ac_lo" != "x$ac_hi"; do
9582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 $ac_includes_default
9590 typedef off_t ac__type_sizeof_;
9595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9602 rm -f conftest.$ac_objext
9603 if { (ac_try="$ac_compile"
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_compile") 2>conftest.er1
9611 grep -v '^ *+' conftest.er1 >conftest.err
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 { (case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_try") 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest.$ac_objext'
9627 { (case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_try") 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_lo=`expr '(' $ac_mid ')' + 1`
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9648 '') if test "$ac_cv_type_off_t" = yes; then
9649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9650 See \`config.log' for more details." >&5
9651 echo "$as_me: error: cannot compute sizeof (off_t)
9652 See \`config.log' for more details." >&2;}
9653 { (exit 77); exit 77; }; }
9655 ac_cv_sizeof_off_t=0
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 $ac_includes_default
9666 typedef off_t ac__type_sizeof_;
9668 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9669 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9676 FILE *f = fopen ("conftest.val", "w");
9679 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9681 long int i = longval ();
9682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9684 fprintf (f, "%ld\n", i);
9688 unsigned long int i = ulongval ();
9689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9691 fprintf (f, "%lu\n", i);
9693 return ferror (f) || fclose (f) != 0;
9699 rm -f conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_sizeof_off_t=`cat conftest.val`
9721 echo "$as_me: program exited with status $ac_status" >&5
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9726 if test "$ac_cv_type_off_t" = yes; then
9727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot compute sizeof (off_t)
9730 See \`config.log' for more details." >&2;}
9731 { (exit 77); exit 77; }; }
9733 ac_cv_sizeof_off_t=0
9736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9740 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9741 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
9745 cat >>confdefs.h <<_ACEOF
9746 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9750 { echo "$as_me:$LINENO: checking for size_t" >&5
9751 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9752 if test "${ac_cv_type_size_t+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9762 typedef size_t ac__type_new_;
9766 if ((ac__type_new_ *) 0)
9768 if (sizeof (ac__type_new_))
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest.$ac_objext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_type_size_t=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_cv_type_size_t=no
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9819 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9821 # The cast to long int works around a bug in the HP C Compiler
9822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9824 # This bug is HP SR number 8606223364.
9825 { echo "$as_me:$LINENO: checking size of size_t" >&5
9826 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9827 if test "${ac_cv_sizeof_size_t+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 if test "$cross_compiling" = yes; then
9831 # Depending upon the size, compute the lo and hi bounds.
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 typedef size_t ac__type_sizeof_;
9844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9851 rm -f conftest.$ac_objext
9852 if { (ac_try="$ac_compile"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 $ac_includes_default
9894 typedef size_t ac__type_sizeof_;
9899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9906 rm -f conftest.$ac_objext
9907 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_hi=$ac_mid; break
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_lo=`expr $ac_mid + 1`
9946 if test $ac_lo -le $ac_mid; then
9950 ac_mid=`expr 2 '*' $ac_mid + 1`
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 typedef size_t ac__type_sizeof_;
9971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_compile") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest.$ac_objext'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 $ac_includes_default
10021 typedef size_t ac__type_sizeof_;
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_compile") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048 { (case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_try") 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_lo=$ac_mid; break
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_hi=`expr '(' $ac_mid ')' - 1`
10073 if test $ac_mid -le $ac_hi; then
10077 ac_mid=`expr 2 '*' $ac_mid`
10080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 # Binary search between lo and hi bounds.
10094 while test "x$ac_lo" != "x$ac_hi"; do
10095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 typedef size_t ac__type_sizeof_;
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest.$ac_objext'
10140 { (case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_try") 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_lo=`expr '(' $ac_mid ')' + 1`
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10161 '') if test "$ac_cv_type_size_t" = yes; then
10162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10163 See \`config.log' for more details." >&5
10164 echo "$as_me: error: cannot compute sizeof (size_t)
10165 See \`config.log' for more details." >&2;}
10166 { (exit 77); exit 77; }; }
10168 ac_cv_sizeof_size_t=0
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 size_t ac__type_sizeof_;
10181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10184 #include <stdlib.h>
10189 FILE *f = fopen ("conftest.val", "w");
10192 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10194 long int i = longval ();
10195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10197 fprintf (f, "%ld\n", i);
10201 unsigned long int i = ulongval ();
10202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10204 fprintf (f, "%lu\n", i);
10206 return ferror (f) || fclose (f) != 0;
10212 rm -f conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_link") 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_sizeof_size_t=`cat conftest.val`
10234 echo "$as_me: program exited with status $ac_status" >&5
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ( exit $ac_status )
10239 if test "$ac_cv_type_size_t" = yes; then
10240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10241 See \`config.log' for more details." >&5
10242 echo "$as_me: error: cannot compute sizeof (size_t)
10243 See \`config.log' for more details." >&2;}
10244 { (exit 77); exit 77; }; }
10246 ac_cv_sizeof_size_t=0
10249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10254 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10258 cat >>confdefs.h <<_ACEOF
10259 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10263 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10264 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10265 if test "${ac_cv_type_ssize_t+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 $ac_includes_default
10275 typedef ssize_t ac__type_new_;
10279 if ((ac__type_new_ *) 0)
10281 if (sizeof (ac__type_new_))
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_try") 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_cv_type_ssize_t=yes
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_cv_type_ssize_t=no
10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10332 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10334 # The cast to long int works around a bug in the HP C Compiler
10335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10337 # This bug is HP SR number 8606223364.
10338 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
10339 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
10340 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 if test "$cross_compiling" = yes; then
10344 # Depending upon the size, compute the lo and hi bounds.
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 $ac_includes_default
10352 typedef ssize_t ac__type_sizeof_;
10357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10364 rm -f conftest.$ac_objext
10365 if { (ac_try="$ac_compile"
10366 case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_compile") 2>conftest.er1
10373 grep -v '^ *+' conftest.er1 >conftest.err
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379 { (case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_try") 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $ac_includes_default
10407 typedef ssize_t ac__type_sizeof_;
10412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10419 rm -f conftest.$ac_objext
10420 if { (ac_try="$ac_compile"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_compile") 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 ac_hi=$ac_mid; break
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 ac_lo=`expr $ac_mid + 1`
10459 if test $ac_lo -le $ac_mid; then
10463 ac_mid=`expr 2 '*' $ac_mid + 1`
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 cat >conftest.$ac_ext <<_ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 $ac_includes_default
10479 typedef ssize_t ac__type_sizeof_;
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef ssize_t ac__type_sizeof_;
10539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_compile") 2>conftest.er1
10555 grep -v '^ *+' conftest.er1 >conftest.err
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
10560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest.$ac_objext'
10571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_lo=$ac_mid; break
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_hi=`expr '(' $ac_mid ')' - 1`
10586 if test $ac_mid -le $ac_hi; then
10590 ac_mid=`expr 2 '*' $ac_mid`
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 # Binary search between lo and hi bounds.
10607 while test "x$ac_lo" != "x$ac_hi"; do
10608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 $ac_includes_default
10616 typedef ssize_t ac__type_sizeof_;
10621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_lo=`expr '(' $ac_mid ')' + 1`
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10674 '') if test "$ac_cv_type_ssize_t" = yes; then
10675 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10676 See \`config.log' for more details." >&5
10677 echo "$as_me: error: cannot compute sizeof (ssize_t)
10678 See \`config.log' for more details." >&2;}
10679 { (exit 77); exit 77; }; }
10681 ac_cv_sizeof_ssize_t=0
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 $ac_includes_default
10692 typedef ssize_t ac__type_sizeof_;
10694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10697 #include <stdlib.h>
10702 FILE *f = fopen ("conftest.val", "w");
10705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10707 long int i = longval ();
10708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10710 fprintf (f, "%ld\n", i);
10714 unsigned long int i = ulongval ();
10715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10717 fprintf (f, "%lu\n", i);
10719 return ferror (f) || fclose (f) != 0;
10725 rm -f conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_link") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_sizeof_ssize_t=`cat conftest.val`
10747 echo "$as_me: program exited with status $ac_status" >&5
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ( exit $ac_status )
10752 if test "$ac_cv_type_ssize_t" = yes; then
10753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10754 See \`config.log' for more details." >&5
10755 echo "$as_me: error: cannot compute sizeof (ssize_t)
10756 See \`config.log' for more details." >&2;}
10757 { (exit 77); exit 77; }; }
10759 ac_cv_sizeof_ssize_t=0
10762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10767 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
10771 cat >>confdefs.h <<_ACEOF
10772 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10777 { echo "$as_me:$LINENO: checking for intptr_t" >&5
10778 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
10779 if test "${ac_cv_type_intptr_t+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 $ac_includes_default
10789 typedef intptr_t ac__type_new_;
10793 if ((ac__type_new_ *) 0)
10795 if (sizeof (ac__type_new_))
10801 rm -f conftest.$ac_objext
10802 if { (ac_try="$ac_compile"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_compile") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_try") 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_type_intptr_t=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_cv_type_intptr_t=no
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10846 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
10847 if test $ac_cv_type_intptr_t = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define intptr_t unsigned long long
10857 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10858 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10859 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 $ac_includes_default
10869 typedef ptrdiff_t ac__type_new_;
10873 if ((ac__type_new_ *) 0)
10875 if (sizeof (ac__type_new_))
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_type_ptrdiff_t=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_type_ptrdiff_t=no
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10926 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10927 if test $ac_cv_type_ptrdiff_t = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932 #define ptrdiff_t unsigned long long
10938 if test x"$ac_cv_type_long_long" != x"yes";then
10939 { { echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10940 echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10941 { (exit 1); exit 1; }; }
10943 if test $ac_cv_sizeof_long_long -lt 8;then
10944 { { echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10945 echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10946 { (exit 1); exit 1; }; }
10949 ############################################
10950 # check if the compiler can do immediate structures
10952 { echo "$as_me:$LINENO: checking for immediate structures" >&5
10953 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6; }
10954 if test "${libreplace_cv_immediate_structures+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10971 typedef struct {unsigned x;} FOOBAR;
10972 #define X_FOOBAR(x) ((FOOBAR) { x })
10973 #define FOO_ONE X_FOOBAR(1)
10974 FOOBAR f = FOO_ONE;
10975 static const struct {
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 libreplace_cv_immediate_structures=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 libreplace_cv_immediate_structures=no
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 { echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
11031 echo "${ECHO_T}$libreplace_cv_immediate_structures" >&6; }
11032 if test x"$libreplace_cv_immediate_structures" = x"yes"; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_IMMEDIATE_STRUCTURES 1
11041 echo "LIBREPLACE_CC_CHECKS: END"
11045 echo "LIBREPLACE_BROKEN_CHECKS: START"
11048 for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
11049 if test -f "$d/replace.c"; then
11055 LIBREPLACEOBJ="replace.o"
11058 LIBREPLACEOBJ="${LIBREPLACEOBJ} snprintf.o"
11060 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11061 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11062 if test "${ac_cv_type_signal+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 #include <sys/types.h>
11072 #include <signal.h>
11077 return *(signal (0, 0)) (0) == 1;
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_try") 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_type_signal=int
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_type_signal=void
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11127 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11129 cat >>confdefs.h <<_ACEOF
11130 #define RETSIGTYPE $ac_cv_type_signal
11134 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11135 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11136 if test "${ac_cv_type_uid_t+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <sys/types.h>
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149 $EGREP "uid_t" >/dev/null 2>&1; then
11150 ac_cv_type_uid_t=yes
11152 ac_cv_type_uid_t=no
11157 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11158 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11159 if test $ac_cv_type_uid_t = no; then
11161 cat >>confdefs.h <<\_ACEOF
11166 cat >>confdefs.h <<\_ACEOF
11172 { echo "$as_me:$LINENO: checking for mode_t" >&5
11173 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11174 if test "${ac_cv_type_mode_t+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 $ac_includes_default
11184 typedef mode_t ac__type_new_;
11188 if ((ac__type_new_ *) 0)
11190 if (sizeof (ac__type_new_))
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_type_mode_t=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_cv_type_mode_t=no
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11241 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11242 if test $ac_cv_type_mode_t = yes; then
11246 cat >>confdefs.h <<_ACEOF
11252 { echo "$as_me:$LINENO: checking for off_t" >&5
11253 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11254 if test "${ac_cv_type_off_t+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 typedef off_t ac__type_new_;
11268 if ((ac__type_new_ *) 0)
11270 if (sizeof (ac__type_new_))
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_cv_type_off_t=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_cv_type_off_t=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11322 if test $ac_cv_type_off_t = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define off_t long int
11332 { echo "$as_me:$LINENO: checking for size_t" >&5
11333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11334 if test "${ac_cv_type_size_t+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11344 typedef size_t ac__type_new_;
11348 if ((ac__type_new_ *) 0)
11350 if (sizeof (ac__type_new_))
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371 { (case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_try") 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_type_size_t=yes
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_cv_type_size_t=no
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11401 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11402 if test $ac_cv_type_size_t = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define size_t unsigned int
11412 { echo "$as_me:$LINENO: checking for pid_t" >&5
11413 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11414 if test "${ac_cv_type_pid_t+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 typedef pid_t ac__type_new_;
11428 if ((ac__type_new_ *) 0)
11430 if (sizeof (ac__type_new_))
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_compile") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_type_pid_t=yes
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_cv_type_pid_t=no
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11481 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11482 if test $ac_cv_type_pid_t = yes; then
11486 cat >>confdefs.h <<_ACEOF
11492 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
11494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11507 static struct stat ac_aggr;
11508 if (ac_aggr.st_rdev)
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_cv_member_struct_stat_st_rdev=yes
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11563 static struct stat ac_aggr;
11564 if (sizeof ac_aggr.st_rdev)
11570 rm -f conftest.$ac_objext
11571 if { (ac_try="$ac_compile"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_compile") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_member_struct_stat_st_rdev=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_member_struct_stat_st_rdev=no
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11618 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
11619 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_STRUCT_STAT_ST_RDEV 1
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_ST_RDEV 1
11633 { echo "$as_me:$LINENO: checking for ino_t" >&5
11634 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
11635 if test "${ac_cv_type_ino_t+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 $ac_includes_default
11645 typedef ino_t ac__type_new_;
11649 if ((ac__type_new_ *) 0)
11651 if (sizeof (ac__type_new_))
11657 rm -f conftest.$ac_objext
11658 if { (ac_try="$ac_compile"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_compile") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest.$ac_objext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_cv_type_ino_t=yes
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_type_ino_t=no
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11702 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
11703 if test $ac_cv_type_ino_t = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define ino_t unsigned
11713 { echo "$as_me:$LINENO: checking for loff_t" >&5
11714 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
11715 if test "${ac_cv_type_loff_t+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 typedef loff_t ac__type_new_;
11729 if ((ac__type_new_ *) 0)
11731 if (sizeof (ac__type_new_))
11737 rm -f conftest.$ac_objext
11738 if { (ac_try="$ac_compile"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_type_loff_t=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_type_loff_t=no
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11782 echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
11783 if test $ac_cv_type_loff_t = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define loff_t off_t
11793 { echo "$as_me:$LINENO: checking for offset_t" >&5
11794 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
11795 if test "${ac_cv_type_offset_t+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 typedef offset_t ac__type_new_;
11809 if ((ac__type_new_ *) 0)
11811 if (sizeof (ac__type_new_))
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest.$ac_objext'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 ac_cv_type_offset_t=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_type_offset_t=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11862 echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
11863 if test $ac_cv_type_offset_t = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define offset_t loff_t
11874 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11875 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11876 if test "${ac_cv_func_memcmp_working+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 if test "$cross_compiling" = yes; then
11880 ac_cv_func_memcmp_working=no
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11893 /* Some versions of memcmp are not 8-bit clean. */
11894 char c0 = '\100', c1 = '\200', c2 = '\201';
11895 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11898 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11899 or more and with at least one buffer not starting on a 4-byte boundary.
11900 William Lewis provided this test program. */
11905 for (i = 0; i < 4; i++)
11909 strcpy (a, "--------01111111");
11910 strcpy (b, "--------10000000");
11911 if (memcmp (a, b, 16) >= 0)
11921 rm -f conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_func_memcmp_working=yes
11943 echo "$as_me: program exited with status $ac_status" >&5
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ( exit $ac_status )
11948 ac_cv_func_memcmp_working=no
11950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11955 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11956 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11957 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11958 *" memcmp.$ac_objext "* ) ;;
11959 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11975 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define $ac_func innocuous_$ac_func
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11999 # include <limits.h>
12001 # include <assert.h>
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined __stub_$ac_func || defined __stub___$ac_func
12023 return $ac_func ();
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 eval "$as_ac_var=no"
12070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12071 conftest$ac_exeext conftest.$ac_ext
12073 ac_res=`eval echo '${'$as_ac_var'}'`
12074 { echo "$as_me:$LINENO: result: $ac_res" >&5
12075 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087 for ac_header in stdbool.h sys/select.h
12089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097 { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12100 # Is the header compilable?
12101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 $ac_includes_default
12110 #include <$ac_header>
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest.$ac_objext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_compiler=no
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156 echo "${ECHO_T}$ac_header_compiler" >&6; }
12158 # Is the header present?
12159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 #include <$ac_header>
12169 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12191 if test -z "$ac_cpp_err"; then
12192 ac_header_preproc=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 eval "$as_ac_Header=\$ac_header_preproc"
12236 ac_res=`eval echo '${'$as_ac_Header'}'`
12237 { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
12241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12252 for ac_header in sys/epoll.h
12254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_res=`eval echo '${'$as_ac_Header'}'`
12262 { echo "$as_me:$LINENO: result: $ac_res" >&5
12263 echo "${ECHO_T}$ac_res" >&6; }
12265 # Is the header compilable?
12266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12275 #include <$ac_header>
12277 rm -f conftest.$ac_objext
12278 if { (ac_try="$ac_compile"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_compile") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292 { (case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_try") 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_header_compiler=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_header_compiler=no
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12321 echo "${ECHO_T}$ac_header_compiler" >&6; }
12323 # Is the header present?
12324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <$ac_header>
12334 if { (ac_try="$ac_cpp conftest.$ac_ext"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } >/dev/null; then
12347 if test -s conftest.err; then
12348 ac_cpp_err=$ac_c_preproc_warn_flag
12349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12356 if test -z "$ac_cpp_err"; then
12357 ac_header_preproc=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_header_preproc=no
12365 rm -f conftest.err conftest.$ac_ext
12366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12367 echo "${ECHO_T}$ac_header_preproc" >&6; }
12369 # So? What about this header?
12370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12376 ac_header_preproc=yes
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 eval "$as_ac_Header=\$ac_header_preproc"
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416 for ac_func in epoll_create
12418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define $ac_func innocuous_$ac_func
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char $ac_func (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12440 # include <limits.h>
12442 # include <assert.h>
12447 /* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12454 /* The GNU C library defines this for functions which it implements
12455 to always fail with ENOSYS. Some functions are actually named
12456 something starting with __ and the normal name is an alias. */
12457 #if defined __stub_$ac_func || defined __stub___$ac_func
12464 return $ac_func ();
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 eval "$as_ac_var=yes"
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 eval "$as_ac_var=no"
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12514 ac_res=`eval echo '${'$as_ac_var'}'`
12515 { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12526 { echo "$as_me:$LINENO: checking for bool" >&5
12527 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
12528 if test "${ac_cv_type_bool+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12538 $ac_includes_default
12539 #ifdef HAVE_STDBOOL_H
12540 #include <stdbool.h>
12544 typedef bool ac__type_new_;
12548 if ((ac__type_new_ *) 0)
12550 if (sizeof (ac__type_new_))
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_type_bool=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12601 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
12602 if test $ac_cv_type_bool = yes; then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_BOOL 1
12611 { echo "$as_me:$LINENO: checking for _Bool" >&5
12612 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12613 if test "${ac_cv_type__Bool+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12623 $ac_includes_default
12624 #ifdef HAVE_STDBOOL_H
12625 #include <stdbool.h>
12629 typedef _Bool ac__type_new_;
12633 if ((ac__type_new_ *) 0)
12635 if (sizeof (ac__type_new_))
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest.$ac_objext'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_type__Bool=yes
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_cv_type__Bool=no
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12686 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12687 if test $ac_cv_type__Bool = yes; then
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE__Bool 1
12696 { echo "$as_me:$LINENO: checking for working mmap" >&5
12697 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12698 if test "${samba_cv_HAVE_MMAP+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 if test "$cross_compiling" = yes; then
12703 samba_cv_HAVE_MMAP=cross
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include "$libreplacedir/test/shared_mmap.c"
12713 rm -f conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_link") 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 samba_cv_HAVE_MMAP=yes
12735 echo "$as_me: program exited with status $ac_status" >&5
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ( exit $ac_status )
12740 samba_cv_HAVE_MMAP=no
12742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12747 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
12748 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
12749 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define HAVE_MMAP 1
12760 for ac_header in sys/syslog.h syslog.h
12762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771 echo "${ECHO_T}$ac_res" >&6; }
12773 # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 #include <$ac_header>
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_try") 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_header_compiler=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_compiler=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 #include <$ac_header>
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_c_preproc_warn_flag
12857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12864 if test -z "$ac_cpp_err"; then
12865 ac_header_preproc=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_header_preproc=no
12873 rm -f conftest.err conftest.$ac_ext
12874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6; }
12877 # So? What about this header?
12878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884 ac_header_preproc=yes
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 eval "$as_ac_Header=\$ac_header_preproc"
12909 ac_res=`eval echo '${'$as_ac_Header'}'`
12910 { echo "$as_me:$LINENO: result: $ac_res" >&5
12911 echo "${ECHO_T}$ac_res" >&6; }
12914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12915 cat >>confdefs.h <<_ACEOF
12916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925 for ac_header in sys/time.h time.h
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 ac_res=`eval echo '${'$as_ac_Header'}'`
12935 { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12938 # Is the header compilable?
12939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 $ac_includes_default
12948 #include <$ac_header>
12950 rm -f conftest.$ac_objext
12951 if { (ac_try="$ac_compile"
12952 case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_compile") 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12965 { (case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_try") 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest.$ac_objext'
12975 { (case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_header_compiler=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_header_compiler=no
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12994 echo "${ECHO_T}$ac_header_compiler" >&6; }
12996 # Is the header present?
12997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <$ac_header>
13007 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13020 if test -s conftest.err; then
13021 ac_cpp_err=$ac_c_preproc_warn_flag
13022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13029 if test -z "$ac_cpp_err"; then
13030 ac_header_preproc=yes
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 ac_header_preproc=no
13038 rm -f conftest.err conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6; }
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13049 ac_header_preproc=yes
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 eval "$as_ac_Header=\$ac_header_preproc"
13074 ac_res=`eval echo '${'$as_ac_Header'}'`
13075 { echo "$as_me:$LINENO: result: $ac_res" >&5
13076 echo "${ECHO_T}$ac_res" >&6; }
13079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13080 cat >>confdefs.h <<_ACEOF
13081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13090 for ac_header in stdarg.h vararg.h
13092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_res=`eval echo '${'$as_ac_Header'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13103 # Is the header compilable?
13104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 $ac_includes_default
13113 #include <$ac_header>
13115 rm -f conftest.$ac_objext
13116 if { (ac_try="$ac_compile"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_compile") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_try") 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_header_compiler=yes
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_header_compiler=no
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159 echo "${ECHO_T}$ac_header_compiler" >&6; }
13161 # Is the header present?
13162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13172 if { (ac_try="$ac_cpp conftest.$ac_ext"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } >/dev/null; then
13185 if test -s conftest.err; then
13186 ac_cpp_err=$ac_c_preproc_warn_flag
13187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13194 if test -z "$ac_cpp_err"; then
13195 ac_header_preproc=yes
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ac_header_preproc=no
13203 rm -f conftest.err conftest.$ac_ext
13204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 echo "${ECHO_T}$ac_header_preproc" >&6; }
13207 # So? What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214 ac_header_preproc=yes
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 eval "$as_ac_Header=\$ac_header_preproc"
13239 ac_res=`eval echo '${'$as_ac_Header'}'`
13240 { echo "$as_me:$LINENO: result: $ac_res" >&5
13241 echo "${ECHO_T}$ac_res" >&6; }
13244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13245 cat >>confdefs.h <<_ACEOF
13246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13257 for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
13259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 ac_res=`eval echo '${'$as_ac_Header'}'`
13267 { echo "$as_me:$LINENO: result: $ac_res" >&5
13268 echo "${ECHO_T}$ac_res" >&6; }
13270 # Is the header compilable?
13271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 $ac_includes_default
13280 #include <$ac_header>
13282 rm -f conftest.$ac_objext
13283 if { (ac_try="$ac_compile"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_compile") 2>conftest.er1
13291 grep -v '^ *+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } &&
13296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13297 { (case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_try") 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest.$ac_objext'
13307 { (case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_try") 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_header_compiler=yes
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_header_compiler=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 echo "${ECHO_T}$ac_header_compiler" >&6; }
13328 # Is the header present?
13329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13347 grep -v '^ *+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } >/dev/null; then
13352 if test -s conftest.err; then
13353 ac_cpp_err=$ac_c_preproc_warn_flag
13354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13361 if test -z "$ac_cpp_err"; then
13362 ac_header_preproc=yes
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 ac_header_preproc=no
13370 rm -f conftest.err conftest.$ac_ext
13371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13372 echo "${ECHO_T}$ac_header_preproc" >&6; }
13374 # So? What about this header?
13375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13381 ac_header_preproc=yes
13384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 eval "$as_ac_Header=\$ac_header_preproc"
13406 ac_res=`eval echo '${'$as_ac_Header'}'`
13407 { echo "$as_me:$LINENO: result: $ac_res" >&5
13408 echo "${ECHO_T}$ac_res" >&6; }
13411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13412 cat >>confdefs.h <<_ACEOF
13413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13424 for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
13426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 ac_res=`eval echo '${'$as_ac_Header'}'`
13434 { echo "$as_me:$LINENO: result: $ac_res" >&5
13435 echo "${ECHO_T}$ac_res" >&6; }
13437 # Is the header compilable?
13438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 $ac_includes_default
13447 #include <$ac_header>
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13464 { (case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_try") 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_header_compiler=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_header_compiler=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <$ac_header>
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13519 if test -s conftest.err; then
13520 ac_cpp_err=$ac_c_preproc_warn_flag
13521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13528 if test -z "$ac_cpp_err"; then
13529 ac_header_preproc=yes
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 ac_header_preproc=no
13537 rm -f conftest.err conftest.$ac_ext
13538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13539 echo "${ECHO_T}$ac_header_preproc" >&6; }
13541 # So? What about this header?
13542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13548 ac_header_preproc=yes
13551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 eval "$as_ac_Header=\$ac_header_preproc"
13573 ac_res=`eval echo '${'$as_ac_Header'}'`
13574 { echo "$as_me:$LINENO: result: $ac_res" >&5
13575 echo "${ECHO_T}$ac_res" >&6; }
13578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13579 cat >>confdefs.h <<_ACEOF
13580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13589 for ac_header in sys/sockio.h sys/un.h
13591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 ac_res=`eval echo '${'$as_ac_Header'}'`
13599 { echo "$as_me:$LINENO: result: $ac_res" >&5
13600 echo "${ECHO_T}$ac_res" >&6; }
13602 # Is the header compilable?
13603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 $ac_includes_default
13612 #include <$ac_header>
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compile") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_try") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_header_compiler=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_header_compiler=no
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13658 echo "${ECHO_T}$ac_header_compiler" >&6; }
13660 # Is the header present?
13661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <$ac_header>
13671 if { (ac_try="$ac_cpp conftest.$ac_ext"
13672 case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13679 grep -v '^ *+' conftest.er1 >conftest.err
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } >/dev/null; then
13684 if test -s conftest.err; then
13685 ac_cpp_err=$ac_c_preproc_warn_flag
13686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13693 if test -z "$ac_cpp_err"; then
13694 ac_header_preproc=yes
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_header_preproc=no
13702 rm -f conftest.err conftest.$ac_ext
13703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13704 echo "${ECHO_T}$ac_header_preproc" >&6; }
13706 # So? What about this header?
13707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13713 ac_header_preproc=yes
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 eval "$as_ac_Header=\$ac_header_preproc"
13738 ac_res=`eval echo '${'$as_ac_Header'}'`
13739 { echo "$as_me:$LINENO: result: $ac_res" >&5
13740 echo "${ECHO_T}$ac_res" >&6; }
13743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13754 { echo "$as_me:$LINENO: checking for usable net/if.h" >&5
13755 echo $ECHO_N "checking for usable net/if.h... $ECHO_C" >&6; }
13756 if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 $ac_includes_default
13768 #if HAVE_SYS_SOCKET_H
13769 # include <sys/socket.h>
13771 #include <net/if.h>
13772 int main(void) {return 0;}
13774 rm -f conftest.$ac_objext
13775 if { (ac_try="$ac_compile"
13776 case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_compile") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 libreplace_cv_USABLE_NET_IF_H=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 libreplace_cv_USABLE_NET_IF_H=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 { echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
13821 echo "${ECHO_T}$libreplace_cv_USABLE_NET_IF_H" >&6; }
13822 if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_NET_IF_H 1
13830 { echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
13831 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6; }
13832 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 if test "$cross_compiling" = yes; then
13837 samba_cv_REPLACE_INET_NTOA=cross
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13847 #include <unistd.h>
13848 #include <sys/types.h>
13849 #include <netinet/in.h>
13850 #ifdef HAVE_ARPA_INET_H
13851 #include <arpa/inet.h>
13853 main() { struct in_addr ip; ip.s_addr = 0x12345678;
13854 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
13855 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
13858 rm -f conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_link") 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13869 { (case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_try") 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 samba_cv_REPLACE_INET_NTOA=yes
13880 echo "$as_me: program exited with status $ac_status" >&5
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ( exit $ac_status )
13885 samba_cv_REPLACE_INET_NTOA=no
13887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13892 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
13893 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6; }
13894 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
13896 cat >>confdefs.h <<\_ACEOF
13897 #define REPLACE_INET_NTOA 1
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13909 #include <sys/types.h>
13911 #include <stdlib.h>
13912 #include <stddef.h>
13914 #include <sys/socket.h>
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13963 cat >>confdefs.h <<\_ACEOF
13964 #define socklen_t int
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
13980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 cat >conftest.$ac_ext <<_ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13994 #define $ac_func innocuous_$ac_func
13996 /* System header to define __stub macros and hopefully few prototypes,
13997 which can conflict with char $ac_func (); below.
13998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13999 <limits.h> exists even on freestanding compilers. */
14002 # include <limits.h>
14004 # include <assert.h>
14009 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14016 /* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019 #if defined __stub_$ac_func || defined __stub___$ac_func
14026 return $ac_func ();
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (ac_try="$ac_link"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_link") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1 >conftest.err
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14046 { (case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_try") 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest$ac_exeext'
14056 { (case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_try") 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 eval "$as_ac_var=yes"
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 eval "$as_ac_var=no"
14073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14074 conftest$ac_exeext conftest.$ac_ext
14076 ac_res=`eval echo '${'$as_ac_var'}'`
14077 { echo "$as_me:$LINENO: result: $ac_res" >&5
14078 echo "${ECHO_T}$ac_res" >&6; }
14079 if test `eval echo '${'$as_ac_var'}'` = yes; then
14080 cat >>confdefs.h <<_ACEOF
14081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
14095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14109 #define $ac_func innocuous_$ac_func
14111 /* System header to define __stub macros and hopefully few prototypes,
14112 which can conflict with char $ac_func (); below.
14113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14114 <limits.h> exists even on freestanding compilers. */
14117 # include <limits.h>
14119 # include <assert.h>
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14131 /* The GNU C library defines this for functions which it implements
14132 to always fail with ENOSYS. Some functions are actually named
14133 something starting with __ and the normal name is an alias. */
14134 #if defined __stub_$ac_func || defined __stub___$ac_func
14141 return $ac_func ();
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (ac_try="$ac_link"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_link") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 eval "$as_ac_var=yes"
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 eval "$as_ac_var=no"
14188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14189 conftest$ac_exeext conftest.$ac_ext
14191 ac_res=`eval echo '${'$as_ac_var'}'`
14192 { echo "$as_me:$LINENO: result: $ac_res" >&5
14193 echo "${ECHO_T}$ac_res" >&6; }
14194 if test `eval echo '${'$as_ac_var'}'` = yes; then
14195 cat >>confdefs.h <<_ACEOF
14196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14209 for ac_func in waitpid strlcpy strlcat innetgr initgroups memmove strdup
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14225 #define $ac_func innocuous_$ac_func
14227 /* System header to define __stub macros and hopefully few prototypes,
14228 which can conflict with char $ac_func (); below.
14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 <limits.h> exists even on freestanding compilers. */
14233 # include <limits.h>
14235 # include <assert.h>
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14257 return $ac_func ();
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 eval "$as_ac_var=yes"
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 eval "$as_ac_var=no"
14304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14305 conftest$ac_exeext conftest.$ac_ext
14307 ac_res=`eval echo '${'$as_ac_var'}'`
14308 { echo "$as_me:$LINENO: result: $ac_res" >&5
14309 echo "${ECHO_T}$ac_res" >&6; }
14310 if test `eval echo '${'$as_ac_var'}'` = yes; then
14311 cat >>confdefs.h <<_ACEOF
14312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp socketpair
14327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14341 #define $ac_func innocuous_$ac_func
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func (); below.
14345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14346 <limits.h> exists even on freestanding compilers. */
14349 # include <limits.h>
14351 # include <assert.h>
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14363 /* The GNU C library defines this for functions which it implements
14364 to always fail with ENOSYS. Some functions are actually named
14365 something starting with __ and the normal name is an alias. */
14366 #if defined __stub_$ac_func || defined __stub___$ac_func
14373 return $ac_func ();
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (ac_try="$ac_link"
14380 case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_link") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest$ac_exeext'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 eval "$as_ac_var=yes"
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 eval "$as_ac_var=no"
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14423 ac_res=`eval echo '${'$as_ac_var'}'`
14424 { echo "$as_me:$LINENO: result: $ac_res" >&5
14425 echo "${ECHO_T}$ac_res" >&6; }
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14435 { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
14436 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
14437 if test "${ac_cv_have_setresuid_decl+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 #include <unistd.h>
14451 int i = (int)setresuid
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14471 { (case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_try") 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_have_setresuid_decl=yes
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_cv_have_setresuid_decl=no
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 { echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
14501 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
14502 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
14504 cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_SETRESUID_DECL 1
14511 { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
14512 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
14513 if test "${ac_cv_have_setresgid_decl+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <unistd.h>
14527 int i = (int)setresgid
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_have_setresgid_decl=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_have_setresgid_decl=no
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 { echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
14577 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
14578 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_SETRESGID_DECL 1
14587 { echo "$as_me:$LINENO: checking for errno declaration" >&5
14588 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
14589 if test "${ac_cv_have_errno_decl+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14608 rm -f conftest.$ac_objext
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_compile") 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_cv_have_errno_decl=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_have_errno_decl=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
14653 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
14654 if test x"$ac_cv_have_errno_decl" = x"yes"; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ERRNO_DECL 1
14663 { echo "$as_me:$LINENO: checking for secure mkstemp" >&5
14664 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
14665 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 if test "$cross_compiling" = yes; then
14670 samba_cv_HAVE_SECURE_MKSTEMP=cross
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <stdlib.h>
14679 #include <sys/types.h>
14680 #include <sys/stat.h>
14681 #include <unistd.h>
14684 char tpl[20]="/tmp/test.XXXXXX";
14685 int fd = mkstemp(tpl);
14686 if (fd == -1) exit(1);
14688 if (fstat(fd, &st) != 0) exit(1);
14689 if ((st.st_mode & 0777) != 0600) exit(1);
14693 rm -f conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 samba_cv_HAVE_SECURE_MKSTEMP=yes
14715 echo "$as_me: program exited with status $ac_status" >&5
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ( exit $ac_status )
14720 samba_cv_HAVE_SECURE_MKSTEMP=no
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14727 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
14728 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
14729 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_SECURE_MKSTEMP 1
14739 for ac_header in stdio.h strings.h
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749 { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14752 # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 $ac_includes_default
14762 #include <$ac_header>
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_header_compiler=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <$ac_header>
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14843 if test -z "$ac_cpp_err"; then
14844 ac_header_preproc=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_preproc=no
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 eval "$as_ac_Header=\$ac_header_preproc"
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889 { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14903 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14904 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14918 char *p = (char *) snprintf;
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_compile") 2>conftest.er1
14935 grep -v '^ *+' conftest.er1 >conftest.err
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941 { (case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_try") 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_try") 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_have_decl_snprintf=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_cv_have_decl_snprintf=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14971 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14972 if test $ac_cv_have_decl_snprintf = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_DECL_SNPRINTF 1
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_DECL_SNPRINTF 0
14986 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14987 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
14988 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 $ac_includes_default
15002 char *p = (char *) vsnprintf;
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_have_decl_vsnprintf=yes
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_cv_have_decl_vsnprintf=no
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15055 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
15056 if test $ac_cv_have_decl_vsnprintf = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_DECL_VSNPRINTF 1
15064 cat >>confdefs.h <<_ACEOF
15065 #define HAVE_DECL_VSNPRINTF 0
15070 { echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
15071 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
15072 if test "${ac_cv_have_decl_asprintf+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 $ac_includes_default
15086 char *p = (char *) asprintf;
15094 rm -f conftest.$ac_objext
15095 if { (ac_try="$ac_compile"
15096 case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_compile") 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15109 { (case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_try") 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; } &&
15118 { ac_try='test -s conftest.$ac_objext'
15119 { (case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_try") 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_cv_have_decl_asprintf=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_have_decl_asprintf=no
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
15139 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
15140 if test $ac_cv_have_decl_asprintf = yes; then
15142 cat >>confdefs.h <<_ACEOF
15143 #define HAVE_DECL_ASPRINTF 1
15148 cat >>confdefs.h <<_ACEOF
15149 #define HAVE_DECL_ASPRINTF 0
15154 { echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
15155 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
15156 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 $ac_includes_default
15170 char *p = (char *) vasprintf;
15178 rm -f conftest.$ac_objext
15179 if { (ac_try="$ac_compile"
15180 case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_compile") 2>conftest.er1
15187 grep -v '^ *+' conftest.er1 >conftest.err
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
15192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15193 { (case "(($ac_try" in
15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195 *) ac_try_echo=$ac_try;;
15197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15198 (eval "$ac_try") 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; } &&
15202 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15212 ac_cv_have_decl_vasprintf=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 ac_cv_have_decl_vasprintf=no
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
15223 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
15224 if test $ac_cv_have_decl_vasprintf = yes; then
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_DECL_VASPRINTF 1
15232 cat >>confdefs.h <<_ACEOF
15233 #define HAVE_DECL_VASPRINTF 0
15244 for ac_func in snprintf vsnprintf asprintf vasprintf
15246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15260 #define $ac_func innocuous_$ac_func
15262 /* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char $ac_func (); below.
15264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15265 <limits.h> exists even on freestanding compilers. */
15268 # include <limits.h>
15270 # include <assert.h>
15275 /* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15282 /* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285 #if defined __stub_$ac_func || defined __stub___$ac_func
15292 return $ac_func ();
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (ac_try="$ac_link"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_link") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest$ac_exeext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 eval "$as_ac_var=yes"
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 eval "$as_ac_var=no"
15339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15340 conftest$ac_exeext conftest.$ac_ext
15342 ac_res=`eval echo '${'$as_ac_var'}'`
15343 { echo "$as_me:$LINENO: result: $ac_res" >&5
15344 echo "${ECHO_T}$ac_res" >&6; }
15345 if test `eval echo '${'$as_ac_var'}'` = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15354 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
15355 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
15356 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 if test "$cross_compiling" = yes; then
15361 samba_cv_HAVE_C99_VSNPRINTF=cross
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 #include <sys/types.h>
15372 #include <stdarg.h>
15373 #include <stdlib.h>
15374 void foo(const char *format, ...) {
15378 long long l = 1234567890;
15381 va_start(ap, format);
15382 len = vsnprintf(buf, 0, format, ap);
15384 if (len != 5) exit(1);
15386 va_start(ap, format);
15387 len = vsnprintf(0, 0, format, ap);
15389 if (len != 5) exit(2);
15391 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
15393 if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
15394 if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
15395 if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
15396 if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
15400 main() { foo("hello"); }
15403 rm -f conftest$ac_exeext
15404 if { (ac_try="$ac_link"
15405 case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_link") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 samba_cv_HAVE_C99_VSNPRINTF=yes
15425 echo "$as_me: program exited with status $ac_status" >&5
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 ( exit $ac_status )
15430 samba_cv_HAVE_C99_VSNPRINTF=no
15432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
15438 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
15439 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_C99_VSNPRINTF 1
15448 { echo "$as_me:$LINENO: checking for va_copy" >&5
15449 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
15450 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <stdarg.h>
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 samba_cv_HAVE_VA_COPY=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 samba_cv_HAVE_VA_COPY=no
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
15516 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
15517 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_VA_COPY 1
15525 if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
15526 { echo "$as_me:$LINENO: checking for __va_copy" >&5
15527 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
15528 if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 cat >conftest.$ac_ext <<_ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538 #include <stdarg.h>
15543 __va_copy(ap1,ap2);
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_link") 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15563 { (case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_try") 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest$ac_exeext'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 samba_cv_HAVE___VA_COPY=yes
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 samba_cv_HAVE___VA_COPY=no
15590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591 conftest$ac_exeext conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
15594 echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
15595 if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE___VA_COPY 1
15604 { echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
15605 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
15606 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15620 printf("%s\n", __FUNCTION__);
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_try") 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 samba_cv_HAVE_FUNCTION_MACRO=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 samba_cv_HAVE_FUNCTION_MACRO=no
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
15670 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
15671 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_FUNCTION_MACRO 1
15678 { echo "$as_me:$LINENO: checking for __func__ macro" >&5
15679 echo $ECHO_N "checking for __func__ macro... $ECHO_C" >&6; }
15680 if test "${samba_cv_HAVE_func_MACRO+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15694 printf("%s\n", __func__);
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_compile") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15714 { (case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_try") 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
15724 { (case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_try") 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 samba_cv_HAVE_func_MACRO=yes
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 samba_cv_HAVE_func_MACRO=no
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_func_MACRO" >&5
15744 echo "${ECHO_T}$samba_cv_HAVE_func_MACRO" >&6; }
15745 if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_func_MACRO 1
15756 for ac_header in sys/param.h limits.h
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15769 # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <$ac_header>
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15860 if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 eval "$as_ac_Header=\$ac_header_preproc"
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15920 { echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15921 echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
15922 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 $ac_includes_default
15932 typedef comparison_fn_t ac__type_new_;
15936 if ((ac__type_new_ *) 0)
15938 if (sizeof (ac__type_new_))
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_compile") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest.$ac_objext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_type_comparison_fn_t=yes
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_type_comparison_fn_t=no
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 { echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15989 echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
15990 if test $ac_cv_type_comparison_fn_t = yes; then
15992 cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_COMPARISON_FN_T 1
16001 for ac_func in strnlen setenv
16003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16017 #define $ac_func innocuous_$ac_func
16019 /* System header to define __stub macros and hopefully few prototypes,
16020 which can conflict with char $ac_func (); below.
16021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022 <limits.h> exists even on freestanding compilers. */
16025 # include <limits.h>
16027 # include <assert.h>
16032 /* Override any GCC internal prototype to avoid an error.
16033 Use char because int might match the return type of a GCC
16034 builtin and then its argument prototype would still apply. */
16039 /* The GNU C library defines this for functions which it implements
16040 to always fail with ENOSYS. Some functions are actually named
16041 something starting with __ and the normal name is an alias. */
16042 #if defined __stub_$ac_func || defined __stub___$ac_func
16049 return $ac_func ();
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (ac_try="$ac_link"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_link") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16069 { (case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_try") 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest$ac_exeext'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 eval "$as_ac_var=yes"
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 eval "$as_ac_var=no"
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097 conftest$ac_exeext conftest.$ac_ext
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100 { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103 cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16116 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
16118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16132 #define $ac_func innocuous_$ac_func
16134 /* System header to define __stub macros and hopefully few prototypes,
16135 which can conflict with char $ac_func (); below.
16136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16137 <limits.h> exists even on freestanding compilers. */
16140 # include <limits.h>
16142 # include <assert.h>
16147 /* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16154 /* The GNU C library defines this for functions which it implements
16155 to always fail with ENOSYS. Some functions are actually named
16156 something starting with __ and the normal name is an alias. */
16157 #if defined __stub_$ac_func || defined __stub___$ac_func
16164 return $ac_func ();
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_link") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 eval "$as_ac_var=yes"
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 eval "$as_ac_var=no"
16211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16212 conftest$ac_exeext conftest.$ac_ext
16214 ac_res=`eval echo '${'$as_ac_var'}'`
16215 { echo "$as_me:$LINENO: result: $ac_res" >&5
16216 echo "${ECHO_T}$ac_res" >&6; }
16217 if test `eval echo '${'$as_ac_var'}'` = yes; then
16218 cat >>confdefs.h <<_ACEOF
16219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16226 # this test disabled as we don't actually need __VA_ARGS__ yet
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
16235 eprintf("bla", "bar");
16238 if { (ac_try="$ac_cpp conftest.$ac_ext"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } >/dev/null; then
16251 if test -s conftest.err; then
16252 ac_cpp_err=$ac_c_preproc_warn_flag
16253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16260 if test -z "$ac_cpp_err"; then
16262 cat >>confdefs.h <<\_ACEOF
16263 #define HAVE__VA_ARGS__MACRO 1
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16273 rm -f conftest.err conftest.$ac_ext
16275 # Check prerequisites
16279 for ac_func in memset printf syslog
16281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16295 #define $ac_func innocuous_$ac_func
16297 /* System header to define __stub macros and hopefully few prototypes,
16298 which can conflict with char $ac_func (); below.
16299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16300 <limits.h> exists even on freestanding compilers. */
16303 # include <limits.h>
16305 # include <assert.h>
16310 /* Override any GCC internal prototype to avoid an error.
16311 Use char because int might match the return type of a GCC
16312 builtin and then its argument prototype would still apply. */
16317 /* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
16320 #if defined __stub_$ac_func || defined __stub___$ac_func
16327 return $ac_func ();
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (ac_try="$ac_link"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_link") 2>conftest.er1
16341 grep -v '^ *+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest$ac_exeext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 eval "$as_ac_var=yes"
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 eval "$as_ac_var=no"
16374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16375 conftest$ac_exeext conftest.$ac_ext
16377 ac_res=`eval echo '${'$as_ac_var'}'`
16378 { echo "$as_me:$LINENO: result: $ac_res" >&5
16379 echo "${ECHO_T}$ac_res" >&6; }
16380 if test `eval echo '${'$as_ac_var'}'` = yes; then
16381 cat >>confdefs.h <<_ACEOF
16382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16386 { { echo "$as_me:$LINENO: error: Required function not found" >&5
16387 echo "$as_me: error: Required function not found" >&2;}
16388 { (exit 1); exit 1; }; }
16393 { echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
16394 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
16395 if test "${samba_cv_sig_atomic_t+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 cat >conftest.$ac_ext <<_ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16406 #include <sys/types.h>
16408 #include <stdlib.h>
16409 #include <stddef.h>
16411 #include <signal.h>
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_compile") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 samba_cv_sig_atomic_t=yes
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 samba_cv_sig_atomic_t=no
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
16465 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
16466 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
16468 cat >>confdefs.h <<\_ACEOF
16469 #define HAVE_SIG_ATOMIC_T_TYPE 1
16475 { echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
16476 echo $ECHO_N "checking for O_DIRECT flag to open(2)... $ECHO_C" >&6; }
16477 if test "${samba_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 cat >conftest.$ac_ext <<_ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16488 #include <unistd.h>
16489 #ifdef HAVE_FCNTL_H
16495 int fd = open("/dev/null", O_DIRECT);
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_compile") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 samba_cv_HAVE_OPEN_O_DIRECT=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 samba_cv_HAVE_OPEN_O_DIRECT=no
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_OPEN_O_DIRECT" >&5
16545 echo "${ECHO_T}$samba_cv_HAVE_OPEN_O_DIRECT" >&6; }
16546 if test x"$samba_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPEN_O_DIRECT 1
16555 { echo "$as_me:$LINENO: checking that the C compiler can precompile header files" >&5
16556 echo $ECHO_N "checking that the C compiler can precompile header files... $ECHO_C" >&6; }
16557 if test "${samba_cv_precompiled_headers+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
16563 precompiled_headers=yes
16565 precompiled_headers=no
16568 { echo "$as_me:$LINENO: result: $samba_cv_precompiled_headers" >&5
16569 echo "${ECHO_T}$samba_cv_precompiled_headers" >&6; }
16573 { echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
16574 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
16575 if test "${samba_cv_volatile+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 cat >conftest.$ac_ext <<_ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <sys/types.h>
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 samba_cv_volatile=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 samba_cv_volatile=no
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 { echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
16639 echo "${ECHO_T}$samba_cv_volatile" >&6; }
16640 if test x"$samba_cv_volatile" = x"yes"; then
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE_VOLATILE 1
16654 ac_header_dirent=no
16655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16656 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16657 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 #include <sys/types.h>
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_compile") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 eval "$as_ac_Header=yes"
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 eval "$as_ac_Header=no"
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 ac_res=`eval echo '${'$as_ac_Header'}'`
16725 { echo "$as_me:$LINENO: result: $ac_res" >&5
16726 echo "${ECHO_T}$ac_res" >&6; }
16727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16732 ac_header_dirent=$ac_hdr; break
16736 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16737 if test $ac_header_dirent = dirent.h; then
16738 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16739 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16740 if test "${ac_cv_search_opendir+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 ac_func_search_save_LIBS=$LIBS
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 /* Override any GCC internal prototype to avoid an error.
16752 Use char because int might match the return type of a GCC
16753 builtin and then its argument prototype would still apply. */
16766 for ac_lib in '' dir; do
16767 if test -z "$ac_lib"; then
16768 ac_res="none required"
16771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (ac_try="$ac_link"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_link") 2>conftest.er1
16782 grep -v '^ *+' conftest.er1 >conftest.err
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_try") 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest$ac_exeext'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_search_opendir=$ac_res
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16817 if test "${ac_cv_search_opendir+set}" = set; then
16821 if test "${ac_cv_search_opendir+set}" = set; then
16824 ac_cv_search_opendir=no
16826 rm conftest.$ac_ext
16827 LIBS=$ac_func_search_save_LIBS
16829 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16830 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16831 ac_res=$ac_cv_search_opendir
16832 if test "$ac_res" != no; then
16833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16838 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16839 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16840 if test "${ac_cv_search_opendir+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 ac_func_search_save_LIBS=$LIBS
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16866 for ac_lib in '' x; do
16867 if test -z "$ac_lib"; then
16868 ac_res="none required"
16871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest$ac_exeext'
16898 { (case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_try") 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_search_opendir=$ac_res
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16917 if test "${ac_cv_search_opendir+set}" = set; then
16921 if test "${ac_cv_search_opendir+set}" = set; then
16924 ac_cv_search_opendir=no
16926 rm conftest.$ac_ext
16927 LIBS=$ac_func_search_save_LIBS
16929 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16930 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16931 ac_res=$ac_cv_search_opendir
16932 if test "$ac_res" != no; then
16933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16948 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
16950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 ac_res=`eval echo '${'$as_ac_Header'}'`
16958 { echo "$as_me:$LINENO: result: $ac_res" >&5
16959 echo "${ECHO_T}$ac_res" >&6; }
16961 # Is the header compilable?
16962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 $ac_includes_default
16971 #include <$ac_header>
16973 rm -f conftest.$ac_objext
16974 if { (ac_try="$ac_compile"
16975 case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_compile") 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest.$ac_objext'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_header_compiler=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_header_compiler=no
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17017 echo "${ECHO_T}$ac_header_compiler" >&6; }
17019 # Is the header present?
17020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 #include <$ac_header>
17030 if { (ac_try="$ac_cpp conftest.$ac_ext"
17031 case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } >/dev/null; then
17043 if test -s conftest.err; then
17044 ac_cpp_err=$ac_c_preproc_warn_flag
17045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17052 if test -z "$ac_cpp_err"; then
17053 ac_header_preproc=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_header_preproc=no
17061 rm -f conftest.err conftest.$ac_ext
17062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063 echo "${ECHO_T}$ac_header_preproc" >&6; }
17065 # So? What about this header?
17066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072 ac_header_preproc=yes
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 eval "$as_ac_Header=\$ac_header_preproc"
17097 ac_res=`eval echo '${'$as_ac_Header'}'`
17098 { echo "$as_me:$LINENO: result: $ac_res" >&5
17099 echo "${ECHO_T}$ac_res" >&6; }
17102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17114 for ac_header in sys/select.h
17116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 ac_res=`eval echo '${'$as_ac_Header'}'`
17124 { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17127 # Is the header compilable?
17128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 $ac_includes_default
17137 #include <$ac_header>
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_compile") 2>conftest.er1
17148 grep -v '^ *+' conftest.er1 >conftest.err
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_header_compiler=yes
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_header_compiler=no
17181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17183 echo "${ECHO_T}$ac_header_compiler" >&6; }
17185 # Is the header present?
17186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17187 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17196 if { (ac_try="$ac_cpp conftest.$ac_ext"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } >/dev/null; then
17209 if test -s conftest.err; then
17210 ac_cpp_err=$ac_c_preproc_warn_flag
17211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17218 if test -z "$ac_cpp_err"; then
17219 ac_header_preproc=yes
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ac_header_preproc=no
17227 rm -f conftest.err conftest.$ac_ext
17228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17229 echo "${ECHO_T}$ac_header_preproc" >&6; }
17231 # So? What about this header?
17232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17238 ac_header_preproc=yes
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 eval "$as_ac_Header=\$ac_header_preproc"
17263 ac_res=`eval echo '${'$as_ac_Header'}'`
17264 { echo "$as_me:$LINENO: result: $ac_res" >&5
17265 echo "${ECHO_T}$ac_res" >&6; }
17268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17281 for ac_header in sys/time.h utime.h
17283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 ac_res=`eval echo '${'$as_ac_Header'}'`
17291 { echo "$as_me:$LINENO: result: $ac_res" >&5
17292 echo "${ECHO_T}$ac_res" >&6; }
17294 # Is the header compilable?
17295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17304 #include <$ac_header>
17306 rm -f conftest.$ac_objext
17307 if { (ac_try="$ac_compile"
17308 case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_compile") 2>conftest.er1
17315 grep -v '^ *+' conftest.er1 >conftest.err
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_header_compiler=yes
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 ac_header_compiler=no
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17350 echo "${ECHO_T}$ac_header_compiler" >&6; }
17352 # Is the header present?
17353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 #include <$ac_header>
17363 if { (ac_try="$ac_cpp conftest.$ac_ext"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } >/dev/null; then
17376 if test -s conftest.err; then
17377 ac_cpp_err=$ac_c_preproc_warn_flag
17378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17385 if test -z "$ac_cpp_err"; then
17386 ac_header_preproc=yes
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_header_preproc=no
17394 rm -f conftest.err conftest.$ac_ext
17395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17396 echo "${ECHO_T}$ac_header_preproc" >&6; }
17398 # So? What about this header?
17399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17405 ac_header_preproc=yes
17408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 eval "$as_ac_Header=\$ac_header_preproc"
17430 ac_res=`eval echo '${'$as_ac_Header'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17436 cat >>confdefs.h <<_ACEOF
17437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17444 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17445 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_time+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 #include <sys/types.h>
17456 #include <sys/time.h>
17462 if ((struct tm *) 0)
17468 rm -f conftest.$ac_objext
17469 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17477 grep -v '^ *+' conftest.er1 >conftest.err
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_header_time=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_header_time=no
17510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17513 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17514 if test $ac_cv_header_time = yes; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define TIME_WITH_SYS_TIME 1
17524 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17525 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
17526 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <sys/types.h>
17536 #include <sys/wait.h>
17537 #ifndef WEXITSTATUS
17538 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17541 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17549 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569 { (case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_header_sys_wait_h=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_header_sys_wait_h=no
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17599 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
17600 if test $ac_cv_header_sys_wait_h = yes; then
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_SYS_WAIT_H 1
17611 for ac_header in sys/capability.h
17613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 ac_res=`eval echo '${'$as_ac_Header'}'`
17621 { echo "$as_me:$LINENO: result: $ac_res" >&5
17622 echo "${ECHO_T}$ac_res" >&6; }
17624 # Is the header compilable?
17625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17634 #include <$ac_header>
17636 rm -f conftest.$ac_objext
17637 if { (ac_try="$ac_compile"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_compile") 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17651 { (case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_try") 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest.$ac_objext'
17661 { (case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_try") 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_header_compiler=yes
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 ac_header_compiler=no
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17680 echo "${ECHO_T}$ac_header_compiler" >&6; }
17682 # Is the header present?
17683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17685 cat >conftest.$ac_ext <<_ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h. */
17691 #include <$ac_header>
17693 if { (ac_try="$ac_cpp conftest.$ac_ext"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17701 grep -v '^ *+' conftest.er1 >conftest.err
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } >/dev/null; then
17706 if test -s conftest.err; then
17707 ac_cpp_err=$ac_c_preproc_warn_flag
17708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17715 if test -z "$ac_cpp_err"; then
17716 ac_header_preproc=yes
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17721 ac_header_preproc=no
17724 rm -f conftest.err conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17726 echo "${ECHO_T}$ac_header_preproc" >&6; }
17728 # So? What about this header?
17729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17735 ac_header_preproc=yes
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 eval "$as_ac_Header=\$ac_header_preproc"
17760 ac_res=`eval echo '${'$as_ac_Header'}'`
17761 { echo "$as_me:$LINENO: result: $ac_res" >&5
17762 echo "${ECHO_T}$ac_res" >&6; }
17765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17783 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 ac_res=`eval echo '${'$as_ac_Header'}'`
17793 { echo "$as_me:$LINENO: result: $ac_res" >&5
17794 echo "${ECHO_T}$ac_res" >&6; }
17796 # Is the header compilable?
17797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17806 #include <$ac_header>
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_compile") 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_header_compiler=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_header_compiler=no
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17852 echo "${ECHO_T}$ac_header_compiler" >&6; }
17854 # Is the header present?
17855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17856 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17865 if { (ac_try="$ac_cpp conftest.$ac_ext"
17866 case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17873 grep -v '^ *+' conftest.er1 >conftest.err
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } >/dev/null; then
17878 if test -s conftest.err; then
17879 ac_cpp_err=$ac_c_preproc_warn_flag
17880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17887 if test -z "$ac_cpp_err"; then
17888 ac_header_preproc=yes
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_header_preproc=no
17896 rm -f conftest.err conftest.$ac_ext
17897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17898 echo "${ECHO_T}$ac_header_preproc" >&6; }
17900 # So? What about this header?
17901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17907 ac_header_preproc=yes
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 eval "$as_ac_Header=\$ac_header_preproc"
17932 ac_res=`eval echo '${'$as_ac_Header'}'`
17933 { echo "$as_me:$LINENO: result: $ac_res" >&5
17934 echo "${ECHO_T}$ac_res" >&6; }
17937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17950 for ac_header in ctype.h locale.h
17952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 ac_res=`eval echo '${'$as_ac_Header'}'`
17960 { echo "$as_me:$LINENO: result: $ac_res" >&5
17961 echo "${ECHO_T}$ac_res" >&6; }
17963 # Is the header compilable?
17964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17966 cat >conftest.$ac_ext <<_ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972 $ac_includes_default
17973 #include <$ac_header>
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_compile") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest.$ac_objext'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_header_compiler=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_header_compiler=no
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18019 echo "${ECHO_T}$ac_header_compiler" >&6; }
18021 # Is the header present?
18022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 #include <$ac_header>
18032 if { (ac_try="$ac_cpp conftest.$ac_ext"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18040 grep -v '^ *+' conftest.er1 >conftest.err
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } >/dev/null; then
18045 if test -s conftest.err; then
18046 ac_cpp_err=$ac_c_preproc_warn_flag
18047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18054 if test -z "$ac_cpp_err"; then
18055 ac_header_preproc=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_header_preproc=no
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18067 # So? What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074 ac_header_preproc=yes
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 eval "$as_ac_Header=\$ac_header_preproc"
18099 ac_res=`eval echo '${'$as_ac_Header'}'`
18100 { echo "$as_me:$LINENO: result: $ac_res" >&5
18101 echo "${ECHO_T}$ac_res" >&6; }
18104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18116 for ac_header in fnmatch.h
18118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 ac_res=`eval echo '${'$as_ac_Header'}'`
18126 { echo "$as_me:$LINENO: result: $ac_res" >&5
18127 echo "${ECHO_T}$ac_res" >&6; }
18129 # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18139 #include <$ac_header>
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_header_compiler=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_header_compiler=no
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18185 echo "${ECHO_T}$ac_header_compiler" >&6; }
18187 # Is the header present?
18188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #include <$ac_header>
18198 if { (ac_try="$ac_cpp conftest.$ac_ext"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } >/dev/null; then
18211 if test -s conftest.err; then
18212 ac_cpp_err=$ac_c_preproc_warn_flag
18213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18220 if test -z "$ac_cpp_err"; then
18221 ac_header_preproc=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_header_preproc=no
18229 rm -f conftest.err conftest.$ac_ext
18230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18231 echo "${ECHO_T}$ac_header_preproc" >&6; }
18233 # So? What about this header?
18234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18240 ac_header_preproc=yes
18243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 eval "$as_ac_Header=\$ac_header_preproc"
18265 ac_res=`eval echo '${'$as_ac_Header'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18284 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 ac_res=`eval echo '${'$as_ac_Header'}'`
18294 { echo "$as_me:$LINENO: result: $ac_res" >&5
18295 echo "${ECHO_T}$ac_res" >&6; }
18297 # Is the header compilable?
18298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18300 cat >conftest.$ac_ext <<_ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306 $ac_includes_default
18307 #include <$ac_header>
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_header_compiler=yes
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_header_compiler=no
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18353 echo "${ECHO_T}$ac_header_compiler" >&6; }
18355 # Is the header present?
18356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18358 cat >conftest.$ac_ext <<_ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 #include <$ac_header>
18366 if { (ac_try="$ac_cpp conftest.$ac_ext"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } >/dev/null; then
18379 if test -s conftest.err; then
18380 ac_cpp_err=$ac_c_preproc_warn_flag
18381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18388 if test -z "$ac_cpp_err"; then
18389 ac_header_preproc=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_header_preproc=no
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18408 ac_header_preproc=yes
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 eval "$as_ac_Header=\$ac_header_preproc"
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434 { echo "$as_me:$LINENO: result: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18452 for ac_header in termios.h termio.h sys/termio.h
18454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 ac_res=`eval echo '${'$as_ac_Header'}'`
18462 { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18465 # Is the header compilable?
18466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 $ac_includes_default
18475 #include <$ac_header>
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest.$ac_objext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_header_compiler=yes
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ac_header_compiler=no
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18521 echo "${ECHO_T}$ac_header_compiler" >&6; }
18523 # Is the header present?
18524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532 #include <$ac_header>
18534 if { (ac_try="$ac_cpp conftest.$ac_ext"
18535 case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18542 grep -v '^ *+' conftest.er1 >conftest.err
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } >/dev/null; then
18547 if test -s conftest.err; then
18548 ac_cpp_err=$ac_c_preproc_warn_flag
18549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18556 if test -z "$ac_cpp_err"; then
18557 ac_header_preproc=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_header_preproc=no
18565 rm -f conftest.err conftest.$ac_ext
18566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18567 echo "${ECHO_T}$ac_header_preproc" >&6; }
18569 # So? What about this header?
18570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18576 ac_header_preproc=yes
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 eval "$as_ac_Header=\$ac_header_preproc"
18601 ac_res=`eval echo '${'$as_ac_Header'}'`
18602 { echo "$as_me:$LINENO: result: $ac_res" >&5
18603 echo "${ECHO_T}$ac_res" >&6; }
18606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18620 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18621 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18622 if test "${ac_cv_search_dlopen+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 ac_func_search_save_LIBS=$LIBS
18626 cat >conftest.$ac_ext <<_ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18633 /* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18648 for ac_lib in '' dl; do
18649 if test -z "$ac_lib"; then
18650 ac_res="none required"
18653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18655 rm -f conftest.$ac_objext conftest$ac_exeext
18656 if { (ac_try="$ac_link"
18657 case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_link") 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest$ac_exeext'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_cv_search_dlopen=$ac_res
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18699 if test "${ac_cv_search_dlopen+set}" = set; then
18703 if test "${ac_cv_search_dlopen+set}" = set; then
18706 ac_cv_search_dlopen=no
18708 rm conftest.$ac_ext
18709 LIBS=$ac_func_search_save_LIBS
18711 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18712 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18713 ac_res=$ac_cv_search_dlopen
18714 if test "$ac_res" != no; then
18715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18721 for ac_header in dlfcn.h
18723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_res=`eval echo '${'$as_ac_Header'}'`
18731 { echo "$as_me:$LINENO: result: $ac_res" >&5
18732 echo "${ECHO_T}$ac_res" >&6; }
18734 # Is the header compilable?
18735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 $ac_includes_default
18744 #include <$ac_header>
18746 rm -f conftest.$ac_objext
18747 if { (ac_try="$ac_compile"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_compile") 2>conftest.er1
18755 grep -v '^ *+' conftest.er1 >conftest.err
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
18771 { (case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_try") 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_header_compiler=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_header_compiler=no
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18790 echo "${ECHO_T}$ac_header_compiler" >&6; }
18792 # Is the header present?
18793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18801 #include <$ac_header>
18803 if { (ac_try="$ac_cpp conftest.$ac_ext"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } >/dev/null; then
18816 if test -s conftest.err; then
18817 ac_cpp_err=$ac_c_preproc_warn_flag
18818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18825 if test -z "$ac_cpp_err"; then
18826 ac_header_preproc=yes
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_header_preproc=no
18834 rm -f conftest.err conftest.$ac_ext
18835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836 echo "${ECHO_T}$ac_header_preproc" >&6; }
18838 # So? What about this header?
18839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18845 ac_header_preproc=yes
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 eval "$as_ac_Header=\$ac_header_preproc"
18870 ac_res=`eval echo '${'$as_ac_Header'}'`
18871 { echo "$as_me:$LINENO: result: $ac_res" >&5
18872 echo "${ECHO_T}$ac_res" >&6; }
18875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18876 cat >>confdefs.h <<_ACEOF
18877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18885 libreplace_cv_dlfcn=no
18890 for ac_func in dlopen dlsym dlerror dlclose
18892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18906 #define $ac_func innocuous_$ac_func
18908 /* System header to define __stub macros and hopefully few prototypes,
18909 which can conflict with char $ac_func (); below.
18910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911 <limits.h> exists even on freestanding compilers. */
18914 # include <limits.h>
18916 # include <assert.h>
18921 /* Override any GCC internal prototype to avoid an error.
18922 Use char because int might match the return type of a GCC
18923 builtin and then its argument prototype would still apply. */
18928 /* The GNU C library defines this for functions which it implements
18929 to always fail with ENOSYS. Some functions are actually named
18930 something starting with __ and the normal name is an alias. */
18931 #if defined __stub_$ac_func || defined __stub___$ac_func
18938 return $ac_func ();
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest$ac_exeext'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 eval "$as_ac_var=yes"
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 eval "$as_ac_var=no"
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986 conftest$ac_exeext conftest.$ac_ext
18988 ac_res=`eval echo '${'$as_ac_var'}'`
18989 { echo "$as_me:$LINENO: result: $ac_res" >&5
18990 echo "${ECHO_T}$ac_res" >&6; }
18991 if test `eval echo '${'$as_ac_var'}'` = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18997 libreplace_cv_dlfcn=yes
19002 if test x"${libreplace_cv_dlfcn}" = x"yes";then
19003 LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
19010 { echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19011 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
19012 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 SAVE_CPPFLAGS="$CPPFLAGS"
19017 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
19018 cat >conftest.$ac_ext <<_ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19025 #include "confdefs.h"
19026 #define _LIBREPLACE_REPLACE_H
19027 #define REPLACE_GETPASS 1
19028 #define main dont_declare_main
19029 #include "$libreplacedir/getpass.c"
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest.$ac_objext'
19065 { (case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 samba_cv_REPLACE_GETPASS=yes
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 samba_cv_REPLACE_GETPASS=no
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083 CPPFLAGS="$SAVE_CPPFLAGS"
19086 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19087 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
19088 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19090 cat >>confdefs.h <<\_ACEOF
19091 #define REPLACE_GETPASS 1
19094 LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
19101 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
19103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 ac_res=`eval echo '${'$as_ac_Header'}'`
19111 { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19114 # Is the header compilable?
19115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 $ac_includes_default
19124 #include <$ac_header>
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_header_compiler=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_header_compiler=no
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19170 echo "${ECHO_T}$ac_header_compiler" >&6; }
19172 # Is the header present?
19173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <$ac_header>
19183 if { (ac_try="$ac_cpp conftest.$ac_ext"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } >/dev/null; then
19196 if test -s conftest.err; then
19197 ac_cpp_err=$ac_c_preproc_warn_flag
19198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19205 if test -z "$ac_cpp_err"; then
19206 ac_header_preproc=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_header_preproc=no
19214 rm -f conftest.err conftest.$ac_ext
19215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19216 echo "${ECHO_T}$ac_header_preproc" >&6; }
19218 # So? What about this header?
19219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19225 ac_header_preproc=yes
19228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 eval "$as_ac_Header=\$ac_header_preproc"
19250 ac_res=`eval echo '${'$as_ac_Header'}'`
19251 { echo "$as_me:$LINENO: result: $ac_res" >&5
19252 echo "${ECHO_T}$ac_res" >&6; }
19255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19256 cat >>confdefs.h <<_ACEOF
19257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19265 #######################################
19266 # Check for mkdir mode
19267 { echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19268 echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
19269 if test "${ac_mkdir_has_mode+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 cat >conftest.$ac_ext <<_ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19280 #ifdef HAVE_DIRECT_H
19281 #include <direct.h>
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_compile") 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19309 { (case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_try") 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_try") 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_mkdir_has_mode="yes"
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_mkdir_has_mode="no"
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 { echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
19339 echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
19341 if test "$ac_mkdir_has_mode" = "yes"
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_MKDIR_MODE 1
19351 for ac_func in timegm
19353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 cat >conftest.$ac_ext <<_ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19367 #define $ac_func innocuous_$ac_func
19369 /* System header to define __stub macros and hopefully few prototypes,
19370 which can conflict with char $ac_func (); below.
19371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19372 <limits.h> exists even on freestanding compilers. */
19375 # include <limits.h>
19377 # include <assert.h>
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19389 /* The GNU C library defines this for functions which it implements
19390 to always fail with ENOSYS. Some functions are actually named
19391 something starting with __ and the normal name is an alias. */
19392 #if defined __stub_$ac_func || defined __stub___$ac_func
19399 return $ac_func ();
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest$ac_exeext'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 eval "$as_ac_var=yes"
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 eval "$as_ac_var=no"
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19449 ac_res=`eval echo '${'$as_ac_var'}'`
19450 { echo "$as_me:$LINENO: result: $ac_res" >&5
19451 echo "${ECHO_T}$ac_res" >&6; }
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19453 cat >>confdefs.h <<_ACEOF
19454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19458 LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
19463 { echo "$as_me:$LINENO: checking for broken readdir" >&5
19464 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
19465 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 if test "$cross_compiling" = yes; then
19470 libreplace_cv_READDIR_NEEDED="assuming not"
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 #define test_readdir_os2_delete main
19480 #include "$libreplacedir/test/os2_delete.c"
19482 rm -f conftest$ac_exeext
19483 if { (ac_try="$ac_link"
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_link") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 libreplace_cv_READDIR_NEEDED=no
19504 echo "$as_me: program exited with status $ac_status" >&5
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ( exit $ac_status )
19509 libreplace_cv_READDIR_NEEDED=yes
19511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19517 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
19518 echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
19521 # try to replace with getdirentries() if needed
19523 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19525 for ac_func in getdirentries
19527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19541 #define $ac_func innocuous_$ac_func
19543 /* System header to define __stub macros and hopefully few prototypes,
19544 which can conflict with char $ac_func (); below.
19545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19546 <limits.h> exists even on freestanding compilers. */
19549 # include <limits.h>
19551 # include <assert.h>
19556 /* Override any GCC internal prototype to avoid an error.
19557 Use char because int might match the return type of a GCC
19558 builtin and then its argument prototype would still apply. */
19563 /* The GNU C library defines this for functions which it implements
19564 to always fail with ENOSYS. Some functions are actually named
19565 something starting with __ and the normal name is an alias. */
19566 #if defined __stub_$ac_func || defined __stub___$ac_func
19573 return $ac_func ();
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest$ac_exeext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 eval "$as_ac_var=yes"
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 eval "$as_ac_var=no"
19620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19621 conftest$ac_exeext conftest.$ac_ext
19623 ac_res=`eval echo '${'$as_ac_var'}'`
19624 { echo "$as_me:$LINENO: result: $ac_res" >&5
19625 echo "${ECHO_T}$ac_res" >&6; }
19626 if test `eval echo '${'$as_ac_var'}'` = yes; then
19627 cat >>confdefs.h <<_ACEOF
19628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19634 { echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
19635 echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
19636 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 cat >conftest.$ac_ext <<_ACEOF
19641 $ac_includes_default
19643 #include <dirent.h>
19645 long telldir(const DIR *dir)
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_compile") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19668 { (case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_try") 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest.$ac_objext'
19678 { (case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_try") 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19688 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
19703 echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
19704 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define TELLDIR_TAKES_CONST_DIR 1
19716 { echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
19717 echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
19718 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 cat >conftest.$ac_ext <<_ACEOF
19723 $ac_includes_default
19725 #include <dirent.h>
19727 int seekdir(DIR *dir, long ofs)
19735 rm -f conftest.$ac_objext
19736 if { (ac_try="$ac_compile"
19737 case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_compile") 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19750 { (case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_try") 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19770 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
19785 echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
19786 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
19789 cat >>confdefs.h <<\_ACEOF
19790 #define SEEKDIR_RETURNS_INT 1
19797 { echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
19798 echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
19799 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 if test "$cross_compiling" = yes; then
19804 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19805 See \`config.log' for more details." >&5
19806 echo "$as_me: error: cannot run test program while cross compiling
19807 See \`config.log' for more details." >&2;}
19808 { (exit 1); exit 1; }; }
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 #define _LIBREPLACE_REPLACE_H
19818 #include "$libreplacedir/repdir_getdirentries.c"
19819 #define test_readdir_os2_delete main
19820 #include "$libreplacedir/test/os2_delete.c"
19822 rm -f conftest$ac_exeext
19823 if { (ac_try="$ac_link"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_link") 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 libreplace_cv_READDIR_GETDIRENTRIES=yes
19844 echo "$as_me: program exited with status $ac_status" >&5
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 ( exit $ac_status )
19849 libreplace_cv_READDIR_GETDIRENTRIES=no
19851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
19858 echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
19860 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
19862 cat >>confdefs.h <<\_ACEOF
19863 #define REPLACE_READDIR 1
19867 cat >>confdefs.h <<\_ACEOF
19868 #define REPLACE_READDIR_GETDIRENTRIES 1
19871 LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
19872 libreplace_cv_READDIR_NEEDED=no
19876 # try to replace with getdents() if needed
19878 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19880 for ac_func in getdents
19882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896 #define $ac_func innocuous_$ac_func
19898 /* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19904 # include <limits.h>
19906 # include <assert.h>
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 return $ac_func ();
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 eval "$as_ac_var=yes"
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 eval "$as_ac_var=no"
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19989 { echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
19990 echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
19991 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 if test "$cross_compiling" = yes; then
19996 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19997 See \`config.log' for more details." >&5
19998 echo "$as_me: error: cannot run test program while cross compiling
19999 See \`config.log' for more details." >&2;}
20000 { (exit 1); exit 1; }; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 #define _LIBREPLACE_REPLACE_H
20010 #error _donot_use_getdents_replacement_anymore
20011 #include "$libreplacedir/repdir_getdents.c"
20012 #define test_readdir_os2_delete main
20013 #include "$libreplacedir/test/os2_delete.c"
20015 rm -f conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20026 { (case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_try") 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 libreplace_cv_READDIR_GETDENTS=yes
20037 echo "$as_me: program exited with status $ac_status" >&5
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ( exit $ac_status )
20042 libreplace_cv_READDIR_GETDENTS=no
20044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20050 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
20051 echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
20053 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
20055 cat >>confdefs.h <<\_ACEOF
20056 #define REPLACE_READDIR 1
20060 cat >>confdefs.h <<\_ACEOF
20061 #define REPLACE_READDIR_GETDENTS 1
20064 LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
20065 libreplace_cv_READDIR_NEEDED=no
20068 { echo "$as_me:$LINENO: checking a usable readdir()" >&5
20069 echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
20070 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20071 { echo "$as_me:$LINENO: result: no" >&5
20072 echo "${ECHO_T}no" >&6; }
20073 { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
20074 echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
20076 { echo "$as_me:$LINENO: result: yes" >&5
20077 echo "${ECHO_T}yes" >&6; }
20087 for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
20089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20103 #define $ac_func innocuous_$ac_func
20105 /* System header to define __stub macros and hopefully few prototypes,
20106 which can conflict with char $ac_func (); below.
20107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20108 <limits.h> exists even on freestanding compilers. */
20111 # include <limits.h>
20113 # include <assert.h>
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined __stub_$ac_func || defined __stub___$ac_func
20135 return $ac_func ();
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_link") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20155 { (case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_try") 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest$ac_exeext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 eval "$as_ac_var=yes"
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 eval "$as_ac_var=no"
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183 conftest$ac_exeext conftest.$ac_ext
20185 ac_res=`eval echo '${'$as_ac_var'}'`
20186 { echo "$as_me:$LINENO: result: $ac_res" >&5
20187 echo "${ECHO_T}$ac_res" >&6; }
20188 if test `eval echo '${'$as_ac_var'}'` = yes; then
20189 cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20194 { { echo "$as_me:$LINENO: error: Required function not found" >&5
20195 echo "$as_me: error: Required function not found" >&2;}
20196 { (exit 1); exit 1; }; }
20201 echo "LIBREPLACE_BROKEN_CHECKS: END"
20204 #LIBREPLACE_ALL_CHECKS: END"
20208 if test "$ac_cv_c_compiler_gnu" = yes; then
20209 CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
20212 ac_config_headers="$ac_config_headers config.h"
20218 tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
20219 for d in $tallocpaths; do
20220 if test -f "$d/talloc.c"; then
20226 if test x"$tallocdir" = "x"; then
20227 { { echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
20228 echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
20229 { (exit 1); exit 1; }; }
20231 TALLOCOBJ="talloc.o"
20234 { echo "$as_me:$LINENO: checking for size_t" >&5
20235 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20236 if test "${ac_cv_type_size_t+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 $ac_includes_default
20246 typedef size_t ac__type_new_;
20250 if ((ac__type_new_ *) 0)
20252 if (sizeof (ac__type_new_))
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_type_size_t=yes
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_type_size_t=no
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20303 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20305 # The cast to long int works around a bug in the HP C Compiler
20306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20308 # This bug is HP SR number 8606223364.
20309 { echo "$as_me:$LINENO: checking size of size_t" >&5
20310 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20311 if test "${ac_cv_sizeof_size_t+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 if test "$cross_compiling" = yes; then
20315 # Depending upon the size, compute the lo and hi bounds.
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 $ac_includes_default
20323 typedef size_t ac__type_sizeof_;
20328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20350 { (case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_try") 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } &&
20359 { ac_try='test -s conftest.$ac_objext'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20378 typedef size_t ac__type_sizeof_;
20383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_compile") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest.$ac_objext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_hi=$ac_mid; break
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_lo=`expr $ac_mid + 1`
20430 if test $ac_lo -le $ac_mid; then
20434 ac_mid=`expr 2 '*' $ac_mid + 1`
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 $ac_includes_default
20450 typedef size_t ac__type_sizeof_;
20455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20469 (eval "$ac_compile") 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20477 { (case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_try") 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_try") 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 $ac_includes_default
20505 typedef size_t ac__type_sizeof_;
20510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_compile") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; } &&
20541 { ac_try='test -s conftest.$ac_objext'
20542 { (case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_try") 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_lo=$ac_mid; break
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_hi=`expr '(' $ac_mid ')' - 1`
20557 if test $ac_mid -le $ac_hi; then
20561 ac_mid=`expr 2 '*' $ac_mid`
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 # Binary search between lo and hi bounds.
20578 while test "x$ac_lo" != "x$ac_hi"; do
20579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586 $ac_includes_default
20587 typedef size_t ac__type_sizeof_;
20592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20599 rm -f conftest.$ac_objext
20600 if { (ac_try="$ac_compile"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest.$ac_objext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_lo=`expr '(' $ac_mid ')' + 1`
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20645 '') if test "$ac_cv_type_size_t" = yes; then
20646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20647 See \`config.log' for more details." >&5
20648 echo "$as_me: error: cannot compute sizeof (size_t)
20649 See \`config.log' for more details." >&2;}
20650 { (exit 77); exit 77; }; }
20652 ac_cv_sizeof_size_t=0
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 typedef size_t ac__type_sizeof_;
20665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20668 #include <stdlib.h>
20673 FILE *f = fopen ("conftest.val", "w");
20676 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20678 long int i = longval ();
20679 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20681 fprintf (f, "%ld\n", i);
20685 unsigned long int i = ulongval ();
20686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20688 fprintf (f, "%lu\n", i);
20690 return ferror (f) || fclose (f) != 0;
20696 rm -f conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20707 { (case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_try") 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 ac_cv_sizeof_size_t=`cat conftest.val`
20718 echo "$as_me: program exited with status $ac_status" >&5
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ( exit $ac_status )
20723 if test "$ac_cv_type_size_t" = yes; then
20724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20725 See \`config.log' for more details." >&5
20726 echo "$as_me: error: cannot compute sizeof (size_t)
20727 See \`config.log' for more details." >&2;}
20728 { (exit 77); exit 77; }; }
20730 ac_cv_sizeof_size_t=0
20733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20738 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20742 cat >>confdefs.h <<_ACEOF
20743 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20747 { echo "$as_me:$LINENO: checking for void *" >&5
20748 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20749 if test "${ac_cv_type_void_p+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 $ac_includes_default
20759 typedef void * ac__type_new_;
20763 if ((ac__type_new_ *) 0)
20765 if (sizeof (ac__type_new_))
20771 rm -f conftest.$ac_objext
20772 if { (ac_try="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } &&
20785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_try") 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; } &&
20795 { ac_try='test -s conftest.$ac_objext'
20796 { (case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_try") 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_cv_type_void_p=yes
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_cv_type_void_p=no
20813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20816 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20818 # The cast to long int works around a bug in the HP C Compiler
20819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20821 # This bug is HP SR number 8606223364.
20822 { echo "$as_me:$LINENO: checking size of void *" >&5
20823 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20824 if test "${ac_cv_sizeof_void_p+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 if test "$cross_compiling" = yes; then
20828 # Depending upon the size, compute the lo and hi bounds.
20829 cat >conftest.$ac_ext <<_ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 $ac_includes_default
20836 typedef void * ac__type_sizeof_;
20841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863 { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 $ac_includes_default
20891 typedef void * ac__type_sizeof_;
20896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_compile") 2>conftest.er1
20912 grep -v '^ *+' conftest.er1 >conftest.err
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } &&
20917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20918 { (case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_try") 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; } &&
20927 { ac_try='test -s conftest.$ac_objext'
20928 { (case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_try") 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_hi=$ac_mid; break
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_lo=`expr $ac_mid + 1`
20943 if test $ac_lo -le $ac_mid; then
20947 ac_mid=`expr 2 '*' $ac_mid + 1`
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 $ac_includes_default
20963 typedef void * ac__type_sizeof_;
20968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 $ac_includes_default
21018 typedef void * ac__type_sizeof_;
21023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_lo=$ac_mid; break
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_hi=`expr '(' $ac_mid ')' - 1`
21070 if test $ac_mid -le $ac_hi; then
21074 ac_mid=`expr 2 '*' $ac_mid`
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 # Binary search between lo and hi bounds.
21091 while test "x$ac_lo" != "x$ac_hi"; do
21092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 $ac_includes_default
21100 typedef void * ac__type_sizeof_;
21105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21112 rm -f conftest.$ac_objext
21113 if { (ac_try="$ac_compile"
21114 case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_compile") 2>conftest.er1
21121 grep -v '^ *+' conftest.er1 >conftest.err
21123 cat conftest.err >&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } &&
21126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21127 { (case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_try") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest.$ac_objext'
21137 { (case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_try") 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_lo=`expr '(' $ac_mid ')' + 1`
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21158 '') if test "$ac_cv_type_void_p" = yes; then
21159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21160 See \`config.log' for more details." >&5
21161 echo "$as_me: error: cannot compute sizeof (void *)
21162 See \`config.log' for more details." >&2;}
21163 { (exit 77); exit 77; }; }
21165 ac_cv_sizeof_void_p=0
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 $ac_includes_default
21176 typedef void * ac__type_sizeof_;
21178 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21179 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21181 #include <stdlib.h>
21186 FILE *f = fopen ("conftest.val", "w");
21189 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21191 long int i = longval ();
21192 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21194 fprintf (f, "%ld\n", i);
21198 unsigned long int i = ulongval ();
21199 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21201 fprintf (f, "%lu\n", i);
21203 return ferror (f) || fclose (f) != 0;
21209 rm -f conftest$ac_exeext
21210 if { (ac_try="$ac_link"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_link") 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_sizeof_void_p=`cat conftest.val`
21231 echo "$as_me: program exited with status $ac_status" >&5
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ( exit $ac_status )
21236 if test "$ac_cv_type_void_p" = yes; then
21237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21238 See \`config.log' for more details." >&5
21239 echo "$as_me: error: cannot compute sizeof (void *)
21240 See \`config.log' for more details." >&2;}
21241 { (exit 77); exit 77; }; }
21243 ac_cv_sizeof_void_p=0
21246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21251 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21255 cat >>confdefs.h <<_ACEOF
21256 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21261 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
21262 { echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
21263 echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
21265 echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
21267 echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
21269 echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
21270 { { echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
21271 echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
21272 { (exit 1); exit 1; }; }
21276 tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb"
21277 for d in $tdbpaths; do
21278 if test -f "$d/common/tdb.c"; then
21284 if test x"$tdbdir" = "x"; then
21285 { { echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
21286 echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
21287 { (exit 1); exit 1; }; }
21289 TDBOBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
21290 TDBOBJ="$TDBOBJ common/freelist.o common/io.o common/lock.o common/open.o"
21298 for ac_func in mmap pread pwrite getpagesize utime
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >conftest.$ac_ext <<_ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21314 #define $ac_func innocuous_$ac_func
21316 /* System header to define __stub macros and hopefully few prototypes,
21317 which can conflict with char $ac_func (); below.
21318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319 <limits.h> exists even on freestanding compilers. */
21322 # include <limits.h>
21324 # include <assert.h>
21329 /* Override any GCC internal prototype to avoid an error.
21330 Use char because int might match the return type of a GCC
21331 builtin and then its argument prototype would still apply. */
21336 /* The GNU C library defines this for functions which it implements
21337 to always fail with ENOSYS. Some functions are actually named
21338 something starting with __ and the normal name is an alias. */
21339 #if defined __stub_$ac_func || defined __stub___$ac_func
21346 return $ac_func ();
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
21365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_try") 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 eval "$as_ac_var=yes"
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 eval "$as_ac_var=no"
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394 conftest$ac_exeext conftest.$ac_ext
21396 ac_res=`eval echo '${'$as_ac_var'}'`
21397 { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_var'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21410 for ac_header in getopt.h sys/select.h sys/time.h
21412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420 { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21423 # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 #include <$ac_header>
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_header_compiler=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_header_compiler=no
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21479 echo "${ECHO_T}$ac_header_compiler" >&6; }
21481 # Is the header present?
21482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 #include <$ac_header>
21492 if { (ac_try="$ac_cpp conftest.$ac_ext"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } >/dev/null; then
21505 if test -s conftest.err; then
21506 ac_cpp_err=$ac_c_preproc_warn_flag
21507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21514 if test -z "$ac_cpp_err"; then
21515 ac_header_preproc=yes
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_preproc=no
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21527 # So? What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21534 ac_header_preproc=yes
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 eval "$as_ac_Header=\$ac_header_preproc"
21559 ac_res=`eval echo '${'$as_ac_Header'}'`
21560 { echo "$as_me:$LINENO: result: $ac_res" >&5
21561 echo "${ECHO_T}$ac_res" >&6; }
21564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21565 cat >>confdefs.h <<_ACEOF
21566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21575 { echo "$as_me:$LINENO: checking for pread declaration" >&5
21576 echo $ECHO_N "checking for pread declaration... $ECHO_C" >&6; }
21577 if test "${ac_cv_have_pread_decl+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <unistd.h>
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } &&
21610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try='test -s conftest.$ac_objext'
21621 { (case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_try") 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }; then
21630 ac_cv_have_pread_decl=yes
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_cv_have_pread_decl=no
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640 { echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
21641 echo "${ECHO_T}$ac_cv_have_pread_decl" >&6; }
21642 if test x"$ac_cv_have_pread_decl" = x"yes"; then
21644 cat >>confdefs.h <<\_ACEOF
21645 #define HAVE_PREAD_DECL 1
21651 { echo "$as_me:$LINENO: checking for pwrite declaration" >&5
21652 echo $ECHO_N "checking for pwrite declaration... $ECHO_C" >&6; }
21653 if test "${ac_cv_have_pwrite_decl+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <unistd.h>
21667 int i = (int)pwrite
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
21686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21687 { (case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_try") 2>&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest.$ac_objext'
21697 { (case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_try") 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
21706 ac_cv_have_pwrite_decl=yes
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_cv_have_pwrite_decl=no
21714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716 { echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
21717 echo "${ECHO_T}$ac_cv_have_pwrite_decl" >&6; }
21718 if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_PWRITE_DECL 1
21727 { echo "$as_me:$LINENO: checking for Python" >&5
21728 echo $ECHO_N "checking for Python... $ECHO_C" >&6; }
21733 # Check whether --with-python was given.
21734 if test "${with_python+set}" = set; then
21735 withval=$with_python; case "${withval-python}" in
21743 PYTHON=${withval-python}
21749 if test x"$PYTHON" != "x"; then
21750 incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[0], sys.version_info[1])'`
21751 CPPFLAGS="$CPPFLAGS -I $incdir"
21754 if test x"$PYTHON" != "x"; then
21755 { echo "$as_me:$LINENO: result: ${withval-python}" >&5
21756 echo "${ECHO_T}${withval-python}" >&6; }
21759 { echo "$as_me:$LINENO: result: no" >&5
21760 echo "${ECHO_T}no" >&6; }
21768 ac_config_files="$ac_config_files Makefile"
21770 cat >confcache <<\_ACEOF
21771 # This file is a shell script that caches the results of configure
21772 # tests run on this system so they can be shared between configure
21773 # scripts and configure runs, see configure's option --config-cache.
21774 # It is not useful on other systems. If it contains results you don't
21775 # want to keep, you may remove or edit it.
21777 # config.status only pays attention to the cache file if you give it
21778 # the --recheck option to rerun configure.
21780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21782 # following values.
21786 # The following way of writing the cache mishandles newlines in values,
21787 # but we know of no workaround that is simple, portable, and efficient.
21788 # So, we kill variables containing newlines.
21789 # Ultrix sh set writes to stderr and can't be redirected directly,
21790 # and sets the high bit in the cache file unless we assign to the vars.
21792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21793 eval ac_val=\$$ac_var
21797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21801 _ | IFS | as_nl) ;; #(
21802 *) $as_unset $ac_var ;;
21808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21809 *${as_nl}ac_space=\ *)
21810 # `set' does not quote correctly, so add quotes (double-quote
21811 # substitution turns \\\\ into \\, and sed turns \\ into \).
21814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21817 # `set' quotes correctly as required by POSIX, so do not add quotes.
21818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21832 if test -w "$cache_file"; then
21833 test "x$cache_file" != "x/dev/null" &&
21834 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21835 echo "$as_me: updating cache $cache_file" >&6;}
21836 cat confcache >$cache_file
21838 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21845 # Let make expand exec_prefix.
21846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21848 DEFS=-DHAVE_CONFIG_H
21852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21853 # 1. Remove the extension, and $U if already installed.
21854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21855 ac_i=`echo "$ac_i" | sed "$ac_script"`
21856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21857 # will be set to the directory where LIBOBJS objects are built.
21858 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21859 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21861 LIBOBJS=$ac_libobjs
21863 LTLIBOBJS=$ac_ltlibobjs
21867 : ${CONFIG_STATUS=./config.status}
21868 ac_clean_files_save=$ac_clean_files
21869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21870 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21871 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21872 cat >$CONFIG_STATUS <<_ACEOF
21874 # Generated by $as_me.
21875 # Run this file to recreate the current configuration.
21876 # Compiler output produced by configure, useful for debugging
21877 # configure, is in config.log if it exists.
21880 ac_cs_recheck=false
21882 SHELL=\${CONFIG_SHELL-$SHELL}
21885 cat >>$CONFIG_STATUS <<\_ACEOF
21886 ## --------------------- ##
21887 ## M4sh Initialization. ##
21888 ## --------------------- ##
21890 # Be Bourne compatible
21891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21894 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21895 # is contrary to our usage. Disable this feature.
21896 alias -g '${1+"$@"}'='"$@"'
21897 setopt NO_GLOB_SUBST
21899 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21901 BIN_SH=xpg4; export BIN_SH # for Tru64
21902 DUALCASE=1; export DUALCASE # for MKS sh
21906 # Avoid depending upon Character Ranges.
21907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21910 as_cr_digits='0123456789'
21911 as_cr_alnum=$as_cr_Letters$as_cr_digits
21913 # The user is always right.
21914 if test "${PATH_SEPARATOR+set}" != set; then
21915 echo "#! /bin/sh" >conf$$.sh
21916 echo "exit 0" >>conf$$.sh
21918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21926 # Support unset when possible.
21927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21935 # We need space, tab and new line, in precisely that order. Quoting is
21936 # there to prevent editors from complaining about space-tab.
21937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21938 # splitting by setting IFS to empty value.)
21943 # Find who we are. Look in the path if we contain no directory separator.
21945 *[\\/]* ) as_myself=$0 ;;
21946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21950 test -z "$as_dir" && as_dir=.
21951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21957 # We did not find ourselves, most probably we were run as `sh COMMAND'
21958 # in which case we are not to be found in the path.
21959 if test "x$as_myself" = x; then
21962 if test ! -f "$as_myself"; then
21963 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21964 { (exit 1); exit 1; }
21967 # Work around bugs in pre-3.0 UWIN ksh.
21968 for as_var in ENV MAIL MAILPATH
21969 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21979 LC_TELEPHONE LC_TIME
21981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21982 eval $as_var=C; export $as_var
21984 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21988 # Required to use basename.
21989 if expr a : '\(a\)' >/dev/null 2>&1 &&
21990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21997 as_basename=basename
22003 # Name of the executable.
22004 as_me=`$as_basename -- "$0" ||
22005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22006 X"$0" : 'X\(//\)$' \| \
22007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22009 sed '/^.*\/\([^/][^/]*\)\/*$/{
22028 as_lineno_1=$LINENO
22029 as_lineno_2=$LINENO
22030 test "x$as_lineno_1" != "x$as_lineno_2" &&
22031 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22033 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22034 # uniformly replaced by the line number. The first 'sed' inserts a
22035 # line-number line after each line using $LINENO; the second 'sed'
22036 # does the real work. The second script uses 'N' to pair each
22037 # line-number line with the line containing $LINENO, and appends
22038 # trailing '-' during substitution so that $LINENO is not a special
22039 # case at line end.
22040 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22041 # scripts with optimization help from Paolo Bonzini. Blame Lee
22042 # E. McMahon (1931-1989) for sed's syntax. :-)
22054 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22057 ' >$as_me.lineno &&
22058 chmod +x "$as_me.lineno" ||
22059 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22060 { (exit 1); exit 1; }; }
22062 # Don't try to exec as it changes $[0], causing all sort of problems
22063 # (the dirname of $[0] is not the place where we might find the
22064 # original and so on. Autoconf is especially sensitive to this).
22065 . "./$as_me.lineno"
22066 # Exit status is that of the last command.
22071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22077 ECHO_C= ECHO_N= ECHO_T=
22078 case `echo -n x` in
22080 case `echo 'x\c'` in
22081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22088 if expr a : '\(a\)' >/dev/null 2>&1 &&
22089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22095 rm -f conf$$ conf$$.exe conf$$.file
22096 if test -d conf$$.dir; then
22097 rm -f conf$$.dir/conf$$.file
22103 if ln -s conf$$.file conf$$ 2>/dev/null; then
22105 # ... but there are two gotchas:
22106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22108 # In both cases, we have to default to `cp -p'.
22109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22111 elif ln conf$$.file conf$$ 2>/dev/null; then
22116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22117 rmdir conf$$.dir 2>/dev/null
22119 if mkdir -p . 2>/dev/null; then
22122 test -d ./-p && rmdir ./-p
22126 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22127 # systems may use methods other than mode bits to determine executability.
22128 cat >conf$$.file <<_ASEOF
22132 chmod +x conf$$.file
22133 if test -x conf$$.file >/dev/null 2>&1; then
22134 as_executable_p="test -x"
22140 # Sed expression to map a string onto a valid CPP name.
22141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22143 # Sed expression to map a string onto a valid variable name.
22144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22149 # Save the log message, to keep $[0] and so on meaningful, and to
22150 # report actual input values of CONFIG_FILES etc. instead of their
22151 # values after options handling.
22153 This file was extended by $as_me, which was
22154 generated by GNU Autoconf 2.60a. Invocation command line was
22156 CONFIG_FILES = $CONFIG_FILES
22157 CONFIG_HEADERS = $CONFIG_HEADERS
22158 CONFIG_LINKS = $CONFIG_LINKS
22159 CONFIG_COMMANDS = $CONFIG_COMMANDS
22162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22167 cat >>$CONFIG_STATUS <<_ACEOF
22168 # Files that config.status was made for.
22169 config_files="$ac_config_files"
22170 config_headers="$ac_config_headers"
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22176 \`$as_me' instantiates files from templates according to the
22177 current configuration.
22179 Usage: $0 [OPTIONS] [FILE]...
22181 -h, --help print this help, then exit
22182 -V, --version print version number and configuration settings, then exit
22183 -q, --quiet do not print progress messages
22184 -d, --debug don't remove temporary files
22185 --recheck update $as_me by reconfiguring in the same conditions
22186 --file=FILE[:TEMPLATE]
22187 instantiate the configuration file FILE
22188 --header=FILE[:TEMPLATE]
22189 instantiate the configuration header FILE
22191 Configuration files:
22194 Configuration headers:
22197 Report bugs to <bug-autoconf@gnu.org>."
22200 cat >>$CONFIG_STATUS <<_ACEOF
22203 configured by $0, generated by GNU Autoconf 2.60a,
22204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22206 Copyright (C) 2006 Free Software Foundation, Inc.
22207 This config.status script is free software; the Free Software Foundation
22208 gives unlimited permission to copy, distribute and modify it."
22215 cat >>$CONFIG_STATUS <<\_ACEOF
22216 # If no file are specified by the user, then we need to provide default
22217 # value. By we need to know if files were specified by the user.
22223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22235 # Handling of the options.
22236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22239 echo "$ac_cs_version"; exit ;;
22240 --debug | --debu | --deb | --de | --d | -d )
22242 --file | --fil | --fi | --f )
22244 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22245 ac_need_defaults=false;;
22246 --header | --heade | --head | --hea )
22248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22249 ac_need_defaults=false;;
22251 # Conflict between --help and --header
22252 { echo "$as_me: error: ambiguous option: $1
22253 Try \`$0 --help' for more information." >&2
22254 { (exit 1); exit 1; }; };;
22255 --help | --hel | -h )
22256 echo "$ac_cs_usage"; exit ;;
22257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22261 # This is an error.
22262 -*) { echo "$as_me: error: unrecognized option: $1
22263 Try \`$0 --help' for more information." >&2
22264 { (exit 1); exit 1; }; } ;;
22266 *) ac_config_targets="$ac_config_targets $1"
22267 ac_need_defaults=false ;;
22273 ac_configure_extra_args=
22275 if $ac_cs_silent; then
22277 ac_configure_extra_args="$ac_configure_extra_args --silent"
22281 cat >>$CONFIG_STATUS <<_ACEOF
22282 if \$ac_cs_recheck; then
22283 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22284 CONFIG_SHELL=$SHELL
22285 export CONFIG_SHELL
22286 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22290 cat >>$CONFIG_STATUS <<\_ACEOF
22294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22295 ## Running $as_me. ##
22301 cat >>$CONFIG_STATUS <<_ACEOF
22304 cat >>$CONFIG_STATUS <<\_ACEOF
22306 # Handling of arguments.
22307 for ac_config_target in $ac_config_targets
22309 case $ac_config_target in
22310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22313 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22315 { (exit 1); exit 1; }; };;
22320 # If the user did not use the arguments to specify the items to instantiate,
22321 # then the envvar interface is used. Set only those that are not.
22322 # We use the long form for the default assignment because of an extremely
22323 # bizarre bug on SunOS 4.1.3.
22324 if $ac_need_defaults; then
22325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22329 # Have a temporary directory for convenience. Make it in the build tree
22330 # simply because there is no reason against having it here, and in addition,
22331 # creating and moving files from /tmp can sometimes cause problems.
22332 # Hook for its removal unless debugging.
22333 # Note that there is a small window in which the directory will not be cleaned:
22334 # after its creation but before its name has been assigned to `$tmp'.
22338 trap 'exit_status=$?
22339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22341 trap '{ (exit 1); exit 1; }' 1 2 13 15
22343 # Create a (secure) tmp directory for tmp files.
22346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22347 test -n "$tmp" && test -d "$tmp"
22350 tmp=./conf$$-$RANDOM
22351 (umask 077 && mkdir "$tmp")
22354 echo "$me: cannot create a temporary directory in ." >&2
22355 { (exit 1); exit 1; }
22359 # Set up the sed scripts for CONFIG_FILES section.
22362 # No need to generate the scripts if there are no CONFIG_FILES.
22363 # This happens for instance when ./config.status config.h
22364 if test -n "$CONFIG_FILES"; then
22371 for ac_last_try in false false false false false :; do
22372 cat >conf$$subs.sed <<_ACEOF
22373 SHELL!$SHELL$ac_delim
22374 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22375 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22376 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22377 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22378 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22379 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22380 exec_prefix!$exec_prefix$ac_delim
22381 prefix!$prefix$ac_delim
22382 program_transform_name!$program_transform_name$ac_delim
22383 bindir!$bindir$ac_delim
22384 sbindir!$sbindir$ac_delim
22385 libexecdir!$libexecdir$ac_delim
22386 datarootdir!$datarootdir$ac_delim
22387 datadir!$datadir$ac_delim
22388 sysconfdir!$sysconfdir$ac_delim
22389 sharedstatedir!$sharedstatedir$ac_delim
22390 localstatedir!$localstatedir$ac_delim
22391 includedir!$includedir$ac_delim
22392 oldincludedir!$oldincludedir$ac_delim
22393 docdir!$docdir$ac_delim
22394 infodir!$infodir$ac_delim
22395 htmldir!$htmldir$ac_delim
22396 dvidir!$dvidir$ac_delim
22397 pdfdir!$pdfdir$ac_delim
22398 psdir!$psdir$ac_delim
22399 libdir!$libdir$ac_delim
22400 localedir!$localedir$ac_delim
22401 mandir!$mandir$ac_delim
22402 DEFS!$DEFS$ac_delim
22403 ECHO_C!$ECHO_C$ac_delim
22404 ECHO_N!$ECHO_N$ac_delim
22405 ECHO_T!$ECHO_T$ac_delim
22406 LIBS!$LIBS$ac_delim
22407 build_alias!$build_alias$ac_delim
22408 host_alias!$host_alias$ac_delim
22409 target_alias!$target_alias$ac_delim
22410 libreplacedir!$libreplacedir$ac_delim
22411 LIBREPLACEOBJ!$LIBREPLACEOBJ$ac_delim
22412 build!$build$ac_delim
22413 build_cpu!$build_cpu$ac_delim
22414 build_vendor!$build_vendor$ac_delim
22415 build_os!$build_os$ac_delim
22416 host!$host$ac_delim
22417 host_cpu!$host_cpu$ac_delim
22418 host_vendor!$host_vendor$ac_delim
22419 host_os!$host_os$ac_delim
22420 target!$target$ac_delim
22421 target_cpu!$target_cpu$ac_delim
22422 target_vendor!$target_vendor$ac_delim
22423 target_os!$target_os$ac_delim
22425 CFLAGS!$CFLAGS$ac_delim
22426 LDFLAGS!$LDFLAGS$ac_delim
22427 CPPFLAGS!$CPPFLAGS$ac_delim
22428 ac_ct_CC!$ac_ct_CC$ac_delim
22429 EXEEXT!$EXEEXT$ac_delim
22430 OBJEXT!$OBJEXT$ac_delim
22432 GREP!$GREP$ac_delim
22433 EGREP!$EGREP$ac_delim
22434 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22435 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22436 INSTALL_DATA!$INSTALL_DATA$ac_delim
22437 libreplace_cv_immediate_structures!$libreplace_cv_immediate_structures$ac_delim
22438 LIBOBJS!$LIBOBJS$ac_delim
22439 precompiled_headers!$precompiled_headers$ac_delim
22440 LIBDL!$LIBDL$ac_delim
22441 tallocdir!$tallocdir$ac_delim
22442 TALLOCOBJ!$TALLOCOBJ$ac_delim
22443 tdbdir!$tdbdir$ac_delim
22444 TDBOBJ!$TDBOBJ$ac_delim
22445 PYTHON!$PYTHON$ac_delim
22446 EXTRA_OBJ!$EXTRA_OBJ$ac_delim
22447 LTLIBOBJS!$LTLIBOBJS$ac_delim
22450 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
22452 elif $ac_last_try; then
22453 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22454 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22455 { (exit 1); exit 1; }; }
22457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22461 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22462 if test -n "$ac_eof"; then
22463 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22464 ac_eof=`expr $ac_eof + 1`
22467 cat >>$CONFIG_STATUS <<_ACEOF
22468 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22472 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22473 s/^/s,@/; s/!/@,|#_!!_#|/
22476 s/'"$ac_delim"'$/,g/; t
22478 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22479 ' >>$CONFIG_STATUS <conf$$subs.sed
22480 rm -f conf$$subs.sed
22481 cat >>$CONFIG_STATUS <<_ACEOF
22488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22490 # trailing colons and then remove the whole line if VPATH becomes empty
22491 # (actually we leave an empty line to preserve line numbers).
22492 if test "x$srcdir" = x.; then
22493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22494 s/:*\$(srcdir):*/:/
22495 s/:*\${srcdir}:*/:/
22497 s/^\([^=]*=[ ]*\):*/\1/
22503 cat >>$CONFIG_STATUS <<\_ACEOF
22504 fi # test -n "$CONFIG_FILES"
22507 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
22510 :[FHLC]) ac_mode=$ac_tag; continue;;
22512 case $ac_mode$ac_tag in
22514 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22515 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22516 { (exit 1); exit 1; }; };;
22517 :[FH]-) ac_tag=-:-;;
22518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22535 -) ac_f="$tmp/stdin";;
22536 *) # Look for the file first in the build tree, then in the source tree
22537 # (if the path is not absolute). The absolute path cannot be DOS-style,
22538 # because $ac_f cannot contain `:'.
22542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22544 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22545 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22546 { (exit 1); exit 1; }; };;
22548 ac_file_inputs="$ac_file_inputs $ac_f"
22551 # Let's still pretend it is `configure' which instantiates (i.e., don't
22552 # use $as_me), people would be surprised to read:
22553 # /* config.h. Generated by config.status. */
22554 configure_input="Generated from "`IFS=:
22555 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22556 if test x"$ac_file" != x-; then
22557 configure_input="$ac_file. $configure_input"
22558 { echo "$as_me:$LINENO: creating $ac_file" >&5
22559 echo "$as_me: creating $ac_file" >&6;}
22563 *:-:* | *:-) cat >"$tmp/stdin";;
22568 ac_dir=`$as_dirname -- "$ac_file" ||
22569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570 X"$ac_file" : 'X\(//\)[^/]' \| \
22571 X"$ac_file" : 'X\(//\)$' \| \
22572 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22578 /^X\(\/\/\)[^/].*/{
22593 -*) as_dir=./$as_dir;;
22595 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22599 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22600 *) as_qdir=$as_dir;;
22602 as_dirs="'$as_qdir' $as_dirs"
22603 as_dir=`$as_dirname -- "$as_dir" ||
22604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605 X"$as_dir" : 'X\(//\)[^/]' \| \
22606 X"$as_dir" : 'X\(//\)$' \| \
22607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22613 /^X\(\/\/\)[^/].*/{
22626 test -d "$as_dir" && break
22628 test -z "$as_dirs" || eval "mkdir $as_dirs"
22629 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22630 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22631 { (exit 1); exit 1; }; }; }
22635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22638 # A ".." for each directory in $ac_dir_suffix.
22639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22640 case $ac_top_builddir_sub in
22641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22645 ac_abs_top_builddir=$ac_pwd
22646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22647 # for backward compatibility:
22648 ac_top_builddir=$ac_top_build_prefix
22651 .) # We are building in place.
22653 ac_top_srcdir=$ac_top_builddir_sub
22654 ac_abs_top_srcdir=$ac_pwd ;;
22655 [\\/]* | ?:[\\/]* ) # Absolute name.
22656 ac_srcdir=$srcdir$ac_dir_suffix;
22657 ac_top_srcdir=$srcdir
22658 ac_abs_top_srcdir=$srcdir ;;
22659 *) # Relative name.
22660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22661 ac_top_srcdir=$ac_top_build_prefix$srcdir
22662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22680 # If the template does not know about datarootdir, expand it.
22681 # FIXME: This hack should be removed a few years after 2.60.
22682 ac_datarootdir_hack=; ac_datarootdir_seen=
22684 case `sed -n '/datarootdir/ {
22693 ' $ac_file_inputs` in
22694 *datarootdir*) ac_datarootdir_seen=yes;;
22695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22696 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22697 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22699 cat >>$CONFIG_STATUS <<_ACEOF
22700 ac_datarootdir_hack='
22701 s&@datadir@&$datadir&g
22702 s&@docdir@&$docdir&g
22703 s&@infodir@&$infodir&g
22704 s&@localedir@&$localedir&g
22705 s&@mandir@&$mandir&g
22706 s&\\\${datarootdir}&$datarootdir&g' ;;
22710 # Neutralize VPATH when `$srcdir' = `.'.
22711 # Shell code in configure.ac might set extrasub.
22712 # FIXME: do we really want to maintain this feature?
22713 cat >>$CONFIG_STATUS <<_ACEOF
22717 cat >>$CONFIG_STATUS <<\_ACEOF
22719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22720 s&@configure_input@&$configure_input&;t t
22721 s&@top_builddir@&$ac_top_builddir_sub&;t t
22722 s&@srcdir@&$ac_srcdir&;t t
22723 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22724 s&@top_srcdir@&$ac_top_srcdir&;t t
22725 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22726 s&@builddir@&$ac_builddir&;t t
22727 s&@abs_builddir@&$ac_abs_builddir&;t t
22728 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22729 s&@INSTALL@&$ac_INSTALL&;t t
22730 $ac_datarootdir_hack
22731 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22734 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22736 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22737 which seems to be undefined. Please make sure it is defined." >&5
22738 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22739 which seems to be undefined. Please make sure it is defined." >&2;}
22743 -) cat "$tmp/out"; rm -f "$tmp/out";;
22744 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22753 # Transform confdefs.h into a sed script `conftest.defines', that
22754 # substitutes the proper values into config.h.in to produce config.h.
22755 rm -f conftest.defines conftest.tail
22756 # First, append a space to every undef/define line, to ease matching.
22757 echo 's/$/ /' >conftest.defines
22758 # Then, protect against being on the right side of a sed subst, or in
22759 # an unquoted here document, in config.status. If some macros were
22760 # called several times there might be several #defines for the same
22761 # symbol, which is useless. But do not sort them, since the last
22762 # AC_DEFINE must be honored.
22763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22764 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22765 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22766 # PARAMS is the parameter list in the macro definition--in most cases, it's
22767 # just an empty string.
22768 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22769 ac_dB='\\)[ (].*,\\1define\\2'
22777 s/^[ ]*#[ ]*define[ ][ ]*//
22782 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22783 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22784 ' >>conftest.defines
22786 # Remove the space that was appended to ease matching.
22787 # Then replace #undef with comments. This is necessary, for
22788 # example, in the case of _POSIX_SOURCE, which is predefined and required
22789 # on some systems where configure will not decide to define it.
22790 # (The regexp can be short, since the line contains either #define or #undef.)
22792 s,^[ #]*u.*,/* & */,' >>conftest.defines
22794 # Break up conftest.defines:
22795 ac_max_sed_lines=50
22797 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22798 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22799 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22801 ac_in='$ac_file_inputs'
22802 ac_out='"$tmp/out1"'
22803 ac_nxt='"$tmp/out2"'
22807 # Write a here document:
22808 cat >>$CONFIG_STATUS <<_ACEOF
22809 # First, check the format of the line:
22810 cat >"\$tmp/defines.sed" <<\\CEOF
22811 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22812 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22816 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22818 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22819 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22820 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22821 grep . conftest.tail >/dev/null || break
22822 rm -f conftest.defines
22823 mv conftest.tail conftest.defines
22825 rm -f conftest.defines conftest.tail
22827 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22828 cat >>$CONFIG_STATUS <<\_ACEOF
22829 if test x"$ac_file" != x-; then
22830 echo "/* $configure_input */" >"$tmp/config.h"
22831 cat "$ac_result" >>"$tmp/config.h"
22832 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22833 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22834 echo "$as_me: $ac_file is unchanged" >&6;}
22837 mv "$tmp/config.h" $ac_file
22840 echo "/* $configure_input */"
22852 { (exit 0); exit 0; }
22854 chmod +x $CONFIG_STATUS
22855 ac_clean_files=$ac_clean_files_save
22858 # configure is writing to config.log, and then calls config.status.
22859 # config.status does its own redirection, appending to config.log.
22860 # Unfortunately, on DOS this fails, as config.log is still kept open
22861 # by configure, so config.status won't be able to write to it; its
22862 # output is simply discarded. So we exec the FD to /dev/null,
22863 # effectively closing config.log, so it can be properly (re)opened and
22864 # appended to by config.status. When coming back to configure, we
22865 # need to make the FD available again.
22866 if test "$no_create" != yes; then
22868 ac_config_status_args=
22869 test "$silent" = yes &&
22870 ac_config_status_args="$ac_config_status_args --quiet"
22872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22875 # would make configure fail if this is the last instruction.
22876 $ac_cs_success || { (exit 1); exit 1; }