2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for talloc 2.0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME
='talloc'
596 PACKAGE_TARNAME
='talloc'
597 PACKAGE_VERSION
='2.0.1'
598 PACKAGE_STRING
='talloc 2.0.1'
601 ac_unique_file
="talloc.c"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
649 LD_SHLIB_DISALLOW_UNDEF_FLAG
659 libreplace_cv_immediate_structures
687 TALLOC_VERSION_RELEASE
718 program_transform_name
730 enable_option_checking
732 enable_talloc_compat1
733 with_shared_build_dir
735 ac_precious_vars
='build_alias
746 # Initialize some variables set by options.
748 ac_init_version
=false
749 ac_unrecognized_opts
=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name
=s
,x
,x
,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir
='${exec_prefix}/bin'
775 sbindir
='${exec_prefix}/sbin'
776 libexecdir
='${exec_prefix}/libexec'
777 datarootdir
='${prefix}/share'
778 datadir
='${datarootdir}'
779 sysconfdir
='${prefix}/etc'
780 sharedstatedir
='${prefix}/com'
781 localstatedir
='${prefix}/var'
782 includedir
='${prefix}/include'
783 oldincludedir
='/usr/include'
784 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir
='${datarootdir}/info'
790 libdir
='${exec_prefix}/lib'
791 localedir
='${datarootdir}/locale'
792 mandir
='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\
$ac_option
806 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
818 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
821 -build |
--build |
--buil |
--bui |
--bu)
822 ac_prev
=build_alias
;;
823 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
824 build_alias
=$ac_optarg ;;
826 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
827 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
828 ac_prev
=cache_file
;;
829 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
830 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
831 cache_file
=$ac_optarg ;;
834 cache_file
=config.cache
;;
836 -datadir |
--datadir |
--datadi |
--datad)
838 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
839 datadir
=$ac_optarg ;;
841 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
842 |
--dataroo |
--dataro |
--datar)
843 ac_prev
=datarootdir
;;
844 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
845 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
846 datarootdir
=$ac_optarg ;;
848 -disable-* |
--disable-*)
849 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
852 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
853 { (exit 1); exit 1; }; }
854 ac_useropt_orig
=$ac_useropt
855 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep
=', ';;
863 eval enable_
$ac_useropt=no
;;
865 -docdir |
--docdir |
--docdi |
--doc |
--do)
867 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
870 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
872 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
875 -enable-* |
--enable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
880 { (exit 1); exit 1; }; }
881 ac_useropt_orig
=$ac_useropt
882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888 ac_unrecognized_sep
=', ';;
890 eval enable_
$ac_useropt=\
$ac_optarg ;;
892 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
893 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
894 |
--exec |
--exe |
--ex)
895 ac_prev
=exec_prefix
;;
896 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
897 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
898 |
--exec=* |
--exe=* |
--ex=*)
899 exec_prefix
=$ac_optarg ;;
901 -gas |
--gas |
--ga |
--g)
902 # Obsolete; use --with-gas.
905 -help |
--help |
--hel |
--he |
-h)
907 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
908 ac_init_help
=recursive
;;
909 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
910 ac_init_help
=short
;;
912 -host |
--host |
--hos |
--ho)
913 ac_prev
=host_alias
;;
914 -host=* |
--host=* |
--hos=* |
--ho=*)
915 host_alias
=$ac_optarg ;;
917 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
919 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
921 htmldir
=$ac_optarg ;;
923 -includedir |
--includedir |
--includedi |
--included |
--include \
924 |
--includ |
--inclu |
--incl |
--inc)
925 ac_prev
=includedir
;;
926 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
927 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
928 includedir
=$ac_optarg ;;
930 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
932 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
933 infodir
=$ac_optarg ;;
935 -libdir |
--libdir |
--libdi |
--libd)
937 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
940 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
941 |
--libexe |
--libex |
--libe)
942 ac_prev
=libexecdir
;;
943 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
944 |
--libexe=* |
--libex=* |
--libe=*)
945 libexecdir
=$ac_optarg ;;
947 -localedir |
--localedir |
--localedi |
--localed |
--locale)
949 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
950 localedir
=$ac_optarg ;;
952 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
953 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
954 ac_prev
=localstatedir
;;
955 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
956 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
957 localstatedir
=$ac_optarg ;;
959 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
961 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
965 # Obsolete; use --without-fp.
968 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
969 |
--no-cr |
--no-c |
-n)
972 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
973 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
976 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
977 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
978 |
--oldin |
--oldi |
--old |
--ol |
--o)
979 ac_prev
=oldincludedir
;;
980 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
981 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
982 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
983 oldincludedir
=$ac_optarg ;;
985 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
987 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
990 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
991 |
--program-pre |
--program-pr |
--program-p)
992 ac_prev
=program_prefix
;;
993 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
994 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
995 program_prefix
=$ac_optarg ;;
997 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
998 |
--program-suf |
--program-su |
--program-s)
999 ac_prev
=program_suffix
;;
1000 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1001 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1002 program_suffix
=$ac_optarg ;;
1004 -program-transform-name |
--program-transform-name \
1005 |
--program-transform-nam |
--program-transform-na \
1006 |
--program-transform-n |
--program-transform- \
1007 |
--program-transform |
--program-transfor \
1008 |
--program-transfo |
--program-transf \
1009 |
--program-trans |
--program-tran \
1010 |
--progr-tra |
--program-tr |
--program-t)
1011 ac_prev
=program_transform_name
;;
1012 -program-transform-name=* |
--program-transform-name=* \
1013 |
--program-transform-nam=* |
--program-transform-na=* \
1014 |
--program-transform-n=* |
--program-transform-=* \
1015 |
--program-transform=* |
--program-transfor=* \
1016 |
--program-transfo=* |
--program-transf=* \
1017 |
--program-trans=* |
--program-tran=* \
1018 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1019 program_transform_name
=$ac_optarg ;;
1021 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1023 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1024 pdfdir
=$ac_optarg ;;
1026 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1028 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1031 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1032 |
-silent |
--silent |
--silen |
--sile |
--sil)
1035 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1037 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1039 sbindir
=$ac_optarg ;;
1041 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1042 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1043 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1045 ac_prev
=sharedstatedir
;;
1046 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1047 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1048 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1050 sharedstatedir
=$ac_optarg ;;
1052 -site |
--site |
--sit)
1054 -site=* |
--site=* |
--sit=*)
1057 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1059 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1060 srcdir
=$ac_optarg ;;
1062 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1063 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1064 ac_prev
=sysconfdir
;;
1065 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1066 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1067 sysconfdir
=$ac_optarg ;;
1069 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1070 ac_prev
=target_alias
;;
1071 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1072 target_alias
=$ac_optarg ;;
1074 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1077 -version |
--version |
--versio |
--versi |
--vers |
-V)
1078 ac_init_version
=: ;;
1081 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1084 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval with_
$ac_useropt=\
$ac_optarg ;;
1097 -without-* |
--without-*)
1098 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval with_
$ac_useropt=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1119 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1122 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1126 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1129 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1141 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1166 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1167 { (exit 1); exit 1; }; } ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 # Check all directory arguments for consistency.
1173 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val
=\$
$ac_var
1179 # Remove trailing slashes.
1182 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\
$ac_val;;
1185 # Be sure to have absolute directory names.
1187 [\\/$
]* | ?
:[\\/]* ) continue;;
1188 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1190 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1191 { (exit 1); exit 1; }; }
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1199 target
=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x
; then
1203 if test "x$build_alias" = x
; then
1204 cross_compiling
=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1213 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1215 test "$silent" = yes && exec 6>/dev
/null
1218 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di
=`ls -di .` &&
1220 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1221 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1222 { (exit 1); exit 1; }; }
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1225 { (exit 1); exit 1; }; }
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted
=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir
=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted
=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1264 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1265 { (exit 1); exit 1; }; }
1267 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1270 { (exit 1); exit 1; }; }
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1280 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 for ac_var
in $ac_precious_vars; do
1283 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1285 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1296 \`configure' configures talloc 2.0.1 to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/talloc]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1354 --build=BUILD configure
for building on BUILD
[guessed
]
1355 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1356 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive
) echo "Configuration of talloc 2.0.1:";;
1367 --disable-option-checking ignore unrecognized
--enable/--with options
1368 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1369 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1370 --disable-largefile omit support
for large files
1371 --enable-talloc-compat1 Build talloc
1.x.x compat library
[default
=no
]
1374 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1375 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1376 --with-shared-build-dir=DIR
1377 temporary build directory where libraries are
1378 installed
[$srcdir/sharedbuild
]
1380 Some influential environment variables
:
1381 CC C compiler
command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1384 nonstandard directory
<lib dir
>
1385 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1386 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1387 you have headers
in a nonstandard directory
<include dir
>
1390 Use these variables to override the choices made by
`configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1422 .) # We are building in place.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1444 $SHELL "$ac_srcdir/configure" --help=recursive
1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 cd "$ac_pwd" || { ac_status=$?; break; }
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1455 talloc configure 2.0.1
1456 generated by GNU Autoconf 2.63
1458 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1459 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1465 cat >config.log <<_ACEOF
1466 This file contains any messages produced by compilers while
1467 running configure, to aid debugging if configure makes a mistake.
1469 It was created by talloc $as_me 2.0.1, which was
1470 generated by GNU Autoconf 2.63. Invocation command line was
1482 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1483 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1484 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1485 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1486 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1488 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1489 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1491 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1493 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1495 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1496 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1497 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir=.
1506 $as_echo "PATH: $as_dir"
1522 # Keep a trace of the command line.
1523 # Strip out --no-create and --no-recursion so they do not pile up.
1524 # Strip out --silent because we don't want to record it for future runs.
1525 # Also quote any args containing shell meta-characters.
1526 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_must_keep_next=false
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil)
1541 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1547 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal.
1551 *=* | --config-cache | -C | -disable-* | --disable-* \
1552 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1553 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1554 | -with-* | --with-* | -without-* | --without-* | --x)
1555 case "$ac_configure_args0 " in
1556 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1559 -* ) ac_must_keep_next=true ;;
1562 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1568 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570 # When interrupted or exit'd, cleanup temporary files, and complete
1571 # config.log. We remove comments because anyway the quotes in there
1572 # would cause problems or look ugly.
1573 # WARNING: Use '\'' to represent an apostrophe within the trap.
1574 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1575 trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging.
1581 ## ---------------- ##
1582 ## Cache variables. ##
1583 ## ---------------- ##
1586 # The following way of writing the cache mishandles newlines in values,
1588 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1589 eval ac_val=\$$ac_var
1593 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1597 _ | IFS | as_nl) ;; #(
1598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1599 *) $as_unset $ac_var ;;
1604 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1628 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 $as_echo "$ac_var='\''$ac_val'\''"
1634 if test -n "$ac_subst_files"; then
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1645 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 $as_echo "$ac_var='\''$ac_val'\''"
1652 if test -s confdefs.h; then
1662 test "$ac_signal" != 0 &&
1663 $as_echo "$as_me: caught signal $ac_signal"
1664 $as_echo "$as_me: exit $exit_status"
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer an explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 ac_site_file1=$CONFIG_SITE
1711 elif test "x$prefix" != xNONE; then
1712 ac_site_file1=$prefix/share/config.site
1713 ac_site_file2=$prefix/etc/config.site
1715 ac_site_file1=$ac_default_prefix/share/config.site
1716 ac_site_file2=$ac_default_prefix/etc/config.site
1718 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1720 test "x$ac_site_file" = xNONE && continue
1721 if test -r "$ac_site_file"; then
1722 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1724 sed 's/^/| /' "$ac_site_file" >&5
1729 if test -r "$cache_file"; then
1730 # Some versions of bash will fail to source /dev/null (special
1731 # files actually), so we avoid doing that.
1732 if test -f "$cache_file"; then
1733 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 $as_echo "$as_me: loading cache $cache_file" >&6;}
1736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737 *) . "./$cache_file";;
1741 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 $as_echo "$as_me: creating cache $cache_file" >&6;}
1746 # Check that the precious variables saved in the cache have kept the same
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1756 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1757 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1760 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1761 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 # differences in whitespace do not lead to failure.
1767 ac_old_val_w=`echo x
$ac_old_val`
1768 ac_new_val_w=`echo x
$ac_new_val`
1769 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1770 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1772 ac_cache_corrupted=:
1774 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1775 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1776 eval $ac_var=\$ac_old_val
1778 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1779 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1780 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1781 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1787 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 if $ac_cache_corrupted; then
1797 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1799 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1800 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1801 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1802 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1803 { (exit 1); exit 1; }; }
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 ac_config_headers="$ac_config_headers config.h
"
1842 TALLOC_VERSION=${PACKAGE_VERSION}
1843 TALLOC_VERSION_MAJOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f1`
1844 TALLOC_VERSION_MINOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f2`
1845 TALLOC_VERSION_RELEASE=`echo ${PACKAGE_VERSION} | cut -d '.' -f3`
1853 cat >>confdefs.h <<_ACEOF
1854 #define TALLOC_BUILD_VERSION_MAJOR ${TALLOC_VERSION_MAJOR}
1858 cat >>confdefs.h <<_ACEOF
1859 #define TALLOC_BUILD_VERSION_MINOR ${TALLOC_VERSION_MINOR}
1863 cat >>confdefs.h <<_ACEOF
1864 #define TALLOC_BUILD_VERSION_RELEASE ${TALLOC_VERSION_RELEASE}
1870 #LIBREPLACE_ALL_CHECKS: START"
1873 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1874 if test -f "$ac_dir/install-sh"; then
1876 ac_install_sh
="$ac_aux_dir/install-sh -c"
1878 elif test -f "$ac_dir/install.sh"; then
1880 ac_install_sh
="$ac_aux_dir/install.sh -c"
1882 elif test -f "$ac_dir/shtool"; then
1884 ac_install_sh
="$ac_aux_dir/shtool install -c"
1888 if test -z "$ac_aux_dir"; then
1889 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1890 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1891 { (exit 1); exit 1; }; }
1894 # These three variables are undocumented and unsupported,
1895 # and are intended to be withdrawn in a future Autoconf release.
1896 # They can cause serious problems if a builder's source tree is in a directory
1897 # whose full name contains unusual characters.
1898 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1899 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1900 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1904 echo "LIBREPLACE_LOCATION_CHECKS: START"
1907 libreplacepaths
="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
1908 for d
in $libreplacepaths; do
1909 if test -f "$d/replace.c"; then
1915 if test x
"$libreplacedir" = "x"; then
1916 { { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
1917 $as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
1918 { (exit 1); exit 1; }; }
1920 LIBREPLACEOBJ
="$libreplacedir/replace.o"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1925 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1930 $as_echo_n "checking build system type... " >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 $as_echo_n "(cached) " >&6
1934 ac_build_alias
=$build_alias
1935 test "x$ac_build_alias" = x
&&
1936 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x
&&
1938 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 $as_echo "$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS
=$IFS; IFS
='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1970 $as_echo_n "checking host system type... " >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1974 if test "x$host_alias" = x
; then
1975 ac_cv_host
=$ac_cv_build
1977 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 $as_echo "$ac_cv_host" >&6; }
1988 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS
=$IFS; IFS
='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2006 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2007 $as_echo_n "checking target system type... " >&6; }
2008 if test "${ac_cv_target+set}" = set; then
2009 $as_echo_n "(cached) " >&6
2011 if test "x$target_alias" = x
; then
2012 ac_cv_target
=$ac_cv_host
2014 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2015 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2016 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2017 { (exit 1); exit 1; }; }
2021 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2022 $as_echo "$ac_cv_target" >&6; }
2023 case $ac_cv_target in
2025 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2026 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2027 { (exit 1); exit 1; }; };;
2029 target
=$ac_cv_target
2030 ac_save_IFS
=$IFS; IFS
='-'
2036 # Remember, the first character of IFS is used to create $*,
2037 # except with old shells:
2040 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2043 # The aliases save the names the user supplied, while $host etc.
2044 # will get canonicalized.
2045 test -n "$target_alias" &&
2046 test "$program_prefix$program_suffix$program_transform_name" = \
2048 program_prefix
=${target_alias}-
2050 echo "LIBREPLACE_LOCATION_CHECKS: END"
2054 echo "LIBREPLACE_CC_CHECKS: START"
2061 ac_cpp
='$CPP $CPPFLAGS'
2062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC
="$CC" # Let the user override the test.
2076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir
=.
2081 for ac_exec_ext
in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test -n "$CC"; then
2095 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2098 { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2104 if test -z "$ac_cv_prog_CC"; then
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc
; ac_word
=$2
2108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 $as_echo_n "checking for $ac_word... " >&6; }
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir
=.
2121 for ac_exec_ext
in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_ac_ct_CC
="gcc"
2124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2134 if test -n "$ac_ct_CC"; then
2135 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136 $as_echo "$ac_ct_CC" >&6; }
2138 { $as_echo "$as_me:$LINENO: result: no" >&5
2139 $as_echo "no" >&6; }
2142 if test "x$ac_ct_CC" = x
; then
2145 case $cross_compiling:$ac_tool_warned in
2147 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2149 ac_tool_warned
=yes ;;
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2160 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 $as_echo_n "checking for $ac_word... " >&6; }
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 $as_echo_n "(cached) " >&6
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC
="$CC" # Let the user override the test.
2169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2173 test -z "$as_dir" && as_dir
=.
2174 for ac_exec_ext
in '' $ac_executable_extensions; do
2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2189 $as_echo "$CC" >&6; }
2191 { $as_echo "$as_me:$LINENO: result: no" >&5
2192 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 # Extract the first word of "cc", so it can be a program name with args.
2200 set dummy cc
; ac_word
=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 $as_echo_n "(cached) " >&6
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC
="$CC" # Let the user override the test.
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 for ac_exec_ext
in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2218 ac_prog_rejected
=yes
2222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 if test $ac_prog_rejected = yes; then
2230 # We found a bogon in the path, so make sure we never use it.
2231 set dummy
$ac_cv_prog_CC
2233 if test $# != 0; then
2234 # We chose a different compiler from the bogus one.
2235 # However, it has the same basename, so the bogon will be chosen
2236 # first if we set CC to just the basename; use the full file name.
2238 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2244 if test -n "$CC"; then
2245 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2246 $as_echo "$CC" >&6; }
2248 { $as_echo "$as_me:$LINENO: result: no" >&5
2249 $as_echo "no" >&6; }
2254 if test -z "$CC"; then
2255 if test -n "$ac_tool_prefix"; then
2256 for ac_prog
in cl.exe
2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 $as_echo_n "checking for $ac_word... " >&6; }
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 $as_echo_n "(cached) " >&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC
="$CC" # Let the user override the test.
2268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir
=.
2273 for ac_exec_ext
in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 if test -n "$CC"; then
2287 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2288 $as_echo "$CC" >&6; }
2290 { $as_echo "$as_me:$LINENO: result: no" >&5
2291 $as_echo "no" >&6; }
2295 test -n "$CC" && break
2298 if test -z "$CC"; then
2300 for ac_prog
in cl.exe
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy
$ac_prog; ac_word
=$2
2304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 $as_echo_n "checking for $ac_word... " >&6; }
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir
=.
2317 for ac_exec_ext
in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_ac_ct_CC
="$ac_prog"
2320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 $as_echo "$ac_ct_CC" >&6; }
2334 { $as_echo "$as_me:$LINENO: result: no" >&5
2335 $as_echo "no" >&6; }
2339 test -n "$ac_ct_CC" && break
2342 if test "x$ac_ct_CC" = x
; then
2345 case $cross_compiling:$ac_tool_warned in
2347 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2349 ac_tool_warned
=yes ;;
2358 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2361 See \`config.log' for more details." >&5
2362 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }; }
2366 # Provide some information about the compiler.
2367 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2370 { (ac_try
="$ac_compiler --version >&5"
2372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2376 $as_echo "$ac_try_echo") >&5
2377 (eval "$ac_compiler --version >&5") 2>&5
2379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (ac_try="$ac_compiler -v >&5"
2383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2384 *) ac_try_echo
=$ac_try;;
2386 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2387 $as_echo "$ac_try_echo") >&5
2388 (eval "$ac_compiler -v >&5") 2>&5
2390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }
2392 { (ac_try
="$ac_compiler -V >&5"
2394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2398 $as_echo "$ac_try_echo") >&5
2399 (eval "$ac_compiler -V >&5") 2>&5
2401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2424 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 $as_echo_n "checking for C compiler default output file name... " >&6; }
2426 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2428 # The possible output files:
2429 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2432 for ac_file in $ac_files
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2436 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2441 if { (ac_try="$ac_link_default"
2443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2444 *) ac_try_echo
=$ac_try;;
2446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2447 $as_echo "$ac_try_echo") >&5
2448 (eval "$ac_link_default") 2>&5
2450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2453 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2454 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2455 # so that the user can short-circuit this test for compilers unknown to
2457 for ac_file
in $ac_files ''
2459 test -f "$ac_file" ||
continue
2461 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2464 # We found the default executable, but exeext='' is most
2468 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2470 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2472 # We set ac_cv_exeext here because the later test for it is not
2473 # safe: cross compilers may not add the suffix if given an `-o'
2474 # argument, so we may need to know it at that point already.
2475 # Even if this section looks crufty: it has the advantage of
2482 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2488 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2489 $as_echo "$ac_file" >&6; }
2490 if test -z "$ac_file"; then
2491 $as_echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.
$ac_ext >&5
2494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2497 See \`config.log' for more details." >&5
2498 $as_echo "$as_me: error: C compiler cannot create executables
2499 See \`config.log' for more details." >&2;}
2500 { (exit 77); exit 77; }; }; }
2503 ac_exeext
=$ac_cv_exeext
2505 # Check that the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2508 $as_echo_n "checking whether the C compiler works... " >&6; }
2509 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2510 # If not cross compiling, check that we can run a simple program.
2511 if test "$cross_compiling" != yes; then
2512 if { ac_try
='./$ac_file'
2513 { (case "(($ac_try" in
2514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2518 $as_echo "$ac_try_echo") >&5
2519 (eval "$ac_try") 2>&5
2521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 if test "$cross_compiling" = maybe; then
2528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2531 If you meant to cross compile
, use \
`--host'.
2532 See \`config.log
' for more details." >&5
2533 $as_echo "$as_me: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \
`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }; }
2540 { $as_echo "$as_me:$LINENO: result: yes" >&5
2541 $as_echo "yes" >&6; }
2543 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2544 ac_clean_files=$ac_clean_files_save
2545 # Check that the compiler produces executables we can run. If not, either
2546 # the compiler is broken, or we cross compile.
2547 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2548 $as_echo_n "checking whether we are cross compiling... " >&6; }
2549 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2550 $as_echo "$cross_compiling" >&6; }
2552 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2553 $as_echo_n "checking for suffix of executables... " >&6; }
2554 if { (ac_try="$ac_link"
2556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2557 *) ac_try_echo
=$ac_try;;
2559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2560 $as_echo "$ac_try_echo") >&5
2561 (eval "$ac_link") 2>&5
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2569 for ac_file
in conftest.exe conftest conftest.
*; do
2570 test -f "$ac_file" ||
continue
2572 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2573 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }; }
2588 rm -f conftest
$ac_cv_exeext
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 $as_echo "$ac_cv_exeext" >&6; }
2592 rm -f conftest.
$ac_ext
2593 EXEEXT
=$ac_cv_exeext
2595 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 $as_echo_n "checking for suffix of object files... " >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2600 cat >conftest.
$ac_ext <<_ACEOF
2603 cat confdefs.h
>>conftest.
$ac_ext
2604 cat >>conftest.
$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try
="$ac_compile"
2618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>&5
2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 for ac_file in conftest.o conftest.obj conftest.*; do
2628 test -f "$ac_file" || continue;
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2636 $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
2642 See \
`config.log' for more details." >&5
2643 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2644 See \`config.log
' for more details." >&2;}
2645 { (exit 1); exit 1; }; }; }
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2651 $as_echo "$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2654 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684 $as_echo "$ac_try_echo") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2687 grep -v '^
*+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2697 $as_echo "$as_me: failed program was:" >&5
2698 sed 's
/^
/|
/' conftest.$ac_ext >&5
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2707 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2709 if test $ac_compiler_gnu = yes; then
2714 ac_test_CFLAGS=${CFLAGS+set}
2715 ac_save_CFLAGS=$CFLAGS
2716 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2718 if test "${ac_cv_prog_cc_g+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2721 ac_save_c_werror_flag=$ac_c_werror_flag
2722 ac_c_werror_flag=yes
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2747 $as_echo "$ac_try_echo") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2750 grep -v '^
*+' conftest.er1 >conftest.err
2752 cat conftest.err >&5
2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
2760 $as_echo "$as_me: failed program was:" >&5
2761 sed 's
/^
/|
/' conftest.$ac_ext >&5
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2789 grep -v '^
*+' conftest.er1 >conftest.err
2791 cat conftest.err >&5
2792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's
/^
/|
/' conftest.$ac_ext >&5
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2804 cat >conftest.$ac_ext <<_ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2819 rm -f conftest.$ac_objext
2820 if { (ac_try="$ac_compile"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826 $as_echo "$ac_try_echo") >&5
2827 (eval "$ac_compile") 2>conftest.er1
2829 grep -v '^
*+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && {
2834 test -z "$ac_c_werror_flag" ||
2835 test ! -s conftest.err
2836 } && test -s conftest.$ac_objext; then
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's
/^
/|
/' conftest.$ac_ext >&5
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_c_werror_flag=$ac_save_c_werror_flag
2854 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 $as_echo "$ac_cv_prog_cc_g" >&6; }
2856 if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2865 if test "$GCC" = yes; then
2871 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2873 if test "${ac_cv_prog_cc_c89+set}" = set; then
2874 $as_echo_n "(cached) " >&6
2876 ac_cv_prog_cc_c89=no
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
2889 struct buf
{ int x
; };
2890 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2891 static char
*e
(p
, i
)
2897 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2902 s
= g
(p
, va_arg
(v
,int
));
2907 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2908 function prototypes and stuff
, but not
'\xHH' hex character constants.
2909 These don
't provoke an error unfortunately, instead are silently treated
2910 as 'x
'. The following induces an error, until -std is added to get
2911 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
2912 array size at least. It's necessary to
write '\x00'==0 to get something
2913 that
's true only with -std. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2917 inside strings and character constants. */
2919 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
2921 int test (int i, double x);
2922 struct s1 {int (*f) (int a);};
2923 struct s2 {int (*f) (double a);};
2924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 CC="$ac_save_CC $ac_arg"
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946 $as_echo "$ac_try_echo") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2949 grep -v '^
*+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && {
2954 test -z "$ac_c_werror_flag" ||
2955 test ! -s conftest.err
2956 } && test -s conftest.$ac_objext; then
2957 ac_cv_prog_cc_c89=$ac_arg
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's
/^
/|
/' conftest.$ac_ext >&5
2965 rm -f core conftest.err conftest.$ac_objext
2966 test "x$ac_cv_prog_cc_c89" != "xno" && break
2968 rm -f conftest.$ac_ext
2973 case "x$ac_cv_prog_cc_c89" in
2975 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2976 $as_echo "none needed" >&6; } ;;
2978 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2979 $as_echo "unsupported" >&6; } ;;
2981 CC="$CC $ac_cv_prog_cc_c89"
2982 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2990 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test x"$GCC" != x"yes" ; then
2996 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2997 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
2998 if test "${ac_cv_prog_cc_c99+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3001 ac_cv_prog_cc_c99=no
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3010 #include <stdbool.h>
3015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3016 #define debug(...) fprintf (stderr, __VA_ARGS__)
3017 #define showlist(...) puts (#__VA_ARGS__)
3018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3020 test_varargs_macros (void)
3025 debug ("X = %d\n", x);
3026 showlist (The first, second, and third items.);
3027 report (x>y, "x is %d but y is %d", x, y);
3030 // Check long long types.
3031 #define BIG64 18446744073709551615ull
3032 #define BIG32 4294967295ul
3033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3035 your preprocessor is broken;
3039 your preprocessor is broken;
3041 static long long int bignum = -9223372036854775807LL;
3042 static unsigned long long int ubignum = BIG64;
3044 struct incomplete_array
3052 const wchar_t *name;
3056 typedef const char *ccp;
3059 test_restrict (ccp restrict text)
3061 // See if C++-style comments work.
3062 // Iterate through items via the restricted pointer.
3063 // Also check for declarations in for loops.
3064 for (unsigned int i = 0; *(text+i) != '\
0'; ++i)
3069 // Check varargs and va_copy.
3071 test_varargs (const char *format, ...)
3074 va_start (args, format);
3076 va_copy (args_copy, args);
3087 str = va_arg (args_copy, const char *);
3090 number = va_arg (args_copy, int);
3093 fnumber = va_arg (args_copy, double);
3108 _Bool success = false;
3111 if (test_restrict ("String literal") == 0)
3113 char *restrict newvar = "Another string";
3116 test_varargs ("s, d' f .
", "string
", 65, 34.234);
3117 test_varargs_macros ();
3119 // Check flexible array members.
3120 struct incomplete_array *ia =
3121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3123 for (int i = 0; i < ia->datasize; ++i)
3124 ia->data[i] = i * 1.234;
3126 // Check named initializers.
3127 struct named_init ni = {
3129 .name = L"Test wide string
",
3130 .average = 543.34343,
3135 int dynamic_array[ni.number];
3136 dynamic_array[ni.number - 1] = 543;
3138 // work around unused variable warnings
3139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3140 || dynamic_array[ni.number - 1] != 543);
3146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3148 CC="$ac_save_CC $ac_arg"
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_c_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_cv_prog_cc_c99=$ac_arg
3169 $as_echo "$as_me: failed program was
:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f core conftest.err conftest.$ac_objext
3176 test "x
$ac_cv_prog_cc_c99" != "xno
" && break
3178 rm -f conftest.$ac_ext
3183 case "x
$ac_cv_prog_cc_c99" in
3185 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3186 $as_echo "none needed
" >&6; } ;;
3188 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3189 $as_echo "unsupported
" >&6; } ;;
3191 CC="$CC $ac_cv_prog_cc_c99"
3192 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c99" >&5
3193 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3200 if test x"$GCC" = x"yes" ; then
3201 { $as_echo "$as_me:$LINENO: checking
for version of gcc
" >&5
3202 $as_echo_n "checking
for version of gcc...
" >&6; }
3203 GCC_VERSION=`$CC -dumpversion`
3204 { $as_echo "$as_me:$LINENO: result
: ${GCC_VERSION}" >&5
3205 $as_echo "${GCC_VERSION}" >&6; }
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3214 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3219 if test -z "$CPP"; then
3220 if test "${ac_cv_prog_CPP+set}" = set; then
3221 $as_echo_n "(cached
) " >&6
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3227 for ac_c_preproc_warn_flag in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error
" is here to catch this case.
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3242 # include <limits.h>
3244 # include <assert.h>
3248 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3261 (exit $ac_status); } >/dev/null && {
3262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3267 $as_echo "$as_me: failed program was
:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 # Broken: fails on valid input.
3274 rm -f conftest.err conftest.$ac_ext
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3286 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3299 (exit $ac_status); } >/dev/null && {
3300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3301 test ! -s conftest.err
3303 # Broken: success on invalid input.
3306 $as_echo "$as_me: failed program was
:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Passes both tests.
3314 rm -f conftest.err conftest.$ac_ext
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3331 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
3332 $as_echo "$CPP" >&6; }
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error
" is here to catch this case.
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3349 # include <limits.h>
3351 # include <assert.h>
3355 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3368 (exit $ac_status); } >/dev/null && {
3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3374 $as_echo "$as_me: failed program was
:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3399 $as_echo "$ac_try_echo") >&5
3400 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3406 (exit $ac_status); } >/dev/null && {
3407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3410 # Broken: success on invalid input.
3413 $as_echo "$as_me: failed program was
:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3421 rm -f conftest.err conftest.$ac_ext
3424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425 rm -f conftest.err conftest.$ac_ext
3426 if $ac_preproc_ok; then
3429 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details.
" >&5
3433 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
3434 See \
`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }; }
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3446 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3447 if test "${ac_cv_path_GREP+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3450 if test -z "$GREP"; then
3451 ac_path_GREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in grep ggrep; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3461 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3462 # Check for GNU ac_path_GREP and select it if it is found.
3463 # Check for GNU $ac_path_GREP
3464 case `"$ac_path_GREP" --version 2>&1` in
3466 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3469 $as_echo_n 0123456789 >"conftest.in"
3472 cat "conftest.in" "conftest.in" >"conftest.tmp"
3473 mv "conftest.tmp" "conftest.in"
3474 cp "conftest.in" "conftest.nl"
3475 $as_echo 'GREP' >> "conftest.nl"
3476 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478 ac_count=`expr $ac_count + 1`
3479 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3480 # Best one so far, save it but keep looking for a better one
3481 ac_cv_path_GREP="$ac_path_GREP"
3482 ac_path_GREP_max=$ac_count
3484 # 10*(2^10) chars as input seems more than enough
3485 test $ac_count -gt 10 && break
3487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3490 $ac_path_GREP_found && break 3
3495 if test -z "$ac_cv_path_GREP"; then
3496 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3497 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3498 { (exit 1); exit 1; }; }
3501 ac_cv_path_GREP=$GREP
3505 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506 $as_echo "$ac_cv_path_GREP" >&6; }
3507 GREP="$ac_cv_path_GREP"
3510 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3511 $as_echo_n "checking for egrep... " >&6; }
3512 if test "${ac_cv_path_EGREP+set}" = set; then
3513 $as_echo_n "(cached) " >&6
3515 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516 then ac_cv_path_EGREP="$GREP -E"
3518 if test -z "$EGREP"; then
3519 ac_path_EGREP_found=false
3520 # Loop through the user's path and test for each of PROGNAME-LIST
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3525 test -z "$as_dir" && as_dir=.
3526 for ac_prog in egrep; do
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3529 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3530 # Check for GNU ac_path_EGREP and select it if it is found.
3531 # Check for GNU $ac_path_EGREP
3532 case `"$ac_path_EGREP" --version 2>&1` in
3534 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3537 $as_echo_n 0123456789 >"conftest.in"
3540 cat "conftest.in" "conftest.in" >"conftest.tmp"
3541 mv "conftest.tmp" "conftest.in"
3542 cp "conftest.in" "conftest.nl"
3543 $as_echo 'EGREP' >> "conftest.nl"
3544 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3546 ac_count=`expr $ac_count + 1`
3547 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3548 # Best one so far, save it but keep looking for a better one
3549 ac_cv_path_EGREP="$ac_path_EGREP"
3550 ac_path_EGREP_max=$ac_count
3552 # 10*(2^10) chars as input seems more than enough
3553 test $ac_count -gt 10 && break
3555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3558 $ac_path_EGREP_found && break 3
3563 if test -z "$ac_cv_path_EGREP"; then
3564 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3565 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3566 { (exit 1); exit 1; }; }
3569 ac_cv_path_EGREP=$EGREP
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3575 $as_echo "$ac_cv_path_EGREP" >&6; }
3576 EGREP="$ac_cv_path_EGREP"
3579 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3580 $as_echo_n "checking for ANSI C header files... " >&6; }
3581 if test "${ac_cv_header_stdc+set}" = set; then
3582 $as_echo_n "(cached) " >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3607 *) ac_try_echo
=$ac_try;;
3609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3610 $as_echo "$ac_try_echo") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1
>conftest.err
3615 cat conftest.err
>&5
3616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.
$ac_objext; then
3621 ac_cv_header_stdc
=yes
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3626 ac_cv_header_stdc
=no
3629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3631 if test $ac_cv_header_stdc = yes; then
3632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3633 cat >conftest.
$ac_ext <<_ACEOF
3636 cat confdefs.h
>>conftest.
$ac_ext
3637 cat >>conftest.
$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 $EGREP "memchr" >/dev
/null
2>&1; then
3646 ac_cv_header_stdc
=no
3652 if test $ac_cv_header_stdc = yes; then
3653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3654 cat >conftest.
$ac_ext <<_ACEOF
3657 cat confdefs.h
>>conftest.
$ac_ext
3658 cat >>conftest.
$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 $EGREP "free" >/dev
/null
2>&1; then
3667 ac_cv_header_stdc
=no
3673 if test $ac_cv_header_stdc = yes; then
3674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3675 if test "$cross_compiling" = yes; then
3678 cat >conftest.
$ac_ext <<_ACEOF
3681 cat confdefs.h
>>conftest.
$ac_ext
3682 cat >>conftest.
$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3686 #if ((' ' & 0x0FF) == 0x020)
3687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3690 # define ISLOWER(c) \
3691 (('a' <= (c) && (c) <= 'i') \
3692 || ('j' <= (c) && (c) <= 'r') \
3693 || ('s' <= (c) && (c) <= 'z'))
3694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3702 for (i = 0; i < 256; i++)
3703 if (XOR (islower (i), ISLOWER (i))
3704 || toupper (i) != TOUPPER (i))
3709 rm -f conftest
$ac_exeext
3710 if { (ac_try
="$ac_link"
3712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_link") 2>&5
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3721 { (case "(($ac_try" in
3722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3723 *) ac_try_echo
=$ac_try;;
3725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727 (eval "$ac_try") 2>&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 $as_echo "$as_me: program exited with status $ac_status" >&5
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3738 ac_cv_header_stdc
=no
3740 rm -rf conftest.dSYM
3741 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 $as_echo "$ac_cv_header_stdc" >&6; }
3749 if test $ac_cv_header_stdc = yes; then
3751 cat >>confdefs.h
<<\_ACEOF
3752 #define STDC_HEADERS 1
3757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3767 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3768 inttypes.h stdint.h unistd.h
3770 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3772 $as_echo_n "checking for $ac_header... " >&6; }
3773 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3774 $as_echo_n "(cached) " >&6
3776 cat >conftest.
$ac_ext <<_ACEOF
3779 cat confdefs.h
>>conftest.
$ac_ext
3780 cat >>conftest.
$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3784 #include <$ac_header>
3786 rm -f conftest.
$ac_objext
3787 if { (ac_try
="$ac_compile"
3789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3804 eval "$as_ac_Header=yes"
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 eval "$as_ac_Header=no"
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_res=`eval 'as_val=${'$as_ac_Header'}
3815 $as_echo "$as_val"'`
3816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3817 $as_echo "$ac_res" >&6; }
3818 as_val=`eval 'as_val=${'$as_ac_Header'}
3819 $as_echo "$as_val"'`
3820 if test "x$as_val" = x""yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
3831 if test "${ac_cv_header_minix_config_h+set}" = set; then
3832 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3833 $as_echo_n "checking for minix/config.h... " >&6; }
3834 if test "${ac_cv_header_minix_config_h+set}" = set; then
3835 $as_echo_n "(cached) " >&6
3837 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3838 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3840 # Is the header compilable?
3841 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3842 $as_echo_n "checking minix/config.h usability... " >&6; }
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 $ac_includes_default
3850 #include <minix/config.h>
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3856 *) ac_try_echo
=$ac_try;;
3858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3859 $as_echo "$ac_try_echo") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1
>conftest.err
3864 cat conftest.err
>&5
3865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.
$ac_objext; then
3870 ac_header_compiler
=yes
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 ac_header_compiler
=no
3878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3880 $as_echo "$ac_header_compiler" >&6; }
3882 # Is the header present?
3883 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3884 $as_echo_n "checking minix/config.h presence... " >&6; }
3885 cat >conftest.
$ac_ext <<_ACEOF
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 #include <minix/config.h>
3893 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } >/dev/null && {
3907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3910 ac_header_preproc=yes
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_header_preproc=no
3918 rm -f conftest.err conftest.$ac_ext
3919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3920 $as_echo "$ac_header_preproc" >&6; }
3922 # So? What about this header?
3923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3925 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3926 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3927 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3928 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3929 ac_header_preproc=yes
3932 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3933 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3934 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3935 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3936 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3937 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3938 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3939 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3940 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3941 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3942 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3943 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3947 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3948 $as_echo_n "checking for minix/config.h... " >&6; }
3949 if test "${ac_cv_header_minix_config_h+set}" = set; then
3950 $as_echo_n "(cached) " >&6
3952 ac_cv_header_minix_config_h=$ac_header_preproc
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3955 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3958 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3965 if test "$MINIX" = yes; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define _POSIX_SOURCE 1
3972 cat >>confdefs.h <<\_ACEOF
3973 #define _POSIX_1_SOURCE 2
3977 cat >>confdefs.h <<\_ACEOF
3985 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3987 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3997 # define __EXTENSIONS__ 1
3998 $ac_includes_default
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4011 *) ac_try_echo
=$ac_try;;
4013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4014 $as_echo "$ac_try_echo") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1
>conftest.err
4019 cat conftest.err
>&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.
$ac_objext; then
4025 ac_cv_safe_to_define___extensions__
=yes
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.
$ac_ext >&5
4030 ac_cv_safe_to_define___extensions__
=no
4033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4036 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4037 test $ac_cv_safe_to_define___extensions__ = yes &&
4038 cat >>confdefs.h
<<\_ACEOF
4039 #define __EXTENSIONS__ 1
4042 cat >>confdefs.h
<<\_ACEOF
4043 #define _ALL_SOURCE 1
4046 cat >>confdefs.h
<<\_ACEOF
4047 #define _GNU_SOURCE 1
4050 cat >>confdefs.h
<<\_ACEOF
4051 #define _POSIX_PTHREAD_SEMANTICS 1
4054 cat >>confdefs.h
<<\_ACEOF
4055 #define _TANDEM_SOURCE 1
4060 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4061 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4062 if test "${ac_cv_c_bigendian+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4065 ac_cv_c_bigendian
=unknown
4066 # See if we're dealing with a universal compiler.
4067 cat >conftest.
$ac_ext <<_ACEOF
4070 cat confdefs.h
>>conftest.
$ac_ext
4071 cat >>conftest.
$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #ifndef __APPLE_CC__
4074 not a universal capable compiler
4079 rm -f conftest.
$ac_objext
4080 if { (ac_try
="$ac_compile"
4082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086 $as_echo "$ac_try_echo") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4098 # Check for potential -arch flags. It is not universal unless
4099 # there are some -arch flags. Note that *ppc* also matches
4100 # ppc64. This check is also rather less than ideal.
4101 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
4102 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 if test $ac_cv_c_bigendian = unknown; then
4113 # See if sys/param.h defines the BYTE_ORDER macro.
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4127 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4140 *) ac_try_echo
=$ac_try;;
4142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1
>conftest.err
4148 cat conftest.err
>&5
4149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.
$ac_objext; then
4154 # It does; now see whether it defined to BIG_ENDIAN or not.
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 #include <sys/param.h>
4167 #if BYTE_ORDER != BIG_ENDIAN
4175 rm -f conftest.
$ac_objext
4176 if { (ac_try
="$ac_compile"
4178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4182 $as_echo "$ac_try_echo") >&5
4183 (eval "$ac_compile") 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } && {
4190 test -z "$ac_c_werror_flag" ||
4191 test ! -s conftest.err
4192 } && test -s conftest.$ac_objext; then
4193 ac_cv_c_bigendian=yes
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_cv_c_bigendian=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 $as_echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 if test $ac_cv_c_bigendian = unknown; then
4212 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4224 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4236 *) ac_try_echo
=$ac_try;;
4238 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4239 $as_echo "$ac_try_echo") >&5
4240 (eval "$ac_compile") 2>conftest.er1
4242 grep -v '^ *+' conftest.er1
>conftest.err
4244 cat conftest.err
>&5
4245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && {
4247 test -z "$ac_c_werror_flag" ||
4248 test ! -s conftest.err
4249 } && test -s conftest.
$ac_objext; then
4250 # It does; now see whether it defined to _BIG_ENDIAN or not.
4251 cat >conftest.
$ac_ext <<_ACEOF
4254 cat confdefs.h
>>conftest.
$ac_ext
4255 cat >>conftest.
$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4270 rm -f conftest.
$ac_objext
4271 if { (ac_try
="$ac_compile"
4273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277 $as_echo "$ac_try_echo") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1 >conftest.err
4282 cat conftest.err >&5
4283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.$ac_objext; then
4288 ac_cv_c_bigendian=yes
4290 $as_echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_c_bigendian=no
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 if test $ac_cv_c_bigendian = unknown; then
4307 # Compile a test program.
4308 if test "$cross_compiling" = yes; then
4309 # Try to guess by grepping values from an object file.
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 short int ascii_mm[] =
4317 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4318 short int ascii_ii[] =
4319 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4320 int use_ascii (int i) {
4321 return ascii_mm[i] + ascii_ii[i];
4323 short int ebcdic_ii[] =
4324 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4325 short int ebcdic_mm[] =
4326 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4327 int use_ebcdic (int i) {
4328 return ebcdic_mm[i] + ebcdic_ii[i];
4335 return use_ascii (foo) == use_ebcdic (foo);
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4344 *) ac_try_echo
=$ac_try;;
4346 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1
>conftest.err
4352 cat conftest.err
>&5
4353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.
$ac_objext; then
4358 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4359 ac_cv_c_bigendian
=yes
4361 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4362 if test "$ac_cv_c_bigendian" = unknown
; then
4363 ac_cv_c_bigendian
=no
4365 # finding both strings is unlikely to happen, but who knows?
4366 ac_cv_c_bigendian
=unknown
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4378 cat >conftest.
$ac_ext <<_ACEOF
4381 cat confdefs.h
>>conftest.
$ac_ext
4382 cat >>conftest.
$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4389 /* Are we little or big endian? From Harbison&Steele. */
4393 char c[sizeof (long int)];
4396 return u.c[sizeof (long int) - 1] == 1;
4402 rm -f conftest
$ac_exeext
4403 if { (ac_try
="$ac_link"
4405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409 $as_echo "$ac_try_echo") >&5
4410 (eval "$ac_link") 2>&5
4412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4416 *) ac_try_echo
=$ac_try;;
4418 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4419 $as_echo "$ac_try_echo") >&5
4420 (eval "$ac_try") 2>&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_c_bigendian
=no
4426 $as_echo "$as_me: program exited with status $ac_status" >&5
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.
$ac_ext >&5
4431 ac_cv_c_bigendian
=yes
4433 rm -rf conftest.dSYM
4434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4440 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4441 $as_echo "$ac_cv_c_bigendian" >&6; }
4442 case $ac_cv_c_bigendian in #(
4444 cat >>confdefs.h
<<\_ACEOF
4445 #define WORDS_BIGENDIAN 1
4452 cat >>confdefs.h
<<\_ACEOF
4453 #define AC_APPLE_UNIVERSAL_BUILD 1
4458 { { $as_echo "$as_me:$LINENO: error: unknown endianness
4459 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4460 $as_echo "$as_me: error: unknown endianness
4461 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4462 { (exit 1); exit 1; }; } ;;
4465 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4466 $as_echo_n "checking for inline... " >&6; }
4467 if test "${ac_cv_c_inline+set}" = set; then
4468 $as_echo_n "(cached) " >&6
4471 for ac_kw
in inline __inline__ __inline
; do
4472 cat >conftest.
$ac_ext <<_ACEOF
4475 cat confdefs.h
>>conftest.
$ac_ext
4476 cat >>conftest.
$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4480 static $ac_kw foo_t static_foo () {return 0; }
4481 $ac_kw foo_t foo () {return 0; }
4485 rm -f conftest.
$ac_objext
4486 if { (ac_try
="$ac_compile"
4488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_c_inline=$ac_kw
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 test "$ac_cv_c_inline" != no && break
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4517 $as_echo "$ac_cv_c_inline" >&6; }
4520 case $ac_cv_c_inline in
4523 case $ac_cv_c_inline in
4525 *) ac_val=$ac_cv_c_inline;;
4527 cat >>confdefs.h <<_ACEOF
4529 #define inline $ac_val
4536 saved_CFLAGS="$CFLAGS";
4538 if test x"$c99_init" = x"no"; then
4539 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4540 $as_echo_n "checking for C99 designated initializers... " >&6; }
4541 CFLAGS="$saved_CFLAGS";
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4552 struct foo {int x;char y;};
4553 struct foo bar = { .y = 'X', .x = 1 };
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4563 *) ac_try_echo
=$ac_try;;
4565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567 (eval "$ac_compile") 2>conftest.er1
4569 grep -v '^ *+' conftest.er1
>conftest.err
4571 cat conftest.err
>&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } && {
4574 test -z "$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 } && test -s conftest.
$ac_objext; then
4577 { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 $as_echo "yes" >&6; }; c99_init
=yes
4580 $as_echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.
$ac_ext >&5
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4589 if test x
"$c99_init" = x
"no"; then
4590 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4591 $as_echo_n "checking for C99 designated initializers with -AC99... " >&6; }
4592 CFLAGS
="$saved_CFLAGS -AC99";
4593 cat >conftest.
$ac_ext <<_ACEOF
4596 cat confdefs.h
>>conftest.
$ac_ext
4597 cat >>conftest.
$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4603 struct foo {int x;char y;};
4604 struct foo bar = { .y = 'X', .x = 1 };
4610 rm -f conftest.
$ac_objext
4611 if { (ac_try
="$ac_compile"
4613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 { $as_echo "$as_me:$LINENO: result: yes" >&5
4629 $as_echo "yes" >&6; }; c99_init=yes
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test x"$c99_init" = x"no"; then
4641 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4642 $as_echo_n "checking for C99 designated initializers with -qlanglvl=extc99... " >&6; }
4643 CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4654 struct foo {int x;char y;};
4655 struct foo bar = { .y = 'X', .x = 1 };
4661 rm -f conftest.$ac_objext
4662 if { (ac_try="$ac_compile"
4664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4665 *) ac_try_echo
=$ac_try;;
4667 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1
>conftest.err
4673 cat conftest.err
>&5
4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.
$ac_objext; then
4679 { $as_echo "$as_me:$LINENO: result: yes" >&5
4680 $as_echo "yes" >&6; }; c99_init
=yes
4682 $as_echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.
$ac_ext >&5
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 if test x
"$c99_init" = x
"no"; then
4692 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4693 $as_echo_n "checking for C99 designated initializers with -qlanglvl=stdc99... " >&6; }
4694 CFLAGS
="$saved_CFLAGS -qlanglvl=stdc99";
4695 cat >conftest.
$ac_ext <<_ACEOF
4698 cat confdefs.h
>>conftest.
$ac_ext
4699 cat >>conftest.
$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4705 struct foo {int x;char y;};
4706 struct foo bar = { .y = 'X', .x = 1 };
4712 rm -f conftest.
$ac_objext
4713 if { (ac_try
="$ac_compile"
4715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719 $as_echo "$ac_try_echo") >&5
4720 (eval "$ac_compile") 2>conftest.er1
4722 grep -v '^ *+' conftest.er1 >conftest.err
4724 cat conftest.err >&5
4725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && {
4727 test -z "$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 } && test -s conftest.$ac_objext; then
4730 { $as_echo "$as_me:$LINENO: result: yes" >&5
4731 $as_echo "yes" >&6; }; c99_init=yes
4733 $as_echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 if test x"$c99_init" = x"no"; then
4743 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4744 $as_echo_n "checking for C99 designated initializers with -c99... " >&6; }
4745 CFLAGS="$saved_CFLAGS -c99"
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4756 struct foo {int x;char y;};
4757 struct foo bar = { .y = 'X', .x = 1 };
4763 rm -f conftest.$ac_objext
4764 if { (ac_try="$ac_compile"
4766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4767 *) ac_try_echo
=$ac_try;;
4769 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4770 $as_echo "$ac_try_echo") >&5
4771 (eval "$ac_compile") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1
>conftest.err
4775 cat conftest.err
>&5
4776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && {
4778 test -z "$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 } && test -s conftest.
$ac_objext; then
4781 { $as_echo "$as_me:$LINENO: result: yes" >&5
4782 $as_echo "yes" >&6; }; c99_init
=yes
4784 $as_echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4787 { $as_echo "$as_me:$LINENO: result: no" >&5
4788 $as_echo "no" >&6; }
4791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4794 if test "`uname`" = "HP-UX"; then
4795 if test "$ac_cv_c_compiler_gnu" = no
; then
4796 # special override for broken HP-UX compiler - I can't find a way to test
4797 # this properly (its a compiler bug)
4798 CFLAGS
="$CFLAGS -AC99";
4803 if test x
"$c99_init" = x
"yes"; then
4807 CFLAGS
="$saved_CFLAGS"
4809 { $as_echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4810 $as_echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4814 # Find a good install program. We prefer a C program (faster),
4815 # so one script is as good as another. But avoid the broken or
4816 # incompatible versions:
4817 # SysV /etc/install, /usr/sbin/install
4818 # SunOS /usr/etc/install
4819 # IRIX /sbin/install
4821 # AmigaOS /C/install, which installs bootblocks on floppy discs
4822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4825 # OS/2's system install, which has a completely different semantic
4826 # ./install, which can be erroneously created by make from ./install.sh.
4827 # Reject install programs that cannot install multiple files.
4828 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4830 if test -z "$INSTALL"; then
4831 if test "${ac_cv_path_install+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir
=.
4839 # Account for people who put trailing slashes in PATH elements.
4841 .
/ | .
// |
/cC
/* | \
4842 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4843 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4846 # OSF1 and SCO ODT 3.0 have their own names for install.
4847 # Don't use installbsd from OSF since it installs stuff as root
4849 for ac_prog
in ginstall scoinst
install; do
4850 for ac_exec_ext
in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4852 if test $ac_prog = install &&
4853 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4854 # AIX install. It has an incompatible calling convention.
4856 elif test $ac_prog = install &&
4857 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4858 # program-specific install script used by HP pwplus--don't use.
4861 rm -rf conftest.one conftest.two conftest.dir
4862 echo one
> conftest.one
4863 echo two
> conftest.two
4865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4866 test -s conftest.one
&& test -s conftest.two
&&
4867 test -s conftest.dir
/conftest.one
&&
4868 test -s conftest.dir
/conftest.two
4870 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4883 rm -rf conftest.one conftest.two conftest.dir
4886 if test "${ac_cv_path_install+set}" = set; then
4887 INSTALL
=$ac_cv_path_install
4889 # As a last resort, use the slow shell script. Don't cache a
4890 # value for INSTALL within a source directory, because that will
4891 # break other packages using the cache if that directory is
4892 # removed, or if the value is a relative name.
4893 INSTALL
=$ac_install_sh
4896 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4897 $as_echo "$INSTALL" >&6; }
4899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4900 # It thinks the first close brace ends the variable substitution.
4901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4905 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4908 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
4909 $as_echo_n "checking for library containing strerror... " >&6; }
4910 if test "${ac_cv_search_strerror+set}" = set; then
4911 $as_echo_n "(cached) " >&6
4913 ac_func_search_save_LIBS
=$LIBS
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any GCC internal prototype to avoid an error.
4922 Use char because int might match the return type of a GCC
4923 builtin and then its argument prototype would still apply. */
4936 for ac_lib
in '' cposix
; do
4937 if test -z "$ac_lib"; then
4938 ac_res
="none required"
4941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4943 rm -f conftest.
$ac_objext conftest
$ac_exeext
4944 if { (ac_try
="$ac_link"
4946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_link") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest$ac_exeext && {
4961 test "$cross_compiling" = yes ||
4962 $as_test_x conftest$ac_exeext
4964 ac_cv_search_strerror=$ac_res
4966 $as_echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4972 rm -rf conftest.dSYM
4973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4975 if test "${ac_cv_search_strerror+set}" = set; then
4979 if test "${ac_cv_search_strerror+set}" = set; then
4982 ac_cv_search_strerror=no
4985 LIBS=$ac_func_search_save_LIBS
4987 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4988 $as_echo "$ac_cv_search_strerror" >&6; }
4989 ac_res=$ac_cv_search_strerror
4990 if test "$ac_res" != no; then
4991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4999 cat >>confdefs.h <<\EOF
5000 #ifndef _XOPEN_SOURCE_EXTENDED
5001 #define _XOPEN_SOURCE_EXTENDED 1
5006 # Check whether --enable-largefile was given.
5007 if test "${enable_largefile+set}" = set; then
5008 enableval=$enable_largefile;
5011 if test "$enable_largefile" != no; then
5013 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5014 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5015 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5018 ac_cv_sys_largefile_CC=no
5019 if test "$GCC" != yes; then
5022 # IRIX 6.2 and later do not support large files by default,
5023 # so use the C compiler's -n32 option if that helps.
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 /* Check that off_t can represent 2**63 - 1 correctly.
5032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5033 since some C++ compilers masquerading as C compilers
5034 incorrectly reject 9223372036854775807. */
5035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5037 && LARGE_OFF_T % 2147483647 == 1)
5047 rm -f conftest.$ac_objext
5048 if { (ac_try="$ac_compile"
5050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5051 *) ac_try_echo
=$ac_try;;
5053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5054 $as_echo "$ac_try_echo") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5057 grep -v '^ *+' conftest.er1
>conftest.err
5059 cat conftest.err
>&5
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.
$ac_objext; then
5067 $as_echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.
$ac_ext >&5
5073 rm -f core conftest.err conftest.
$ac_objext
5075 rm -f conftest.
$ac_objext
5076 if { (ac_try
="$ac_compile"
5078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 ac_cv_sys_largefile_CC=' -n32'; break
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext
5105 rm -f conftest.$ac_ext
5108 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no; then
5111 CC=$CC$ac_cv_sys_largefile_CC
5114 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <sys/types.h>
5127 /* Check that off_t can represent 2**63 - 1 correctly.
5128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5129 since some C++ compilers masquerading as C compilers
5130 incorrectly reject 9223372036854775807. */
5131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5133 && LARGE_OFF_T % 2147483647 == 1)
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5147 *) ac_try_echo
=$ac_try;;
5149 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1
>conftest.err
5155 cat conftest.err
>&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.
$ac_objext; then
5161 ac_cv_sys_file_offset_bits
=no
; break
5163 $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.
$ac_ext >&5
5169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #define _FILE_OFFSET_BITS 64
5177 #include <sys/types.h>
5178 /* Check that off_t can represent 2**63 - 1 correctly.
5179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5180 since some C++ compilers masquerading as C compilers
5181 incorrectly reject 9223372036854775807. */
5182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5184 && LARGE_OFF_T % 2147483647 == 1)
5194 rm -f conftest.
$ac_objext
5195 if { (ac_try
="$ac_compile"
5197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_compile") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && {
5209 test -z "$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 } && test -s conftest.$ac_objext; then
5212 ac_cv_sys_file_offset_bits=64; break
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_sys_file_offset_bits=unknown
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5226 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5227 case $ac_cv_sys_file_offset_bits in #(
5230 cat >>confdefs.h <<_ACEOF
5231 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5236 if test $ac_cv_sys_file_offset_bits = unknown; then
5237 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5238 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5239 if test "${ac_cv_sys_large_files+set}" = set; then
5240 $as_echo_n "(cached) " >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <sys/types.h>
5250 /* Check that off_t can represent 2**63 - 1 correctly.
5251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5252 since some C++ compilers masquerading as C compilers
5253 incorrectly reject 9223372036854775807. */
5254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5256 && LARGE_OFF_T % 2147483647 == 1)
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5270 *) ac_try_echo
=$ac_try;;
5272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5273 $as_echo "$ac_try_echo") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1
>conftest.err
5278 cat conftest.err
>&5
5279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.
$ac_objext; then
5284 ac_cv_sys_large_files
=no
; break
5286 $as_echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.
$ac_ext >&5
5292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5293 cat >conftest.
$ac_ext <<_ACEOF
5296 cat confdefs.h
>>conftest.
$ac_ext
5297 cat >>conftest.
$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #define _LARGE_FILES 1
5300 #include <sys/types.h>
5301 /* Check that off_t can represent 2**63 - 1 correctly.
5302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5303 since some C++ compilers masquerading as C compilers
5304 incorrectly reject 9223372036854775807. */
5305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5307 && LARGE_OFF_T % 2147483647 == 1)
5317 rm -f conftest.
$ac_objext
5318 if { (ac_try
="$ac_compile"
5320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_cv_sys_large_files=1; break
5337 $as_echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_sys_large_files=unknown
5348 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5349 $as_echo "$ac_cv_sys_large_files" >&6; }
5350 case $ac_cv_sys_large_files in #(
5353 cat >>confdefs.h <<_ACEOF
5354 #define _LARGE_FILES $ac_cv_sys_large_files
5364 *irix6*) cat >> confdefs.h <<\EOF
5365 #include <standards.h>
5370 # mmap on HPUX is completely broken...
5372 cat >>confdefs.h <<\_ACEOF
5373 #define MMAP_BLACKLIST 1
5376 if test "`uname
-r`" = "B.11.00" -o "`uname
-r`" = "B.11.11"; then
5377 { $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&5
5378 $as_echo "$as_me: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&2;}
5379 CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64"
5381 if test "`uname
-r`" = "B.11.23"; then
5382 { $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5383 $as_echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5384 CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5389 cat >>confdefs.h <<\_ACEOF
5390 #define BROKEN_STRNDUP 1
5394 cat >>confdefs.h <<\_ACEOF
5395 #define BROKEN_STRNLEN 1
5398 if test "${GCC}" != "yes"; then
5399 ## for funky AIX compiler using strncpy()
5400 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5404 # this brings in socklen_t
5409 cat >>confdefs.h <<\EOF
5410 #ifndef _XOPEN_SOURCE
5411 #define _XOPEN_SOURCE 600
5419 cat >>confdefs.h <<\EOF
5421 #define _OSF_SOURCE 1
5427 # VOS may need to have POSIX support and System V compatibility enabled.
5431 *-D_POSIX_C_SOURCE*);;
5433 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5435 cat >>confdefs.h <<\_ACEOF
5436 #define _POSIX_C_SOURCE 200112L
5442 *-D_SYSV*|*-D_SVID_SOURCE*);;
5444 CFLAGS="$CFLAGS -D_SYSV"
5446 cat >>confdefs.h <<\_ACEOF
5458 for ac_header in standards.h
5460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 $as_echo_n "checking for $ac_header... " >&6; }
5464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5465 $as_echo_n "(cached) " >&6
5467 ac_res=`eval 'as_val=${'$as_ac_Header'}
5468 $as_echo "$as_val"'`
5469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5470 $as_echo "$ac_res" >&6; }
5472 # Is the header compilable?
5473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5474 $as_echo_n "checking $ac_header usability... " >&6; }
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include <$ac_header>
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5488 *) ac_try_echo
=$ac_try;;
5490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1
>conftest.err
5496 cat conftest.err
>&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.
$ac_objext; then
5502 ac_header_compiler
=yes
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 ac_header_compiler
=no
5510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5512 $as_echo "$ac_header_compiler" >&6; }
5514 # Is the header present?
5515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5516 $as_echo_n "checking $ac_header presence... " >&6; }
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <$ac_header>
5525 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null && {
5539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5542 ac_header_preproc=yes
5544 $as_echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_header_preproc=no
5550 rm -f conftest.err conftest.$ac_ext
5551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5552 $as_echo "$ac_header_preproc" >&6; }
5554 # So? What about this header?
5555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5561 ac_header_preproc=yes
5564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5580 $as_echo_n "checking for $ac_header... " >&6; }
5581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5582 $as_echo_n "(cached) " >&6
5584 eval "$as_ac_Header=\$ac_header_preproc"
5586 ac_res=`eval 'as_val=${'$as_ac_Header'}
5587 $as_echo "$as_val"'`
5588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5589 $as_echo "$ac_res" >&6; }
5592 as_val=`eval 'as_val=${'$as_ac_Header'}
5593 $as_echo "$as_val"'`
5594 if test "x$as_val" = x""yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5604 # Solaris needs HAVE_LONG_LONG defined
5605 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5606 $as_echo_n "checking for long long... " >&6; }
5607 if test "${ac_cv_type_long_long+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5610 ac_cv_type_long_long=no
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5621 if (sizeof (long long))
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5631 *) ac_try_echo
=$ac_try;;
5633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5634 $as_echo "$ac_try_echo") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1
>conftest.err
5639 cat conftest.err
>&5
5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.
$ac_objext; then
5645 cat >conftest.
$ac_ext <<_ACEOF
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5655 if (sizeof ((long long)))
5661 rm -f conftest.
$ac_objext
5662 if { (ac_try
="$ac_compile"
5664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5681 $as_echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_cv_type_long_long=yes
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 $as_echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5698 $as_echo "$ac_cv_type_long_long" >&6; }
5699 if test "x$ac_cv_type_long_long" = x""yes; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LONG_LONG 1
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:$LINENO: checking size of int" >&5
5714 $as_echo_n "checking size of int... " >&6; }
5715 if test "${ac_cv_sizeof_int+set}" = set; then
5716 $as_echo_n "(cached) " >&6
5718 if test "$cross_compiling" = yes; then
5719 # Depending upon the size, compute the lo and hi bounds.
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5730 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5747 grep -v '^
*+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5774 rm -f conftest.$ac_objext
5775 if { (ac_try="$ac_compile"
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5781 $as_echo "$ac_try_echo") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^
*+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 ac_hi=$ac_mid; break
5794 $as_echo "$as_me: failed program was:" >&5
5795 sed 's
/^
/|
/' conftest.$ac_ext >&5
5797 ac_lo=`expr $ac_mid + 1`
5798 if test $ac_lo -le $ac_mid; then
5802 ac_mid=`expr 2 '*' $ac_mid + 1`
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 $as_echo "$as_me: failed program was:" >&5
5809 sed 's
/^
/|
/' conftest.$ac_ext >&5
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5821 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5838 grep -v '^
*+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5858 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5875 grep -v '^
*+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_lo=$ac_mid; break
5885 $as_echo "$as_me: failed program was:" >&5
5886 sed 's
/^
/|
/' conftest.$ac_ext >&5
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5893 ac_mid=`expr 2 '*' $ac_mid`
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 $as_echo "$as_me: failed program was:" >&5
5900 sed 's
/^
/|
/' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 # Binary search between lo and hi bounds.
5910 while test "x$ac_lo" != "x$ac_hi"; do
5911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5922 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^
*+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5949 $as_echo "$as_me: failed program was:" >&5
5950 sed 's
/^
/|
/' conftest.$ac_ext >&5
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ?*) ac_cv_sizeof_int=$ac_lo;;
5959 '') if test "$ac_cv_type_int" = yes; then
5960 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5962 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5963 See \`config.log
' for more details." >&5
5964 $as_echo "$as_me: error: cannot compute sizeof (int)
5965 See \`config.log' for more details.
" >&2;}
5966 { (exit 77); exit 77; }; }; }
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5979 static long int longval () { return (long int) (sizeof (int)); }
5980 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5987 FILE *f = fopen ("conftest.val
", "w
");
5990 if (((long int) (sizeof (int))) < 0)
5992 long int i = longval ();
5993 if (i != ((long int) (sizeof (int))))
5995 fprintf (f, "%ld
", i);
5999 unsigned long int i = ulongval ();
6000 if (i != ((long int) (sizeof (int))))
6002 fprintf (f, "%lu
", i);
6004 /* Do not output a trailing newline, as this causes \r\n confusion
6005 on some platforms. */
6006 return ferror (f) || fclose (f) != 0;
6012 rm -f conftest$ac_exeext
6013 if { (ac_try="$ac_link"
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_link") 2>&5
6022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6029 $as_echo "$ac_try_echo") >&5
6030 (eval "$ac_try") 2>&5
6032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_sizeof_int=`cat conftest.val`
6036 $as_echo "$as_me: program exited with status
$ac_status" >&5
6037 $as_echo "$as_me: failed program was
:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6041 if test "$ac_cv_type_int" = yes; then
6042 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6045 See \`config.log' for more details.
" >&5
6046 $as_echo "$as_me: error
: cannot compute sizeof
(int
)
6047 See \
`config.log' for more details." >&2;}
6048 { (exit 77); exit 77; }; }; }
6053 rm -rf conftest.dSYM
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6058 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6059 $as_echo "$ac_cv_sizeof_int" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define SIZEOF_INT $ac_cv_sizeof_int
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:$LINENO: checking size of char" >&5
6073 $as_echo_n "checking size of char... " >&6; }
6074 if test "${ac_cv_sizeof_char+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6077 if test "$cross_compiling" = yes; then
6078 # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6089 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^
*+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6126 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^
*+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_hi=$ac_mid; break
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's
/^
/|
/' conftest.$ac_ext >&5
6156 ac_lo=`expr $ac_mid + 1`
6157 if test $ac_lo -le $ac_mid; then
6161 ac_mid=`expr 2 '*' $ac_mid + 1`
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 $as_echo "$as_me: failed program was:" >&5
6168 sed 's
/^
/|
/' conftest.$ac_ext >&5
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 $ac_includes_default
6180 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
6187 rm -f conftest.$ac_objext
6188 if { (ac_try="$ac_compile"
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^
*+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6217 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6234 grep -v '^
*+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_lo=$ac_mid; break
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's
/^
/|
/' conftest.$ac_ext >&5
6247 ac_hi=`expr '(' $ac_mid ')' - 1`
6248 if test $ac_mid -le $ac_hi; then
6252 ac_mid=`expr 2 '*' $ac_mid`
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's
/^
/|
/' conftest.$ac_ext >&5
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 # Binary search between lo and hi bounds.
6269 while test "x$ac_lo" != "x$ac_hi"; do
6270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6281 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6298 grep -v '^
*+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6308 $as_echo "$as_me: failed program was:" >&5
6309 sed 's
/^
/|
/' conftest.$ac_ext >&5
6311 ac_lo=`expr '(' $ac_mid ')' + 1`
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 ?*) ac_cv_sizeof_char=$ac_lo;;
6318 '') if test "$ac_cv_type_char" = yes; then
6319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6320 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
6321 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6322 See \`config.log
' for more details." >&5
6323 $as_echo "$as_me: error: cannot compute sizeof (char)
6324 See \`config.log' for more details.
" >&2;}
6325 { (exit 77); exit 77; }; }; }
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 static long int longval () { return (long int) (sizeof (char)); }
6339 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
6346 FILE *f = fopen ("conftest.val
", "w
");
6349 if (((long int) (sizeof (char))) < 0)
6351 long int i = longval ();
6352 if (i != ((long int) (sizeof (char))))
6354 fprintf (f, "%ld
", i);
6358 unsigned long int i = ulongval ();
6359 if (i != ((long int) (sizeof (char))))
6361 fprintf (f, "%lu
", i);
6363 /* Do not output a trailing newline, as this causes \r\n confusion
6364 on some platforms. */
6365 return ferror (f) || fclose (f) != 0;
6371 rm -f conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6377 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_link") 2>&5
6381 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6388 $as_echo "$ac_try_echo") >&5
6389 (eval "$ac_try") 2>&5
6391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_cv_sizeof_char=`cat conftest.val`
6395 $as_echo "$as_me: program exited with status
$ac_status" >&5
6396 $as_echo "$as_me: failed program was
:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6400 if test "$ac_cv_type_char" = yes; then
6401 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
6402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6403 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6404 See \`config.log' for more details.
" >&5
6405 $as_echo "$as_me: error
: cannot compute sizeof
(char
)
6406 See \
`config.log' for more details." >&2;}
6407 { (exit 77); exit 77; }; }; }
6412 rm -rf conftest.dSYM
6413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6417 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6418 $as_echo "$ac_cv_sizeof_char" >&6; }
6422 cat >>confdefs.h <<_ACEOF
6423 #define SIZEOF_CHAR $ac_cv_sizeof_char
6427 # The cast to long int works around a bug in the HP C Compiler
6428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6429 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6430 # This bug is HP SR number 8606223364.
6431 { $as_echo "$as_me:$LINENO: checking size of short" >&5
6432 $as_echo_n "checking size of short... " >&6; }
6433 if test "${ac_cv_sizeof_short+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6436 if test "$cross_compiling" = yes; then
6437 # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6448 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6462 $as_echo "$ac_try_echo") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6465 grep -v '^
*+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6475 cat >conftest.$ac_ext <<_ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 $ac_includes_default
6485 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6502 grep -v '^
*+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_hi=$ac_mid; break
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's
/^
/|
/' conftest.$ac_ext >&5
6515 ac_lo=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6520 ac_mid=`expr 2 '*' $ac_mid + 1`
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 $as_echo "$as_me: failed program was:" >&5
6527 sed 's
/^
/|
/' conftest.$ac_ext >&5
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6539 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
6546 rm -f conftest.$ac_objext
6547 if { (ac_try="$ac_compile"
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6553 $as_echo "$ac_try_echo") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6556 grep -v '^
*+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.$ac_objext; then
6566 cat >conftest.$ac_ext <<_ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6576 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6593 grep -v '^
*+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_lo=$ac_mid; break
6603 $as_echo "$as_me: failed program was:" >&5
6604 sed 's
/^
/|
/' conftest.$ac_ext >&5
6606 ac_hi=`expr '(' $ac_mid ')' - 1`
6607 if test $ac_mid -le $ac_hi; then
6611 ac_mid=`expr 2 '*' $ac_mid`
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's
/^
/|
/' conftest.$ac_ext >&5
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 # Binary search between lo and hi bounds.
6628 while test "x$ac_lo" != "x$ac_hi"; do
6629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6640 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6654 $as_echo "$ac_try_echo") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6657 grep -v '^
*+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest.$ac_objext; then
6667 $as_echo "$as_me: failed program was:" >&5
6668 sed 's
/^
/|
/' conftest.$ac_ext >&5
6670 ac_lo=`expr '(' $ac_mid ')' + 1`
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 ?*) ac_cv_sizeof_short=$ac_lo;;
6677 '') if test "$ac_cv_type_short" = yes; then
6678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6679 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
6680 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6681 See \`config.log
' for more details." >&5
6682 $as_echo "$as_me: error: cannot compute sizeof (short)
6683 See \`config.log' for more details.
" >&2;}
6684 { (exit 77); exit 77; }; }; }
6686 ac_cv_sizeof_short=0
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 static long int longval () { return (long int) (sizeof (short)); }
6698 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
6705 FILE *f = fopen ("conftest.val
", "w
");
6708 if (((long int) (sizeof (short))) < 0)
6710 long int i = longval ();
6711 if (i != ((long int) (sizeof (short))))
6713 fprintf (f, "%ld
", i);
6717 unsigned long int i = ulongval ();
6718 if (i != ((long int) (sizeof (short))))
6720 fprintf (f, "%lu
", i);
6722 /* Do not output a trailing newline, as this causes \r\n confusion
6723 on some platforms. */
6724 return ferror (f) || fclose (f) != 0;
6730 rm -f conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_link") 2>&5
6740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6742 { (case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6746 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6747 $as_echo "$ac_try_echo") >&5
6748 (eval "$ac_try") 2>&5
6750 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_sizeof_short=`cat conftest.val`
6754 $as_echo "$as_me: program exited with status
$ac_status" >&5
6755 $as_echo "$as_me: failed program was
:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6759 if test "$ac_cv_type_short" = yes; then
6760 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
6761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6763 See \`config.log' for more details.
" >&5
6764 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
6765 See \
`config.log' for more details." >&2;}
6766 { (exit 77); exit 77; }; }; }
6768 ac_cv_sizeof_short=0
6771 rm -rf conftest.dSYM
6772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6776 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6777 $as_echo "$ac_cv_sizeof_short" >&6; }
6781 cat >>confdefs.h <<_ACEOF
6782 #define SIZEOF_SHORT $ac_cv_sizeof_short
6786 # The cast to long int works around a bug in the HP C Compiler
6787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6788 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6789 # This bug is HP SR number 8606223364.
6790 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6791 $as_echo_n "checking size of long... " >&6; }
6792 if test "${ac_cv_sizeof_long+set}" = set; then
6793 $as_echo_n "(cached) " >&6
6795 if test "$cross_compiling" = yes; then
6796 # Depending upon the size, compute the lo and hi bounds.
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6807 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6824 grep -v '^
*+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6844 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859 (eval "$ac_compile") 2>conftest.er1
6861 grep -v '^
*+' conftest.er1 >conftest.err
6863 cat conftest.err >&5
6864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest.$ac_objext; then
6869 ac_hi=$ac_mid; break
6871 $as_echo "$as_me: failed program was:" >&5
6872 sed 's
/^
/|
/' conftest.$ac_ext >&5
6874 ac_lo=`expr $ac_mid + 1`
6875 if test $ac_lo -le $ac_mid; then
6879 ac_mid=`expr 2 '*' $ac_mid + 1`
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 $as_echo "$as_me: failed program was:" >&5
6886 sed 's
/^
/|
/' conftest.$ac_ext >&5
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 $ac_includes_default
6898 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6905 rm -f conftest.$ac_objext
6906 if { (ac_try="$ac_compile"
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6912 $as_echo "$ac_try_echo") >&5
6913 (eval "$ac_compile") 2>conftest.er1
6915 grep -v '^
*+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6935 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949 $as_echo "$ac_try_echo") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6952 grep -v '^
*+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_lo=$ac_mid; break
6962 $as_echo "$as_me: failed program was:" >&5
6963 sed 's
/^
/|
/' conftest.$ac_ext >&5
6965 ac_hi=`expr '(' $ac_mid ')' - 1`
6966 if test $ac_mid -le $ac_hi; then
6970 ac_mid=`expr 2 '*' $ac_mid`
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's
/^
/|
/' conftest.$ac_ext >&5
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 # Binary search between lo and hi bounds.
6987 while test "x$ac_lo" != "x$ac_hi"; do
6988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6999 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7016 grep -v '^
*+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's
/^
/|
/' conftest.$ac_ext >&5
7029 ac_lo=`expr '(' $ac_mid ')' + 1`
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 ?*) ac_cv_sizeof_long=$ac_lo;;
7036 '') if test "$ac_cv_type_long" = yes; then
7037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7038 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7039 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7040 See \`config.log
' for more details." >&5
7041 $as_echo "$as_me: error: cannot compute sizeof (long)
7042 See \`config.log' for more details.
" >&2;}
7043 { (exit 77); exit 77; }; }; }
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 static long int longval () { return (long int) (sizeof (long)); }
7057 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
7064 FILE *f = fopen ("conftest.val
", "w
");
7067 if (((long int) (sizeof (long))) < 0)
7069 long int i = longval ();
7070 if (i != ((long int) (sizeof (long))))
7072 fprintf (f, "%ld
", i);
7076 unsigned long int i = ulongval ();
7077 if (i != ((long int) (sizeof (long))))
7079 fprintf (f, "%lu
", i);
7081 /* Do not output a trailing newline, as this causes \r\n confusion
7082 on some platforms. */
7083 return ferror (f) || fclose (f) != 0;
7089 rm -f conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7096 $as_echo "$ac_try_echo") >&5
7097 (eval "$ac_link") 2>&5
7099 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7101 { (case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_try") 2>&5
7109 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_sizeof_long=`cat conftest.val`
7113 $as_echo "$as_me: program exited with status
$ac_status" >&5
7114 $as_echo "$as_me: failed program was
:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7118 if test "$ac_cv_type_long" = yes; then
7119 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7121 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7122 See \`config.log' for more details.
" >&5
7123 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
7124 See \
`config.log' for more details." >&2;}
7125 { (exit 77); exit 77; }; }; }
7130 rm -rf conftest.dSYM
7131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7135 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7136 $as_echo "$ac_cv_sizeof_long" >&6; }
7140 cat >>confdefs.h <<_ACEOF
7141 #define SIZEOF_LONG $ac_cv_sizeof_long
7145 # The cast to long int works around a bug in the HP C Compiler
7146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7147 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7148 # This bug is HP SR number 8606223364.
7149 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
7150 $as_echo_n "checking size of long long... " >&6; }
7151 if test "${ac_cv_sizeof_long_long+set}" = set; then
7152 $as_echo_n "(cached) " >&6
7154 if test "$cross_compiling" = yes; then
7155 # Depending upon the size, compute the lo and hi bounds.
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7166 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7183 grep -v '^
*+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7203 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7220 grep -v '^
*+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_hi=$ac_mid; break
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's
/^
/|
/' conftest.$ac_ext >&5
7233 ac_lo=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7238 ac_mid=`expr 2 '*' $ac_mid + 1`
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 $as_echo "$as_me: failed program was:" >&5
7245 sed 's
/^
/|
/' conftest.$ac_ext >&5
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7257 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^
*+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7294 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7311 grep -v '^
*+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7319 ac_lo=$ac_mid; break
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's
/^
/|
/' conftest.$ac_ext >&5
7324 ac_hi=`expr '(' $ac_mid ')' - 1`
7325 if test $ac_mid -le $ac_hi; then
7329 ac_mid=`expr 2 '*' $ac_mid`
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 $as_echo "$as_me: failed program was:" >&5
7336 sed 's
/^
/|
/' conftest.$ac_ext >&5
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 # Binary search between lo and hi bounds.
7346 while test "x$ac_lo" != "x$ac_hi"; do
7347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7348 cat >conftest.$ac_ext <<_ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 $ac_includes_default
7358 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7372 $as_echo "$ac_try_echo") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^
*+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7385 $as_echo "$as_me: failed program was:" >&5
7386 sed 's
/^
/|
/' conftest.$ac_ext >&5
7388 ac_lo=`expr '(' $ac_mid ')' + 1`
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7395 '') if test "$ac_cv_type_long_long" = yes; then
7396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7397 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7398 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7399 See \`config.log
' for more details." >&5
7400 $as_echo "$as_me: error: cannot compute sizeof (long long)
7401 See \`config.log' for more details.
" >&2;}
7402 { (exit 77); exit 77; }; }; }
7404 ac_cv_sizeof_long_long=0
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 static long int longval () { return (long int) (sizeof (long long)); }
7416 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
7423 FILE *f = fopen ("conftest.val
", "w
");
7426 if (((long int) (sizeof (long long))) < 0)
7428 long int i = longval ();
7429 if (i != ((long int) (sizeof (long long))))
7431 fprintf (f, "%ld
", i);
7435 unsigned long int i = ulongval ();
7436 if (i != ((long int) (sizeof (long long))))
7438 fprintf (f, "%lu
", i);
7440 /* Do not output a trailing newline, as this causes \r\n confusion
7441 on some platforms. */
7442 return ferror (f) || fclose (f) != 0;
7448 rm -f conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7455 $as_echo "$ac_try_echo") >&5
7456 (eval "$ac_link") 2>&5
7458 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7460 { (case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7464 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7465 $as_echo "$ac_try_echo") >&5
7466 (eval "$ac_try") 2>&5
7468 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_long_long=`cat conftest.val`
7472 $as_echo "$as_me: program exited with status
$ac_status" >&5
7473 $as_echo "$as_me: failed program was
:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7477 if test "$ac_cv_type_long_long" = yes; then
7478 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7480 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7481 See \`config.log' for more details.
" >&5
7482 $as_echo "$as_me: error
: cannot compute sizeof
(long long
)
7483 See \
`config.log' for more details." >&2;}
7484 { (exit 77); exit 77; }; }; }
7486 ac_cv_sizeof_long_long=0
7489 rm -rf conftest.dSYM
7490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7494 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7495 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7499 cat >>confdefs.h <<_ACEOF
7500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7505 { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
7506 $as_echo_n "checking for uint_t... " >&6; }
7507 if test "${ac_cv_type_uint_t+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7510 ac_cv_type_uint_t=no
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7521 if (sizeof (uint_t))
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7531 *) ac_try_echo
=$ac_try;;
7533 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1
>conftest.err
7539 cat conftest.err
>&5
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.
$ac_objext; then
7545 cat >conftest.
$ac_ext <<_ACEOF
7548 cat confdefs.h
>>conftest.
$ac_ext
7549 cat >>conftest.
$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7555 if (sizeof ((uint_t)))
7561 rm -f conftest.
$ac_objext
7562 if { (ac_try
="$ac_compile"
7564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7581 $as_echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_cv_type_uint_t=yes
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
7598 $as_echo "$ac_cv_type_uint_t" >&6; }
7599 if test "x$ac_cv_type_uint_t" = x""yes; then
7603 cat >>confdefs.h <<_ACEOF
7604 #define uint_t unsigned int
7609 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
7610 $as_echo_n "checking for int8_t... " >&6; }
7611 if test "${ac_cv_type_int8_t+set}" = set; then
7612 $as_echo_n "(cached) " >&6
7614 ac_cv_type_int8_t=no
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7625 if (sizeof (int8_t))
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7635 *) ac_try_echo
=$ac_try;;
7637 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.
$ac_objext; then
7649 cat >conftest.
$ac_ext <<_ACEOF
7652 cat confdefs.h
>>conftest.
$ac_ext
7653 cat >>conftest.
$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 $ac_includes_default
7659 if (sizeof ((int8_t)))
7665 rm -f conftest.
$ac_objext
7666 if { (ac_try
="$ac_compile"
7668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_type_int8_t=yes
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 $as_echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
7702 $as_echo "$ac_cv_type_int8_t" >&6; }
7703 if test "x$ac_cv_type_int8_t" = x""yes; then
7707 cat >>confdefs.h <<_ACEOF
7713 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7714 $as_echo_n "checking for uint8_t... " >&6; }
7715 if test "${ac_cv_type_uint8_t+set}" = set; then
7716 $as_echo_n "(cached) " >&6
7718 ac_cv_type_uint8_t=no
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7729 if (sizeof (uint8_t))
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7739 *) ac_try_echo
=$ac_try;;
7741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7742 $as_echo "$ac_try_echo") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7745 grep -v '^ *+' conftest.er1
>conftest.err
7747 cat conftest.err
>&5
7748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.
$ac_objext; then
7753 cat >conftest.
$ac_ext <<_ACEOF
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 $ac_includes_default
7763 if (sizeof ((uint8_t)))
7769 rm -f conftest.
$ac_objext
7770 if { (ac_try
="$ac_compile"
7772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest.$ac_objext; then
7789 $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_cv_type_uint8_t=yes
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 $as_echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
7806 $as_echo "$ac_cv_type_uint8_t" >&6; }
7807 if test "x$ac_cv_type_uint8_t" = x""yes; then
7811 cat >>confdefs.h <<_ACEOF
7812 #define uint8_t unsigned char
7817 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7818 $as_echo_n "checking for int16_t... " >&6; }
7819 if test "${ac_cv_type_int16_t+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7822 ac_cv_type_int16_t=no
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7833 if (sizeof (int16_t))
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7843 *) ac_try_echo
=$ac_try;;
7845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7846 $as_echo "$ac_try_echo") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1
>conftest.err
7851 cat conftest.err
>&5
7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.
$ac_objext; then
7857 cat >conftest.
$ac_ext <<_ACEOF
7860 cat confdefs.h
>>conftest.
$ac_ext
7861 cat >>conftest.
$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7867 if (sizeof ((int16_t)))
7873 rm -f conftest.
$ac_objext
7874 if { (ac_try
="$ac_compile"
7876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7893 $as_echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_cv_type_int16_t=yes
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7910 $as_echo "$ac_cv_type_int16_t" >&6; }
7911 if test "x$ac_cv_type_int16_t" = x""yes; then
7915 cat >>confdefs.h <<_ACEOF
7916 #define int16_t short
7921 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7922 $as_echo_n "checking for uint16_t... " >&6; }
7923 if test "${ac_cv_type_uint16_t+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 ac_cv_type_uint16_t=no
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7937 if (sizeof (uint16_t))
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7947 *) ac_try_echo
=$ac_try;;
7949 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7950 $as_echo "$ac_try_echo") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1
>conftest.err
7955 cat conftest.err
>&5
7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.
$ac_objext; then
7961 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
7971 if (sizeof ((uint16_t)))
7977 rm -f conftest.
$ac_objext
7978 if { (ac_try
="$ac_compile"
7980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7984 $as_echo "$ac_try_echo") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7997 $as_echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_type_uint16_t=yes
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8014 $as_echo "$ac_cv_type_uint16_t" >&6; }
8015 if test "x$ac_cv_type_uint16_t" = x""yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define uint16_t unsigned short
8026 if test $ac_cv_sizeof_int -eq 4 ; then
8027 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8028 $as_echo_n "checking for int32_t... " >&6; }
8029 if test "${ac_cv_type_int32_t+set}" = set; then
8030 $as_echo_n "(cached) " >&6
8032 ac_cv_type_int32_t=no
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8043 if (sizeof (int32_t))
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8053 *) ac_try_echo
=$ac_try;;
8055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8056 $as_echo "$ac_try_echo") >&5
8057 (eval "$ac_compile") 2>conftest.er1
8059 grep -v '^ *+' conftest.er1
>conftest.err
8061 cat conftest.err
>&5
8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest.
$ac_objext; then
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8077 if (sizeof ((int32_t)))
8083 rm -f conftest.
$ac_objext
8084 if { (ac_try
="$ac_compile"
8086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8103 $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_type_int32_t=yes
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8120 $as_echo "$ac_cv_type_int32_t" >&6; }
8121 if test "x$ac_cv_type_int32_t" = x""yes; then
8125 cat >>confdefs.h <<_ACEOF
8131 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8132 $as_echo_n "checking for uint32_t... " >&6; }
8133 if test "${ac_cv_type_uint32_t+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8136 ac_cv_type_uint32_t=no
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8147 if (sizeof (uint32_t))
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8157 *) ac_try_echo
=$ac_try;;
8159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1
>conftest.err
8165 cat conftest.err
>&5
8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.
$ac_objext; then
8171 cat >conftest.
$ac_ext <<_ACEOF
8174 cat confdefs.h
>>conftest.
$ac_ext
8175 cat >>conftest.
$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8181 if (sizeof ((uint32_t)))
8187 rm -f conftest.
$ac_objext
8188 if { (ac_try
="$ac_compile"
8190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8194 $as_echo "$ac_try_echo") >&5
8195 (eval "$ac_compile") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_cv_type_uint32_t=yes
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 $as_echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8224 $as_echo "$ac_cv_type_uint32_t" >&6; }
8225 if test "x$ac_cv_type_uint32_t" = x""yes; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define uint32_t unsigned int
8235 elif test $ac_cv_size_long -eq 4 ; then
8236 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8237 $as_echo_n "checking for int32_t... " >&6; }
8238 if test "${ac_cv_type_int32_t+set}" = set; then
8239 $as_echo_n "(cached) " >&6
8241 ac_cv_type_int32_t=no
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8252 if (sizeof (int32_t))
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8262 *) ac_try_echo
=$ac_try;;
8264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8265 $as_echo "$ac_try_echo") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8268 grep -v '^ *+' conftest.er1
>conftest.err
8270 cat conftest.err
>&5
8271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.
$ac_objext; then
8276 cat >conftest.
$ac_ext <<_ACEOF
8279 cat confdefs.h
>>conftest.
$ac_ext
8280 cat >>conftest.
$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8286 if (sizeof ((int32_t)))
8292 rm -f conftest.
$ac_objext
8293 if { (ac_try
="$ac_compile"
8295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_type_int32_t=yes
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 $as_echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8329 $as_echo "$ac_cv_type_int32_t" >&6; }
8330 if test "x$ac_cv_type_int32_t" = x""yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define int32_t long
8340 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8341 $as_echo_n "checking for uint32_t... " >&6; }
8342 if test "${ac_cv_type_uint32_t+set}" = set; then
8343 $as_echo_n "(cached) " >&6
8345 ac_cv_type_uint32_t=no
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8356 if (sizeof (uint32_t))
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8366 *) ac_try_echo
=$ac_try;;
8368 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.
$ac_objext; then
8380 cat >conftest.
$ac_ext <<_ACEOF
8383 cat confdefs.h
>>conftest.
$ac_ext
8384 cat >>conftest.
$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8390 if (sizeof ((uint32_t)))
8396 rm -f conftest.
$ac_objext
8397 if { (ac_try
="$ac_compile"
8399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8403 $as_echo "$ac_try_echo") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest.$ac_objext; then
8416 $as_echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_cv_type_uint32_t=yes
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 $as_echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8433 $as_echo "$ac_cv_type_uint32_t" >&6; }
8434 if test "x$ac_cv_type_uint32_t" = x""yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define uint32_t unsigned long
8445 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE no 32-bit type found" >&5
8446 $as_echo "$as_me: error: LIBREPLACE no 32-bit type found" >&2;}
8447 { (exit 1); exit 1; }; }
8450 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8451 $as_echo_n "checking for int64_t... " >&6; }
8452 if test "${ac_cv_type_int64_t+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8455 ac_cv_type_int64_t=no
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8466 if (sizeof (int64_t))
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8476 *) ac_try_echo
=$ac_try;;
8478 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1
>conftest.err
8484 cat conftest.err
>&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.
$ac_objext; then
8490 cat >conftest.
$ac_ext <<_ACEOF
8493 cat confdefs.h
>>conftest.
$ac_ext
8494 cat >>conftest.
$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8500 if (sizeof ((int64_t)))
8506 rm -f conftest.
$ac_objext
8507 if { (ac_try
="$ac_compile"
8509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_cv_type_int64_t=yes
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8543 $as_echo "$ac_cv_type_int64_t" >&6; }
8544 if test "x$ac_cv_type_int64_t" = x""yes; then
8548 cat >>confdefs.h <<_ACEOF
8549 #define int64_t long long
8554 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
8555 $as_echo_n "checking for uint64_t... " >&6; }
8556 if test "${ac_cv_type_uint64_t+set}" = set; then
8557 $as_echo_n "(cached) " >&6
8559 ac_cv_type_uint64_t=no
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8570 if (sizeof (uint64_t))
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8580 *) ac_try_echo
=$ac_try;;
8582 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8583 $as_echo "$ac_try_echo") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.
$ac_objext; then
8594 cat >conftest.
$ac_ext <<_ACEOF
8597 cat confdefs.h
>>conftest.
$ac_ext
8598 cat >>conftest.
$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8604 if (sizeof ((uint64_t)))
8610 rm -f conftest.
$ac_objext
8611 if { (ac_try
="$ac_compile"
8613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_cv_type_uint64_t=yes
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 $as_echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8647 $as_echo "$ac_cv_type_uint64_t" >&6; }
8648 if test "x$ac_cv_type_uint64_t" = x""yes; then
8652 cat >>confdefs.h <<_ACEOF
8653 #define uint64_t unsigned long long
8659 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8660 $as_echo_n "checking for size_t... " >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8664 ac_cv_type_size_t=no
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 $ac_includes_default
8675 if (sizeof (size_t))
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8685 *) ac_try_echo
=$ac_try;;
8687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1
>conftest.err
8693 cat conftest.err
>&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.
$ac_objext; then
8699 cat >conftest.
$ac_ext <<_ACEOF
8702 cat confdefs.h
>>conftest.
$ac_ext
8703 cat >>conftest.
$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8709 if (sizeof ((size_t)))
8715 rm -f conftest.
$ac_objext
8716 if { (ac_try
="$ac_compile"
8718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_type_size_t=yes
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 $as_echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8752 $as_echo "$ac_cv_type_size_t" >&6; }
8753 if test "x$ac_cv_type_size_t" = x""yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define size_t unsigned int
8763 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8764 $as_echo_n "checking for ssize_t... " >&6; }
8765 if test "${ac_cv_type_ssize_t+set}" = set; then
8766 $as_echo_n "(cached) " >&6
8768 ac_cv_type_ssize_t=no
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8779 if (sizeof (ssize_t))
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8789 *) ac_try_echo
=$ac_try;;
8791 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8792 $as_echo "$ac_try_echo") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8795 grep -v '^ *+' conftest.er1
>conftest.err
8797 cat conftest.err
>&5
8798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.
$ac_objext; then
8803 cat >conftest.
$ac_ext <<_ACEOF
8806 cat confdefs.h
>>conftest.
$ac_ext
8807 cat >>conftest.
$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8813 if (sizeof ((ssize_t)))
8819 rm -f conftest.
$ac_objext
8820 if { (ac_try
="$ac_compile"
8822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_type_ssize_t=yes
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8856 $as_echo "$ac_cv_type_ssize_t" >&6; }
8857 if test "x$ac_cv_type_ssize_t" = x""yes; then
8861 cat >>confdefs.h <<_ACEOF
8868 # The cast to long int works around a bug in the HP C Compiler
8869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8870 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
8871 # This bug is HP SR number 8606223364.
8872 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8873 $as_echo_n "checking size of off_t... " >&6; }
8874 if test "${ac_cv_sizeof_off_t+set}" = set; then
8875 $as_echo_n "(cached) " >&6
8877 if test "$cross_compiling" = yes; then
8878 # Depending upon the size, compute the lo and hi bounds.
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 $ac_includes_default
8889 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8903 $as_echo "$ac_try_echo") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8906 grep -v '^
*+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8926 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8940 $as_echo "$ac_try_echo") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8943 grep -v '^
*+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 ac_hi=$ac_mid; break
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's
/^
/|
/' conftest.$ac_ext >&5
8956 ac_lo=`expr $ac_mid + 1`
8957 if test $ac_lo -le $ac_mid; then
8961 ac_mid=`expr 2 '*' $ac_mid + 1`
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 $as_echo "$as_me: failed program was:" >&5
8968 sed 's
/^
/|
/' conftest.$ac_ext >&5
8970 cat >conftest.$ac_ext <<_ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976 $ac_includes_default
8980 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8987 rm -f conftest.$ac_objext
8988 if { (ac_try="$ac_compile"
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8994 $as_echo "$ac_try_echo") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8997 grep -v '^
*+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest.$ac_objext; then
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9017 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
9024 rm -f conftest.$ac_objext
9025 if { (ac_try="$ac_compile"
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9031 $as_echo "$ac_try_echo") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9034 grep -v '^
*+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 ac_lo=$ac_mid; break
9044 $as_echo "$as_me: failed program was:" >&5
9045 sed 's
/^
/|
/' conftest.$ac_ext >&5
9047 ac_hi=`expr '(' $ac_mid ')' - 1`
9048 if test $ac_mid -le $ac_hi; then
9052 ac_mid=`expr 2 '*' $ac_mid`
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 $as_echo "$as_me: failed program was:" >&5
9059 sed 's
/^
/|
/' conftest.$ac_ext >&5
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 # Binary search between lo and hi bounds.
9069 while test "x$ac_lo" != "x$ac_hi"; do
9070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 $ac_includes_default
9081 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095 $as_echo "$ac_try_echo") >&5
9096 (eval "$ac_compile") 2>conftest.er1
9098 grep -v '^
*+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && {
9103 test -z "$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 } && test -s conftest.$ac_objext; then
9108 $as_echo "$as_me: failed program was:" >&5
9109 sed 's
/^
/|
/' conftest.$ac_ext >&5
9111 ac_lo=`expr '(' $ac_mid ')' + 1`
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9118 '') if test "$ac_cv_type_off_t" = yes; then
9119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9120 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9121 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9122 See \`config.log
' for more details." >&5
9123 $as_echo "$as_me: error: cannot compute sizeof (off_t)
9124 See \`config.log' for more details.
" >&2;}
9125 { (exit 77); exit 77; }; }; }
9127 ac_cv_sizeof_off_t=0
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9138 static long int longval () { return (long int) (sizeof (off_t)); }
9139 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
9146 FILE *f = fopen ("conftest.val
", "w
");
9149 if (((long int) (sizeof (off_t))) < 0)
9151 long int i = longval ();
9152 if (i != ((long int) (sizeof (off_t))))
9154 fprintf (f, "%ld
", i);
9158 unsigned long int i = ulongval ();
9159 if (i != ((long int) (sizeof (off_t))))
9161 fprintf (f, "%lu
", i);
9163 /* Do not output a trailing newline, as this causes \r\n confusion
9164 on some platforms. */
9165 return ferror (f) || fclose (f) != 0;
9171 rm -f conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_link") 2>&5
9181 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189 (eval "$ac_try") 2>&5
9191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_sizeof_off_t=`cat conftest.val`
9195 $as_echo "$as_me: program exited with status
$ac_status" >&5
9196 $as_echo "$as_me: failed program was
:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9200 if test "$ac_cv_type_off_t" = yes; then
9201 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9203 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9204 See \`config.log' for more details.
" >&5
9205 $as_echo "$as_me: error
: cannot compute sizeof
(off_t
)
9206 See \
`config.log' for more details." >&2;}
9207 { (exit 77); exit 77; }; }; }
9209 ac_cv_sizeof_off_t=0
9212 rm -rf conftest.dSYM
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9217 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9218 $as_echo "$ac_cv_sizeof_off_t" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9227 # The cast to long int works around a bug in the HP C Compiler
9228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9229 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9230 # This bug is HP SR number 8606223364.
9231 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
9232 $as_echo_n "checking size of size_t... " >&6; }
9233 if test "${ac_cv_sizeof_size_t+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9236 if test "$cross_compiling" = yes; then
9237 # Depending upon the size, compute the lo and hi bounds.
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9248 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
9255 rm -f conftest.$ac_objext
9256 if { (ac_try="$ac_compile"
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9262 $as_echo "$ac_try_echo") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9265 grep -v '^
*+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && {
9270 test -z "$ac_c_werror_flag" ||
9271 test ! -s conftest.err
9272 } && test -s conftest.$ac_objext; then
9275 cat >conftest.$ac_ext <<_ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9285 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
9292 rm -f conftest.$ac_objext
9293 if { (ac_try="$ac_compile"
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9299 $as_echo "$ac_try_echo") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9302 grep -v '^
*+' conftest.er1 >conftest.err
9304 cat conftest.err >&5
9305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest.$ac_objext; then
9310 ac_hi=$ac_mid; break
9312 $as_echo "$as_me: failed program was:" >&5
9313 sed 's
/^
/|
/' conftest.$ac_ext >&5
9315 ac_lo=`expr $ac_mid + 1`
9316 if test $ac_lo -le $ac_mid; then
9320 ac_mid=`expr 2 '*' $ac_mid + 1`
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 $as_echo "$as_me: failed program was:" >&5
9327 sed 's
/^
/|
/' conftest.$ac_ext >&5
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 $ac_includes_default
9339 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9353 $as_echo "$ac_try_echo") >&5
9354 (eval "$ac_compile") 2>conftest.er1
9356 grep -v '^
*+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && {
9361 test -z "$ac_c_werror_flag" ||
9362 test ! -s conftest.err
9363 } && test -s conftest.$ac_objext; then
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 $ac_includes_default
9376 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9390 $as_echo "$ac_try_echo") >&5
9391 (eval "$ac_compile") 2>conftest.er1
9393 grep -v '^
*+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest.$ac_objext; then
9401 ac_lo=$ac_mid; break
9403 $as_echo "$as_me: failed program was:" >&5
9404 sed 's
/^
/|
/' conftest.$ac_ext >&5
9406 ac_hi=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9411 ac_mid=`expr 2 '*' $ac_mid`
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 $as_echo "$as_me: failed program was:" >&5
9418 sed 's
/^
/|
/' conftest.$ac_ext >&5
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 # Binary search between lo and hi bounds.
9428 while test "x$ac_lo" != "x$ac_hi"; do
9429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9430 cat >conftest.$ac_ext <<_ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 $ac_includes_default
9440 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
9447 rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454 $as_echo "$ac_try_echo") >&5
9455 (eval "$ac_compile") 2>conftest.er1
9457 grep -v '^
*+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest.$ac_objext; then
9467 $as_echo "$as_me: failed program was:" >&5
9468 sed 's
/^
/|
/' conftest.$ac_ext >&5
9470 ac_lo=`expr '(' $ac_mid ')' + 1`
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9477 '') if test "$ac_cv_type_size_t" = yes; then
9478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9479 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9480 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9481 See \`config.log
' for more details." >&5
9482 $as_echo "$as_me: error: cannot compute sizeof (size_t)
9483 See \`config.log' for more details.
" >&2;}
9484 { (exit 77); exit 77; }; }; }
9486 ac_cv_sizeof_size_t=0
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 $ac_includes_default
9497 static long int longval () { return (long int) (sizeof (size_t)); }
9498 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
9505 FILE *f = fopen ("conftest.val
", "w
");
9508 if (((long int) (sizeof (size_t))) < 0)
9510 long int i = longval ();
9511 if (i != ((long int) (sizeof (size_t))))
9513 fprintf (f, "%ld
", i);
9517 unsigned long int i = ulongval ();
9518 if (i != ((long int) (sizeof (size_t))))
9520 fprintf (f, "%lu
", i);
9522 /* Do not output a trailing newline, as this causes \r\n confusion
9523 on some platforms. */
9524 return ferror (f) || fclose (f) != 0;
9530 rm -f conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9537 $as_echo "$ac_try_echo") >&5
9538 (eval "$ac_link") 2>&5
9540 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9547 $as_echo "$ac_try_echo") >&5
9548 (eval "$ac_try") 2>&5
9550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_sizeof_size_t=`cat conftest.val`
9554 $as_echo "$as_me: program exited with status
$ac_status" >&5
9555 $as_echo "$as_me: failed program was
:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9559 if test "$ac_cv_type_size_t" = yes; then
9560 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9562 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9563 See \`config.log' for more details.
" >&5
9564 $as_echo "$as_me: error
: cannot compute sizeof
(size_t
)
9565 See \
`config.log' for more details." >&2;}
9566 { (exit 77); exit 77; }; }; }
9568 ac_cv_sizeof_size_t=0
9571 rm -rf conftest.dSYM
9572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9576 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9577 $as_echo "$ac_cv_sizeof_size_t" >&6; }
9581 cat >>confdefs.h <<_ACEOF
9582 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9586 # The cast to long int works around a bug in the HP C Compiler
9587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9588 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9589 # This bug is HP SR number 8606223364.
9590 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
9591 $as_echo_n "checking size of ssize_t... " >&6; }
9592 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
9593 $as_echo_n "(cached) " >&6
9595 if test "$cross_compiling" = yes; then
9596 # Depending upon the size, compute the lo and hi bounds.
9597 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 $ac_includes_default
9607 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9621 $as_echo "$ac_try_echo") >&5
9622 (eval "$ac_compile") 2>conftest.er1
9624 grep -v '^
*+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest.$ac_objext; then
9634 cat >conftest.$ac_ext <<_ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9644 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
9651 rm -f conftest.$ac_objext
9652 if { (ac_try="$ac_compile"
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9658 $as_echo "$ac_try_echo") >&5
9659 (eval "$ac_compile") 2>conftest.er1
9661 grep -v '^
*+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest.$ac_objext; then
9669 ac_hi=$ac_mid; break
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's
/^
/|
/' conftest.$ac_ext >&5
9674 ac_lo=`expr $ac_mid + 1`
9675 if test $ac_lo -le $ac_mid; then
9679 ac_mid=`expr 2 '*' $ac_mid + 1`
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 $as_echo "$as_me: failed program was:" >&5
9686 sed 's
/^
/|
/' conftest.$ac_ext >&5
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 $ac_includes_default
9698 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713 (eval "$ac_compile") 2>conftest.er1
9715 grep -v '^
*+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest.$ac_objext; then
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 $ac_includes_default
9735 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
9742 rm -f conftest.$ac_objext
9743 if { (ac_try="$ac_compile"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750 (eval "$ac_compile") 2>conftest.er1
9752 grep -v '^
*+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest.$ac_objext; then
9760 ac_lo=$ac_mid; break
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's
/^
/|
/' conftest.$ac_ext >&5
9765 ac_hi=`expr '(' $ac_mid ')' - 1`
9766 if test $ac_mid -le $ac_hi; then
9770 ac_mid=`expr 2 '*' $ac_mid`
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 $as_echo "$as_me: failed program was:" >&5
9777 sed 's
/^
/|
/' conftest.$ac_ext >&5
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 # Binary search between lo and hi bounds.
9787 while test "x$ac_lo" != "x$ac_hi"; do
9788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9799 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9813 $as_echo "$ac_try_echo") >&5
9814 (eval "$ac_compile") 2>conftest.er1
9816 grep -v '^
*+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest.$ac_objext; then
9826 $as_echo "$as_me: failed program was:" >&5
9827 sed 's
/^
/|
/' conftest.$ac_ext >&5
9829 ac_lo=`expr '(' $ac_mid ')' + 1`
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
9836 '') if test "$ac_cv_type_ssize_t" = yes; then
9837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9838 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9839 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9840 See \`config.log
' for more details." >&5
9841 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
9842 See \`config.log' for more details.
" >&2;}
9843 { (exit 77); exit 77; }; }; }
9845 ac_cv_sizeof_ssize_t=0
9849 cat >conftest.$ac_ext <<_ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 static long int longval () { return (long int) (sizeof (ssize_t)); }
9857 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
9864 FILE *f = fopen ("conftest.val
", "w
");
9867 if (((long int) (sizeof (ssize_t))) < 0)
9869 long int i = longval ();
9870 if (i != ((long int) (sizeof (ssize_t))))
9872 fprintf (f, "%ld
", i);
9876 unsigned long int i = ulongval ();
9877 if (i != ((long int) (sizeof (ssize_t))))
9879 fprintf (f, "%lu
", i);
9881 /* Do not output a trailing newline, as this causes \r\n confusion
9882 on some platforms. */
9883 return ferror (f) || fclose (f) != 0;
9889 rm -f conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9896 $as_echo "$ac_try_echo") >&5
9897 (eval "$ac_link") 2>&5
9899 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907 (eval "$ac_try") 2>&5
9909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_sizeof_ssize_t=`cat conftest.val`
9913 $as_echo "$as_me: program exited with status
$ac_status" >&5
9914 $as_echo "$as_me: failed program was
:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 if test "$ac_cv_type_ssize_t" = yes; then
9919 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9921 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9922 See \`config.log' for more details.
" >&5
9923 $as_echo "$as_me: error
: cannot compute sizeof
(ssize_t
)
9924 See \
`config.log' for more details." >&2;}
9925 { (exit 77); exit 77; }; }; }
9927 ac_cv_sizeof_ssize_t=0
9930 rm -rf conftest.dSYM
9931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9935 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
9936 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
9940 cat >>confdefs.h <<_ACEOF
9941 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
9946 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
9947 $as_echo_n "checking for intptr_t... " >&6; }
9948 if test "${ac_cv_type_intptr_t+set}" = set; then
9949 $as_echo_n "(cached) " >&6
9951 ac_cv_type_intptr_t=no
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 $ac_includes_default
9962 if (sizeof (intptr_t))
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9972 *) ac_try_echo
=$ac_try;;
9974 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1
>conftest.err
9980 cat conftest.err
>&5
9981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.
$ac_objext; then
9986 cat >conftest.
$ac_ext <<_ACEOF
9989 cat confdefs.h
>>conftest.
$ac_ext
9990 cat >>conftest.
$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9996 if (sizeof ((intptr_t)))
10002 rm -f conftest.
$ac_objext
10003 if { (ac_try
="$ac_compile"
10004 case "(($ac_try" in
10005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_type_intptr_t=yes
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10039 $as_echo "$ac_cv_type_intptr_t" >&6; }
10040 if test "x$ac_cv_type_intptr_t" = x""yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define HAVE_INTPTR_T 1
10048 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
10049 $as_echo_n "checking for uintptr_t... " >&6; }
10050 if test "${ac_cv_type_uintptr_t+set}" = set; then
10051 $as_echo_n "(cached) " >&6
10053 ac_cv_type_uintptr_t=no
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10064 if (sizeof (uintptr_t))
10070 rm -f conftest.$ac_objext
10071 if { (ac_try="$ac_compile"
10072 case "(($ac_try" in
10073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10074 *) ac_try_echo
=$ac_try;;
10076 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1
>conftest.err
10082 cat conftest.err
>&5
10083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.
$ac_objext; then
10088 cat >conftest.
$ac_ext <<_ACEOF
10091 cat confdefs.h
>>conftest.
$ac_ext
10092 cat >>conftest.
$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 $ac_includes_default
10098 if (sizeof ((uintptr_t)))
10104 rm -f conftest.
$ac_objext
10105 if { (ac_try
="$ac_compile"
10106 case "(($ac_try" in
10107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10111 $as_echo "$ac_try_echo") >&5
10112 (eval "$ac_compile") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest.$ac_objext; then
10124 $as_echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_type_uintptr_t=yes
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10141 $as_echo "$ac_cv_type_uintptr_t" >&6; }
10142 if test "x$ac_cv_type_uintptr_t" = x""yes; then
10144 cat >>confdefs.h <<_ACEOF
10145 #define HAVE_UINTPTR_T 1
10150 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10151 $as_echo_n "checking for ptrdiff_t... " >&6; }
10152 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10153 $as_echo_n "(cached) " >&6
10155 ac_cv_type_ptrdiff_t=no
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10166 if (sizeof (ptrdiff_t))
10172 rm -f conftest.$ac_objext
10173 if { (ac_try="$ac_compile"
10174 case "(($ac_try" in
10175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10176 *) ac_try_echo
=$ac_try;;
10178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10179 $as_echo "$ac_try_echo") >&5
10180 (eval "$ac_compile") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1
>conftest.err
10184 cat conftest.err
>&5
10185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest.
$ac_objext; then
10190 cat >conftest.
$ac_ext <<_ACEOF
10193 cat confdefs.h
>>conftest.
$ac_ext
10194 cat >>conftest.
$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10200 if (sizeof ((ptrdiff_t)))
10206 rm -f conftest.
$ac_objext
10207 if { (ac_try
="$ac_compile"
10208 case "(($ac_try" in
10209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213 $as_echo "$ac_try_echo") >&5
10214 (eval "$ac_compile") 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest.$ac_objext; then
10226 $as_echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_type_ptrdiff_t=yes
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 $as_echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10243 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
10244 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
10246 cat >>confdefs.h <<_ACEOF
10247 #define HAVE_PTRDIFF_T 1
10254 if test x"$ac_cv_type_long_long" != x"yes";then
10255 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10256 $as_echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10257 { (exit 1); exit 1; }; }
10259 if test $ac_cv_sizeof_long_long -lt 8;then
10260 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10261 $as_echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10262 { (exit 1); exit 1; }; }
10265 ############################################
10266 # check if the compiler can do immediate structures
10268 { $as_echo "$as_me:$LINENO: checking for immediate structures" >&5
10269 $as_echo_n "checking for immediate structures... " >&6; }
10270 if test "${libreplace_cv_immediate_structures+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10287 typedef struct {unsigned x;} FOOBAR;
10288 #define X_FOOBAR(x) ((FOOBAR) { x })
10289 #define FOO_ONE X_FOOBAR(1)
10290 FOOBAR f = FOO_ONE;
10291 static const struct {
10296 static const FOOBAR f3[] = {FOO_ONE};
10302 rm -f conftest.$ac_objext
10303 if { (ac_try="$ac_compile"
10304 case "(($ac_try" in
10305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10306 *) ac_try_echo
=$ac_try;;
10308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310 (eval "$ac_compile") 2>conftest.er1
10312 grep -v '^ *+' conftest.er1
>conftest.err
10314 cat conftest.err
>&5
10315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && {
10317 test -z "$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10319 } && test -s conftest.
$ac_objext; then
10320 libreplace_cv_immediate_structures
=yes
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.
$ac_ext >&5
10325 libreplace_cv_immediate_structures
=no
10328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10331 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
10332 $as_echo "$libreplace_cv_immediate_structures" >&6; }
10333 if test x
"$libreplace_cv_immediate_structures" = x
"yes"; then
10335 cat >>confdefs.h
<<\_ACEOF
10336 #define HAVE_IMMEDIATE_STRUCTURES 1
10342 echo "LIBREPLACE_CC_CHECKS: END"
10346 echo "LIBREPLACE_BROKEN_CHECKS: START"
10349 libreplacepaths
="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
10350 for d
in $libreplacepaths; do
10351 if test -f "$d/replace.c"; then
10357 if test x
"$libreplacedir" = "x"; then
10358 { { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
10359 $as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
10360 { (exit 1); exit 1; }; }
10363 LIBREPLACEOBJ
="$libreplacedir/replace.o"
10366 LIBREPLACEOBJ
="${LIBREPLACEOBJ} $libreplacedir/snprintf.o"
10368 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10369 $as_echo_n "checking return type of signal handlers... " >&6; }
10370 if test "${ac_cv_type_signal+set}" = set; then
10371 $as_echo_n "(cached) " >&6
10373 cat >conftest.
$ac_ext <<_ACEOF
10376 cat confdefs.h
>>conftest.
$ac_ext
10377 cat >>conftest.
$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 #include <sys/types.h>
10380 #include <signal.h>
10385 return *(signal (0, 0)) (0) == 1;
10390 rm -f conftest.
$ac_objext
10391 if { (ac_try
="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_compile") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest.$ac_objext; then
10408 ac_cv_type_signal=int
10410 $as_echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_cv_type_signal=void
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10419 $as_echo "$ac_cv_type_signal" >&6; }
10421 cat >>confdefs.h <<_ACEOF
10422 #define RETSIGTYPE $ac_cv_type_signal
10426 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10427 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10428 if test "${ac_cv_type_uid_t+set}" = set; then
10429 $as_echo_n "(cached) " >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <sys/types.h>
10440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10441 $EGREP "uid_t" >/dev/null 2>&1; then
10442 ac_cv_type_uid_t=yes
10444 ac_cv_type_uid_t=no
10449 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10450 $as_echo "$ac_cv_type_uid_t" >&6; }
10451 if test $ac_cv_type_uid_t = no; then
10453 cat >>confdefs.h <<\_ACEOF
10458 cat >>confdefs.h <<\_ACEOF
10464 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
10465 $as_echo_n "checking for mode_t... " >&6; }
10466 if test "${ac_cv_type_mode_t+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10469 ac_cv_type_mode_t=no
10470 cat >conftest.$ac_ext <<_ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10480 if (sizeof (mode_t))
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10490 *) ac_try_echo
=$ac_try;;
10492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10493 $as_echo "$ac_try_echo") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1
>conftest.err
10498 cat conftest.err
>&5
10499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.
$ac_objext; then
10504 cat >conftest.
$ac_ext <<_ACEOF
10507 cat confdefs.h
>>conftest.
$ac_ext
10508 cat >>conftest.
$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10514 if (sizeof ((mode_t)))
10520 rm -f conftest.
$ac_objext
10521 if { (ac_try
="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527 $as_echo "$ac_try_echo") >&5
10528 (eval "$ac_compile") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest.$ac_objext; then
10540 $as_echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ac_cv_type_mode_t=yes
10546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548 $as_echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10557 $as_echo "$ac_cv_type_mode_t" >&6; }
10558 if test "x$ac_cv_type_mode_t" = x""yes; then
10562 cat >>confdefs.h <<_ACEOF
10568 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
10569 $as_echo_n "checking for off_t... " >&6; }
10570 if test "${ac_cv_type_off_t+set}" = set; then
10571 $as_echo_n "(cached) " >&6
10573 ac_cv_type_off_t=no
10574 cat >conftest.$ac_ext <<_ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 $ac_includes_default
10584 if (sizeof (off_t))
10590 rm -f conftest.$ac_objext
10591 if { (ac_try="$ac_compile"
10592 case "(($ac_try" in
10593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10594 *) ac_try_echo
=$ac_try;;
10596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10597 $as_echo "$ac_try_echo") >&5
10598 (eval "$ac_compile") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1
>conftest.err
10602 cat conftest.err
>&5
10603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.
$ac_objext; then
10608 cat >conftest.
$ac_ext <<_ACEOF
10611 cat confdefs.h
>>conftest.
$ac_ext
10612 cat >>conftest.
$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 $ac_includes_default
10618 if (sizeof ((off_t)))
10624 rm -f conftest.
$ac_objext
10625 if { (ac_try
="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10631 $as_echo "$ac_try_echo") >&5
10632 (eval "$ac_compile") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest.$ac_objext; then
10644 $as_echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_cv_type_off_t=yes
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10661 $as_echo "$ac_cv_type_off_t" >&6; }
10662 if test "x$ac_cv_type_off_t" = x""yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define off_t long int
10672 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10673 $as_echo_n "checking for size_t... " >&6; }
10674 if test "${ac_cv_type_size_t+set}" = set; then
10675 $as_echo_n "(cached) " >&6
10677 ac_cv_type_size_t=no
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10688 if (sizeof (size_t))
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10698 *) ac_try_echo
=$ac_try;;
10700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10701 $as_echo "$ac_try_echo") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1
>conftest.err
10706 cat conftest.err
>&5
10707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.
$ac_objext; then
10712 cat >conftest.
$ac_ext <<_ACEOF
10715 cat confdefs.h
>>conftest.
$ac_ext
10716 cat >>conftest.
$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10722 if (sizeof ((size_t)))
10728 rm -f conftest.
$ac_objext
10729 if { (ac_try
="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_type_size_t=yes
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10765 $as_echo "$ac_cv_type_size_t" >&6; }
10766 if test "x$ac_cv_type_size_t" = x""yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define size_t unsigned int
10776 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
10777 $as_echo_n "checking for pid_t... " >&6; }
10778 if test "${ac_cv_type_pid_t+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10781 ac_cv_type_pid_t=no
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
10792 if (sizeof (pid_t))
10798 rm -f conftest.$ac_objext
10799 if { (ac_try="$ac_compile"
10800 case "(($ac_try" in
10801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10802 *) ac_try_echo
=$ac_try;;
10804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10805 $as_echo "$ac_try_echo") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1
>conftest.err
10810 cat conftest.err
>&5
10811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest.
$ac_objext; then
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10826 if (sizeof ((pid_t)))
10832 rm -f conftest.
$ac_objext
10833 if { (ac_try
="$ac_compile"
10834 case "(($ac_try" in
10835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839 $as_echo "$ac_try_echo") >&5
10840 (eval "$ac_compile") 2>conftest.er1
10842 grep -v '^ *+' conftest.er1 >conftest.err
10844 cat conftest.err >&5
10845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest.$ac_objext; then
10852 $as_echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_type_pid_t=yes
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10869 $as_echo "$ac_cv_type_pid_t" >&6; }
10870 if test "x$ac_cv_type_pid_t" = x""yes; then
10874 cat >>confdefs.h <<_ACEOF
10880 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
10881 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
10882 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
10883 $as_echo_n "(cached) " >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10895 static struct stat ac_aggr;
10896 if (ac_aggr.st_rdev)
10902 rm -f conftest.$ac_objext
10903 if { (ac_try="$ac_compile"
10904 case "(($ac_try" in
10905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10906 *) ac_try_echo
=$ac_try;;
10908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10909 $as_echo "$ac_try_echo") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1
>conftest.err
10914 cat conftest.err
>&5
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.
$ac_objext; then
10920 ac_cv_member_struct_stat_st_rdev
=yes
10922 $as_echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.
$ac_ext >&5
10925 cat >conftest.
$ac_ext <<_ACEOF
10928 cat confdefs.h
>>conftest.
$ac_ext
10929 cat >>conftest.
$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_rdev)
10942 rm -f conftest.
$ac_objext
10943 if { (ac_try
="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10949 $as_echo "$ac_try_echo") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_cv_member_struct_stat_st_rdev=yes
10962 $as_echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_member_struct_stat_st_rdev=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
10974 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
10975 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_STRUCT_STAT_ST_RDEV 1
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_ST_RDEV 1
10989 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
10990 $as_echo_n "checking for ino_t... " >&6; }
10991 if test "${ac_cv_type_ino_t+set}" = set; then
10992 $as_echo_n "(cached) " >&6
10994 ac_cv_type_ino_t=no
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 $ac_includes_default
11005 if (sizeof (ino_t))
11011 rm -f conftest.$ac_objext
11012 if { (ac_try="$ac_compile"
11013 case "(($ac_try" in
11014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11015 *) ac_try_echo
=$ac_try;;
11017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11018 $as_echo "$ac_try_echo") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1
>conftest.err
11023 cat conftest.err
>&5
11024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.
$ac_objext; then
11029 cat >conftest.
$ac_ext <<_ACEOF
11032 cat confdefs.h
>>conftest.
$ac_ext
11033 cat >>conftest.
$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 $ac_includes_default
11039 if (sizeof ((ino_t)))
11045 rm -f conftest.
$ac_objext
11046 if { (ac_try
="$ac_compile"
11047 case "(($ac_try" in
11048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest.$ac_objext; then
11065 $as_echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_type_ino_t=yes
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 $as_echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11082 $as_echo "$ac_cv_type_ino_t" >&6; }
11083 if test "x$ac_cv_type_ino_t" = x""yes; then
11087 cat >>confdefs.h <<_ACEOF
11088 #define ino_t unsigned
11093 { $as_echo "$as_me:$LINENO: checking for loff_t" >&5
11094 $as_echo_n "checking for loff_t... " >&6; }
11095 if test "${ac_cv_type_loff_t+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11098 ac_cv_type_loff_t=no
11099 cat >conftest.$ac_ext <<_ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11109 if (sizeof (loff_t))
11115 rm -f conftest.$ac_objext
11116 if { (ac_try="$ac_compile"
11117 case "(($ac_try" in
11118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11119 *) ac_try_echo
=$ac_try;;
11121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11122 $as_echo "$ac_try_echo") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1
>conftest.err
11127 cat conftest.err
>&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.
$ac_objext; then
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 $ac_includes_default
11143 if (sizeof ((loff_t)))
11149 rm -f conftest.
$ac_objext
11150 if { (ac_try
="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_compile") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest.$ac_objext; then
11169 $as_echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_type_loff_t=yes
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11186 $as_echo "$ac_cv_type_loff_t" >&6; }
11187 if test "x$ac_cv_type_loff_t" = x""yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define loff_t off_t
11197 { $as_echo "$as_me:$LINENO: checking for offset_t" >&5
11198 $as_echo_n "checking for offset_t... " >&6; }
11199 if test "${ac_cv_type_offset_t+set}" = set; then
11200 $as_echo_n "(cached) " >&6
11202 ac_cv_type_offset_t=no
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11213 if (sizeof (offset_t))
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11223 *) ac_try_echo
=$ac_try;;
11225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11226 $as_echo "$ac_try_echo") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1
>conftest.err
11231 cat conftest.err
>&5
11232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest.
$ac_objext; then
11237 cat >conftest.
$ac_ext <<_ACEOF
11240 cat confdefs.h
>>conftest.
$ac_ext
11241 cat >>conftest.
$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 $ac_includes_default
11247 if (sizeof ((offset_t)))
11253 rm -f conftest.
$ac_objext
11254 if { (ac_try
="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11260 $as_echo "$ac_try_echo") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && {
11268 test -z "$ac_c_werror_flag" ||
11269 test ! -s conftest.err
11270 } && test -s conftest.$ac_objext; then
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_type_offset_t=yes
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11290 $as_echo "$ac_cv_type_offset_t" >&6; }
11291 if test "x$ac_cv_type_offset_t" = x""yes; then
11295 cat >>confdefs.h <<_ACEOF
11296 #define offset_t loff_t
11302 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11303 $as_echo_n "checking for working memcmp... " >&6; }
11304 if test "${ac_cv_func_memcmp_working+set}" = set; then
11305 $as_echo_n "(cached) " >&6
11307 if test "$cross_compiling" = yes; then
11308 ac_cv_func_memcmp_working=no
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11321 /* Some versions of memcmp are not 8-bit clean. */
11322 char c0 = '\100', c1 = '\200', c2 = '\201';
11323 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11326 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11327 or more and with at least one buffer not starting on a 4-byte boundary.
11328 William Lewis provided this test program. */
11333 for (i = 0; i < 4; i++)
11337 strcpy (a, "--------01111111");
11338 strcpy (b, "--------10000000");
11339 if (memcmp (a, b, 16) >= 0)
11349 rm -f conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11353 *) ac_try_echo
=$ac_try;;
11355 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11356 $as_echo "$ac_try_echo") >&5
11357 (eval "$ac_link") 2>&5
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11361 { (case "(($ac_try" in
11362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11366 $as_echo "$ac_try_echo") >&5
11367 (eval "$ac_try") 2>&5
11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_func_memcmp_working=yes
11373 $as_echo "$as_me: program exited with status $ac_status" >&5
11374 $as_echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ( exit $ac_status )
11378 ac_cv_func_memcmp_working=no
11380 rm -rf conftest.dSYM
11381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11387 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11388 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11389 *" memcmp.$ac_objext "* ) ;;
11390 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11408 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp utime utimes
11410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 $as_echo_n "checking for $ac_func... " >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11414 $as_echo_n "(cached) " >&6
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11432 # include <limits.h>
11434 # include <assert.h>
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11456 return $ac_func ();
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11465 *) ac_try_echo
=$ac_try;;
11467 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_link") 2>conftest.er1
11471 grep -v '^ *+' conftest.er1
>conftest.err
11473 cat conftest.err
>&5
11474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest
$ac_exeext && {
11479 test "$cross_compiling" = yes ||
11480 $as_test_x conftest
$ac_exeext
11482 eval "$as_ac_var=yes"
11484 $as_echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.
$ac_ext >&5
11487 eval "$as_ac_var=no"
11490 rm -rf conftest.dSYM
11491 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11492 conftest
$ac_exeext conftest.
$ac_ext
11494 ac_res
=`eval 'as_val=${'$as_ac_var'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11498 as_val
=`eval 'as_val=${'$as_ac_var'}
11499 $as_echo "$as_val"'`
11500 if test "x$as_val" = x
""yes; then
11501 cat >>confdefs.h
<<_ACEOF
11502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11512 for ac_header
in stdbool.h stdint.h sys
/select.h
11514 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11515 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11517 $as_echo_n "checking for $ac_header... " >&6; }
11518 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11521 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11522 $as_echo "$as_val"'`
11523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11524 $as_echo "$ac_res" >&6; }
11526 # Is the header compilable?
11527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 $as_echo_n "checking $ac_header usability... " >&6; }
11529 cat >conftest.
$ac_ext <<_ACEOF
11532 cat confdefs.h
>>conftest.
$ac_ext
11533 cat >>conftest.
$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 #include <$ac_header>
11538 rm -f conftest.
$ac_objext
11539 if { (ac_try
="$ac_compile"
11540 case "(($ac_try" in
11541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11545 $as_echo "$ac_try_echo") >&5
11546 (eval "$ac_compile") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.$ac_objext; then
11556 ac_header_compiler=yes
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_header_compiler=no
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 $as_echo "$ac_header_compiler" >&6; }
11568 # Is the header present?
11569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 $as_echo_n "checking $ac_header presence... " >&6; }
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11579 if { (ac_try="$ac_cpp conftest.$ac_ext"
11580 case "(($ac_try" in
11581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11582 *) ac_try_echo
=$ac_try;;
11584 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11585 $as_echo "$ac_try_echo") >&5
11586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11588 grep -v '^ *+' conftest.er1
>conftest.err
11590 cat conftest.err
>&5
11591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev
/null
&& {
11593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11594 test ! -s conftest.err
11596 ac_header_preproc
=yes
11598 $as_echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.
$ac_ext >&5
11601 ac_header_preproc
=no
11604 rm -f conftest.err conftest.
$ac_ext
11605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 $as_echo "$ac_header_preproc" >&6; }
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc
=yes
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 $as_echo_n "checking for $ac_header... " >&6; }
11635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 $as_echo_n "(cached) " >&6
11638 eval "$as_ac_Header=\$ac_header_preproc"
11640 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11641 $as_echo "$as_val"'`
11642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11643 $as_echo "$ac_res" >&6; }
11646 as_val
=`eval 'as_val=${'$as_ac_Header'}
11647 $as_echo "$as_val"'`
11648 if test "x$as_val" = x
""yes; then
11649 cat >>confdefs.h
<<_ACEOF
11650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659 for ac_header
in setjmp.h utime.h
11661 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 $as_echo_n "checking for $ac_header... " >&6; }
11665 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 $as_echo_n "(cached) " >&6
11668 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11669 $as_echo "$as_val"'`
11670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11671 $as_echo "$ac_res" >&6; }
11673 # Is the header compilable?
11674 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675 $as_echo_n "checking $ac_header usability... " >&6; }
11676 cat >conftest.
$ac_ext <<_ACEOF
11679 cat confdefs.h
>>conftest.
$ac_ext
11680 cat >>conftest.
$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 #include <$ac_header>
11685 rm -f conftest.
$ac_objext
11686 if { (ac_try
="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11692 $as_echo "$ac_try_echo") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11703 ac_header_compiler=yes
11705 $as_echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_compiler=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 $as_echo "$ac_header_compiler" >&6; }
11715 # Is the header present?
11716 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
11726 if { (ac_try="$ac_cpp conftest.$ac_ext"
11727 case "(($ac_try" in
11728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11729 *) ac_try_echo
=$ac_try;;
11731 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11732 $as_echo "$ac_try_echo") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev
/null
&& {
11740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11743 ac_header_preproc
=yes
11745 $as_echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.
$ac_ext >&5
11748 ac_header_preproc
=no
11751 rm -f conftest.err conftest.
$ac_ext
11752 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753 $as_echo "$ac_header_preproc" >&6; }
11755 # So? What about this header?
11756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762 ac_header_preproc
=yes
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11768 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11772 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 $as_echo_n "checking for $ac_header... " >&6; }
11782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 $as_echo_n "(cached) " >&6
11785 eval "$as_ac_Header=\$ac_header_preproc"
11787 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11788 $as_echo "$as_val"'`
11789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11790 $as_echo "$ac_res" >&6; }
11793 as_val
=`eval 'as_val=${'$as_ac_Header'}
11794 $as_echo "$as_val"'`
11795 if test "x$as_val" = x
""yes; then
11796 cat >>confdefs.h
<<_ACEOF
11797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11805 if test "${ac_cv_header_stdint_h+set}" = set; then
11806 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11807 $as_echo_n "checking for stdint.h... " >&6; }
11808 if test "${ac_cv_header_stdint_h+set}" = set; then
11809 $as_echo_n "(cached) " >&6
11811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11812 $as_echo "$ac_cv_header_stdint_h" >&6; }
11814 # Is the header compilable?
11815 { $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5
11816 $as_echo_n "checking stdint.h usability... " >&6; }
11817 cat >conftest.
$ac_ext <<_ACEOF
11820 cat confdefs.h
>>conftest.
$ac_ext
11821 cat >>conftest.
$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 #include <stdint.h>
11826 rm -f conftest.
$ac_objext
11827 if { (ac_try
="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_compiler=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11854 $as_echo "$ac_header_compiler" >&6; }
11856 # Is the header present?
11857 { $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5
11858 $as_echo_n "checking stdint.h presence... " >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <stdint.h>
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11870 *) ac_try_echo
=$ac_try;;
11872 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11873 $as_echo "$ac_try_echo") >&5
11874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1
>conftest.err
11878 cat conftest.err
>&5
11879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev
/null
&& {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11884 ac_header_preproc
=yes
11886 $as_echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.
$ac_ext >&5
11889 ac_header_preproc
=no
11892 rm -f conftest.err conftest.
$ac_ext
11893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11894 $as_echo "$ac_header_preproc" >&6; }
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11899 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11900 $as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11901 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11902 $as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11903 ac_header_preproc
=yes
11906 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11907 $as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11908 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11909 $as_echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11910 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11911 $as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11913 $as_echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11914 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11915 $as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11916 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11917 $as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11921 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11922 $as_echo_n "checking for stdint.h... " >&6; }
11923 if test "${ac_cv_header_stdint_h+set}" = set; then
11924 $as_echo_n "(cached) " >&6
11926 ac_cv_header_stdint_h
=$ac_header_preproc
11928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11929 $as_echo "$ac_cv_header_stdint_h" >&6; }
11932 if test "x$ac_cv_header_stdint_h" = x
""yes; then
11933 ac_config_commands
="$ac_config_commands rm-stdint.h"
11936 ac_config_commands
="$ac_config_commands mk-stdint.h"
11943 if test "${ac_cv_header_stdbool_h+set}" = set; then
11944 { $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
11945 $as_echo_n "checking for stdbool.h... " >&6; }
11946 if test "${ac_cv_header_stdbool_h+set}" = set; then
11947 $as_echo_n "(cached) " >&6
11949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11950 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11952 # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking stdbool.h usability" >&5
11954 $as_echo_n "checking stdbool.h usability... " >&6; }
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <stdbool.h>
11964 rm -f conftest.
$ac_objext
11965 if { (ac_try
="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_header_compiler=yes
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_compiler=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking stdbool.h presence" >&5
11996 $as_echo_n "checking stdbool.h presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #include <stdbool.h>
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12008 *) ac_try_echo
=$ac_try;;
12010 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1
>conftest.err
12016 cat conftest.err
>&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev
/null
&& {
12019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12022 ac_header_preproc
=yes
12024 $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.
$ac_ext >&5
12027 ac_header_preproc
=no
12030 rm -f conftest.err conftest.
$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12037 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc
=yes
12044 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
12046 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: stdbool.h: check for missing prerequisite headers?" >&2;}
12048 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
12050 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: stdbool.h: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
12054 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
12059 { $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
12060 $as_echo_n "checking for stdbool.h... " >&6; }
12061 if test "${ac_cv_header_stdbool_h+set}" = set; then
12062 $as_echo_n "(cached) " >&6
12064 ac_cv_header_stdbool_h
=$ac_header_preproc
12066 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12067 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12070 if test "x$ac_cv_header_stdbool_h" = x
""yes; then
12071 ac_config_commands
="$ac_config_commands rm-stdbool.h"
12074 ac_config_commands
="$ac_config_commands mk-stdbool.h"
12082 { $as_echo "$as_me:$LINENO: checking for bool" >&5
12083 $as_echo_n "checking for bool... " >&6; }
12084 if test "${ac_cv_type_bool+set}" = set; then
12085 $as_echo_n "(cached) " >&6
12088 cat >conftest.
$ac_ext <<_ACEOF
12091 cat confdefs.h
>>conftest.
$ac_ext
12092 cat >>conftest.
$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12095 $ac_includes_default
12096 #ifdef HAVE_STDBOOL_H
12097 #include <stdbool.h>
12110 rm -f conftest.
$ac_objext
12111 if { (ac_try
="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117 $as_echo "$ac_try_echo") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12135 $ac_includes_default
12136 #ifdef HAVE_STDBOOL_H
12137 #include <stdbool.h>
12144 if (sizeof ((bool)))
12150 rm -f conftest.$ac_objext
12151 if { (ac_try="$ac_compile"
12152 case "(($ac_try" in
12153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12154 *) ac_try_echo
=$ac_try;;
12156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12157 $as_echo "$ac_try_echo") >&5
12158 (eval "$ac_compile") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1
>conftest.err
12162 cat conftest.err
>&5
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest.
$ac_objext; then
12170 $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.
$ac_ext >&5
12173 ac_cv_type_bool
=yes
12176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12186 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12187 $as_echo "$ac_cv_type_bool" >&6; }
12188 if test "x$ac_cv_type_bool" = x
""yes; then
12190 cat >>confdefs.h
<<\_ACEOF
12191 #define HAVE_BOOL 1
12197 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
12198 $as_echo_n "checking for _Bool... " >&6; }
12199 if test "${ac_cv_type__Bool+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12202 ac_cv_type__Bool
=no
12203 cat >conftest.
$ac_ext <<_ACEOF
12206 cat confdefs.h
>>conftest.
$ac_ext
12207 cat >>conftest.
$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12210 $ac_includes_default
12211 #ifdef HAVE_STDBOOL_H
12212 #include <stdbool.h>
12219 if (sizeof (_Bool))
12225 rm -f conftest.
$ac_objext
12226 if { (ac_try
="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 $ac_includes_default
12251 #ifdef HAVE_STDBOOL_H
12252 #include <stdbool.h>
12259 if (sizeof ((_Bool)))
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12269 *) ac_try_echo
=$ac_try;;
12271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.
$ac_objext; then
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_cv_type__Bool
=yes
12291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12293 $as_echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.
$ac_ext >&5
12299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12301 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12302 $as_echo "$ac_cv_type__Bool" >&6; }
12303 if test "x$ac_cv_type__Bool" = x
""yes; then
12305 cat >>confdefs.h
<<\_ACEOF
12306 #define HAVE__Bool 1
12312 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
12313 $as_echo_n "checking for working mmap... " >&6; }
12314 if test "${libreplace_cv_HAVE_MMAP+set}" = set; then
12315 $as_echo_n "(cached) " >&6
12318 if test "$cross_compiling" = yes; then
12319 libreplace_cv_HAVE_MMAP
=cross
12321 cat >conftest.
$ac_ext <<_ACEOF
12324 cat confdefs.h
>>conftest.
$ac_ext
12325 cat >>conftest.
$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include "$libreplacedir/test/shared_mmap.c"
12329 rm -f conftest
$ac_exeext
12330 if { (ac_try
="$ac_link"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>&5
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12341 { (case "(($ac_try" in
12342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12343 *) ac_try_echo
=$ac_try;;
12345 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12346 $as_echo "$ac_try_echo") >&5
12347 (eval "$ac_try") 2>&5
12349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 libreplace_cv_HAVE_MMAP
=yes
12353 $as_echo "$as_me: program exited with status $ac_status" >&5
12354 $as_echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.
$ac_ext >&5
12357 ( exit $ac_status )
12358 libreplace_cv_HAVE_MMAP
=no
12360 rm -rf conftest.dSYM
12361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12366 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_MMAP" >&5
12367 $as_echo "$libreplace_cv_HAVE_MMAP" >&6; }
12368 if test x
"$libreplace_cv_HAVE_MMAP" = x
"yes"; then
12370 cat >>confdefs.h
<<\_ACEOF
12371 #define HAVE_MMAP 1
12379 for ac_header
in sys
/syslog.h syslog.h
12381 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12382 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 $as_echo_n "checking for $ac_header... " >&6; }
12385 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12386 $as_echo_n "(cached) " >&6
12388 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12389 $as_echo "$as_val"'`
12390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12391 $as_echo "$ac_res" >&6; }
12393 # Is the header compilable?
12394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395 $as_echo_n "checking $ac_header usability... " >&6; }
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 #include <$ac_header>
12405 rm -f conftest.
$ac_objext
12406 if { (ac_try
="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412 $as_echo "$ac_try_echo") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 ac_header_compiler=yes
12425 $as_echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 ac_header_compiler=no
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433 $as_echo "$ac_header_compiler" >&6; }
12435 # Is the header present?
12436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12437 $as_echo_n "checking $ac_header presence... " >&6; }
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <$ac_header>
12446 if { (ac_try="$ac_cpp conftest.$ac_ext"
12447 case "(($ac_try" in
12448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12449 *) ac_try_echo
=$ac_try;;
12451 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1
>conftest.err
12457 cat conftest.err
>&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } >/dev
/null
&& {
12460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12463 ac_header_preproc
=yes
12465 $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.
$ac_ext >&5
12468 ac_header_preproc
=no
12471 rm -f conftest.err conftest.
$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473 $as_echo "$ac_header_preproc" >&6; }
12475 # So? What about this header?
12476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12482 ac_header_preproc
=yes
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12501 $as_echo_n "checking for $ac_header... " >&6; }
12502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 $as_echo_n "(cached) " >&6
12505 eval "$as_ac_Header=\$ac_header_preproc"
12507 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12508 $as_echo "$as_val"'`
12509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12510 $as_echo "$ac_res" >&6; }
12513 as_val
=`eval 'as_val=${'$as_ac_Header'}
12514 $as_echo "$as_val"'`
12515 if test "x$as_val" = x
""yes; then
12516 cat >>confdefs.h
<<_ACEOF
12517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12526 for ac_header
in sys
/time.h
time.h
12528 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 $as_echo_n "checking for $ac_header... " >&6; }
12532 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 $as_echo_n "(cached) " >&6
12535 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12536 $as_echo "$as_val"'`
12537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12538 $as_echo "$ac_res" >&6; }
12540 # Is the header compilable?
12541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12542 $as_echo_n "checking $ac_header usability... " >&6; }
12543 cat >conftest.
$ac_ext <<_ACEOF
12546 cat confdefs.h
>>conftest.
$ac_ext
12547 cat >>conftest.
$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 $ac_includes_default
12550 #include <$ac_header>
12552 rm -f conftest.
$ac_objext
12553 if { (ac_try
="$ac_compile"
12554 case "(($ac_try" in
12555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12559 $as_echo "$ac_try_echo") >&5
12560 (eval "$ac_compile") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && {
12567 test -z "$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 } && test -s conftest.$ac_objext; then
12570 ac_header_compiler=yes
12572 $as_echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_header_compiler=no
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12580 $as_echo "$ac_header_compiler" >&6; }
12582 # Is the header present?
12583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12584 $as_echo_n "checking $ac_header presence... " >&6; }
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 #include <$ac_header>
12593 if { (ac_try="$ac_cpp conftest.$ac_ext"
12594 case "(($ac_try" in
12595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12596 *) ac_try_echo
=$ac_try;;
12598 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12599 $as_echo "$ac_try_echo") >&5
12600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12602 grep -v '^ *+' conftest.er1
>conftest.err
12604 cat conftest.err
>&5
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev
/null
&& {
12607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12610 ac_header_preproc
=yes
12612 $as_echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.
$ac_ext >&5
12615 ac_header_preproc
=no
12618 rm -f conftest.err conftest.
$ac_ext
12619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12620 $as_echo "$ac_header_preproc" >&6; }
12622 # So? What about this header?
12623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12629 ac_header_preproc
=yes
12632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12648 $as_echo_n "checking for $ac_header... " >&6; }
12649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12650 $as_echo_n "(cached) " >&6
12652 eval "$as_ac_Header=\$ac_header_preproc"
12654 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12655 $as_echo "$as_val"'`
12656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12657 $as_echo "$ac_res" >&6; }
12660 as_val
=`eval 'as_val=${'$as_ac_Header'}
12661 $as_echo "$as_val"'`
12662 if test "x$as_val" = x
""yes; then
12663 cat >>confdefs.h
<<_ACEOF
12664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12673 for ac_header
in stdarg.h vararg.h
12675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 $as_echo_n "(cached) " >&6
12682 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12683 $as_echo "$as_val"'`
12684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12687 # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.
$ac_ext <<_ACEOF
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <$ac_header>
12699 rm -f conftest.
$ac_objext
12700 if { (ac_try
="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_header_compiler=yes
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_header_compiler=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 #include <$ac_header>
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12743 *) ac_try_echo
=$ac_try;;
12745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1
>conftest.err
12751 cat conftest.err
>&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev
/null
&& {
12754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12757 ac_header_preproc
=yes
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12762 ac_header_preproc
=no
12765 rm -f conftest.err conftest.
$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12769 # So? What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc
=yes
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12795 $as_echo_n "checking for $ac_header... " >&6; }
12796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12797 $as_echo_n "(cached) " >&6
12799 eval "$as_ac_Header=\$ac_header_preproc"
12801 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12802 $as_echo "$as_val"'`
12803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12807 as_val
=`eval 'as_val=${'$as_ac_Header'}
12808 $as_echo "$as_val"'`
12809 if test "x$as_val" = x
""yes; then
12810 cat >>confdefs.h
<<_ACEOF
12811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12820 for ac_header
in sys
/mount.h mntent.h
12822 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12825 $as_echo_n "checking for $ac_header... " >&6; }
12826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12827 $as_echo_n "(cached) " >&6
12829 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12830 $as_echo "$as_val"'`
12831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12832 $as_echo "$ac_res" >&6; }
12834 # Is the header compilable?
12835 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836 $as_echo_n "checking $ac_header usability... " >&6; }
12837 cat >conftest.
$ac_ext <<_ACEOF
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <$ac_header>
12846 rm -f conftest.
$ac_objext
12847 if { (ac_try
="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_compile") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest.$ac_objext; then
12864 ac_header_compiler=yes
12866 $as_echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_header_compiler=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 $as_echo "$ac_header_compiler" >&6; }
12876 # Is the header present?
12877 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878 $as_echo_n "checking $ac_header presence... " >&6; }
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <$ac_header>
12887 if { (ac_try="$ac_cpp conftest.$ac_ext"
12888 case "(($ac_try" in
12889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12890 *) ac_try_echo
=$ac_try;;
12892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1
>conftest.err
12898 cat conftest.err
>&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } >/dev
/null
&& {
12901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12904 ac_header_preproc
=yes
12906 $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.
$ac_ext >&5
12909 ac_header_preproc
=no
12912 rm -f conftest.err conftest.
$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914 $as_echo "$ac_header_preproc" >&6; }
12916 # So? What about this header?
12917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12920 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12922 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc
=yes
12926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12927 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12929 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12931 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12933 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12937 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 $as_echo_n "checking for $ac_header... " >&6; }
12943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12944 $as_echo_n "(cached) " >&6
12946 eval "$as_ac_Header=\$ac_header_preproc"
12948 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12949 $as_echo "$as_val"'`
12950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12951 $as_echo "$ac_res" >&6; }
12954 as_val
=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 if test "x$as_val" = x
""yes; then
12957 cat >>confdefs.h
<<_ACEOF
12958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12966 for ac_header
in stropts.h
12968 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12969 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12971 $as_echo_n "checking for $ac_header... " >&6; }
12972 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12973 $as_echo_n "(cached) " >&6
12975 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12976 $as_echo "$as_val"'`
12977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12978 $as_echo "$ac_res" >&6; }
12980 # Is the header compilable?
12981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12982 $as_echo_n "checking $ac_header usability... " >&6; }
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 #include <$ac_header>
12992 rm -f conftest.
$ac_objext
12993 if { (ac_try
="$ac_compile"
12994 case "(($ac_try" in
12995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12999 $as_echo "$ac_try_echo") >&5
13000 (eval "$ac_compile") 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
13010 ac_header_compiler=yes
13012 $as_echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_header_compiler=no
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13020 $as_echo "$ac_header_compiler" >&6; }
13022 # Is the header present?
13023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13024 $as_echo_n "checking $ac_header presence... " >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <$ac_header>
13033 if { (ac_try="$ac_cpp conftest.$ac_ext"
13034 case "(($ac_try" in
13035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13036 *) ac_try_echo
=$ac_try;;
13038 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13042 grep -v '^ *+' conftest.er1
>conftest.err
13044 cat conftest.err
>&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } >/dev
/null
&& {
13047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13050 ac_header_preproc
=yes
13052 $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.
$ac_ext >&5
13055 ac_header_preproc
=no
13058 rm -f conftest.err conftest.
$ac_ext
13059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13060 $as_echo "$ac_header_preproc" >&6; }
13062 # So? What about this header?
13063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13069 ac_header_preproc
=yes
13072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 $as_echo_n "checking for $ac_header... " >&6; }
13089 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 $as_echo_n "(cached) " >&6
13092 eval "$as_ac_Header=\$ac_header_preproc"
13094 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13095 $as_echo "$as_val"'`
13096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13097 $as_echo "$ac_res" >&6; }
13100 as_val
=`eval 'as_val=${'$as_ac_Header'}
13101 $as_echo "$as_val"'`
13102 if test "x$as_val" = x
""yes; then
13103 cat >>confdefs.h
<<_ACEOF
13104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13112 for ac_header
in unix.h
13114 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13117 $as_echo_n "checking for $ac_header... " >&6; }
13118 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13119 $as_echo_n "(cached) " >&6
13121 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13122 $as_echo "$as_val"'`
13123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13124 $as_echo "$ac_res" >&6; }
13126 # Is the header compilable?
13127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13128 $as_echo_n "checking $ac_header usability... " >&6; }
13129 cat >conftest.
$ac_ext <<_ACEOF
13132 cat confdefs.h
>>conftest.
$ac_ext
13133 cat >>conftest.
$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 $ac_includes_default
13136 #include <$ac_header>
13138 rm -f conftest.
$ac_objext
13139 if { (ac_try
="$ac_compile"
13140 case "(($ac_try" in
13141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13156 ac_header_compiler=yes
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_header_compiler=no
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13166 $as_echo "$ac_header_compiler" >&6; }
13168 # Is the header present?
13169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13170 $as_echo_n "checking $ac_header presence... " >&6; }
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <$ac_header>
13179 if { (ac_try="$ac_cpp conftest.$ac_ext"
13180 case "(($ac_try" in
13181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13182 *) ac_try_echo
=$ac_try;;
13184 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13188 grep -v '^ *+' conftest.er1
>conftest.err
13190 cat conftest.err
>&5
13191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev
/null
&& {
13193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13196 ac_header_preproc
=yes
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_header_preproc
=no
13204 rm -f conftest.err conftest.
$ac_ext
13205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206 $as_echo "$ac_header_preproc" >&6; }
13208 # So? What about this header?
13209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc
=yes
13218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 $as_echo_n "checking for $ac_header... " >&6; }
13235 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 $as_echo_n "(cached) " >&6
13238 eval "$as_ac_Header=\$ac_header_preproc"
13240 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13241 $as_echo "$as_val"'`
13242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13243 $as_echo "$ac_res" >&6; }
13246 as_val
=`eval 'as_val=${'$as_ac_Header'}
13247 $as_echo "$as_val"'`
13248 if test "x$as_val" = x
""yes; then
13249 cat >>confdefs.h
<<_ACEOF
13250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13265 for ac_func
in seteuid setresuid setegid setresgid chroot bzero strerror
13267 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13269 $as_echo_n "checking for $ac_func... " >&6; }
13270 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13271 $as_echo_n "(cached) " >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13281 #define $ac_func innocuous_$ac_func
13283 /* System header to define __stub macros and hopefully few prototypes,
13284 which can conflict with char $ac_func (); below.
13285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13286 <limits.h> exists even on freestanding compilers. */
13289 # include <limits.h>
13291 # include <assert.h>
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13303 /* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306 #if defined __stub_$ac_func || defined __stub___$ac_func
13313 return $ac_func ();
13318 rm -f conftest.
$ac_objext conftest
$ac_exeext
13319 if { (ac_try
="$ac_link"
13320 case "(($ac_try" in
13321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13325 $as_echo "$ac_try_echo") >&5
13326 (eval "$ac_link") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest$ac_exeext && {
13336 test "$cross_compiling" = yes ||
13337 $as_test_x conftest$ac_exeext
13339 eval "$as_ac_var=yes"
13341 $as_echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 eval "$as_ac_var=no"
13347 rm -rf conftest.dSYM
13348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349 conftest$ac_exeext conftest.$ac_ext
13351 ac_res=`eval 'as_val=${'$as_ac_var'}
13352 $as_echo "$as_val"'`
13353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13354 $as_echo "$ac_res" >&6; }
13355 as_val=`eval 'as_val=${'$as_ac_var'}
13356 $as_echo "$as_val"'`
13357 if test "x$as_val" = x""yes; then
13358 cat >>confdefs.h <<_ACEOF
13359 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13371 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
13373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13375 $as_echo_n "checking for $ac_func... " >&6; }
13376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13377 $as_echo_n "(cached) " >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13387 #define $ac_func innocuous_$ac_func
13389 /* System header to define __stub macros and hopefully few prototypes,
13390 which can conflict with char $ac_func (); below.
13391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13392 <limits.h> exists even on freestanding compilers. */
13395 # include <limits.h>
13397 # include <assert.h>
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13409 /* The GNU C library defines this for functions which it implements
13410 to always fail with ENOSYS. Some functions are actually named
13411 something starting with __ and the normal name is an alias. */
13412 #if defined __stub_$ac_func || defined __stub___$ac_func
13419 return $ac_func ();
13424 rm -f conftest.$ac_objext conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13428 *) ac_try_echo
=$ac_try;;
13430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13431 $as_echo "$ac_try_echo") >&5
13432 (eval "$ac_link") 2>conftest.er1
13434 grep -v '^ *+' conftest.er1
>conftest.err
13436 cat conftest.err
>&5
13437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && {
13439 test -z "$ac_c_werror_flag" ||
13440 test ! -s conftest.err
13441 } && test -s conftest
$ac_exeext && {
13442 test "$cross_compiling" = yes ||
13443 $as_test_x conftest
$ac_exeext
13445 eval "$as_ac_var=yes"
13447 $as_echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.
$ac_ext >&5
13450 eval "$as_ac_var=no"
13453 rm -rf conftest.dSYM
13454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13455 conftest
$ac_exeext conftest.
$ac_ext
13457 ac_res
=`eval 'as_val=${'$as_ac_var'}
13458 $as_echo "$as_val"'`
13459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13460 $as_echo "$ac_res" >&6; }
13461 as_val
=`eval 'as_val=${'$as_ac_var'}
13462 $as_echo "$as_val"'`
13463 if test "x$as_val" = x
""yes; then
13464 cat >>confdefs.h
<<_ACEOF
13465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13478 for ac_func
in waitpid wait4 strlcpy strlcat initgroups memmove strdup
13480 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13481 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13482 $as_echo_n "checking for $ac_func... " >&6; }
13483 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13484 $as_echo_n "(cached) " >&6
13486 cat >conftest.
$ac_ext <<_ACEOF
13489 cat confdefs.h
>>conftest.
$ac_ext
13490 cat >>conftest.
$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13494 #define $ac_func innocuous_$ac_func
13496 /* System header to define __stub macros and hopefully few prototypes,
13497 which can conflict with char $ac_func (); below.
13498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13499 <limits.h> exists even on freestanding compilers. */
13502 # include <limits.h>
13504 # include <assert.h>
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined __stub_$ac_func || defined __stub___$ac_func
13526 return $ac_func ();
13531 rm -f conftest.
$ac_objext conftest
$ac_exeext
13532 if { (ac_try
="$ac_link"
13533 case "(($ac_try" in
13534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13538 $as_echo "$ac_try_echo") >&5
13539 (eval "$ac_link") 2>conftest.er1
13541 grep -v '^ *+' conftest.er1 >conftest.err
13543 cat conftest.err >&5
13544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest$ac_exeext && {
13549 test "$cross_compiling" = yes ||
13550 $as_test_x conftest$ac_exeext
13552 eval "$as_ac_var=yes"
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 eval "$as_ac_var=no"
13560 rm -rf conftest.dSYM
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 ac_res=`eval 'as_val=${'$as_ac_var'}
13565 $as_echo "$as_val"'`
13566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13567 $as_echo "$ac_res" >&6; }
13568 as_val=`eval 'as_val=${'$as_ac_var'}
13569 $as_echo "$as_val"'`
13570 if test "x$as_val" = x""yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13585 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp dup2
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 $as_echo_n "checking for $ac_func... " >&6; }
13590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13609 # include <limits.h>
13611 # include <assert.h>
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined __stub_$ac_func || defined __stub___$ac_func
13633 return $ac_func ();
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13642 *) ac_try_echo
=$ac_try;;
13644 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1
>conftest.err
13650 cat conftest.err
>&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest
$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest
$ac_exeext
13659 eval "$as_ac_var=yes"
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.
$ac_ext >&5
13664 eval "$as_ac_var=no"
13667 rm -rf conftest.dSYM
13668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13669 conftest
$ac_exeext conftest.
$ac_ext
13671 ac_res
=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674 $as_echo "$ac_res" >&6; }
13675 as_val
=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x
""yes; then
13678 cat >>confdefs.h
<<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13692 for ac_func
in isatty chown lchown link readlink symlink realpath
13694 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13696 $as_echo_n "checking for $ac_func... " >&6; }
13697 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13698 $as_echo_n "(cached) " >&6
13700 cat >conftest.
$ac_ext <<_ACEOF
13703 cat confdefs.h
>>conftest.
$ac_ext
13704 cat >>conftest.
$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13708 #define $ac_func innocuous_$ac_func
13710 /* System header to define __stub macros and hopefully few prototypes,
13711 which can conflict with char $ac_func (); below.
13712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13713 <limits.h> exists even on freestanding compilers. */
13716 # include <limits.h>
13718 # include <assert.h>
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13730 /* The GNU C library defines this for functions which it implements
13731 to always fail with ENOSYS. Some functions are actually named
13732 something starting with __ and the normal name is an alias. */
13733 #if defined __stub_$ac_func || defined __stub___$ac_func
13740 return $ac_func ();
13745 rm -f conftest.
$ac_objext conftest
$ac_exeext
13746 if { (ac_try
="$ac_link"
13747 case "(($ac_try" in
13748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13752 $as_echo "$ac_try_echo") >&5
13753 (eval "$ac_link") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest$ac_exeext && {
13763 test "$cross_compiling" = yes ||
13764 $as_test_x conftest$ac_exeext
13766 eval "$as_ac_var=yes"
13768 $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 eval "$as_ac_var=no"
13774 rm -rf conftest.dSYM
13775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13776 conftest$ac_exeext conftest.$ac_ext
13778 ac_res=`eval 'as_val=${'$as_ac_var'}
13779 $as_echo "$as_val"'`
13780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13782 as_val=`eval 'as_val=${'$as_ac_var'}
13783 $as_echo "$as_val"'`
13784 if test "x$as_val" = x""yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13793 { $as_echo "$as_me:$LINENO: checking for setresuid declaration" >&5
13794 $as_echo_n "checking for setresuid declaration... " >&6; }
13795 if test "${ac_cv_have_setresuid_decl+set}" = set; then
13796 $as_echo_n "(cached) " >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <unistd.h>
13809 int i = (int)setresuid
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13818 *) ac_try_echo
=$ac_try;;
13820 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13821 $as_echo "$ac_try_echo") >&5
13822 (eval "$ac_compile") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1
>conftest.err
13826 cat conftest.err
>&5
13827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest.
$ac_objext; then
13832 ac_cv_have_setresuid_decl
=yes
13834 $as_echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.
$ac_ext >&5
13837 ac_cv_have_setresuid_decl
=no
13840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
13843 $as_echo "$ac_cv_have_setresuid_decl" >&6; }
13844 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
13846 cat >>confdefs.h
<<\_ACEOF
13847 #define HAVE_SETRESUID_DECL 1
13853 { $as_echo "$as_me:$LINENO: checking for setresgid declaration" >&5
13854 $as_echo_n "checking for setresgid declaration... " >&6; }
13855 if test "${ac_cv_have_setresgid_decl+set}" = set; then
13856 $as_echo_n "(cached) " >&6
13859 cat >conftest.
$ac_ext <<_ACEOF
13862 cat confdefs.h
>>conftest.
$ac_ext
13863 cat >>conftest.
$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 #include <unistd.h>
13869 int i = (int)setresgid
13874 rm -f conftest.
$ac_objext
13875 if { (ac_try
="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13881 $as_echo "$ac_try_echo") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 ac_cv_have_setresgid_decl=yes
13894 $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_have_setresgid_decl=no
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
13903 $as_echo "$ac_cv_have_setresgid_decl" >&6; }
13904 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_SETRESGID_DECL 1
13913 { $as_echo "$as_me:$LINENO: checking for errno declaration" >&5
13914 $as_echo_n "checking for errno declaration... " >&6; }
13915 if test "${ac_cv_have_errno_decl+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13919 cat >conftest.$ac_ext <<_ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13938 *) ac_try_echo
=$ac_try;;
13940 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1
>conftest.err
13946 cat conftest.err
>&5
13947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.
$ac_objext; then
13952 ac_cv_have_errno_decl
=yes
13954 $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.
$ac_ext >&5
13957 ac_cv_have_errno_decl
=no
13960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
13963 $as_echo "$ac_cv_have_errno_decl" >&6; }
13964 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
13966 cat >>confdefs.h
<<\_ACEOF
13967 #define HAVE_ERRNO_DECL 1
13973 { $as_echo "$as_me:$LINENO: checking for secure mkstemp" >&5
13974 $as_echo_n "checking for secure mkstemp... " >&6; }
13975 if test "${libreplace_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
13976 $as_echo_n "(cached) " >&6
13979 if test "$cross_compiling" = yes; then
13980 libreplace_cv_HAVE_SECURE_MKSTEMP
=cross
13982 cat >conftest.
$ac_ext <<_ACEOF
13985 cat confdefs.h
>>conftest.
$ac_ext
13986 cat >>conftest.
$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <stdlib.h>
13989 #include <sys/types.h>
13990 #include <sys/stat.h>
13991 #include <unistd.h>
13994 char tpl[20]="/tmp/test.XXXXXX";
13995 int fd = mkstemp(tpl);
13996 if (fd == -1) exit(1);
13998 if (fstat(fd, &st) != 0) exit(1);
13999 if ((st.st_mode & 0777) != 0600) exit(1);
14003 rm -f conftest
$ac_exeext
14004 if { (ac_try
="$ac_link"
14005 case "(($ac_try" in
14006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14010 $as_echo "$ac_try_echo") >&5
14011 (eval "$ac_link") 2>&5
14013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14015 { (case "(($ac_try" in
14016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14017 *) ac_try_echo
=$ac_try;;
14019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021 (eval "$ac_try") 2>&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 libreplace_cv_HAVE_SECURE_MKSTEMP
=yes
14027 $as_echo "$as_me: program exited with status $ac_status" >&5
14028 $as_echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.
$ac_ext >&5
14031 ( exit $ac_status )
14032 libreplace_cv_HAVE_SECURE_MKSTEMP
=no
14034 rm -rf conftest.dSYM
14035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14040 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_SECURE_MKSTEMP" >&5
14041 $as_echo "$libreplace_cv_HAVE_SECURE_MKSTEMP" >&6; }
14042 if test x
"$libreplace_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
14044 cat >>confdefs.h
<<\_ACEOF
14045 #define HAVE_SECURE_MKSTEMP 1
14052 for ac_header
in stdio.h
strings.h
14054 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14055 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14057 $as_echo_n "checking for $ac_header... " >&6; }
14058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14059 $as_echo_n "(cached) " >&6
14061 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14062 $as_echo "$as_val"'`
14063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14064 $as_echo "$ac_res" >&6; }
14066 # Is the header compilable?
14067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068 $as_echo_n "checking $ac_header usability... " >&6; }
14069 cat >conftest.
$ac_ext <<_ACEOF
14072 cat confdefs.h
>>conftest.
$ac_ext
14073 cat >>conftest.
$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 $ac_includes_default
14076 #include <$ac_header>
14078 rm -f conftest.
$ac_objext
14079 if { (ac_try
="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085 $as_echo "$ac_try_echo") >&5
14086 (eval "$ac_compile") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest.$ac_objext; then
14096 ac_header_compiler=yes
14098 $as_echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_compiler=no
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14106 $as_echo "$ac_header_compiler" >&6; }
14108 # Is the header present?
14109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14110 $as_echo_n "checking $ac_header presence... " >&6; }
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #include <$ac_header>
14119 if { (ac_try="$ac_cpp conftest.$ac_ext"
14120 case "(($ac_try" in
14121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14122 *) ac_try_echo
=$ac_try;;
14124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14125 $as_echo "$ac_try_echo") >&5
14126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1
>conftest.err
14130 cat conftest.err
>&5
14131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } >/dev
/null
&& {
14133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14136 ac_header_preproc
=yes
14138 $as_echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.
$ac_ext >&5
14141 ac_header_preproc
=no
14144 rm -f conftest.err conftest.
$ac_ext
14145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14146 $as_echo "$ac_header_preproc" >&6; }
14148 # So? What about this header?
14149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14155 ac_header_preproc
=yes
14158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14161 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14165 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 $as_echo_n "checking for $ac_header... " >&6; }
14175 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 $as_echo_n "(cached) " >&6
14178 eval "$as_ac_Header=\$ac_header_preproc"
14180 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14181 $as_echo "$as_val"'`
14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14186 as_val
=`eval 'as_val=${'$as_ac_Header'}
14187 $as_echo "$as_val"'`
14188 if test "x$as_val" = x
""yes; then
14189 cat >>confdefs.h
<<_ACEOF
14190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14197 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14198 $as_echo_n "checking whether snprintf is declared... " >&6; }
14199 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14202 cat >conftest.
$ac_ext <<_ACEOF
14205 cat confdefs.h
>>conftest.
$ac_ext
14206 cat >>conftest.
$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14220 rm -f conftest.
$ac_objext
14221 if { (ac_try
="$ac_compile"
14222 case "(($ac_try" in
14223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest.$ac_objext; then
14238 ac_cv_have_decl_snprintf=yes
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_have_decl_snprintf=no
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14249 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
14250 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
14252 cat >>confdefs.h <<_ACEOF
14253 #define HAVE_DECL_SNPRINTF 1
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_DECL_SNPRINTF 0
14264 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14265 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
14266 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14267 $as_echo_n "(cached) " >&6
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 $ac_includes_default
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14291 *) ac_try_echo
=$ac_try;;
14293 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14294 $as_echo "$ac_try_echo") >&5
14295 (eval "$ac_compile") 2>conftest.er1
14297 grep -v '^ *+' conftest.er1
>conftest.err
14299 cat conftest.err
>&5
14300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest.
$ac_objext; then
14305 ac_cv_have_decl_vsnprintf
=yes
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.
$ac_ext >&5
14310 ac_cv_have_decl_vsnprintf
=no
14313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14315 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14316 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
14317 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then
14319 cat >>confdefs.h
<<_ACEOF
14320 #define HAVE_DECL_VSNPRINTF 1
14325 cat >>confdefs.h
<<_ACEOF
14326 #define HAVE_DECL_VSNPRINTF 0
14331 { $as_echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
14332 $as_echo_n "checking whether asprintf is declared... " >&6; }
14333 if test "${ac_cv_have_decl_asprintf+set}" = set; then
14334 $as_echo_n "(cached) " >&6
14336 cat >conftest.
$ac_ext <<_ACEOF
14339 cat confdefs.h
>>conftest.
$ac_ext
14340 cat >>conftest.
$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14354 rm -f conftest.
$ac_objext
14355 if { (ac_try
="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14361 $as_echo "$ac_try_echo") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } && {
14369 test -z "$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 } && test -s conftest.$ac_objext; then
14372 ac_cv_have_decl_asprintf=yes
14374 $as_echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_cv_have_decl_asprintf=no
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
14383 $as_echo "$ac_cv_have_decl_asprintf" >&6; }
14384 if test "x$ac_cv_have_decl_asprintf" = x""yes; then
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DECL_ASPRINTF 1
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_DECL_ASPRINTF 0
14398 { $as_echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
14399 $as_echo_n "checking whether vasprintf is declared... " >&6; }
14400 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
14401 $as_echo_n "(cached) " >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
14423 case "(($ac_try" in
14424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14425 *) ac_try_echo
=$ac_try;;
14427 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14428 $as_echo "$ac_try_echo") >&5
14429 (eval "$ac_compile") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1
>conftest.err
14433 cat conftest.err
>&5
14434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_c_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest.
$ac_objext; then
14439 ac_cv_have_decl_vasprintf
=yes
14441 $as_echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.
$ac_ext >&5
14444 ac_cv_have_decl_vasprintf
=no
14447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14449 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
14450 $as_echo "$ac_cv_have_decl_vasprintf" >&6; }
14451 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then
14453 cat >>confdefs.h
<<_ACEOF
14454 #define HAVE_DECL_VASPRINTF 1
14459 cat >>confdefs.h
<<_ACEOF
14460 #define HAVE_DECL_VASPRINTF 0
14471 for ac_func
in snprintf vsnprintf asprintf vasprintf
14473 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14475 $as_echo_n "checking for $ac_func... " >&6; }
14476 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14477 $as_echo_n "(cached) " >&6
14479 cat >conftest.
$ac_ext <<_ACEOF
14482 cat confdefs.h
>>conftest.
$ac_ext
14483 cat >>conftest.
$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14487 #define $ac_func innocuous_$ac_func
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char $ac_func (); below.
14491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 <limits.h> exists even on freestanding compilers. */
14495 # include <limits.h>
14497 # include <assert.h>
14502 /* Override any GCC internal prototype to avoid an error.
14503 Use char because int might match the return type of a GCC
14504 builtin and then its argument prototype would still apply. */
14509 /* The GNU C library defines this for functions which it implements
14510 to always fail with ENOSYS. Some functions are actually named
14511 something starting with __ and the normal name is an alias. */
14512 #if defined __stub_$ac_func || defined __stub___$ac_func
14519 return $ac_func ();
14524 rm -f conftest.
$ac_objext conftest
$ac_exeext
14525 if { (ac_try
="$ac_link"
14526 case "(($ac_try" in
14527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_link") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && {
14539 test -z "$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14541 } && test -s conftest$ac_exeext && {
14542 test "$cross_compiling" = yes ||
14543 $as_test_x conftest$ac_exeext
14545 eval "$as_ac_var=yes"
14547 $as_echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 eval "$as_ac_var=no"
14553 rm -rf conftest.dSYM
14554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14557 ac_res=`eval 'as_val=${'$as_ac_var'}
14558 $as_echo "$as_val"'`
14559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14560 $as_echo "$ac_res" >&6; }
14561 as_val=`eval 'as_val=${'$as_ac_var'}
14562 $as_echo "$as_val"'`
14563 if test "x$as_val" = x""yes; then
14564 cat >>confdefs.h <<_ACEOF
14565 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14572 { $as_echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
14573 $as_echo_n "checking for C99 vsnprintf... " >&6; }
14574 if test "${libreplace_cv_HAVE_C99_VSNPRINTF+set}" = set; then
14575 $as_echo_n "(cached) " >&6
14578 if test "$cross_compiling" = yes; then
14579 libreplace_cv_HAVE_C99_VSNPRINTF=cross
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 #include <sys/types.h>
14590 #include <stdarg.h>
14591 #include <stdlib.h>
14592 void foo(const char *format, ...) {
14596 long long l = 1234567890;
14599 va_start(ap, format);
14600 len = vsnprintf(buf, 0, format, ap);
14602 if (len != 5) exit(1);
14604 va_start(ap, format);
14605 len = vsnprintf(0, 0, format, ap);
14607 if (len != 5) exit(2);
14609 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
14611 if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
14612 if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
14613 if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
14614 if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
14618 main() { foo("hello"); }
14621 rm -f conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14625 *) ac_try_echo
=$ac_try;;
14627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_link") 2>&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14633 { (case "(($ac_try" in
14634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639 (eval "$ac_try") 2>&5
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 libreplace_cv_HAVE_C99_VSNPRINTF=yes
14645 $as_echo "$as_me: program exited with status $ac_status" >&5
14646 $as_echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ( exit $ac_status )
14650 libreplace_cv_HAVE_C99_VSNPRINTF=no
14652 rm -rf conftest.dSYM
14653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14658 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_C99_VSNPRINTF" >&5
14659 $as_echo "$libreplace_cv_HAVE_C99_VSNPRINTF" >&6; }
14660 if test x"$libreplace_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_C99_VSNPRINTF 1
14669 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
14670 $as_echo_n "checking for va_copy... " >&6; }
14671 if test "${libreplace_cv_HAVE_VA_COPY+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <stdarg.h>
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (ac_try="$ac_link"
14693 case "(($ac_try" in
14694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14695 *) ac_try_echo
=$ac_try;;
14697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14698 $as_echo "$ac_try_echo") >&5
14699 (eval "$ac_link") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1
>conftest.err
14703 cat conftest.err
>&5
14704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest
$ac_exeext && {
14709 test "$cross_compiling" = yes ||
14710 $as_test_x conftest
$ac_exeext
14712 libreplace_cv_HAVE_VA_COPY
=yes
14714 $as_echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 libreplace_cv_HAVE_VA_COPY
=no
14720 rm -rf conftest.dSYM
14721 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14722 conftest
$ac_exeext conftest.
$ac_ext
14724 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_VA_COPY" >&5
14725 $as_echo "$libreplace_cv_HAVE_VA_COPY" >&6; }
14726 if test x
"$libreplace_cv_HAVE_VA_COPY" = x
"yes"; then
14728 cat >>confdefs.h
<<\_ACEOF
14729 #define HAVE_VA_COPY 1
14734 if test x
"$libreplace_cv_HAVE_VA_COPY" != x
"yes"; then
14735 { $as_echo "$as_me:$LINENO: checking for __va_copy" >&5
14736 $as_echo_n "checking for __va_copy... " >&6; }
14737 if test "${libreplace_cv_HAVE___VA_COPY+set}" = set; then
14738 $as_echo_n "(cached) " >&6
14741 cat >conftest.
$ac_ext <<_ACEOF
14744 cat confdefs.h
>>conftest.
$ac_ext
14745 cat >>conftest.
$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <stdarg.h>
14752 __va_copy(ap1,ap2);
14757 rm -f conftest.
$ac_objext conftest
$ac_exeext
14758 if { (ac_try
="$ac_link"
14759 case "(($ac_try" in
14760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764 $as_echo "$ac_try_echo") >&5
14765 (eval "$ac_link") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext && {
14775 test "$cross_compiling" = yes ||
14776 $as_test_x conftest$ac_exeext
14778 libreplace_cv_HAVE___VA_COPY=yes
14780 $as_echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 libreplace_cv_HAVE___VA_COPY=no
14786 rm -rf conftest.dSYM
14787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788 conftest$ac_exeext conftest.$ac_ext
14790 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE___VA_COPY" >&5
14791 $as_echo "$libreplace_cv_HAVE___VA_COPY" >&6; }
14792 if test x"$libreplace_cv_HAVE___VA_COPY" = x"yes"; then
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE___VA_COPY 1
14801 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
14802 $as_echo_n "checking for __FUNCTION__ macro... " >&6; }
14803 if test "${libreplace_cv_HAVE_FUNCTION_MACRO+set}" = set; then
14804 $as_echo_n "(cached) " >&6
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14817 printf("%s\n", __FUNCTION__);
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14826 *) ac_try_echo
=$ac_try;;
14828 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14829 $as_echo "$ac_try_echo") >&5
14830 (eval "$ac_compile") 2>conftest.er1
14832 grep -v '^ *+' conftest.er1
>conftest.err
14834 cat conftest.err
>&5
14835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest.
$ac_objext; then
14840 libreplace_cv_HAVE_FUNCTION_MACRO
=yes
14842 $as_echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.
$ac_ext >&5
14845 libreplace_cv_HAVE_FUNCTION_MACRO
=no
14848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14850 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_FUNCTION_MACRO" >&5
14851 $as_echo "$libreplace_cv_HAVE_FUNCTION_MACRO" >&6; }
14852 if test x
"$libreplace_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
14854 cat >>confdefs.h
<<\_ACEOF
14855 #define HAVE_FUNCTION_MACRO 1
14859 { $as_echo "$as_me:$LINENO: checking for __func__ macro" >&5
14860 $as_echo_n "checking for __func__ macro... " >&6; }
14861 if test "${libreplace_cv_HAVE_func_MACRO+set}" = set; then
14862 $as_echo_n "(cached) " >&6
14865 cat >conftest.
$ac_ext <<_ACEOF
14868 cat confdefs.h
>>conftest.
$ac_ext
14869 cat >>conftest.
$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14875 printf("%s\n", __func__);
14880 rm -f conftest.
$ac_objext
14881 if { (ac_try
="$ac_compile"
14882 case "(($ac_try" in
14883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14887 $as_echo "$ac_try_echo") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest.$ac_objext; then
14898 libreplace_cv_HAVE_func_MACRO=yes
14900 $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 libreplace_cv_HAVE_func_MACRO=no
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_func_MACRO" >&5
14909 $as_echo "$libreplace_cv_HAVE_func_MACRO" >&6; }
14910 if test x"$libreplace_cv_HAVE_func_MACRO" = x"yes"; then
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_func_MACRO 1
14921 for ac_header in sys/param.h limits.h
14923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14926 $as_echo_n "checking for $ac_header... " >&6; }
14927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14928 $as_echo_n "(cached) " >&6
14930 ac_res=`eval 'as_val=${'$as_ac_Header'}
14931 $as_echo "$as_val"'`
14932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14933 $as_echo "$ac_res" >&6; }
14935 # Is the header compilable?
14936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14937 $as_echo_n "checking $ac_header usability... " >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <$ac_header>
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14951 *) ac_try_echo
=$ac_try;;
14953 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1
>conftest.err
14959 cat conftest.err
>&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.
$ac_objext; then
14965 ac_header_compiler
=yes
14967 $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.
$ac_ext >&5
14970 ac_header_compiler
=no
14973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 $as_echo "$ac_header_compiler" >&6; }
14977 # Is the header present?
14978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 $as_echo_n "checking $ac_header presence... " >&6; }
14980 cat >conftest.
$ac_ext <<_ACEOF
14983 cat confdefs.h
>>conftest.
$ac_ext
14984 cat >>conftest.
$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <$ac_header>
14988 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14989 case "(($ac_try" in
14990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14994 $as_echo "$ac_try_echo") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null && {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15005 ac_header_preproc=yes
15007 $as_echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 $as_echo "$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15043 $as_echo_n "checking for $ac_header... " >&6; }
15044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15045 $as_echo_n "(cached) " >&6
15047 eval "$as_ac_Header=\$ac_header_preproc"
15049 ac_res=`eval 'as_val=${'$as_ac_Header'}
15050 $as_echo "$as_val"'`
15051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15052 $as_echo "$ac_res" >&6; }
15055 as_val=`eval 'as_val=${'$as_ac_Header'}
15056 $as_echo "$as_val"'`
15057 if test "x$as_val" = x""yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15067 { $as_echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15068 $as_echo_n "checking for comparison_fn_t... " >&6; }
15069 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15070 $as_echo_n "(cached) " >&6
15072 ac_cv_type_comparison_fn_t=no
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15083 if (sizeof (comparison_fn_t))
15089 rm -f conftest.$ac_objext
15090 if { (ac_try="$ac_compile"
15091 case "(($ac_try" in
15092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15093 *) ac_try_echo
=$ac_try;;
15095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1
>conftest.err
15101 cat conftest.err
>&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.
$ac_objext; then
15107 cat >conftest.
$ac_ext <<_ACEOF
15110 cat confdefs.h
>>conftest.
$ac_ext
15111 cat >>conftest.
$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15117 if (sizeof ((comparison_fn_t)))
15123 rm -f conftest.
$ac_objext
15124 if { (ac_try
="$ac_compile"
15125 case "(($ac_try" in
15126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130 $as_echo "$ac_try_echo") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && {
15138 test -z "$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 } && test -s conftest.$ac_objext; then
15143 $as_echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_type_comparison_fn_t=yes
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15160 $as_echo "$ac_cv_type_comparison_fn_t" >&6; }
15161 if test "x$ac_cv_type_comparison_fn_t" = x""yes; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_COMPARISON_FN_T 1
15171 { $as_echo "$as_me:$LINENO: checking for setenv declaration" >&5
15172 $as_echo_n "checking for setenv declaration... " >&6; }
15173 if test "${ac_cv_have_setenv_decl+set}" = set; then
15174 $as_echo_n "(cached) " >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <stdlib.h>
15187 int i = (int)setenv
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15196 *) ac_try_echo
=$ac_try;;
15198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1
>conftest.err
15204 cat conftest.err
>&5
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.
$ac_objext; then
15210 ac_cv_have_setenv_decl
=yes
15212 $as_echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.
$ac_ext >&5
15215 ac_cv_have_setenv_decl
=no
15218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setenv_decl" >&5
15221 $as_echo "$ac_cv_have_setenv_decl" >&6; }
15222 if test x
"$ac_cv_have_setenv_decl" = x
"yes"; then
15224 cat >>confdefs.h
<<\_ACEOF
15225 #define HAVE_SETENV_DECL 1
15232 for ac_func
in setenv unsetenv
15234 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 $as_echo_n "checking for $ac_func... " >&6; }
15237 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15238 $as_echo_n "(cached) " >&6
15240 cat >conftest.
$ac_ext <<_ACEOF
15243 cat confdefs.h
>>conftest.
$ac_ext
15244 cat >>conftest.
$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15256 # include <limits.h>
15258 # include <assert.h>
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined __stub_$ac_func || defined __stub___$ac_func
15280 return $ac_func ();
15285 rm -f conftest.
$ac_objext conftest
$ac_exeext
15286 if { (ac_try
="$ac_link"
15287 case "(($ac_try" in
15288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292 $as_echo "$ac_try_echo") >&5
15293 (eval "$ac_link") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext && {
15303 test "$cross_compiling" = yes ||
15304 $as_test_x conftest$ac_exeext
15306 eval "$as_ac_var=yes"
15308 $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 eval "$as_ac_var=no"
15314 rm -rf conftest.dSYM
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15318 ac_res=`eval 'as_val=${'$as_ac_var'}
15319 $as_echo "$as_val"'`
15320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15321 $as_echo "$ac_res" >&6; }
15322 as_val=`eval 'as_val=${'$as_ac_var'}
15323 $as_echo "$as_val"'`
15324 if test "x$as_val" = x""yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15333 { $as_echo "$as_me:$LINENO: checking for environ declaration" >&5
15334 $as_echo_n "checking for environ declaration... " >&6; }
15335 if test "${ac_cv_have_environ_decl+set}" = set; then
15336 $as_echo_n "(cached) " >&6
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 #include <unistd.h>
15349 int i = (int)environ
15354 rm -f conftest.$ac_objext
15355 if { (ac_try="$ac_compile"
15356 case "(($ac_try" in
15357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15358 *) ac_try_echo
=$ac_try;;
15360 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15361 $as_echo "$ac_try_echo") >&5
15362 (eval "$ac_compile") 2>conftest.er1
15364 grep -v '^ *+' conftest.er1
>conftest.err
15366 cat conftest.err
>&5
15367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && {
15369 test -z "$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 } && test -s conftest.
$ac_objext; then
15372 ac_cv_have_environ_decl
=yes
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.
$ac_ext >&5
15377 ac_cv_have_environ_decl
=no
15380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15382 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_environ_decl" >&5
15383 $as_echo "$ac_cv_have_environ_decl" >&6; }
15384 if test x
"$ac_cv_have_environ_decl" = x
"yes"; then
15386 cat >>confdefs.h
<<\_ACEOF
15387 #define HAVE_ENVIRON_DECL 1
15394 for ac_func
in strnlen
15396 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15397 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15398 $as_echo_n "checking for $ac_func... " >&6; }
15399 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15400 $as_echo_n "(cached) " >&6
15402 cat >conftest.
$ac_ext <<_ACEOF
15405 cat confdefs.h
>>conftest.
$ac_ext
15406 cat >>conftest.
$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15410 #define $ac_func innocuous_$ac_func
15412 /* System header to define __stub macros and hopefully few prototypes,
15413 which can conflict with char $ac_func (); below.
15414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15415 <limits.h> exists even on freestanding compilers. */
15418 # include <limits.h>
15420 # include <assert.h>
15425 /* Override any GCC internal prototype to avoid an error.
15426 Use char because int might match the return type of a GCC
15427 builtin and then its argument prototype would still apply. */
15432 /* The GNU C library defines this for functions which it implements
15433 to always fail with ENOSYS. Some functions are actually named
15434 something starting with __ and the normal name is an alias. */
15435 #if defined __stub_$ac_func || defined __stub___$ac_func
15442 return $ac_func ();
15447 rm -f conftest.
$ac_objext conftest
$ac_exeext
15448 if { (ac_try
="$ac_link"
15449 case "(($ac_try" in
15450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454 $as_echo "$ac_try_echo") >&5
15455 (eval "$ac_link") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest$ac_exeext && {
15465 test "$cross_compiling" = yes ||
15466 $as_test_x conftest$ac_exeext
15468 eval "$as_ac_var=yes"
15470 $as_echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 eval "$as_ac_var=no"
15476 rm -rf conftest.dSYM
15477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15478 conftest$ac_exeext conftest.$ac_ext
15480 ac_res=`eval 'as_val=${'$as_ac_var'}
15481 $as_echo "$as_val"'`
15482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15483 $as_echo "$ac_res" >&6; }
15484 as_val=`eval 'as_val=${'$as_ac_var'}
15485 $as_echo "$as_val"'`
15486 if test "x$as_val" = x""yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15500 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
15502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15503 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15504 $as_echo_n "checking for $ac_func... " >&6; }
15505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15506 $as_echo_n "(cached) " >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15516 #define $ac_func innocuous_$ac_func
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func (); below.
15520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15521 <limits.h> exists even on freestanding compilers. */
15524 # include <limits.h>
15526 # include <assert.h>
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15538 /* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541 #if defined __stub_$ac_func || defined __stub___$ac_func
15548 return $ac_func ();
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15557 *) ac_try_echo
=$ac_try;;
15559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15560 $as_echo "$ac_try_echo") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1
>conftest.err
15565 cat conftest.err
>&5
15566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest
$ac_exeext && {
15571 test "$cross_compiling" = yes ||
15572 $as_test_x conftest
$ac_exeext
15574 eval "$as_ac_var=yes"
15576 $as_echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.
$ac_ext >&5
15579 eval "$as_ac_var=no"
15582 rm -rf conftest.dSYM
15583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15584 conftest
$ac_exeext conftest.
$ac_ext
15586 ac_res
=`eval 'as_val=${'$as_ac_var'}
15587 $as_echo "$as_val"'`
15588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15589 $as_echo "$ac_res" >&6; }
15590 as_val
=`eval 'as_val=${'$as_ac_var'}
15591 $as_echo "$as_val"'`
15592 if test "x$as_val" = x
""yes; then
15593 cat >>confdefs.h
<<_ACEOF
15594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601 # this test disabled as we don't actually need __VA_ARGS__ yet
15602 cat >conftest.
$ac_ext <<_ACEOF
15605 cat confdefs.h
>>conftest.
$ac_ext
15606 cat >>conftest.
$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
15610 eprintf("bla", "bar");
15613 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15614 case "(($ac_try" in
15615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15619 $as_echo "$ac_try_echo") >&5
15620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } >/dev/null && {
15627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15631 cat >>confdefs.h <<\_ACEOF
15632 #define HAVE__VA_ARGS__MACRO 1
15636 $as_echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15642 rm -f conftest.err conftest.$ac_ext
15645 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
15646 $as_echo_n "checking for sig_atomic_t type... " >&6; }
15647 if test "${libreplace_cv_sig_atomic_t+set}" = set; then
15648 $as_echo_n "(cached) " >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 #include <sys/types.h>
15660 #include <stdlib.h>
15661 #include <stddef.h>
15663 #include <signal.h>
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15676 *) ac_try_echo
=$ac_try;;
15678 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15679 $as_echo "$ac_try_echo") >&5
15680 (eval "$ac_compile") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1
>conftest.err
15684 cat conftest.err
>&5
15685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest.
$ac_objext; then
15690 libreplace_cv_sig_atomic_t
=yes
15692 $as_echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.
$ac_ext >&5
15695 libreplace_cv_sig_atomic_t
=no
15698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15700 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_sig_atomic_t" >&5
15701 $as_echo "$libreplace_cv_sig_atomic_t" >&6; }
15702 if test x
"$libreplace_cv_sig_atomic_t" = x
"yes"; then
15704 cat >>confdefs.h
<<\_ACEOF
15705 #define HAVE_SIG_ATOMIC_T_TYPE 1
15711 { $as_echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
15712 $as_echo_n "checking for O_DIRECT flag to open(2)... " >&6; }
15713 if test "${libreplace_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
15714 $as_echo_n "(cached) " >&6
15717 cat >conftest.
$ac_ext <<_ACEOF
15720 cat confdefs.h
>>conftest.
$ac_ext
15721 cat >>conftest.
$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 #include <unistd.h>
15725 #ifdef HAVE_FCNTL_H
15731 int fd = open("/dev/null", O_DIRECT);
15736 rm -f conftest.
$ac_objext
15737 if { (ac_try
="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15743 $as_echo "$ac_try_echo") >&5
15744 (eval "$ac_compile") 2>conftest.er1
15746 grep -v '^ *+' conftest.er1 >conftest.err
15748 cat conftest.err >&5
15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } && {
15751 test -z "$ac_c_werror_flag" ||
15752 test ! -s conftest.err
15753 } && test -s conftest.$ac_objext; then
15754 libreplace_cv_HAVE_OPEN_O_DIRECT=yes
15756 $as_echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 libreplace_cv_HAVE_OPEN_O_DIRECT=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_OPEN_O_DIRECT" >&5
15765 $as_echo "$libreplace_cv_HAVE_OPEN_O_DIRECT" >&6; }
15766 if test x"$libreplace_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_OPEN_O_DIRECT 1
15775 { $as_echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
15776 $as_echo_n "checking that the C compiler understands volatile... " >&6; }
15777 if test "${libreplace_cv_volatile+set}" = set; then
15778 $as_echo_n "(cached) " >&6
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 #include <sys/types.h>
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15800 *) ac_try_echo
=$ac_try;;
15802 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15803 $as_echo "$ac_try_echo") >&5
15804 (eval "$ac_compile") 2>conftest.er1
15806 grep -v '^ *+' conftest.er1
>conftest.err
15808 cat conftest.err
>&5
15809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } && {
15811 test -z "$ac_c_werror_flag" ||
15812 test ! -s conftest.err
15813 } && test -s conftest.
$ac_objext; then
15814 libreplace_cv_volatile
=yes
15816 $as_echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.
$ac_ext >&5
15819 libreplace_cv_volatile
=no
15822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15824 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_volatile" >&5
15825 $as_echo "$libreplace_cv_volatile" >&6; }
15826 if test x
"$libreplace_cv_volatile" = x
"yes"; then
15828 cat >>confdefs.h
<<\_ACEOF
15829 #define HAVE_VOLATILE 1
15840 ac_header_dirent
=no
15841 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
15842 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15843 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15844 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15845 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15846 $as_echo_n "(cached) " >&6
15848 cat >conftest.
$ac_ext <<_ACEOF
15851 cat confdefs.h
>>conftest.
$ac_ext
15852 cat >>conftest.
$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <sys/types.h>
15866 rm -f conftest.
$ac_objext
15867 if { (ac_try
="$ac_compile"
15868 case "(($ac_try" in
15869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 $as_echo "$ac_try_echo") >&5
15874 (eval "$ac_compile") 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && {
15881 test -z "$ac_c_werror_flag" ||
15882 test ! -s conftest.err
15883 } && test -s conftest.$ac_objext; then
15884 eval "$as_ac_Header=yes"
15886 $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 eval "$as_ac_Header=no"
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 ac_res=`eval 'as_val=${'$as_ac_Header'}
15895 $as_echo "$as_val"'`
15896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15897 $as_echo "$ac_res" >&6; }
15898 as_val=`eval 'as_val=${'$as_ac_Header'}
15899 $as_echo "$as_val"'`
15900 if test "x$as_val" = x""yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
15905 ac_header_dirent=$ac_hdr; break
15909 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15910 if test $ac_header_dirent = dirent.h; then
15911 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
15912 $as_echo_n "checking for library containing opendir... " >&6; }
15913 if test "${ac_cv_search_opendir+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15916 ac_func_search_save_LIBS=$LIBS
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15939 for ac_lib in '' dir; do
15940 if test -z "$ac_lib"; then
15941 ac_res="none required"
15944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (ac_try="$ac_link"
15948 case "(($ac_try" in
15949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15950 *) ac_try_echo
=$ac_try;;
15952 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15953 $as_echo "$ac_try_echo") >&5
15954 (eval "$ac_link") 2>conftest.er1
15956 grep -v '^ *+' conftest.er1
>conftest.err
15958 cat conftest.err
>&5
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } && {
15961 test -z "$ac_c_werror_flag" ||
15962 test ! -s conftest.err
15963 } && test -s conftest
$ac_exeext && {
15964 test "$cross_compiling" = yes ||
15965 $as_test_x conftest
$ac_exeext
15967 ac_cv_search_opendir
=$ac_res
15969 $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.
$ac_ext >&5
15975 rm -rf conftest.dSYM
15976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15978 if test "${ac_cv_search_opendir+set}" = set; then
15982 if test "${ac_cv_search_opendir+set}" = set; then
15985 ac_cv_search_opendir
=no
15987 rm conftest.
$ac_ext
15988 LIBS
=$ac_func_search_save_LIBS
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15991 $as_echo "$ac_cv_search_opendir" >&6; }
15992 ac_res
=$ac_cv_search_opendir
15993 if test "$ac_res" != no
; then
15994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15999 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16000 $as_echo_n "checking for library containing opendir... " >&6; }
16001 if test "${ac_cv_search_opendir+set}" = set; then
16002 $as_echo_n "(cached) " >&6
16004 ac_func_search_save_LIBS
=$LIBS
16005 cat >conftest.
$ac_ext <<_ACEOF
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16027 for ac_lib
in '' x
; do
16028 if test -z "$ac_lib"; then
16029 ac_res
="none required"
16032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16034 rm -f conftest.
$ac_objext conftest
$ac_exeext
16035 if { (ac_try
="$ac_link"
16036 case "(($ac_try" in
16037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_link") 2>conftest.er1
16044 grep -v '^ *+' conftest.er1 >conftest.err
16046 cat conftest.err >&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest$ac_exeext && {
16052 test "$cross_compiling" = yes ||
16053 $as_test_x conftest$ac_exeext
16055 ac_cv_search_opendir=$ac_res
16057 $as_echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16063 rm -rf conftest.dSYM
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16066 if test "${ac_cv_search_opendir+set}" = set; then
16070 if test "${ac_cv_search_opendir+set}" = set; then
16073 ac_cv_search_opendir=no
16075 rm conftest.$ac_ext
16076 LIBS=$ac_func_search_save_LIBS
16078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16079 $as_echo "$ac_cv_search_opendir" >&6; }
16080 ac_res=$ac_cv_search_opendir
16081 if test "$ac_res" != no; then
16082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16096 for ac_header in fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
16098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16101 $as_echo_n "checking for $ac_header... " >&6; }
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 $as_echo_n "(cached) " >&6
16105 ac_res=`eval 'as_val=${'$as_ac_Header'}
16106 $as_echo "$as_val"'`
16107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16108 $as_echo "$ac_res" >&6; }
16110 # Is the header compilable?
16111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16112 $as_echo_n "checking $ac_header usability... " >&6; }
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 $ac_includes_default
16120 #include <$ac_header>
16122 rm -f conftest.$ac_objext
16123 if { (ac_try="$ac_compile"
16124 case "(($ac_try" in
16125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16126 *) ac_try_echo
=$ac_try;;
16128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16129 $as_echo "$ac_try_echo") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1
>conftest.err
16134 cat conftest.err
>&5
16135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest.
$ac_objext; then
16140 ac_header_compiler
=yes
16142 $as_echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.
$ac_ext >&5
16145 ac_header_compiler
=no
16148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 $as_echo "$ac_header_compiler" >&6; }
16152 # Is the header present?
16153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154 $as_echo_n "checking $ac_header presence... " >&6; }
16155 cat >conftest.
$ac_ext <<_ACEOF
16158 cat confdefs.h
>>conftest.
$ac_ext
16159 cat >>conftest.
$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <$ac_header>
16163 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16164 case "(($ac_try" in
16165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null && {
16177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16180 ac_header_preproc=yes
16182 $as_echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_preproc=no
16188 rm -f conftest.err conftest.$ac_ext
16189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 $as_echo "$ac_header_preproc" >&6; }
16192 # So? What about this header?
16193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16218 $as_echo_n "checking for $ac_header... " >&6; }
16219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16220 $as_echo_n "(cached) " >&6
16222 eval "$as_ac_Header=\$ac_header_preproc"
16224 ac_res=`eval 'as_val=${'$as_ac_Header'}
16225 $as_echo "$as_val"'`
16226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16227 $as_echo "$ac_res" >&6; }
16230 as_val=`eval 'as_val=${'$as_ac_Header'}
16231 $as_echo "$as_val"'`
16232 if test "x$as_val" = x""yes; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16243 for ac_header in sys/acl.h acl/libacl.h
16245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 $as_echo_n "checking for $ac_header... " >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250 $as_echo_n "(cached) " >&6
16252 ac_res=`eval 'as_val=${'$as_ac_Header'}
16253 $as_echo "$as_val"'`
16254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16255 $as_echo "$ac_res" >&6; }
16257 # Is the header compilable?
16258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16259 $as_echo_n "checking $ac_header usability... " >&6; }
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 $ac_includes_default
16267 #include <$ac_header>
16269 rm -f conftest.$ac_objext
16270 if { (ac_try="$ac_compile"
16271 case "(($ac_try" in
16272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16273 *) ac_try_echo
=$ac_try;;
16275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16276 $as_echo "$ac_try_echo") >&5
16277 (eval "$ac_compile") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1
>conftest.err
16281 cat conftest.err
>&5
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && {
16284 test -z "$ac_c_werror_flag" ||
16285 test ! -s conftest.err
16286 } && test -s conftest.
$ac_objext; then
16287 ac_header_compiler
=yes
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.
$ac_ext >&5
16292 ac_header_compiler
=no
16295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297 $as_echo "$ac_header_compiler" >&6; }
16299 # Is the header present?
16300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301 $as_echo_n "checking $ac_header presence... " >&6; }
16302 cat >conftest.
$ac_ext <<_ACEOF
16305 cat confdefs.h
>>conftest.
$ac_ext
16306 cat >>conftest.
$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 #include <$ac_header>
16310 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16311 case "(($ac_try" in
16312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16316 $as_echo "$ac_try_echo") >&5
16317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null && {
16324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16325 test ! -s conftest.err
16327 ac_header_preproc=yes
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_header_preproc=no
16335 rm -f conftest.err conftest.$ac_ext
16336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16337 $as_echo "$ac_header_preproc" >&6; }
16339 # So? What about this header?
16340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16346 ac_header_preproc=yes
16349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16365 $as_echo_n "checking for $ac_header... " >&6; }
16366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16367 $as_echo_n "(cached) " >&6
16369 eval "$as_ac_Header=\$ac_header_preproc"
16371 ac_res=`eval 'as_val=${'$as_ac_Header'}
16372 $as_echo "$as_val"'`
16373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16374 $as_echo "$ac_res" >&6; }
16377 as_val=`eval 'as_val=${'$as_ac_Header'}
16378 $as_echo "$as_val"'`
16379 if test "x$as_val" = x""yes; then
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16391 for ac_header in sys/select.h
16393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16396 $as_echo_n "checking for $ac_header... " >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 $as_echo_n "(cached) " >&6
16400 ac_res=`eval 'as_val=${'$as_ac_Header'}
16401 $as_echo "$as_val"'`
16402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16403 $as_echo "$ac_res" >&6; }
16405 # Is the header compilable?
16406 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16407 $as_echo_n "checking $ac_header usability... " >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 $ac_includes_default
16415 #include <$ac_header>
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16421 *) ac_try_echo
=$ac_try;;
16423 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1
>conftest.err
16429 cat conftest.err
>&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest.
$ac_objext; then
16435 ac_header_compiler
=yes
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.
$ac_ext >&5
16440 ac_header_compiler
=no
16443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16444 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 $as_echo "$ac_header_compiler" >&6; }
16447 # Is the header present?
16448 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 $as_echo_n "checking $ac_header presence... " >&6; }
16450 cat >conftest.
$ac_ext <<_ACEOF
16453 cat confdefs.h
>>conftest.
$ac_ext
16454 cat >>conftest.
$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <$ac_header>
16458 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16459 case "(($ac_try" in
16460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16464 $as_echo "$ac_try_echo") >&5
16465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467 grep -v '^ *+' conftest.er1 >conftest.err
16469 cat conftest.err >&5
16470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null && {
16472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16475 ac_header_preproc=yes
16477 $as_echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_header_preproc=no
16483 rm -f conftest.err conftest.$ac_ext
16484 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 $as_echo "$ac_header_preproc" >&6; }
16487 # So? What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494 ac_header_preproc=yes
16497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16500 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16504 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16513 $as_echo_n "checking for $ac_header... " >&6; }
16514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16515 $as_echo_n "(cached) " >&6
16517 eval "$as_ac_Header=\$ac_header_preproc"
16519 ac_res=`eval 'as_val=${'$as_ac_Header'}
16520 $as_echo "$as_val"'`
16521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16522 $as_echo "$ac_res" >&6; }
16525 as_val=`eval 'as_val=${'$as_ac_Header'}
16526 $as_echo "$as_val"'`
16527 if test "x$as_val" = x""yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16540 for ac_header in sys/time.h utime.h
16542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16545 $as_echo_n "checking for $ac_header... " >&6; }
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 $as_echo_n "(cached) " >&6
16549 ac_res=`eval 'as_val=${'$as_ac_Header'}
16550 $as_echo "$as_val"'`
16551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16552 $as_echo "$ac_res" >&6; }
16554 # Is the header compilable?
16555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16556 $as_echo_n "checking $ac_header usability... " >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 $ac_includes_default
16564 #include <$ac_header>
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16570 *) ac_try_echo
=$ac_try;;
16572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16573 $as_echo "$ac_try_echo") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1
>conftest.err
16578 cat conftest.err
>&5
16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest.
$ac_objext; then
16584 ac_header_compiler
=yes
16586 $as_echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16589 ac_header_compiler
=no
16592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16594 $as_echo "$ac_header_compiler" >&6; }
16596 # Is the header present?
16597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16598 $as_echo_n "checking $ac_header presence... " >&6; }
16599 cat >conftest.
$ac_ext <<_ACEOF
16602 cat confdefs.h
>>conftest.
$ac_ext
16603 cat >>conftest.
$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <$ac_header>
16607 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16608 case "(($ac_try" in
16609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16613 $as_echo "$ac_try_echo") >&5
16614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } >/dev/null && {
16621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16624 ac_header_preproc=yes
16626 $as_echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 $as_echo "$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 $as_echo_n "checking for $ac_header... " >&6; }
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 $as_echo_n "(cached) " >&6
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 ac_res=`eval 'as_val=${'$as_ac_Header'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16671 $as_echo "$ac_res" >&6; }
16674 as_val=`eval 'as_val=${'$as_ac_Header'}
16675 $as_echo "$as_val"'`
16676 if test "x$as_val" = x""yes; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16685 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16686 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16687 if test "${ac_cv_header_time+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 #include <sys/types.h>
16697 #include <sys/time.h>
16703 if ((struct tm *) 0)
16709 rm -f conftest.$ac_objext
16710 if { (ac_try="$ac_compile"
16711 case "(($ac_try" in
16712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16713 *) ac_try_echo
=$ac_try;;
16715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16716 $as_echo "$ac_try_echo") >&5
16717 (eval "$ac_compile") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1
>conftest.err
16721 cat conftest.err
>&5
16722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest.
$ac_objext; then
16727 ac_cv_header_time
=yes
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.
$ac_ext >&5
16732 ac_cv_header_time
=no
16735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16738 $as_echo "$ac_cv_header_time" >&6; }
16739 if test $ac_cv_header_time = yes; then
16741 cat >>confdefs.h
<<\_ACEOF
16742 #define TIME_WITH_SYS_TIME 1
16749 for ac_func
in utime utimes
16751 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16753 $as_echo_n "checking for $ac_func... " >&6; }
16754 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16755 $as_echo_n "(cached) " >&6
16757 cat >conftest.
$ac_ext <<_ACEOF
16760 cat confdefs.h
>>conftest.
$ac_ext
16761 cat >>conftest.
$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define $ac_func innocuous_$ac_func
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char $ac_func (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16773 # include <limits.h>
16775 # include <assert.h>
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_$ac_func || defined __stub___$ac_func
16797 return $ac_func ();
16802 rm -f conftest.
$ac_objext conftest
$ac_exeext
16803 if { (ac_try
="$ac_link"
16804 case "(($ac_try" in
16805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext && {
16820 test "$cross_compiling" = yes ||
16821 $as_test_x conftest$ac_exeext
16823 eval "$as_ac_var=yes"
16825 $as_echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 eval "$as_ac_var=no"
16831 rm -rf conftest.dSYM
16832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16833 conftest$ac_exeext conftest.$ac_ext
16835 ac_res=`eval 'as_val=${'$as_ac_var'}
16836 $as_echo "$as_val"'`
16837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16838 $as_echo "$ac_res" >&6; }
16839 as_val=`eval 'as_val=${'$as_ac_var'}
16840 $as_echo "$as_val"'`
16841 if test "x$as_val" = x""yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16851 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
16852 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16853 if test "${ac_cv_header_sys_wait_h+set}" = set; then
16854 $as_echo_n "(cached) " >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <sys/types.h>
16863 #include <sys/wait.h>
16864 #ifndef WEXITSTATUS
16865 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16868 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16876 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16881 rm -f conftest.$ac_objext
16882 if { (ac_try="$ac_compile"
16883 case "(($ac_try" in
16884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16885 *) ac_try_echo
=$ac_try;;
16887 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16888 $as_echo "$ac_try_echo") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1
>conftest.err
16893 cat conftest.err
>&5
16894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } && {
16896 test -z "$ac_c_werror_flag" ||
16897 test ! -s conftest.err
16898 } && test -s conftest.
$ac_objext; then
16899 ac_cv_header_sys_wait_h
=yes
16901 $as_echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.
$ac_ext >&5
16904 ac_cv_header_sys_wait_h
=no
16907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16909 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
16910 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16911 if test $ac_cv_header_sys_wait_h = yes; then
16913 cat >>confdefs.h
<<\_ACEOF
16914 #define HAVE_SYS_WAIT_H 1
16922 for ac_header
in sys
/capability.h
16924 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16925 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 $as_echo_n "checking for $ac_header... " >&6; }
16928 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16929 $as_echo_n "(cached) " >&6
16931 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16932 $as_echo "$as_val"'`
16933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16934 $as_echo "$ac_res" >&6; }
16936 # Is the header compilable?
16937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16938 $as_echo_n "checking $ac_header usability... " >&6; }
16939 cat >conftest.
$ac_ext <<_ACEOF
16942 cat confdefs.h
>>conftest.
$ac_ext
16943 cat >>conftest.
$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <$ac_header>
16948 rm -f conftest.
$ac_objext
16949 if { (ac_try
="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956 (eval "$ac_compile") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest.$ac_objext; then
16966 ac_header_compiler=yes
16968 $as_echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_header_compiler=no
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16976 $as_echo "$ac_header_compiler" >&6; }
16978 # Is the header present?
16979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16980 $as_echo_n "checking $ac_header presence... " >&6; }
16981 cat >conftest.$ac_ext <<_ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 #include <$ac_header>
16989 if { (ac_try="$ac_cpp conftest.$ac_ext"
16990 case "(($ac_try" in
16991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16992 *) ac_try_echo
=$ac_try;;
16994 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16995 $as_echo "$ac_try_echo") >&5
16996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16998 grep -v '^ *+' conftest.er1
>conftest.err
17000 cat conftest.err
>&5
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev
/null
&& {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17006 ac_header_preproc
=yes
17008 $as_echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.
$ac_ext >&5
17011 ac_header_preproc
=no
17014 rm -f conftest.err conftest.
$ac_ext
17015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 $as_echo "$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc
=yes
17028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 $as_echo_n "checking for $ac_header... " >&6; }
17045 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 $as_echo_n "(cached) " >&6
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17051 $as_echo "$as_val"'`
17052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17053 $as_echo "$ac_res" >&6; }
17056 as_val
=`eval 'as_val=${'$as_ac_Header'}
17057 $as_echo "$as_val"'`
17058 if test "x$as_val" = x
""yes; then
17059 cat >>confdefs.h
<<_ACEOF
17060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17070 { $as_echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
17071 $as_echo_n "checking for broken RedHat 7.2 system header files... " >&6; }
17072 if test "${libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
17073 $as_echo_n "(cached) " >&6
17076 cat >conftest.
$ac_ext <<_ACEOF
17079 cat confdefs.h
>>conftest.
$ac_ext
17080 cat >>conftest.
$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 #ifdef HAVE_SYS_VFS_H
17084 #include <sys/vfs.h>
17086 #ifdef HAVE_SYS_CAPABILITY_H
17087 #include <sys/capability.h>
17100 rm -f conftest.
$ac_objext
17101 if { (ac_try
="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17107 $as_echo "$ac_try_echo") >&5
17108 (eval "$ac_compile") 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && {
17115 test -z "$ac_c_werror_flag" ||
17116 test ! -s conftest.err
17117 } && test -s conftest.$ac_objext; then
17118 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
17130 $as_echo "$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6; }
17131 if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
17133 cat >>confdefs.h <<\_ACEOF
17134 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
17139 { $as_echo "$as_me:$LINENO: checking for broken RHEL5 sys/capability.h" >&5
17140 $as_echo_n "checking for broken RHEL5 sys/capability.h... " >&6; }
17141 if test "${libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER+set}" = set; then
17142 $as_echo_n "(cached) " >&6
17145 cat >conftest.$ac_ext <<_ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17152 #ifdef HAVE_SYS_CAPABILITY_H
17153 #include <sys/capability.h>
17155 #include <linux/types.h>
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17171 *) ac_try_echo
=$ac_try;;
17173 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175 (eval "$ac_compile") 2>conftest.er1
17177 grep -v '^ *+' conftest.er1
>conftest.err
17179 cat conftest.err
>&5
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest.
$ac_objext; then
17185 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER
=no
17187 $as_echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.
$ac_ext >&5
17190 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER
=yes
17194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17196 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&5
17197 $as_echo "$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&6; }
17198 if test x
"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x
"yes"; then
17200 cat >>confdefs.h
<<\_ACEOF
17201 #define BROKEN_RHEL5_SYS_CAP_HEADER 1
17216 for ac_header
in grp.h sys
/id.h compat.h shadow.h sys
/priv.h
pwd.h sys
/security.h
17218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17221 $as_echo_n "checking for $ac_header... " >&6; }
17222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17223 $as_echo_n "(cached) " >&6
17225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17226 $as_echo "$as_val"'`
17227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17228 $as_echo "$ac_res" >&6; }
17230 # Is the header compilable?
17231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17232 $as_echo_n "checking $ac_header usability... " >&6; }
17233 cat >conftest.
$ac_ext <<_ACEOF
17236 cat confdefs.h
>>conftest.
$ac_ext
17237 cat >>conftest.
$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 $ac_includes_default
17240 #include <$ac_header>
17242 rm -f conftest.
$ac_objext
17243 if { (ac_try
="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17249 $as_echo "$ac_try_echo") >&5
17250 (eval "$ac_compile") 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest.$ac_objext; then
17260 ac_header_compiler=yes
17262 $as_echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_header_compiler=no
17268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17270 $as_echo "$ac_header_compiler" >&6; }
17272 # Is the header present?
17273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17274 $as_echo_n "checking $ac_header presence... " >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 #include <$ac_header>
17283 if { (ac_try="$ac_cpp conftest.$ac_ext"
17284 case "(($ac_try" in
17285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17286 *) ac_try_echo
=$ac_try;;
17288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17292 grep -v '^ *+' conftest.er1
>conftest.err
17294 cat conftest.err
>&5
17295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } >/dev
/null
&& {
17297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17300 ac_header_preproc
=yes
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.
$ac_ext >&5
17305 ac_header_preproc
=no
17308 rm -f conftest.err conftest.
$ac_ext
17309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17310 $as_echo "$ac_header_preproc" >&6; }
17312 # So? What about this header?
17313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17319 ac_header_preproc
=yes
17322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17338 $as_echo_n "checking for $ac_header... " >&6; }
17339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17340 $as_echo_n "(cached) " >&6
17342 eval "$as_ac_Header=\$ac_header_preproc"
17344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17345 $as_echo "$as_val"'`
17346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17347 $as_echo "$ac_res" >&6; }
17350 as_val
=`eval 'as_val=${'$as_ac_Header'}
17351 $as_echo "$as_val"'`
17352 if test "x$as_val" = x
""yes; then
17353 cat >>confdefs.h
<<_ACEOF
17354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17364 for ac_func
in getpwnam_r getpwuid_r getpwent_r
17366 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 $as_echo_n "checking for $ac_func... " >&6; }
17369 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17370 $as_echo_n "(cached) " >&6
17372 cat >conftest.
$ac_ext <<_ACEOF
17375 cat confdefs.h
>>conftest.
$ac_ext
17376 cat >>conftest.
$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380 #define $ac_func innocuous_$ac_func
17382 /* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17388 # include <limits.h>
17390 # include <assert.h>
17395 /* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17402 /* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405 #if defined __stub_$ac_func || defined __stub___$ac_func
17412 return $ac_func ();
17417 rm -f conftest.
$ac_objext conftest
$ac_exeext
17418 if { (ac_try
="$ac_link"
17419 case "(($ac_try" in
17420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17424 $as_echo "$ac_try_echo") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext && {
17435 test "$cross_compiling" = yes ||
17436 $as_test_x conftest$ac_exeext
17438 eval "$as_ac_var=yes"
17440 $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 eval "$as_ac_var=no"
17446 rm -rf conftest.dSYM
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448 conftest$ac_exeext conftest.$ac_ext
17450 ac_res=`eval 'as_val=${'$as_ac_var'}
17451 $as_echo "$as_val"'`
17452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17453 $as_echo "$ac_res" >&6; }
17454 as_val=`eval 'as_val=${'$as_ac_var'}
17455 $as_echo "$as_val"'`
17456 if test "x$as_val" = x""yes; then
17457 cat >>confdefs.h <<_ACEOF
17458 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17465 { $as_echo "$as_me:$LINENO: checking for getpwent_r declaration" >&5
17466 $as_echo_n "checking for getpwent_r declaration... " >&6; }
17467 if test "${ac_cv_have_getpwent_r_decl+set}" = set; then
17468 $as_echo_n "(cached) " >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 #include <unistd.h>
17484 int i = (int)getpwent_r
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17493 *) ac_try_echo
=$ac_try;;
17495 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497 (eval "$ac_compile") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1
>conftest.err
17501 cat conftest.err
>&5
17502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && {
17504 test -z "$ac_c_werror_flag" ||
17505 test ! -s conftest.err
17506 } && test -s conftest.
$ac_objext; then
17507 ac_cv_have_getpwent_r_decl
=yes
17509 $as_echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.
$ac_ext >&5
17512 ac_cv_have_getpwent_r_decl
=no
17515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17517 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getpwent_r_decl" >&5
17518 $as_echo "$ac_cv_have_getpwent_r_decl" >&6; }
17519 if test x
"$ac_cv_have_getpwent_r_decl" = x
"yes"; then
17521 cat >>confdefs.h
<<\_ACEOF
17522 #define HAVE_GETPWENT_R_DECL 1
17527 { $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)" >&5
17528 $as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)... " >&6; }
17529 if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_+set}" = set; then
17530 $as_echo_n "(cached) " >&6
17532 cat >conftest.
$ac_ext <<_ACEOF
17535 cat confdefs.h
>>conftest.
$ac_ext
17536 cat >>conftest.
$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17539 $ac_includes_default
17541 #include <unistd.h>
17544 struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)
17547 #ifndef HAVE_GETPWENT_R_DECL
17548 #error missing getpwent_r prototype
17555 rm -f conftest.
$ac_objext
17556 if { (ac_try
="$ac_compile"
17557 case "(($ac_try" in
17558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17562 $as_echo "$ac_try_echo") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.$ac_objext; then
17574 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=yes
17577 $as_echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&5
17589 $as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&6; }
17590 if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_ = yes; then
17593 cat >>confdefs.h <<\_ACEOF
17594 #define SOLARIS_GETPWENT_R 1
17601 { $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)" >&5
17602 $as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)... " >&6; }
17603 if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_+set}" = set; then
17604 $as_echo_n "(cached) " >&6
17606 cat >conftest.$ac_ext <<_ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17613 $ac_includes_default
17615 #include <unistd.h>
17618 struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)
17621 #ifndef HAVE_GETPWENT_R_DECL
17622 #error missing getpwent_r prototype
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17633 *) ac_try_echo
=$ac_try;;
17635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17636 $as_echo "$ac_try_echo") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1
>conftest.err
17641 cat conftest.err
>&5
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.
$ac_objext; then
17648 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_
=yes
17651 $as_echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.
$ac_ext >&5
17655 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_
=no
17659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17662 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&5
17663 $as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&6; }
17664 if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_ = yes; then
17667 cat >>confdefs.h
<<\_ACEOF
17668 #define SOLARIS_GETPWENT_R 1
17678 for ac_func
in getgrnam_r getgrgid_r getgrent_r
17680 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 $as_echo_n "checking for $ac_func... " >&6; }
17683 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 $as_echo_n "(cached) " >&6
17686 cat >conftest.
$ac_ext <<_ACEOF
17689 cat confdefs.h
>>conftest.
$ac_ext
17690 cat >>conftest.
$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define $ac_func innocuous_$ac_func
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17702 # include <limits.h>
17704 # include <assert.h>
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17726 return $ac_func ();
17731 rm -f conftest.
$ac_objext conftest
$ac_exeext
17732 if { (ac_try
="$ac_link"
17733 case "(($ac_try" in
17734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739 (eval "$ac_link") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest$ac_exeext && {
17749 test "$cross_compiling" = yes ||
17750 $as_test_x conftest$ac_exeext
17752 eval "$as_ac_var=yes"
17754 $as_echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 eval "$as_ac_var=no"
17760 rm -rf conftest.dSYM
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762 conftest$ac_exeext conftest.$ac_ext
17764 ac_res=`eval 'as_val=${'$as_ac_var'}
17765 $as_echo "$as_val"'`
17766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17767 $as_echo "$ac_res" >&6; }
17768 as_val=`eval 'as_val=${'$as_ac_var'}
17769 $as_echo "$as_val"'`
17770 if test "x$as_val" = x""yes; then
17771 cat >>confdefs.h <<_ACEOF
17772 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17779 { $as_echo "$as_me:$LINENO: checking for getgrent_r declaration" >&5
17780 $as_echo_n "checking for getgrent_r declaration... " >&6; }
17781 if test "${ac_cv_have_getgrent_r_decl+set}" = set; then
17782 $as_echo_n "(cached) " >&6
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17792 #include <unistd.h>
17798 int i = (int)getgrent_r
17803 rm -f conftest.$ac_objext
17804 if { (ac_try="$ac_compile"
17805 case "(($ac_try" in
17806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17807 *) ac_try_echo
=$ac_try;;
17809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17810 $as_echo "$ac_try_echo") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17813 grep -v '^ *+' conftest.er1
>conftest.err
17815 cat conftest.err
>&5
17816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest.
$ac_objext; then
17821 ac_cv_have_getgrent_r_decl
=yes
17823 $as_echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.
$ac_ext >&5
17826 ac_cv_have_getgrent_r_decl
=no
17829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17831 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getgrent_r_decl" >&5
17832 $as_echo "$ac_cv_have_getgrent_r_decl" >&6; }
17833 if test x
"$ac_cv_have_getgrent_r_decl" = x
"yes"; then
17835 cat >>confdefs.h
<<\_ACEOF
17836 #define HAVE_GETGRENT_R_DECL 1
17841 { $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)" >&5
17842 $as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)... " >&6; }
17843 if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_+set}" = set; then
17844 $as_echo_n "(cached) " >&6
17846 cat >conftest.
$ac_ext <<_ACEOF
17849 cat confdefs.h
>>conftest.
$ac_ext
17850 cat >>conftest.
$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17853 $ac_includes_default
17855 #include <unistd.h>
17858 struct group *getgrent_r(struct group *src, char *buf, int buflen)
17861 #ifndef HAVE_GETGRENT_R_DECL
17862 #error missing getgrent_r prototype
17869 rm -f conftest.
$ac_objext
17870 if { (ac_try
="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17876 $as_echo "$ac_try_echo") >&5
17877 (eval "$ac_compile") 2>conftest.er1
17879 grep -v '^ *+' conftest.er1 >conftest.err
17881 cat conftest.err >&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest.$ac_objext; then
17888 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=yes
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=no
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&5
17903 $as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&6; }
17904 if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_ = yes; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define SOLARIS_GETGRENT_R 1
17916 { $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)" >&5
17917 $as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)... " >&6; }
17918 if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_+set}" = set; then
17919 $as_echo_n "(cached) " >&6
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 $ac_includes_default
17930 #include <unistd.h>
17933 struct group *getgrent_r(struct group *src, char *buf, size_t buflen)
17936 #ifndef HAVE_GETGRENT_R_DECL
17937 #error missing getgrent_r prototype
17944 rm -f conftest.$ac_objext
17945 if { (ac_try="$ac_compile"
17946 case "(($ac_try" in
17947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17948 *) ac_try_echo
=$ac_try;;
17950 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17951 $as_echo "$ac_try_echo") >&5
17952 (eval "$ac_compile") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1
>conftest.err
17956 cat conftest.err
>&5
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest.
$ac_objext; then
17963 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_
=yes
17966 $as_echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.
$ac_ext >&5
17970 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_
=no
17974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17977 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&5
17978 $as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&6; }
17979 if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_ = yes; then
17982 cat >>confdefs.h
<<\_ACEOF
17983 #define SOLARIS_GETGRENT_R 1
17991 for ac_func
in getgrouplist
17993 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 $as_echo_n "checking for $ac_func... " >&6; }
17996 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 $as_echo_n "(cached) " >&6
17999 cat >conftest.
$ac_ext <<_ACEOF
18002 cat confdefs.h
>>conftest.
$ac_ext
18003 cat >>conftest.
$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18015 # include <limits.h>
18017 # include <assert.h>
18022 /* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18039 return $ac_func ();
18044 rm -f conftest.
$ac_objext conftest
$ac_exeext
18045 if { (ac_try
="$ac_link"
18046 case "(($ac_try" in
18047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18051 $as_echo "$ac_try_echo") >&5
18052 (eval "$ac_link") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest$ac_exeext && {
18062 test "$cross_compiling" = yes ||
18063 $as_test_x conftest$ac_exeext
18065 eval "$as_ac_var=yes"
18067 $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 eval "$as_ac_var=no"
18073 rm -rf conftest.dSYM
18074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18075 conftest$ac_exeext conftest.$ac_ext
18077 ac_res=`eval 'as_val=${'$as_ac_var'}
18078 $as_echo "$as_val"'`
18079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 as_val=`eval 'as_val=${'$as_ac_var'}
18082 $as_echo "$as_val"'`
18083 if test "x$as_val" = x""yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18096 for ac_header in ctype.h locale.h langinfo.h
18098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18101 $as_echo_n "checking for $ac_header... " >&6; }
18102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18103 $as_echo_n "(cached) " >&6
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18110 # Is the header compilable?
18111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18112 $as_echo_n "checking $ac_header usability... " >&6; }
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 $ac_includes_default
18120 #include <$ac_header>
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18126 *) ac_try_echo
=$ac_try;;
18128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_compile") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1
>conftest.err
18134 cat conftest.err
>&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest.
$ac_objext; then
18140 ac_header_compiler
=yes
18142 $as_echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.
$ac_ext >&5
18145 ac_header_compiler
=no
18148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18150 $as_echo "$ac_header_compiler" >&6; }
18152 # Is the header present?
18153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18154 $as_echo_n "checking $ac_header presence... " >&6; }
18155 cat >conftest.
$ac_ext <<_ACEOF
18158 cat confdefs.h
>>conftest.
$ac_ext
18159 cat >>conftest.
$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <$ac_header>
18163 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18164 case "(($ac_try" in
18165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18180 ac_header_preproc=yes
18182 $as_echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18190 $as_echo "$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18199 ac_header_preproc=yes
18202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18218 $as_echo_n "checking for $ac_header... " >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 $as_echo_n "(cached) " >&6
18222 eval "$as_ac_Header=\$ac_header_preproc"
18224 ac_res=`eval 'as_val=${'$as_ac_Header'}
18225 $as_echo "$as_val"'`
18226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18227 $as_echo "$ac_res" >&6; }
18230 as_val=`eval 'as_val=${'$as_ac_Header'}
18231 $as_echo "$as_val"'`
18232 if test "x$as_val" = x""yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18244 for ac_header in fnmatch.h
18246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 $as_echo_n "checking for $ac_header... " >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18251 $as_echo_n "(cached) " >&6
18253 ac_res=`eval 'as_val=${'$as_ac_Header'}
18254 $as_echo "$as_val"'`
18255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18256 $as_echo "$ac_res" >&6; }
18258 # Is the header compilable?
18259 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18260 $as_echo_n "checking $ac_header usability... " >&6; }
18261 cat >conftest.$ac_ext <<_ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 $ac_includes_default
18268 #include <$ac_header>
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18274 *) ac_try_echo
=$ac_try;;
18276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18277 $as_echo "$ac_try_echo") >&5
18278 (eval "$ac_compile") 2>conftest.er1
18280 grep -v '^ *+' conftest.er1
>conftest.err
18282 cat conftest.err
>&5
18283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest.
$ac_objext; then
18288 ac_header_compiler
=yes
18290 $as_echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.
$ac_ext >&5
18293 ac_header_compiler
=no
18296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18298 $as_echo "$ac_header_compiler" >&6; }
18300 # Is the header present?
18301 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18302 $as_echo_n "checking $ac_header presence... " >&6; }
18303 cat >conftest.
$ac_ext <<_ACEOF
18306 cat confdefs.h
>>conftest.
$ac_ext
18307 cat >>conftest.
$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <$ac_header>
18311 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18312 case "(($ac_try" in
18313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } >/dev/null && {
18325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18328 ac_header_preproc=yes
18330 $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_header_preproc=no
18336 rm -f conftest.err conftest.$ac_ext
18337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18338 $as_echo "$ac_header_preproc" >&6; }
18340 # So? What about this header?
18341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18344 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18347 ac_header_preproc=yes
18350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18351 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18353 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18355 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18357 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18361 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18366 $as_echo_n "checking for $ac_header... " >&6; }
18367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18368 $as_echo_n "(cached) " >&6
18370 eval "$as_ac_Header=\$ac_header_preproc"
18372 ac_res=`eval 'as_val=${'$as_ac_Header'}
18373 $as_echo "$as_val"'`
18374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18375 $as_echo "$ac_res" >&6; }
18378 as_val=`eval 'as_val=${'$as_ac_Header'}
18379 $as_echo "$as_val"'`
18380 if test "x$as_val" = x""yes; then
18381 cat >>confdefs.h <<_ACEOF
18382 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18394 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18399 $as_echo_n "checking for $ac_header... " >&6; }
18400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18401 $as_echo_n "(cached) " >&6
18403 ac_res=`eval 'as_val=${'$as_ac_Header'}
18404 $as_echo "$as_val"'`
18405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18406 $as_echo "$ac_res" >&6; }
18408 # Is the header compilable?
18409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18410 $as_echo_n "checking $ac_header usability... " >&6; }
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 $ac_includes_default
18418 #include <$ac_header>
18420 rm -f conftest.$ac_objext
18421 if { (ac_try="$ac_compile"
18422 case "(($ac_try" in
18423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18424 *) ac_try_echo
=$ac_try;;
18426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18427 $as_echo "$ac_try_echo") >&5
18428 (eval "$ac_compile") 2>conftest.er1
18430 grep -v '^ *+' conftest.er1
>conftest.err
18432 cat conftest.err
>&5
18433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } && {
18435 test -z "$ac_c_werror_flag" ||
18436 test ! -s conftest.err
18437 } && test -s conftest.
$ac_objext; then
18438 ac_header_compiler
=yes
18440 $as_echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.
$ac_ext >&5
18443 ac_header_compiler
=no
18446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 $as_echo "$ac_header_compiler" >&6; }
18450 # Is the header present?
18451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18452 $as_echo_n "checking $ac_header presence... " >&6; }
18453 cat >conftest.
$ac_ext <<_ACEOF
18456 cat confdefs.h
>>conftest.
$ac_ext
18457 cat >>conftest.
$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <$ac_header>
18461 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18462 case "(($ac_try" in
18463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18467 $as_echo "$ac_try_echo") >&5
18468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } >/dev/null && {
18475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18478 ac_header_preproc=yes
18480 $as_echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_header_preproc=no
18486 rm -f conftest.err conftest.$ac_ext
18487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 $as_echo "$ac_header_preproc" >&6; }
18490 # So? What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18497 ac_header_preproc=yes
18500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18516 $as_echo_n "checking for $ac_header... " >&6; }
18517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18518 $as_echo_n "(cached) " >&6
18520 eval "$as_ac_Header=\$ac_header_preproc"
18522 ac_res=`eval 'as_val=${'$as_ac_Header'}
18523 $as_echo "$as_val"'`
18524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18525 $as_echo "$ac_res" >&6; }
18528 as_val=`eval 'as_val=${'$as_ac_Header'}
18529 $as_echo "$as_val"'`
18530 if test "x$as_val" = x""yes; then
18531 cat >>confdefs.h <<_ACEOF
18532 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18544 for ac_header in termios.h termio.h sys/termio.h
18546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18549 $as_echo_n "checking for $ac_header... " >&6; }
18550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18551 $as_echo_n "(cached) " >&6
18553 ac_res=`eval 'as_val=${'$as_ac_Header'}
18554 $as_echo "$as_val"'`
18555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18556 $as_echo "$ac_res" >&6; }
18558 # Is the header compilable?
18559 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18560 $as_echo_n "checking $ac_header usability... " >&6; }
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18568 #include <$ac_header>
18570 rm -f conftest.$ac_objext
18571 if { (ac_try="$ac_compile"
18572 case "(($ac_try" in
18573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18574 *) ac_try_echo
=$ac_try;;
18576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18577 $as_echo "$ac_try_echo") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1
>conftest.err
18582 cat conftest.err
>&5
18583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest.
$ac_objext; then
18588 ac_header_compiler
=yes
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.
$ac_ext >&5
18593 ac_header_compiler
=no
18596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18598 $as_echo "$ac_header_compiler" >&6; }
18600 # Is the header present?
18601 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18602 $as_echo_n "checking $ac_header presence... " >&6; }
18603 cat >conftest.
$ac_ext <<_ACEOF
18606 cat confdefs.h
>>conftest.
$ac_ext
18607 cat >>conftest.
$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <$ac_header>
18611 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18612 case "(($ac_try" in
18613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18617 $as_echo "$ac_try_echo") >&5
18618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } >/dev/null && {
18625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18628 ac_header_preproc=yes
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ac_header_preproc=no
18636 rm -f conftest.err conftest.$ac_ext
18637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18638 $as_echo "$ac_header_preproc" >&6; }
18640 # So? What about this header?
18641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18644 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18647 ac_header_preproc=yes
18650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18651 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18653 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18655 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18657 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18661 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18666 $as_echo_n "checking for $ac_header... " >&6; }
18667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18668 $as_echo_n "(cached) " >&6
18670 eval "$as_ac_Header=\$ac_header_preproc"
18672 ac_res=`eval 'as_val=${'$as_ac_Header'}
18673 $as_echo "$as_val"'`
18674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18675 $as_echo "$ac_res" >&6; }
18678 as_val=`eval 'as_val=${'$as_ac_Header'}
18679 $as_echo "$as_val"'`
18680 if test "x$as_val" = x""yes; then
18681 cat >>confdefs.h <<_ACEOF
18682 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18694 libreplace_cv_dlfcn=no
18695 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18696 $as_echo_n "checking for library containing dlopen... " >&6; }
18697 if test "${ac_cv_search_dlopen+set}" = set; then
18698 $as_echo_n "(cached) " >&6
18700 ac_func_search_save_LIBS=$LIBS
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18708 /* Override any GCC internal prototype to avoid an error.
18709 Use char because int might match the return type of a GCC
18710 builtin and then its argument prototype would still apply. */
18723 for ac_lib in '' dl; do
18724 if test -z "$ac_lib"; then
18725 ac_res="none required"
18728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18734 *) ac_try_echo
=$ac_try;;
18736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_link") 2>conftest.er1
18740 grep -v '^ *+' conftest.er1
>conftest.err
18742 cat conftest.err
>&5
18743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest
$ac_exeext && {
18748 test "$cross_compiling" = yes ||
18749 $as_test_x conftest
$ac_exeext
18751 ac_cv_search_dlopen
=$ac_res
18753 $as_echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.
$ac_ext >&5
18759 rm -rf conftest.dSYM
18760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18762 if test "${ac_cv_search_dlopen+set}" = set; then
18766 if test "${ac_cv_search_dlopen+set}" = set; then
18769 ac_cv_search_dlopen
=no
18771 rm conftest.
$ac_ext
18772 LIBS
=$ac_func_search_save_LIBS
18774 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18775 $as_echo "$ac_cv_search_dlopen" >&6; }
18776 ac_res
=$ac_cv_search_dlopen
18777 if test "$ac_res" != no
; then
18778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18784 for ac_header
in dlfcn.h
18786 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18787 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18789 $as_echo_n "checking for $ac_header... " >&6; }
18790 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18791 $as_echo_n "(cached) " >&6
18793 ac_res
=`eval 'as_val=${'$as_ac_Header'}
18794 $as_echo "$as_val"'`
18795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18796 $as_echo "$ac_res" >&6; }
18798 # Is the header compilable?
18799 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18800 $as_echo_n "checking $ac_header usability... " >&6; }
18801 cat >conftest.
$ac_ext <<_ACEOF
18804 cat confdefs.h
>>conftest.
$ac_ext
18805 cat >>conftest.
$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 $ac_includes_default
18808 #include <$ac_header>
18810 rm -f conftest.
$ac_objext
18811 if { (ac_try
="$ac_compile"
18812 case "(($ac_try" in
18813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest.$ac_objext; then
18828 ac_header_compiler=yes
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18833 ac_header_compiler=no
18836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18838 $as_echo "$ac_header_compiler" >&6; }
18840 # Is the header present?
18841 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18842 $as_echo_n "checking $ac_header presence... " >&6; }
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 #include <$ac_header>
18851 if { (ac_try="$ac_cpp conftest.$ac_ext"
18852 case "(($ac_try" in
18853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18854 *) ac_try_echo
=$ac_try;;
18856 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18857 $as_echo "$ac_try_echo") >&5
18858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1
>conftest.err
18862 cat conftest.err
>&5
18863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } >/dev
/null
&& {
18865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18868 ac_header_preproc
=yes
18870 $as_echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.
$ac_ext >&5
18873 ac_header_preproc
=no
18876 rm -f conftest.err conftest.
$ac_ext
18877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18878 $as_echo "$ac_header_preproc" >&6; }
18880 # So? What about this header?
18881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18884 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18887 ac_header_preproc
=yes
18890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18891 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18893 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18895 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18897 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18901 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 $as_echo_n "checking for $ac_header... " >&6; }
18907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18908 $as_echo_n "(cached) " >&6
18910 eval "$as_ac_Header=\$ac_header_preproc"
18912 ac_res
=`eval 'as_val=${'$as_ac_Header'}
18913 $as_echo "$as_val"'`
18914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18915 $as_echo "$ac_res" >&6; }
18918 as_val
=`eval 'as_val=${'$as_ac_Header'}
18919 $as_echo "$as_val"'`
18920 if test "x$as_val" = x
""yes; then
18921 cat >>confdefs.h
<<_ACEOF
18922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18933 for ac_func
in dlopen dlsym dlerror dlclose
18935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18937 $as_echo_n "checking for $ac_func... " >&6; }
18938 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18939 $as_echo_n "(cached) " >&6
18941 cat >conftest.
$ac_ext <<_ACEOF
18944 cat confdefs.h
>>conftest.
$ac_ext
18945 cat >>conftest.
$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18957 # include <limits.h>
18959 # include <assert.h>
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18971 /* The GNU C library defines this for functions which it implements
18972 to always fail with ENOSYS. Some functions are actually named
18973 something starting with __ and the normal name is an alias. */
18974 #if defined __stub_$ac_func || defined __stub___$ac_func
18981 return $ac_func ();
18986 rm -f conftest.
$ac_objext conftest
$ac_exeext
18987 if { (ac_try
="$ac_link"
18988 case "(($ac_try" in
18989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18993 $as_echo "$ac_try_echo") >&5
18994 (eval "$ac_link") 2>conftest.er1
18996 grep -v '^ *+' conftest.er1 >conftest.err
18998 cat conftest.err >&5
18999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } && {
19001 test -z "$ac_c_werror_flag" ||
19002 test ! -s conftest.err
19003 } && test -s conftest$ac_exeext && {
19004 test "$cross_compiling" = yes ||
19005 $as_test_x conftest$ac_exeext
19007 eval "$as_ac_var=yes"
19009 $as_echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 eval "$as_ac_var=no"
19015 rm -rf conftest.dSYM
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19019 ac_res=`eval 'as_val=${'$as_ac_var'}
19020 $as_echo "$as_val"'`
19021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19022 $as_echo "$ac_res" >&6; }
19023 as_val=`eval 'as_val=${'$as_ac_var'}
19024 $as_echo "$as_val"'`
19025 if test "x$as_val" = x""yes; then
19026 cat >>confdefs.h <<_ACEOF
19027 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19031 libreplace_cv_dlfcn=yes
19036 libreplace_cv_shl=no
19037 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
19038 $as_echo_n "checking for library containing shl_load... " >&6; }
19039 if test "${ac_cv_search_shl_load+set}" = set; then
19040 $as_echo_n "(cached) " >&6
19042 ac_func_search_save_LIBS=$LIBS
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19060 return shl_load ();
19065 for ac_lib in '' sl; do
19066 if test -z "$ac_lib"; then
19067 ac_res="none required"
19070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19076 *) ac_try_echo
=$ac_try;;
19078 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19079 $as_echo "$ac_try_echo") >&5
19080 (eval "$ac_link") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1
>conftest.err
19084 cat conftest.err
>&5
19085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest
$ac_exeext && {
19090 test "$cross_compiling" = yes ||
19091 $as_test_x conftest
$ac_exeext
19093 ac_cv_search_shl_load
=$ac_res
19095 $as_echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.
$ac_ext >&5
19101 rm -rf conftest.dSYM
19102 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19104 if test "${ac_cv_search_shl_load+set}" = set; then
19108 if test "${ac_cv_search_shl_load+set}" = set; then
19111 ac_cv_search_shl_load
=no
19113 rm conftest.
$ac_ext
19114 LIBS
=$ac_func_search_save_LIBS
19116 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
19117 $as_echo "$ac_cv_search_shl_load" >&6; }
19118 ac_res
=$ac_cv_search_shl_load
19119 if test "$ac_res" != no
; then
19120 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19125 for ac_header
in dl.h
19127 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19130 $as_echo_n "checking for $ac_header... " >&6; }
19131 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19132 $as_echo_n "(cached) " >&6
19134 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19135 $as_echo "$as_val"'`
19136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19137 $as_echo "$ac_res" >&6; }
19139 # Is the header compilable?
19140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19141 $as_echo_n "checking $ac_header usability... " >&6; }
19142 cat >conftest.
$ac_ext <<_ACEOF
19145 cat confdefs.h
>>conftest.
$ac_ext
19146 cat >>conftest.
$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19149 #include <$ac_header>
19151 rm -f conftest.
$ac_objext
19152 if { (ac_try
="$ac_compile"
19153 case "(($ac_try" in
19154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19158 $as_echo "$ac_try_echo") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
19169 ac_header_compiler=yes
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_header_compiler=no
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19179 $as_echo "$ac_header_compiler" >&6; }
19181 # Is the header present?
19182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19183 $as_echo_n "checking $ac_header presence... " >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 #include <$ac_header>
19192 if { (ac_try="$ac_cpp conftest.$ac_ext"
19193 case "(($ac_try" in
19194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19195 *) ac_try_echo
=$ac_try;;
19197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19198 $as_echo "$ac_try_echo") >&5
19199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19201 grep -v '^ *+' conftest.er1
>conftest.err
19203 cat conftest.err
>&5
19204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } >/dev
/null
&& {
19206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19207 test ! -s conftest.err
19209 ac_header_preproc
=yes
19211 $as_echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.
$ac_ext >&5
19214 ac_header_preproc
=no
19217 rm -f conftest.err conftest.
$ac_ext
19218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19219 $as_echo "$ac_header_preproc" >&6; }
19221 # So? What about this header?
19222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19228 ac_header_preproc
=yes
19231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19234 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19238 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19247 $as_echo_n "checking for $ac_header... " >&6; }
19248 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19249 $as_echo_n "(cached) " >&6
19251 eval "$as_ac_Header=\$ac_header_preproc"
19253 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19254 $as_echo "$as_val"'`
19255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19256 $as_echo "$ac_res" >&6; }
19259 as_val
=`eval 'as_val=${'$as_ac_Header'}
19260 $as_echo "$as_val"'`
19261 if test "x$as_val" = x
""yes; then
19262 cat >>confdefs.h
<<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19273 for ac_func
in shl_load shl_unload shl_findsym
19275 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19277 $as_echo_n "checking for $ac_func... " >&6; }
19278 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19279 $as_echo_n "(cached) " >&6
19281 cat >conftest.
$ac_ext <<_ACEOF
19284 cat confdefs.h
>>conftest.
$ac_ext
19285 cat >>conftest.
$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19289 #define $ac_func innocuous_$ac_func
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char $ac_func (); below.
19293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19294 <limits.h> exists even on freestanding compilers. */
19297 # include <limits.h>
19299 # include <assert.h>
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19311 /* The GNU C library defines this for functions which it implements
19312 to always fail with ENOSYS. Some functions are actually named
19313 something starting with __ and the normal name is an alias. */
19314 #if defined __stub_$ac_func || defined __stub___$ac_func
19321 return $ac_func ();
19326 rm -f conftest.
$ac_objext conftest
$ac_exeext
19327 if { (ac_try
="$ac_link"
19328 case "(($ac_try" in
19329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19333 $as_echo "$ac_try_echo") >&5
19334 (eval "$ac_link") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext && {
19344 test "$cross_compiling" = yes ||
19345 $as_test_x conftest$ac_exeext
19347 eval "$as_ac_var=yes"
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 eval "$as_ac_var=no"
19355 rm -rf conftest.dSYM
19356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19357 conftest$ac_exeext conftest.$ac_ext
19359 ac_res=`eval 'as_val=${'$as_ac_var'}
19360 $as_echo "$as_val"'`
19361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19362 $as_echo "$ac_res" >&6; }
19363 as_val=`eval 'as_val=${'$as_ac_var'}
19364 $as_echo "$as_val"'`
19365 if test "x$as_val" = x""yes; then
19366 cat >>confdefs.h <<_ACEOF
19367 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19371 libreplace_cv_shl=yes
19376 { $as_echo "$as_me:$LINENO: checking for prototype void *dlopen(const char* filename, unsigned int flags)" >&5
19377 $as_echo_n "checking for prototype void *dlopen(const char* filename, unsigned int flags)... " >&6; }
19378 if test "${ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_+set}" = set; then
19379 $as_echo_n "(cached) " >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 $ac_includes_default
19392 void *dlopen(const char* filename, unsigned int flags)
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19404 *) ac_try_echo
=$ac_try;;
19406 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19407 $as_echo "$ac_try_echo") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1
>conftest.err
19412 cat conftest.err
>&5
19413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.
$ac_objext; then
19419 ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_
=yes
19422 $as_echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.
$ac_ext >&5
19426 ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_
=no
19430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19433 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&5
19434 $as_echo "$ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&6; }
19435 if test $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_ = yes; then
19438 cat >>confdefs.h
<<\_ACEOF
19439 #define DLOPEN_TAKES_UNSIGNED_FLAGS 1
19447 if test x
"${libreplace_cv_dlfcn}" = x
"yes";then
19448 LIBREPLACEOBJ
="${LIBREPLACEOBJ} $libreplacedir/dlfcn.o"
19455 { $as_echo "$as_me:$LINENO: checking for getpass" >&5
19456 $as_echo_n "checking for getpass... " >&6; }
19457 if test "${ac_cv_func_getpass+set}" = set; then
19458 $as_echo_n "(cached) " >&6
19460 cat >conftest.
$ac_ext <<_ACEOF
19463 cat confdefs.h
>>conftest.
$ac_ext
19464 cat >>conftest.
$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 /* Define getpass to an innocuous variant, in case <limits.h> declares getpass.
19467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19468 #define getpass innocuous_getpass
19470 /* System header to define __stub macros and hopefully few prototypes,
19471 which can conflict with char getpass (); below.
19472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19473 <limits.h> exists even on freestanding compilers. */
19476 # include <limits.h>
19478 # include <assert.h>
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19490 /* The GNU C library defines this for functions which it implements
19491 to always fail with ENOSYS. Some functions are actually named
19492 something starting with __ and the normal name is an alias. */
19493 #if defined __stub_getpass || defined __stub___getpass
19505 rm -f conftest.
$ac_objext conftest
$ac_exeext
19506 if { (ac_try
="$ac_link"
19507 case "(($ac_try" in
19508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19512 $as_echo "$ac_try_echo") >&5
19513 (eval "$ac_link") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest$ac_exeext && {
19523 test "$cross_compiling" = yes ||
19524 $as_test_x conftest$ac_exeext
19526 ac_cv_func_getpass=yes
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_func_getpass=no
19534 rm -rf conftest.dSYM
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpass" >&5
19539 $as_echo "$ac_cv_func_getpass" >&6; }
19540 if test "x$ac_cv_func_getpass" = x""yes; then
19541 libreplace_cv_HAVE_GETPASS=yes
19544 { $as_echo "$as_me:$LINENO: checking for getpassphrase" >&5
19545 $as_echo_n "checking for getpassphrase... " >&6; }
19546 if test "${ac_cv_func_getpassphrase+set}" = set; then
19547 $as_echo_n "(cached) " >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* Define getpassphrase to an innocuous variant, in case <limits.h> declares getpassphrase.
19556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19557 #define getpassphrase innocuous_getpassphrase
19559 /* System header to define __stub macros and hopefully few prototypes,
19560 which can conflict with char getpassphrase (); below.
19561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19562 <limits.h> exists even on freestanding compilers. */
19565 # include <limits.h>
19567 # include <assert.h>
19570 #undef getpassphrase
19572 /* Override any GCC internal prototype to avoid an error.
19573 Use char because int might match the return type of a GCC
19574 builtin and then its argument prototype would still apply. */
19578 char getpassphrase ();
19579 /* The GNU C library defines this for functions which it implements
19580 to always fail with ENOSYS. Some functions are actually named
19581 something starting with __ and the normal name is an alias. */
19582 #if defined __stub_getpassphrase || defined __stub___getpassphrase
19589 return getpassphrase ();
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19598 *) ac_try_echo
=$ac_try;;
19600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19601 $as_echo "$ac_try_echo") >&5
19602 (eval "$ac_link") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1
>conftest.err
19606 cat conftest.err
>&5
19607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest
$ac_exeext && {
19612 test "$cross_compiling" = yes ||
19613 $as_test_x conftest
$ac_exeext
19615 ac_cv_func_getpassphrase
=yes
19617 $as_echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.
$ac_ext >&5
19620 ac_cv_func_getpassphrase
=no
19623 rm -rf conftest.dSYM
19624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19625 conftest
$ac_exeext conftest.
$ac_ext
19627 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpassphrase" >&5
19628 $as_echo "$ac_cv_func_getpassphrase" >&6; }
19629 if test "x$ac_cv_func_getpassphrase" = x
""yes; then
19630 libreplace_cv_HAVE_GETPASSPHRASE
=yes
19633 if test x
"$libreplace_cv_HAVE_GETPASS" = x
"yes" -a x
"$libreplace_cv_HAVE_GETPASSPHRASE" = x
"yes"; then
19635 cat >>confdefs.h
<<\_ACEOF
19636 #define REPLACE_GETPASS_BY_GETPASSPHRASE 1
19640 cat >>confdefs.h
<<\_ACEOF
19641 #define REPLACE_GETPASS 1
19644 LIBREPLACEOBJ
="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
19647 { $as_echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19648 $as_echo_n "checking whether getpass should be replaced... " >&6; }
19649 if test "${libreplace_cv_REPLACE_GETPASS+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19653 SAVE_CPPFLAGS
="$CPPFLAGS"
19654 CPPFLAGS
="$CPPFLAGS -I$libreplacedir/"
19655 cat >conftest.
$ac_ext <<_ACEOF
19658 cat confdefs.h
>>conftest.
$ac_ext
19659 cat >>conftest.
$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19662 #include "confdefs.h"
19663 #define NO_CONFIG_H
19664 #include "$libreplacedir/getpass.c"
19674 rm -f conftest.
$ac_objext
19675 if { (ac_try
="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19681 $as_echo "$ac_try_echo") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && {
19689 test -z "$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 } && test -s conftest.$ac_objext; then
19692 libreplace_cv_REPLACE_GETPASS=yes
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 libreplace_cv_REPLACE_GETPASS=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 CPPFLAGS="$SAVE_CPPFLAGS"
19704 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_REPLACE_GETPASS" >&5
19705 $as_echo "$libreplace_cv_REPLACE_GETPASS" >&6; }
19706 if test x"$libreplace_cv_REPLACE_GETPASS" = x"yes"; then
19708 cat >>confdefs.h <<\_ACEOF
19709 #define REPLACE_GETPASS 1
19712 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
19717 { $as_echo "$as_me:$LINENO: checking whether strptime is available and works" >&5
19718 $as_echo_n "checking whether strptime is available and works... " >&6; }
19719 if test "${libreplace_cv_STRPTIME_OK+set}" = set; then
19720 $as_echo_n "(cached) " >&6
19723 if test "$cross_compiling" = yes; then
19724 libreplace_cv_STRPTIME_OK="assuming not"
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
19734 #include "$libreplacedir/test/strptime.c"
19737 rm -f conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19741 *) ac_try_echo
=$ac_try;;
19743 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19744 $as_echo "$ac_try_echo") >&5
19745 (eval "$ac_link") 2>&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19749 { (case "(($ac_try" in
19750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19754 $as_echo "$ac_try_echo") >&5
19755 (eval "$ac_try") 2>&5
19757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 libreplace_cv_STRPTIME_OK=yes
19761 $as_echo "$as_me: program exited with status $ac_status" >&5
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ( exit $ac_status )
19766 libreplace_cv_STRPTIME_OK=no
19768 rm -rf conftest.dSYM
19769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19775 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_STRPTIME_OK" >&5
19776 $as_echo "$libreplace_cv_STRPTIME_OK" >&6; }
19777 if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
19779 cat >>confdefs.h <<\_ACEOF
19780 #define REPLACE_STRPTIME 1
19783 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"
19790 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
19792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 $as_echo_n "checking for $ac_header... " >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797 $as_echo_n "(cached) " >&6
19799 ac_res=`eval 'as_val=${'$as_ac_Header'}
19800 $as_echo "$as_val"'`
19801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19802 $as_echo "$ac_res" >&6; }
19804 # Is the header compilable?
19805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806 $as_echo_n "checking $ac_header usability... " >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <$ac_header>
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19820 *) ac_try_echo
=$ac_try;;
19822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19823 $as_echo "$ac_try_echo") >&5
19824 (eval "$ac_compile") 2>conftest.er1
19826 grep -v '^ *+' conftest.er1
>conftest.err
19828 cat conftest.err
>&5
19829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest.
$ac_objext; then
19834 ac_header_compiler
=yes
19836 $as_echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.
$ac_ext >&5
19839 ac_header_compiler
=no
19842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19844 $as_echo "$ac_header_compiler" >&6; }
19846 # Is the header present?
19847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19848 $as_echo_n "checking $ac_header presence... " >&6; }
19849 cat >conftest.
$ac_ext <<_ACEOF
19852 cat confdefs.h
>>conftest.
$ac_ext
19853 cat >>conftest.
$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <$ac_header>
19857 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19858 case "(($ac_try" in
19859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } >/dev/null && {
19871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19872 test ! -s conftest.err
19874 ac_header_preproc=yes
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_header_preproc=no
19882 rm -f conftest.err conftest.$ac_ext
19883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19884 $as_echo "$ac_header_preproc" >&6; }
19886 # So? What about this header?
19887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19893 ac_header_preproc=yes
19896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19912 $as_echo_n "checking for $ac_header... " >&6; }
19913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19914 $as_echo_n "(cached) " >&6
19916 eval "$as_ac_Header=\$ac_header_preproc"
19918 ac_res=`eval 'as_val=${'$as_ac_Header'}
19919 $as_echo "$as_val"'`
19920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19921 $as_echo "$ac_res" >&6; }
19924 as_val=`eval 'as_val=${'$as_ac_Header'}
19925 $as_echo "$as_val"'`
19926 if test "x$as_val" = x""yes; then
19927 cat >>confdefs.h <<_ACEOF
19928 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19936 #######################################
19937 # Check for mkdir mode
19938 { $as_echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19939 $as_echo_n "checking whether mkdir supports mode... " >&6; }
19940 if test "${libreplace_cv_mkdir_has_mode+set}" = set; then
19941 $as_echo_n "(cached) " >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19951 #ifdef HAVE_DIRECT_H
19952 #include <direct.h>
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19969 *) ac_try_echo
=$ac_try;;
19971 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19972 $as_echo "$ac_try_echo") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1
>conftest.err
19977 cat conftest.err
>&5
19978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest.
$ac_objext; then
19983 libreplace_cv_mkdir_has_mode
="yes"
19985 $as_echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.
$ac_ext >&5
19988 libreplace_cv_mkdir_has_mode
="no"
19991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19993 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_mkdir_has_mode" >&5
19994 $as_echo "$libreplace_cv_mkdir_has_mode" >&6; }
19996 if test "$libreplace_cv_mkdir_has_mode" = "yes"
19999 cat >>confdefs.h
<<\_ACEOF
20000 #define HAVE_MKDIR_MODE 1
20006 for ac_func
in timegm
20008 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20010 $as_echo_n "checking for $ac_func... " >&6; }
20011 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20012 $as_echo_n "(cached) " >&6
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20022 #define $ac_func innocuous_$ac_func
20024 /* System header to define __stub macros and hopefully few prototypes,
20025 which can conflict with char $ac_func (); below.
20026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20027 <limits.h> exists even on freestanding compilers. */
20030 # include <limits.h>
20032 # include <assert.h>
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20044 /* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 return $ac_func ();
20059 rm -f conftest.
$ac_objext conftest
$ac_exeext
20060 if { (ac_try
="$ac_link"
20061 case "(($ac_try" in
20062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20066 $as_echo "$ac_try_echo") >&5
20067 (eval "$ac_link") 2>conftest.er1
20069 grep -v '^ *+' conftest.er1 >conftest.err
20071 cat conftest.err >&5
20072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } && {
20074 test -z "$ac_c_werror_flag" ||
20075 test ! -s conftest.err
20076 } && test -s conftest$ac_exeext && {
20077 test "$cross_compiling" = yes ||
20078 $as_test_x conftest$ac_exeext
20080 eval "$as_ac_var=yes"
20082 $as_echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 eval "$as_ac_var=no"
20088 rm -rf conftest.dSYM
20089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20090 conftest$ac_exeext conftest.$ac_ext
20092 ac_res=`eval 'as_val=${'$as_ac_var'}
20093 $as_echo "$as_val"'`
20094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20095 $as_echo "$ac_res" >&6; }
20096 as_val=`eval 'as_val=${'$as_ac_var'}
20097 $as_echo "$as_val"'`
20098 if test "x$as_val" = x""yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20104 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/timegm.o"
20109 { $as_echo "$as_me:$LINENO: checking for broken readdir" >&5
20110 $as_echo_n "checking for broken readdir... " >&6; }
20111 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
20112 $as_echo_n "(cached) " >&6
20115 if test "$cross_compiling" = yes; then
20116 libreplace_cv_READDIR_NEEDED="assuming not"
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20125 #define test_readdir_os2_delete main
20126 #include "$libreplacedir/test/os2_delete.c"
20128 rm -f conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20132 *) ac_try_echo
=$ac_try;;
20134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>&5
20138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20140 { (case "(($ac_try" in
20141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20145 $as_echo "$ac_try_echo") >&5
20146 (eval "$ac_try") 2>&5
20148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 libreplace_cv_READDIR_NEEDED=no
20152 $as_echo "$as_me: program exited with status $ac_status" >&5
20153 $as_echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ( exit $ac_status )
20157 libreplace_cv_READDIR_NEEDED=yes
20159 rm -rf conftest.dSYM
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20166 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
20167 $as_echo "$libreplace_cv_READDIR_NEEDED" >&6; }
20170 for ac_func in dirfd
20172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20173 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20174 $as_echo_n "checking for $ac_func... " >&6; }
20175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20176 $as_echo_n "(cached) " >&6
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20186 #define $ac_func innocuous_$ac_func
20188 /* System header to define __stub macros and hopefully few prototypes,
20189 which can conflict with char $ac_func (); below.
20190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20191 <limits.h> exists even on freestanding compilers. */
20194 # include <limits.h>
20196 # include <assert.h>
20201 /* Override any GCC internal prototype to avoid an error.
20202 Use char because int might match the return type of a GCC
20203 builtin and then its argument prototype would still apply. */
20208 /* The GNU C library defines this for functions which it implements
20209 to always fail with ENOSYS. Some functions are actually named
20210 something starting with __ and the normal name is an alias. */
20211 #if defined __stub_$ac_func || defined __stub___$ac_func
20218 return $ac_func ();
20223 rm -f conftest.$ac_objext conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20227 *) ac_try_echo
=$ac_try;;
20229 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20230 $as_echo "$ac_try_echo") >&5
20231 (eval "$ac_link") 2>conftest.er1
20233 grep -v '^ *+' conftest.er1
>conftest.err
20235 cat conftest.err
>&5
20236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && {
20238 test -z "$ac_c_werror_flag" ||
20239 test ! -s conftest.err
20240 } && test -s conftest
$ac_exeext && {
20241 test "$cross_compiling" = yes ||
20242 $as_test_x conftest
$ac_exeext
20244 eval "$as_ac_var=yes"
20246 $as_echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.
$ac_ext >&5
20249 eval "$as_ac_var=no"
20252 rm -rf conftest.dSYM
20253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20254 conftest
$ac_exeext conftest.
$ac_ext
20256 ac_res
=`eval 'as_val=${'$as_ac_var'}
20257 $as_echo "$as_val"'`
20258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20259 $as_echo "$ac_res" >&6; }
20260 as_val
=`eval 'as_val=${'$as_ac_var'}
20261 $as_echo "$as_val"'`
20262 if test "x$as_val" = x
""yes; then
20263 cat >>confdefs.h
<<_ACEOF
20264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20271 { $as_echo "$as_me:$LINENO: checking for dirfd declaration" >&5
20272 $as_echo_n "checking for dirfd declaration... " >&6; }
20273 if test "${ac_cv_have_dirfd_decl+set}" = set; then
20274 $as_echo_n "(cached) " >&6
20277 cat >conftest.
$ac_ext <<_ACEOF
20280 cat confdefs.h
>>conftest.
$ac_ext
20281 cat >>conftest.
$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <dirent.h>
20292 rm -f conftest.
$ac_objext
20293 if { (ac_try
="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_compile") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest.$ac_objext; then
20310 ac_cv_have_dirfd_decl=yes
20312 $as_echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 ac_cv_have_dirfd_decl=no
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_dirfd_decl" >&5
20321 $as_echo "$ac_cv_have_dirfd_decl" >&6; }
20322 if test x"$ac_cv_have_dirfd_decl" = x"yes"; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_DIRFD_DECL 1
20332 # try to replace with getdirentries() if needed
20334 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20336 for ac_func in getdirentries
20338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20340 $as_echo_n "checking for $ac_func... " >&6; }
20341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20342 $as_echo_n "(cached) " >&6
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20352 #define $ac_func innocuous_$ac_func
20354 /* System header to define __stub macros and hopefully few prototypes,
20355 which can conflict with char $ac_func (); below.
20356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20357 <limits.h> exists even on freestanding compilers. */
20360 # include <limits.h>
20362 # include <assert.h>
20367 /* Override any GCC internal prototype to avoid an error.
20368 Use char because int might match the return type of a GCC
20369 builtin and then its argument prototype would still apply. */
20374 /* The GNU C library defines this for functions which it implements
20375 to always fail with ENOSYS. Some functions are actually named
20376 something starting with __ and the normal name is an alias. */
20377 #if defined __stub_$ac_func || defined __stub___$ac_func
20384 return $ac_func ();
20389 rm -f conftest.$ac_objext conftest$ac_exeext
20390 if { (ac_try="$ac_link"
20391 case "(($ac_try" in
20392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20393 *) ac_try_echo
=$ac_try;;
20395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20396 $as_echo "$ac_try_echo") >&5
20397 (eval "$ac_link") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1
>conftest.err
20401 cat conftest.err
>&5
20402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest
$ac_exeext && {
20407 test "$cross_compiling" = yes ||
20408 $as_test_x conftest
$ac_exeext
20410 eval "$as_ac_var=yes"
20412 $as_echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.
$ac_ext >&5
20415 eval "$as_ac_var=no"
20418 rm -rf conftest.dSYM
20419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20420 conftest
$ac_exeext conftest.
$ac_ext
20422 ac_res
=`eval 'as_val=${'$as_ac_var'}
20423 $as_echo "$as_val"'`
20424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20425 $as_echo "$ac_res" >&6; }
20426 as_val
=`eval 'as_val=${'$as_ac_var'}
20427 $as_echo "$as_val"'`
20428 if test "x$as_val" = x
""yes; then
20429 cat >>confdefs.h
<<_ACEOF
20430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20436 { $as_echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
20437 $as_echo_n "checking for prototype long telldir(const DIR *dir)... " >&6; }
20438 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
20439 $as_echo_n "(cached) " >&6
20441 cat >conftest.
$ac_ext <<_ACEOF
20444 cat confdefs.h
>>conftest.
$ac_ext
20445 cat >>conftest.
$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20448 $ac_includes_default
20450 #include <dirent.h>
20452 long telldir(const DIR *dir)
20460 rm -f conftest.
$ac_objext
20461 if { (ac_try
="$ac_compile"
20462 case "(($ac_try" in
20463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467 $as_echo "$ac_try_echo") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20479 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
20482 $as_echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
20494 $as_echo "$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
20495 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define TELLDIR_TAKES_CONST_DIR 1
20507 { $as_echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
20508 $as_echo_n "checking for prototype int seekdir(DIR *dir, long ofs)... " >&6; }
20509 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
20510 $as_echo_n "(cached) " >&6
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 $ac_includes_default
20521 #include <dirent.h>
20523 int seekdir(DIR *dir, long ofs)
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20535 *) ac_try_echo
=$ac_try;;
20537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20538 $as_echo "$ac_try_echo") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1
>conftest.err
20543 cat conftest.err
>&5
20544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.
$ac_objext; then
20550 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_
=yes
20553 $as_echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.
$ac_ext >&5
20557 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_
=no
20561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
20565 $as_echo "$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
20566 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
20569 cat >>confdefs.h
<<\_ACEOF
20570 #define SEEKDIR_RETURNS_INT 1
20577 { $as_echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
20578 $as_echo_n "checking for replacing readdir using getdirentries()... " >&6; }
20579 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
20580 $as_echo_n "(cached) " >&6
20583 if test "$cross_compiling" = yes; then
20584 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20586 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20587 See \`config.log' for more details." >&5
20588 $as_echo "$as_me: error: cannot run test program while cross compiling
20589 See \`config.log' for more details." >&2;}
20590 { (exit 1); exit 1; }; }; }
20592 cat >conftest.
$ac_ext <<_ACEOF
20595 cat confdefs.h
>>conftest.
$ac_ext
20596 cat >>conftest.
$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 #define _LIBREPLACE_REPLACE_H
20600 #include "$libreplacedir/repdir_getdirentries.c"
20601 #define test_readdir_os2_delete main
20602 #include "$libreplacedir/test/os2_delete.c"
20604 rm -f conftest
$ac_exeext
20605 if { (ac_try
="$ac_link"
20606 case "(($ac_try" in
20607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20611 $as_echo "$ac_try_echo") >&5
20612 (eval "$ac_link") 2>&5
20614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20618 *) ac_try_echo
=$ac_try;;
20620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20621 $as_echo "$ac_try_echo") >&5
20622 (eval "$ac_try") 2>&5
20624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 libreplace_cv_READDIR_GETDIRENTRIES
=yes
20628 $as_echo "$as_me: program exited with status $ac_status" >&5
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.
$ac_ext >&5
20632 ( exit $ac_status )
20633 libreplace_cv_READDIR_GETDIRENTRIES
=no
20635 rm -rf conftest.dSYM
20636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20642 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
20643 $as_echo "$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
20645 if test x
"$libreplace_cv_READDIR_GETDIRENTRIES" = x
"yes"; then
20647 cat >>confdefs.h
<<\_ACEOF
20648 #define REPLACE_READDIR 1
20652 cat >>confdefs.h
<<\_ACEOF
20653 #define REPLACE_READDIR_GETDIRENTRIES 1
20656 LIBREPLACEOBJ
="${LIBREPLACEOBJ} $libreplacedir/repdir_getdirentries.o"
20657 libreplace_cv_READDIR_NEEDED
=no
20661 # try to replace with getdents() if needed
20663 if test x
"$libreplace_cv_READDIR_NEEDED" = x
"yes"; then
20665 for ac_func
in getdents
20667 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20669 $as_echo_n "checking for $ac_func... " >&6; }
20670 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20671 $as_echo_n "(cached) " >&6
20673 cat >conftest.
$ac_ext <<_ACEOF
20676 cat confdefs.h
>>conftest.
$ac_ext
20677 cat >>conftest.
$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20681 #define $ac_func innocuous_$ac_func
20683 /* System header to define __stub macros and hopefully few prototypes,
20684 which can conflict with char $ac_func (); below.
20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20686 <limits.h> exists even on freestanding compilers. */
20689 # include <limits.h>
20691 # include <assert.h>
20696 /* Override any GCC internal prototype to avoid an error.
20697 Use char because int might match the return type of a GCC
20698 builtin and then its argument prototype would still apply. */
20703 /* The GNU C library defines this for functions which it implements
20704 to always fail with ENOSYS. Some functions are actually named
20705 something starting with __ and the normal name is an alias. */
20706 #if defined __stub_$ac_func || defined __stub___$ac_func
20713 return $ac_func ();
20718 rm -f conftest.
$ac_objext conftest
$ac_exeext
20719 if { (ac_try
="$ac_link"
20720 case "(($ac_try" in
20721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725 $as_echo "$ac_try_echo") >&5
20726 (eval "$ac_link") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext && {
20736 test "$cross_compiling" = yes ||
20737 $as_test_x conftest$ac_exeext
20739 eval "$as_ac_var=yes"
20741 $as_echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 eval "$as_ac_var=no"
20747 rm -rf conftest.dSYM
20748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20749 conftest$ac_exeext conftest.$ac_ext
20751 ac_res=`eval 'as_val=${'$as_ac_var'}
20752 $as_echo "$as_val"'`
20753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20754 $as_echo "$ac_res" >&6; }
20755 as_val=`eval 'as_val=${'$as_ac_var'}
20756 $as_echo "$as_val"'`
20757 if test "x$as_val" = x""yes; then
20758 cat >>confdefs.h <<_ACEOF
20759 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20765 { $as_echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
20766 $as_echo_n "checking for replacing readdir using getdents()... " >&6; }
20767 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
20768 $as_echo_n "(cached) " >&6
20771 if test "$cross_compiling" = yes; then
20772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20774 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
20775 See \
`config.log' for more details." >&5
20776 $as_echo "$as_me: error: cannot run test program while cross compiling
20777 See \`config.log
' for more details." >&2;}
20778 { (exit 1); exit 1; }; }; }
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 #define _LIBREPLACE_REPLACE_H
20788 #error _donot_use_getdents_replacement_anymore
20789 #include "$libreplacedir/repdir_getdents.c"
20790 #define test_readdir_os2_delete main
20791 #include "$libreplacedir/test/os2_delete.c"
20793 rm -f conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>&5
20803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_try") 2>&5
20813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 libreplace_cv_READDIR_GETDENTS=yes
20817 $as_echo "$as_me: program exited with status $ac_status" >&5
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's
/^
/|
/' conftest.$ac_ext >&5
20821 ( exit $ac_status )
20822 libreplace_cv_READDIR_GETDENTS=no
20824 rm -rf conftest.dSYM
20825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20831 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
20832 $as_echo "$libreplace_cv_READDIR_GETDENTS" >&6; }
20834 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define REPLACE_READDIR 1
20841 cat >>confdefs.h <<\_ACEOF
20842 #define REPLACE_READDIR_GETDENTS 1
20845 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdents.o"
20846 libreplace_cv_READDIR_NEEDED=no
20849 { $as_echo "$as_me:$LINENO: checking a usable readdir()" >&5
20850 $as_echo_n "checking a usable readdir()... " >&6; }
20851 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20852 { $as_echo "$as_me:$LINENO: result: no" >&5
20853 $as_echo "no" >&6; }
20854 { $as_echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
20855 $as_echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
20857 { $as_echo "$as_me:$LINENO: result: yes" >&5
20858 $as_echo "yes" >&6; }
20861 ###############################################
20862 # test for where we get crypt() from
20864 for ac_header in crypt.h
20866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20869 $as_echo_n "checking for $ac_header... " >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20871 $as_echo_n "(cached) " >&6
20873 ac_res=`eval 'as_val
=${'$as_ac_Header'}
20874 $as_echo "$as_val"'`
20875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20876 $as_echo "$ac_res" >&6; }
20878 # Is the header compilable?
20879 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20880 $as_echo_n "checking $ac_header usability... " >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 $ac_includes_default
20888 #include <$ac_header>
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897 $as_echo "$ac_try_echo") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20900 grep -v '^
*+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest.$ac_objext; then
20908 ac_header_compiler=yes
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's
/^
/|
/' conftest.$ac_ext >&5
20913 ac_header_compiler=no
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20918 $as_echo "$ac_header_compiler" >&6; }
20920 # Is the header present?
20921 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20922 $as_echo_n "checking $ac_header presence... " >&6; }
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <$ac_header>
20931 if { (ac_try="$ac_cpp conftest.$ac_ext"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20940 grep -v '^
*+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } >/dev/null && {
20945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20948 ac_header_preproc=yes
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's
/^
/|
/' conftest.$ac_ext >&5
20953 ac_header_preproc=no
20956 rm -f conftest.err conftest.$ac_ext
20957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20958 $as_echo "$ac_header_preproc" >&6; }
20960 # So? What about this header?
20961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20964 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
20966 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
20967 ac_header_preproc=yes
20970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20971 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20973 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20975 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20977 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
20979 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
20980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20981 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20986 $as_echo_n "checking for $ac_header... " >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988 $as_echo_n "(cached) " >&6
20990 eval "$as_ac_Header=\$ac_header_preproc"
20992 ac_res=`eval 'as_val
=${'$as_ac_Header'}
20993 $as_echo "$as_val"'`
20994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20995 $as_echo "$ac_res" >&6; }
20998 as_val=`eval 'as_val
=${'$as_ac_Header'}
20999 $as_echo "$as_val"'`
21000 if test "x$as_val" = x""yes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21009 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
21010 $as_echo_n "checking for library containing crypt... " >&6; }
21011 if test "${ac_cv_search_ext_crypt+set}" = set; then
21012 $as_echo_n "(cached) " >&6
21015 ac_func_search_ext_save_LIBS=$LIBS
21016 ac_cv_search_ext_crypt=no
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21039 rm -f conftest.$ac_objext conftest$ac_exeext
21040 if { (ac_try="$ac_link"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21046 $as_echo "$ac_try_echo") >&5
21047 (eval "$ac_link") 2>conftest.er1
21049 grep -v '^
*+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && {
21054 test -z "$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 } && test -s conftest$ac_exeext && {
21057 test "$cross_compiling" = yes ||
21058 $as_test_x conftest$ac_exeext
21060 ac_cv_search_ext_crypt="none required"
21062 $as_echo "$as_me: failed program was:" >&5
21063 sed 's
/^
/|
/' conftest.$ac_ext >&5
21068 rm -rf conftest.dSYM
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070 conftest$ac_exeext conftest.$ac_ext
21071 if test "$ac_cv_search_ext_crypt" = no; then
21072 for ac_lib in crypt; do
21073 LIBS="-l$ac_lib $CRYPT_LIBS $ac_func_search_save_ext_LIBS"
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21081 /* Override any GCC internal prototype to avoid an error.
21082 Use char because int might match the return type of a GCC
21083 builtin and then its argument prototype would still apply. */
21096 rm -f conftest.$ac_objext conftest$ac_exeext
21097 if { (ac_try="$ac_link"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103 $as_echo "$ac_try_echo") >&5
21104 (eval "$ac_link") 2>conftest.er1
21106 grep -v '^
*+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest$ac_exeext && {
21114 test "$cross_compiling" = yes ||
21115 $as_test_x conftest$ac_exeext
21117 ac_cv_search_ext_crypt="-l$ac_lib"
21120 $as_echo "$as_me: failed program was:" >&5
21121 sed 's
/^
/|
/' conftest.$ac_ext >&5
21126 rm -rf conftest.dSYM
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128 conftest$ac_exeext conftest.$ac_ext
21131 LIBS=$ac_func_search_ext_save_LIBS
21133 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_crypt" >&5
21134 $as_echo "$ac_cv_search_ext_crypt" >&6; }
21135 if test "$ac_cv_search_ext_crypt" != no; then
21136 test "$ac_cv_search_ext_crypt" = "none required" || CRYPT_LIBS="$ac_cv_search_ext_crypt $CRYPT_LIBS"
21138 cat >>confdefs.h <<\_ACEOF
21139 #define HAVE_CRYPT 1
21143 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o"
21151 for ac_func in printf memset memcpy
21153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21155 $as_echo_n "checking for $ac_func... " >&6; }
21156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21157 $as_echo_n "(cached) " >&6
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21167 #define $ac_func innocuous_$ac_func
21169 /* System header to define __stub macros and hopefully few prototypes,
21170 which can conflict with char $ac_func (); below.
21171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21172 <limits.h> exists even on freestanding compilers. */
21175 # include <limits.h>
21177 # include <assert.h>
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21189 /* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
21192 #if defined __stub_$ac_func || defined __stub___$ac_func
21199 return $ac_func ();
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (ac_try="$ac_link"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21211 $as_echo "$ac_try_echo") >&5
21212 (eval "$ac_link") 2>conftest.er1
21214 grep -v '^
*+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest$ac_exeext && {
21222 test "$cross_compiling" = yes ||
21223 $as_test_x conftest$ac_exeext
21225 eval "$as_ac_var=yes"
21227 $as_echo "$as_me: failed program was:" >&5
21228 sed 's
/^
/|
/' conftest.$ac_ext >&5
21230 eval "$as_ac_var=no"
21233 rm -rf conftest.dSYM
21234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21235 conftest$ac_exeext conftest.$ac_ext
21237 ac_res=`eval 'as_val
=${'$as_ac_var'}
21238 $as_echo "$as_val"'`
21239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21240 $as_echo "$ac_res" >&6; }
21241 as_val=`eval 'as_val
=${'$as_ac_var'}
21242 $as_echo "$as_val"'`
21243 if test "x$as_val" = x""yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21249 { { $as_echo "$as_me:$LINENO: error: Required function not found" >&5
21250 $as_echo "$as_me: error: Required function not found" >&2;}
21251 { (exit 1); exit 1; }; }
21256 echo "LIBREPLACE_BROKEN_CHECKS: END"
21259 #LIBREPLACE_ALL_CHECKS: END"
21261 CFLAGS="$CFLAGS -I$libreplacedir"
21270 if test "${GCC}" = "yes"; then
21277 PICFLAG="-KPIC" # Is this correct for SunOS
21279 *netbsd* | *freebsd* | *dragonfly* )
21280 PICFLAG="-fPIC -DPIC"
21286 if test "${GCC}" = "yes"; then
21293 # as AIX code is always position independent...
21297 if test "${GCC}" = "yes"; then
21299 elif test "$host_cpu" = "ia64"; then
21301 elif test $ac_cv_prog_cc_Ae = yes; then
21302 PICFLAG="+z +ESnolit"
21312 PICFLAG="-fno-common"
21321 if test "$host_cpu" = "ia64"; then
21337 *linux*|*gnu*|*qnx*)
21338 SONAMEFLAG="-Wl,-soname="
21342 if test "${GCC}" = "yes"; then
21343 SONAMEFLAG="-Wl,-soname="
21347 SONAMEFLAG="-Wl,-h,"
21349 *netbsd* | *freebsd* | *dragonfly* )
21350 SONAMEFLAG="-Wl,-soname,"
21353 SONAMEFLAG="-Wl,-soname,"
21356 SONAMEFLAG="-Wl,-soname,"
21359 SONAMEFLAG="-Wl,+h,"
21362 SONAMEFLAG="-Wl,-soname,"
21365 SONAMEFLAG="-Wl,-soname,"
21381 VERSIONSCRIPT="-Wl,--version-script"
21384 if test "${GCC}" = "yes"; then
21385 VERSIONSCRIPT="-Wl,--version-script"
21391 LD_SHLIB_LINKER="${CC}"
21395 LD_SHLIB_LINKER="${PROG_LD}"
21403 SHLD="$LD_SHLIB_LINKER"
21407 LD_SHLIB_FLAGS="-shared"
21411 LD_SHLIB_FLAGS="-shared -Wl,-Bsymbolic"
21414 LD_SHLIB_FLAGS="-G"
21415 if test "${GCC}" = "no"; then
21416 ## ${CFLAGS} added for building 64-bit shared
21417 ## libs using Sun's Compiler
21418 LD_SHLIB_FLAGS
="-G \${CFLAGS}"
21422 LD_SHLIB_FLAGS
="-G"
21425 LD_SHLIB_FLAGS
="-shared"
21428 LD_SHLIB_FLAGS
="-Wl,-G,-bexpall,-bbigtoc"
21431 if test "${GCC}" = "yes"; then
21432 LD_SHLIB_FLAGS
="-shared"
21434 LD_SHLIB_FLAGS
="-b"
21438 LD_SHLIB_FLAGS
="-shared"
21441 LD_SHLIB_FLAGS
="-dynamiclib -Wl,-search_paths_first"
21448 LD_SHLIB_DISALLOW_UNDEF_FLAG
=""
21451 # TODO: enforce error not only warnings
21453 # NOTE: -Wl,--no-allow-shlib-undefined isn't what we want...
21454 # as it bails out on broken system libraries
21458 LD_SHLIB_DISALLOW_UNDEF_FLAG
="-warning_unresolved"
21461 LD_SHLIB_DISALLOW_UNDEF_FLAG
="-undefined error"
21470 SHLD_FLAGS
="$LD_SHLIB_FLAGS $LD_SHLIB_DISALLOW_UNDEF_FLAG"
21475 tallocpaths
=". lib/talloc talloc ../talloc ../lib/talloc"
21476 for d
in $tallocpaths; do
21477 if test -f "$srcdir/$d/talloc.c"; then
21483 if test x
"$tallocdir" = "x"; then
21484 { { $as_echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
21485 $as_echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
21486 { (exit 1); exit 1; }; }
21488 TALLOC_OBJ
="talloc.o"
21491 TALLOC_CFLAGS
="-I$srcdir/$tallocdir"
21497 # The cast to long int works around a bug in the HP C Compiler
21498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21500 # This bug is HP SR number 8606223364.
21501 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
21502 $as_echo_n "checking size of size_t... " >&6; }
21503 if test "${ac_cv_sizeof_size_t+set}" = set; then
21504 $as_echo_n "(cached) " >&6
21506 if test "$cross_compiling" = yes; then
21507 # Depending upon the size, compute the lo and hi bounds.
21508 cat >conftest.
$ac_ext <<_ACEOF
21511 cat confdefs.h
>>conftest.
$ac_ext
21512 cat >>conftest.
$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21518 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
21525 rm -f conftest.
$ac_objext
21526 if { (ac_try
="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21532 $as_echo "$ac_try_echo") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21535 grep -v '^ *+' conftest.er1 >conftest.err
21537 cat conftest.err >&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 $ac_includes_default
21555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21566 *) ac_try_echo
=$ac_try;;
21568 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21569 $as_echo "$ac_try_echo") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21572 grep -v '^ *+' conftest.er1
>conftest.err
21574 cat conftest.err
>&5
21575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.
$ac_objext; then
21580 ac_hi
=$ac_mid; break
21582 $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.
$ac_ext >&5
21585 ac_lo
=`expr $ac_mid + 1`
21586 if test $ac_lo -le $ac_mid; then
21590 ac_mid
=`expr 2 '*' $ac_mid + 1`
21593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21596 $as_echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.
$ac_ext >&5
21599 cat >conftest.
$ac_ext <<_ACEOF
21602 cat confdefs.h
>>conftest.
$ac_ext
21603 cat >>conftest.
$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 $ac_includes_default
21609 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
21616 rm -f conftest.
$ac_objext
21617 if { (ac_try
="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21623 $as_echo "$ac_try_echo") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21636 cat >conftest.$ac_ext <<_ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 $ac_includes_default
21646 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21657 *) ac_try_echo
=$ac_try;;
21659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21660 $as_echo "$ac_try_echo") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21663 grep -v '^ *+' conftest.er1
>conftest.err
21665 cat conftest.err
>&5
21666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.
$ac_objext; then
21671 ac_lo
=$ac_mid; break
21673 $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.
$ac_ext >&5
21676 ac_hi
=`expr '(' $ac_mid ')' - 1`
21677 if test $ac_mid -le $ac_hi; then
21681 ac_mid
=`expr 2 '*' $ac_mid`
21684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21687 $as_echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.
$ac_ext >&5
21693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21697 # Binary search between lo and hi bounds.
21698 while test "x$ac_lo" != "x$ac_hi"; do
21699 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21700 cat >conftest.
$ac_ext <<_ACEOF
21703 cat confdefs.h
>>conftest.
$ac_ext
21704 cat >>conftest.
$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 $ac_includes_default
21710 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21717 rm -f conftest.
$ac_objext
21718 if { (ac_try
="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21724 $as_echo "$ac_try_echo") >&5
21725 (eval "$ac_compile") 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } && {
21732 test -z "$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 } && test -s conftest.$ac_objext; then
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_lo=`expr '(' $ac_mid ')' + 1`
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21747 '') if test "$ac_cv_type_size_t" = yes; then
21748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21750 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21751 See \
`config.log' for more details." >&5
21752 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21753 See \`config.log
' for more details." >&2;}
21754 { (exit 77); exit 77; }; }; }
21756 ac_cv_sizeof_size_t=0
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 $ac_includes_default
21767 static long int longval () { return (long int) (sizeof (size_t)); }
21768 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
21770 #include <stdlib.h>
21775 FILE *f = fopen ("conftest.val", "w");
21778 if (((long int) (sizeof (size_t))) < 0)
21780 long int i = longval ();
21781 if (i != ((long int) (sizeof (size_t))))
21783 fprintf (f, "%ld", i);
21787 unsigned long int i = ulongval ();
21788 if (i != ((long int) (sizeof (size_t))))
21790 fprintf (f, "%lu", i);
21792 /* Do not output a trailing newline, as this causes \r\n confusion
21793 on some platforms. */
21794 return ferror (f) || fclose (f) != 0;
21800 rm -f conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21807 $as_echo "$ac_try_echo") >&5
21808 (eval "$ac_link") 2>&5
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21817 $as_echo "$ac_try_echo") >&5
21818 (eval "$ac_try") 2>&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 ac_cv_sizeof_size_t=`cat conftest.val`
21824 $as_echo "$as_me: program exited with status $ac_status" >&5
21825 $as_echo "$as_me: failed program was:" >&5
21826 sed 's
/^
/|
/' conftest.$ac_ext >&5
21828 ( exit $ac_status )
21829 if test "$ac_cv_type_size_t" = yes; then
21830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21831 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21832 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21833 See \`config.log
' for more details." >&5
21834 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21835 See \`config.log' for more details.
" >&2;}
21836 { (exit 77); exit 77; }; }; }
21838 ac_cv_sizeof_size_t=0
21841 rm -rf conftest.dSYM
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21846 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_size_t" >&5
21847 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21851 cat >>confdefs.h <<_ACEOF
21852 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21856 # The cast to long int works around a bug in the HP C Compiler
21857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21859 # This bug is HP SR number 8606223364.
21860 { $as_echo "$as_me:$LINENO: checking size of void
*" >&5
21861 $as_echo_n "checking size of void
*...
" >&6; }
21862 if test "${ac_cv_sizeof_void_p+set}" = set; then
21863 $as_echo_n "(cached
) " >&6
21865 if test "$cross_compiling" = yes; then
21866 # Depending upon the size, compute the lo and hi bounds.
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21877 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21891 $as_echo "$ac_try_echo") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21914 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21928 $as_echo "$ac_try_echo") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1 >conftest.err
21933 cat conftest.err >&5
21934 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.$ac_objext; then
21939 ac_hi=$ac_mid; break
21941 $as_echo "$as_me: failed program was
:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_lo=`expr $ac_mid + 1`
21945 if test $ac_lo -le $ac_mid; then
21949 ac_mid=`expr 2 '*' $ac_mid + 1`
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955 $as_echo "$as_me: failed program was
:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21968 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21982 $as_echo "$ac_try_echo") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22005 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
22012 rm -f conftest.$ac_objext
22013 if { (ac_try="$ac_compile"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 ac_lo=$ac_mid; break
22032 $as_echo "$as_me: failed program was
:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_hi=`expr '(' $ac_mid ')' - 1`
22036 if test $ac_mid -le $ac_hi; then
22040 ac_mid=`expr 2 '*' $ac_mid`
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 $as_echo "$as_me: failed program was
:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 # Binary search between lo and hi bounds.
22057 while test "x
$ac_lo" != "x
$ac_hi"; do
22058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22069 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22096 $as_echo "$as_me: failed program was
:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_lo=`expr '(' $ac_mid ')' + 1`
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22106 '') if test "$ac_cv_type_void_p" = yes; then
22107 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22110 See \`config.log' for more details.
" >&5
22111 $as_echo "$as_me: error
: cannot compute sizeof
(void
*)
22112 See \
`config.log' for more details." >&2;}
22113 { (exit 77); exit 77; }; }; }
22115 ac_cv_sizeof_void_p=0
22119 cat >conftest.$ac_ext <<_ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 $ac_includes_default
22126 static long int longval () { return (long int) (sizeof (void *)); }
22127 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
22129 #include <stdlib.h>
22134 FILE *f = fopen ("conftest.val", "w");
22137 if (((long int) (sizeof (void *))) < 0)
22139 long int i = longval ();
22140 if (i != ((long int) (sizeof (void *))))
22142 fprintf (f, "%ld", i);
22146 unsigned long int i = ulongval ();
22147 if (i != ((long int) (sizeof (void *))))
22149 fprintf (f, "%lu", i);
22151 /* Do not output a trailing newline, as this causes \r\n confusion
22152 on some platforms. */
22153 return ferror (f) || fclose (f) != 0;
22159 rm -f conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22163 *) ac_try_echo
=$ac_try;;
22165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22171 { (case "(($ac_try" in
22172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_try") 2>&5
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_cv_sizeof_void_p=`cat conftest.val
`
22183 $as_echo "$as_me: program exited with status $ac_status" >&5
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ( exit $ac_status )
22188 if test "$ac_cv_type_void_p" = yes; then
22189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22191 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
22192 See \
`config.log' for more details." >&5
22193 $as_echo "$as_me: error: cannot compute sizeof (void *)
22194 See \`config.log
' for more details." >&2;}
22195 { (exit 77); exit 77; }; }; }
22197 ac_cv_sizeof_void_p=0
22200 rm -rf conftest.dSYM
22201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22206 $as_echo "$ac_cv_sizeof_void_p" >&6; }
22210 cat >>confdefs.h <<_ACEOF
22211 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22216 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
22217 { $as_echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
22218 $as_echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
22219 { $as_echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
22220 $as_echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
22221 { $as_echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
22222 $as_echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
22223 { $as_echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
22224 $as_echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
22225 { { $as_echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
22226 $as_echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
22227 { (exit 1); exit 1; }; }
22230 if test x"$VERSIONSCRIPT" != "x"; then
22231 EXPORTSFILE=talloc.exports
22235 TALLOC_COMPAT1_MK=""
22238 # Check whether --enable-talloc-compat1 was given.
22239 if test "${enable_talloc_compat1+set}" = set; then
22240 enableval=$enable_talloc_compat1; enable_talloc_compat1=$enableval
22242 enable_talloc_compat1=no
22247 if test "x$enable_talloc_compat1" = x"yes"; then
22248 TALLOC_COMPAT1_MK='include $
(tallocdir
)/compat
/talloc_compat1.mk
'
22253 # Extract the first word of "xsltproc", so it can be a program name with args.
22254 set dummy xsltproc; ac_word=$2
22255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 $as_echo_n "checking for $ac_word... " >&6; }
22257 if test "${ac_cv_path_XSLTPROC+set}" = set; then
22258 $as_echo_n "(cached) " >&6
22262 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
22265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22266 for as_dir in $PATH
22269 test -z "$as_dir" && as_dir=.
22270 for ac_exec_ext in '' $ac_executable_extensions; do
22271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22272 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
22273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22283 XSLTPROC=$ac_cv_path_XSLTPROC
22284 if test -n "$XSLTPROC"; then
22285 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
22286 $as_echo "$XSLTPROC" >&6; }
22288 { $as_echo "$as_me:$LINENO: result: no" >&5
22289 $as_echo "no" >&6; }
22294 if test -n "$XSLTPROC"; then
22303 # Check whether --with-shared-build-dir was given.
22304 if test "${with_shared_build_dir+set}" = set; then
22305 withval=$with_shared_build_dir;
22309 sharedbuilddir="$srcdir/sharedbuild"
22310 if test x"$with_shared_build_dir" != x; then
22311 sharedbuilddir=$with_shared_build_dir
22312 CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
22313 LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
22318 ac_config_files="$ac_config_files Makefile talloc.pc"
22320 cat >confcache <<\_ACEOF
22321 # This file is a shell script that caches the results of configure
22322 # tests run on this system so they can be shared between configure
22323 # scripts and configure runs, see configure's option
--config-cache.
22324 # It is not useful on other systems. If it contains results you don't
22325 # want to keep, you may remove or edit it.
22327 # config.status only pays attention to the cache file if you give it
22328 # the --recheck option to rerun configure.
22330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22332 # following values.
22336 # The following way of writing the cache mishandles newlines in values,
22337 # but we know of no workaround that is simple, portable, and efficient.
22338 # So, we kill variables containing newlines.
22339 # Ultrix sh set writes to stderr and can't be redirected directly,
22340 # and sets the high bit in the cache file unless we assign to the vars.
22342 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22343 eval ac_val
=\$
$ac_var
22347 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22351 _ | IFS | as_nl
) ;; #(
22352 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22353 *) $as_unset $ac_var ;;
22359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22360 *${as_nl}ac_space
=\
*)
22361 # `set' does not quote correctly, so add quotes (double-quote
22362 # substitution turns \\\\ into \\, and sed turns \\ into \).
22365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22368 # `set' quotes correctly as required by POSIX, so do not add quotes.
22369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22382 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22383 if test -w "$cache_file"; then
22384 test "x$cache_file" != "x/dev/null" &&
22385 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22386 $as_echo "$as_me: updating cache $cache_file" >&6;}
22387 cat confcache
>$cache_file
22389 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22390 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22395 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22396 # Let make expand exec_prefix.
22397 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22399 DEFS
=-DHAVE_CONFIG_H
22403 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22404 # 1. Remove the extension, and $U if already installed.
22405 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22406 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22407 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22408 # will be set to the directory where LIBOBJS objects are built.
22409 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22410 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22412 LIBOBJS
=$ac_libobjs
22414 LTLIBOBJS
=$ac_ltlibobjs
22419 : ${CONFIG_STATUS=./config.status}
22421 ac_clean_files_save
=$ac_clean_files
22422 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22423 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22425 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22427 # Generated by $as_me.
22428 # Run this file to recreate the current configuration.
22429 # Compiler output produced by configure, useful for debugging
22430 # configure, is in config.log if it exists.
22433 ac_cs_recheck=false
22435 SHELL=\${CONFIG_SHELL-$SHELL}
22438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22439 ## --------------------- ##
22440 ## M4sh Initialization. ##
22441 ## --------------------- ##
22443 # Be more Bourne compatible
22444 DUALCASE
=1; export DUALCASE
# for MKS sh
22445 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22449 # is contrary to our usage. Disable this feature.
22450 alias -g '${1+"$@"}'='"$@"'
22451 setopt NO_GLOB_SUBST
22453 case `(set -o) 2>/dev/null` in
22454 *posix
*) set -o posix
;;
22463 # Avoid depending upon Character Ranges.
22464 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22465 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22466 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22467 as_cr_digits
='0123456789'
22468 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22474 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22477 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22478 as_echo='printf %s
\n'
22479 as_echo_n='printf %s
'
22481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22482 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22483 as_echo_n='/usr
/ucb
/echo -n'
22485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22486 as_echo_n_body='eval
22490 expr "X$arg" : "X\\(.*\\)$as_nl";
22491 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22493 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22495 export as_echo_n_body
22496 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22498 export as_echo_body
22499 as_echo='sh
-c $as_echo_body as_echo
'
22502 # The user is always right.
22503 if test "${PATH_SEPARATOR+set}" != set; then
22505 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22506 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22511 # Support unset when possible.
22512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22520 # We need space, tab and new line, in precisely that order. Quoting is
22521 # there to prevent editors from complaining about space-tab.
22522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22523 # splitting by setting IFS to empty value.)
22526 # Find who we are. Look in the path if we contain no directory separator.
22528 *[\\/]* ) as_myself=$0 ;;
22529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22533 test -z "$as_dir" && as_dir=.
22534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22540 # We did not find ourselves, most probably we were run as `sh COMMAND'
22541 # in which case we are not to be found in the path.
22542 if test "x$as_myself" = x
; then
22545 if test ! -f "$as_myself"; then
22546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22547 { (exit 1); exit 1; }
22550 # Work around bugs in pre-3.0 UWIN ksh.
22551 for as_var
in ENV MAIL MAILPATH
22552 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22564 # Required to use basename.
22565 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22566 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22572 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22573 as_basename
=basename
22579 # Name of the executable.
22580 as_me
=`$as_basename -- "$0" ||
22581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22582 X"$0" : 'X\(//\)$' \| \
22583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22585 sed '/^.*\/\([^/][^/]*\)\/*$/{
22604 as_lineno_1
=$LINENO
22605 as_lineno_2
=$LINENO
22606 test "x$as_lineno_1" != "x$as_lineno_2" &&
22607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22610 # uniformly replaced by the line number. The first 'sed' inserts a
22611 # line-number line after each line using $LINENO; the second 'sed'
22612 # does the real work. The second script uses 'N' to pair each
22613 # line-number line with the line containing $LINENO, and appends
22614 # trailing '-' during substitution so that $LINENO is not a special
22615 # case at line end.
22616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22617 # scripts with optimization help from Paolo Bonzini. Blame Lee
22618 # E. McMahon (1931-1989) for sed's syntax. :-)
22630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22633 ' >$as_me.lineno
&&
22634 chmod +x
"$as_me.lineno" ||
22635 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22636 { (exit 1); exit 1; }; }
22638 # Don't try to exec as it changes $[0], causing all sort of problems
22639 # (the dirname of $[0] is not the place where we might find the
22640 # original and so on. Autoconf is especially sensitive to this).
22641 .
"./$as_me.lineno"
22642 # Exit status is that of the last command.
22647 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22653 ECHO_C
= ECHO_N
= ECHO_T
=
22654 case `echo -n x` in
22656 case `echo 'x\c'` in
22657 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22663 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22664 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22670 rm -f conf$$ conf$$.exe conf$$.
file
22671 if test -d conf$$.dir
; then
22672 rm -f conf$$.dir
/conf$$.
file
22675 mkdir conf$$.dir
2>/dev
/null
22677 if (echo >conf$$.
file) 2>/dev
/null
; then
22678 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22680 # ... but there are two gotchas:
22681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22683 # In both cases, we have to default to `cp -p'.
22684 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22686 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22694 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22695 rmdir conf$$.dir
2>/dev
/null
22697 if mkdir
-p .
2>/dev
/null
; then
22700 test -d .
/-p && rmdir .
/-p
22704 if test -x / >/dev
/null
2>&1; then
22705 as_test_x
='test -x'
22707 if ls -dL / >/dev
/null
2>&1; then
22714 if test -d "$1"; then
22720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22721 ???[sx]*):;;*)false;;esac;fi
22725 as_executable_p
=$as_test_x
22727 # Sed expression to map a string onto a valid CPP name.
22728 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22730 # Sed expression to map a string onto a valid variable name.
22731 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22736 # Save the log message, to keep $[0] and so on meaningful, and to
22737 # report actual input values of CONFIG_FILES etc. instead of their
22738 # values after options handling.
22740 This file was extended by talloc $as_me 2.0.1, which was
22741 generated by GNU Autoconf 2.63. Invocation command line was
22743 CONFIG_FILES = $CONFIG_FILES
22744 CONFIG_HEADERS = $CONFIG_HEADERS
22745 CONFIG_LINKS = $CONFIG_LINKS
22746 CONFIG_COMMANDS = $CONFIG_COMMANDS
22749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22754 case $ac_config_files in *"
22755 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22758 case $ac_config_headers in *"
22759 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22764 # Files that config.status was made for.
22765 config_files="$ac_config_files"
22766 config_headers="$ac_config_headers"
22767 config_commands="$ac_config_commands"
22771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22773 \`$as_me' instantiates files from templates according to the
22774 current configuration.
22776 Usage: $0 [OPTION]... [FILE]...
22778 -h, --help print this help, then exit
22779 -V, --version print version number and configuration settings, then exit
22780 -q, --quiet, --silent
22781 do not print progress messages
22782 -d, --debug don't remove temporary files
22783 --recheck update $as_me by reconfiguring in the same conditions
22784 --file=FILE[:TEMPLATE]
22785 instantiate the configuration file FILE
22786 --header=FILE[:TEMPLATE]
22787 instantiate the configuration header FILE
22789 Configuration files:
22792 Configuration headers:
22795 Configuration commands:
22798 Report bugs to <bug-autoconf@gnu.org>."
22801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22803 talloc config.status 2.0.1
22804 configured by $0, generated by GNU Autoconf 2.63,
22805 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22807 Copyright (C) 2008 Free Software Foundation, Inc.
22808 This config.status script is free software; the Free Software Foundation
22809 gives unlimited permission to copy, distribute and modify it."
22814 test -n "\$AWK" || AWK=awk
22817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22818 # The default lists apply if the user does not specify any file.
22824 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22825 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22836 # Handling of the options.
22837 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22839 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22840 $as_echo "$ac_cs_version"; exit ;;
22841 --debug |
--debu |
--deb |
--de |
--d |
-d )
22843 --file |
--fil |
--fi |
--f )
22846 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22848 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
22849 ac_need_defaults
=false
;;
22850 --header |
--heade |
--head |
--hea )
22853 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22855 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
22856 ac_need_defaults
=false
;;
22858 # Conflict between --help and --header
22859 { $as_echo "$as_me: error: ambiguous option: $1
22860 Try \`$0 --help' for more information." >&2
22861 { (exit 1); exit 1; }; };;
22862 --help |
--hel |
-h )
22863 $as_echo "$ac_cs_usage"; exit ;;
22864 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22865 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22868 # This is an error.
22869 -*) { $as_echo "$as_me: error: unrecognized option: $1
22870 Try \`$0 --help' for more information." >&2
22871 { (exit 1); exit 1; }; } ;;
22873 *) ac_config_targets
="$ac_config_targets $1"
22874 ac_need_defaults
=false
;;
22880 ac_configure_extra_args
=
22882 if $ac_cs_silent; then
22884 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22889 if \$ac_cs_recheck; then
22890 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22893 CONFIG_SHELL='$SHELL'
22894 export CONFIG_SHELL
22899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22904 ## Running $as_me. ##
22910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22914 libreplacedir=$libreplacedir
22915 libreplacedir=$libreplacedir
22916 libreplacedir=$libreplacedir
22917 libreplacedir=$libreplacedir
22921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22923 # Handling of arguments.
22924 for ac_config_target
in $ac_config_targets
22926 case $ac_config_target in
22927 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
22928 "rm-stdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS rm-stdint.h" ;;
22929 "mk-stdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS mk-stdint.h" ;;
22930 "rm-stdbool.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS rm-stdbool.h" ;;
22931 "mk-stdbool.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS mk-stdbool.h" ;;
22932 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22933 "talloc.pc") CONFIG_FILES
="$CONFIG_FILES talloc.pc" ;;
22935 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22936 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22937 { (exit 1); exit 1; }; };;
22942 # If the user did not use the arguments to specify the items to instantiate,
22943 # then the envvar interface is used. Set only those that are not.
22944 # We use the long form for the default assignment because of an extremely
22945 # bizarre bug on SunOS 4.1.3.
22946 if $ac_need_defaults; then
22947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22952 # Have a temporary directory for convenience. Make it in the build tree
22953 # simply because there is no reason against having it here, and in addition,
22954 # creating and moving files from /tmp can sometimes cause problems.
22955 # Hook for its removal unless debugging.
22956 # Note that there is a small window in which the directory will not be cleaned:
22957 # after its creation but before its name has been assigned to `$tmp'.
22961 trap 'exit_status=$?
22962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22964 trap '{ (exit 1); exit 1; }' 1 2 13 15
22966 # Create a (secure) tmp directory for tmp files.
22969 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22970 test -n "$tmp" && test -d "$tmp"
22973 tmp
=.
/conf$$
-$RANDOM
22974 (umask 077 && mkdir
"$tmp")
22977 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22978 { (exit 1); exit 1; }
22981 # Set up the scripts for CONFIG_FILES section.
22982 # No need to generate them if there are no CONFIG_FILES.
22983 # This happens for instance with `./config.status config.h'.
22984 if test -n "$CONFIG_FILES"; then
22988 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22989 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22992 ac_cs_awk_cr
=$ac_cr
22995 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23000 echo "cat >conf$$subs.awk <<_ACEOF" &&
23001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23003 } >conf$$subs.sh ||
23004 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
23005 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
23006 { (exit 1); exit 1; }; }
23007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23009 for ac_last_try in false false false false false :; do
23010 . ./conf$$subs.sh ||
23011 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
23012 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
23013 { (exit 1); exit 1; }; }
23015 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23016 if test $ac_delim_n = $ac_delim_num; then
23018 elif $ac_last_try; then
23019 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
23020 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
23021 { (exit 1); exit 1; }; }
23023 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23026 rm -f conf$$subs.sh
23028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23029 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23033 s/^/S["/; s
/!.
*/"]=/
23043 s/\(.\{148\}\).*/\1/
23045 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23050 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23057 s/\(.\{148\}\).*/\1/
23059 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23063 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23068 ' <conf$$subs.awk | sed '
23073 ' >>$CONFIG_STATUS || ac_write_fail=1
23074 rm -f conf$$subs.awk
23075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23077 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23078 for (key in S) S_is_set[key] = 1
23084 nfields = split(line, field, "@
")
23086 len = length(field[1])
23087 for (i = 2; i < nfields; i++) {
23089 keylen = length(key)
23090 if (S_is_set[key]) {
23092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23093 len += length(value) + length(field[++i])
23104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23105 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23106 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23109 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23110 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
23111 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
23112 { (exit 1); exit 1; }; }
23115 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23116 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23117 # trailing colons and then remove the whole line if VPATH becomes empty
23118 # (actually we leave an empty line to preserve line numbers).
23119 if test "x
$srcdir" = x.; then
23120 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23121 s/:*\$(srcdir):*/:/
23122 s/:*\${srcdir}:*/:/
23124 s/^\([^=]*=[ ]*\):*/\1/
23130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23131 fi # test -n "$CONFIG_FILES"
23133 # Set up the scripts for CONFIG_HEADERS section.
23134 # No need to generate them if there are no CONFIG_HEADERS.
23135 # This happens for instance with `./config.status Makefile'.
23136 if test -n "$CONFIG_HEADERS"; then
23137 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23141 # Transform confdefs.h into an awk script `defines.awk', embedded as
23142 # here-document in config.status, that substitutes the proper values into
23143 # config.h.in to produce config.h.
23145 # Create a delimiter string that does not exist in confdefs.h, to ease
23146 # handling of long lines.
23148 for ac_last_try in false false :; do
23149 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23150 if test -z "$ac_t"; then
23152 elif $ac_last_try; then
23153 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
23154 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
23155 { (exit 1); exit 1; }; }
23157 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23161 # For the awk script, D is an array of macro values keyed by name,
23162 # likewise P contains macro parameters if any. Preserve backslash
23163 # newline sequences.
23165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23167 s/.\{148\}/&'"$ac_delim"'/g
23170 s/^[ ]*#[ ]*define[ ][ ]*/ /
23177 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23179 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23184 D["\
1"]=" \
3\\\\\\n
"\\/p
23186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23191 s/.\{148\}/&'"$ac_delim"'/g
23196 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23199 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23201 ' <confdefs.h | sed '
23202 s/'"$ac_delim"'/"\\\
23203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23206 for (key in D) D_is_set[key] = 1
23209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23211 split(line, arg, " ")
23212 if (arg[1] == "#") {
23216 defundef
= substr
(arg
[1], 2)
23219 split(mac1
, mac2
, "(") #)
23221 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23222 if (D_is_set
[macro
]) {
23223 # Preserve the white space surrounding the "#".
23224 print prefix
"define", macro P
[macro
] D
[macro
]
23227 # Replace #undef with comments. This is necessary, for example,
23228 # in the case of _POSIX_SOURCE, which is predefined and required
23229 # on some systems where configure will not decide to define it.
23230 if (defundef
== "undef") {
23231 print
"/*", prefix defundef
, macro
, "*/"
23239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23240 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23241 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23242 { (exit 1); exit 1; }; }
23243 fi # test -n "$CONFIG_HEADERS"
23246 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23251 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23253 case $ac_mode$ac_tag in
23255 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23256 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23257 { (exit 1); exit 1; }; };;
23258 :[FH
]-) ac_tag
=-:-;;
23259 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23276 -) ac_f
="$tmp/stdin";;
23277 *) # Look for the file first in the build tree, then in the source tree
23278 # (if the path is not absolute). The absolute path cannot be DOS-style,
23279 # because $ac_f cannot contain `:'.
23283 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23285 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23286 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23287 { (exit 1); exit 1; }; };;
23289 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23290 ac_file_inputs
="$ac_file_inputs '$ac_f'"
23293 # Let's still pretend it is `configure' which instantiates (i.e., don't
23294 # use $as_me), people would be surprised to read:
23295 # /* config.h. Generated by config.status. */
23296 configure_input
='Generated from '`
23297 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23299 if test x
"$ac_file" != x-
; then
23300 configure_input
="$ac_file. $configure_input"
23301 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23302 $as_echo "$as_me: creating $ac_file" >&6;}
23304 # Neutralize special characters interpreted by sed in replacement strings.
23305 case $configure_input in #(
23306 *\
&* |
*\|
* |
*\\* )
23307 ac_sed_conf_input
=`$as_echo "$configure_input" |
23308 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23309 *) ac_sed_conf_input
=$configure_input;;
23313 *:-:* |
*:-) cat >"$tmp/stdin" \
23314 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23315 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23316 { (exit 1); exit 1; }; } ;;
23321 ac_dir
=`$as_dirname -- "$ac_file" ||
23322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323 X"$ac_file" : 'X\(//\)[^/]' \| \
23324 X"$ac_file" : 'X\(//\)$' \| \
23325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23326 $as_echo X"$ac_file" |
23327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23331 /^X\(\/\/\)[^/].*/{
23346 -*) as_dir
=.
/$as_dir;;
23348 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23352 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23353 *) as_qdir
=$as_dir;;
23355 as_dirs
="'$as_qdir' $as_dirs"
23356 as_dir
=`$as_dirname -- "$as_dir" ||
23357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23358 X"$as_dir" : 'X\(//\)[^/]' \| \
23359 X"$as_dir" : 'X\(//\)$' \| \
23360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23361 $as_echo X"$as_dir" |
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23366 /^X\(\/\/\)[^/].*/{
23379 test -d "$as_dir" && break
23381 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23382 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23383 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23384 { (exit 1); exit 1; }; }; }
23388 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23390 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23391 # A ".." for each directory in $ac_dir_suffix.
23392 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23393 case $ac_top_builddir_sub in
23394 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23395 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23398 ac_abs_top_builddir
=$ac_pwd
23399 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23400 # for backward compatibility:
23401 ac_top_builddir
=$ac_top_build_prefix
23404 .
) # We are building in place.
23406 ac_top_srcdir
=$ac_top_builddir_sub
23407 ac_abs_top_srcdir
=$ac_pwd ;;
23408 [\\/]* | ?
:[\\/]* ) # Absolute name.
23409 ac_srcdir
=$srcdir$ac_dir_suffix;
23410 ac_top_srcdir
=$srcdir
23411 ac_abs_top_srcdir
=$srcdir ;;
23412 *) # Relative name.
23413 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23414 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23415 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23417 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23427 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23428 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23433 # If the template does not know about datarootdir, expand it.
23434 # FIXME: This hack should be removed a few years after 2.60.
23435 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23448 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23449 *datarootdir
*) ac_datarootdir_seen
=yes;;
23450 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23451 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23452 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23455 ac_datarootdir_hack='
23456 s&@datadir@&$datadir&g
23457 s&@docdir@&$docdir&g
23458 s&@infodir@&$infodir&g
23459 s&@localedir@&$localedir&g
23460 s&@mandir@&$mandir&g
23461 s&\\\${datarootdir}&$datarootdir&g' ;;
23465 # Neutralize VPATH when `$srcdir' = `.'.
23466 # Shell code in configure.ac might set extrasub.
23467 # FIXME: do we really want to maintain this feature?
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 ac_sed_extra="$ac_vpsub
23472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23474 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23475 s|@configure_input@|
$ac_sed_conf_input|
;t t
23476 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23477 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23478 s
&@srcdir@
&$ac_srcdir&;t t
23479 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23480 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23481 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23482 s
&@builddir@
&$ac_builddir&;t t
23483 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23484 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23485 s
&@INSTALL@
&$ac_INSTALL&;t t
23486 $ac_datarootdir_hack
23488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
23489 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
23490 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
23491 { (exit 1); exit 1; }; }
23493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23497 which seems to be undefined. Please make sure it is defined." >&5
23498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23499 which seems to be undefined. Please make sure it is defined." >&2;}
23503 -) cat "$tmp/out" && rm -f "$tmp/out";;
23504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23506 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23507 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23508 { (exit 1); exit 1; }; }
23514 if test x"$ac_file" != x-; then
23516 $as_echo "/* $configure_input */" \
23517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23518 } >"$tmp/config.h" \
23519 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23520 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23521 { (exit 1); exit 1; }; }
23522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23523 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23527 mv "$tmp/config.h" "$ac_file" \
23528 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23530 { (exit 1); exit 1; }; }
23533 $as_echo "/* $configure_input */" \
23534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23535 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23536 $as_echo "$as_me: error: could not create -" >&2;}
23537 { (exit 1); exit 1; }; }
23541 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23542 $as_echo "$as_me: executing $ac_file commands" >&6;}
23547 case $ac_file$ac_mode in
23548 "rm-stdint.h":C) rm -f $libreplacedir/stdint.h ;;
23549 "mk-stdint.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdint.h ;;
23550 "rm-stdbool.h":C) rm -f $libreplacedir/stdbool.h ;;
23551 "mk-stdbool.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdbool.h ;;
23557 { (exit 0); exit 0; }
23559 chmod +x $CONFIG_STATUS
23560 ac_clean_files=$ac_clean_files_save
23562 test $ac_write_fail = 0 ||
23563 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23564 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23565 { (exit 1); exit 1; }; }
23568 # configure is writing to config.log, and then calls config.status.
23569 # config.status does its own redirection, appending to config.log.
23570 # Unfortunately, on DOS this fails, as config.log is still kept open
23571 # by configure, so config.status won't be able to
write to it
; its
23572 # output is simply discarded. So we exec the FD to /dev/null,
23573 # effectively closing config.log, so it can be properly (re)opened and
23574 # appended to by config.status. When coming back to configure, we
23575 # need to make the FD available again.
23576 if test "$no_create" != yes; then
23578 ac_config_status_args
=
23579 test "$silent" = yes &&
23580 ac_config_status_args
="$ac_config_status_args --quiet"
23582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23585 # would make configure fail if this is the last instruction.
23586 $ac_cs_success ||
{ (exit 1); exit 1; }
23588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23589 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23590 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}