966 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
967 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
968 |
--without-included-regex don't compile regex; this is the default on |
--without-included-regex don't compile regex; this is the default on |
969 |
systems with version 2 of the GNU C library |
systems with recent-enough versions of the GNU C |
970 |
(use with caution on other system) |
Library (use with caution on other systems) |
971 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
972 |
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
973 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
1456 |
|
|
1457 |
|
|
1458 |
gl_func_list="$gl_func_list fchdir" |
gl_func_list="$gl_func_list fchdir" |
|
gl_header_list="$gl_header_list fcntl.h" |
|
1459 |
gl_header_list="$gl_header_list unistd.h" |
gl_header_list="$gl_header_list unistd.h" |
1460 |
gl_func_list="$gl_func_list mempcpy" |
gl_func_list="$gl_func_list mempcpy" |
1461 |
gl_header_list="$gl_header_list sys/time.h" |
gl_header_list="$gl_header_list sys/time.h" |
1471 |
gl_header_list="$gl_header_list wctype.h" |
gl_header_list="$gl_header_list wctype.h" |
1472 |
gl_func_list="$gl_func_list iswprint" |
gl_func_list="$gl_func_list iswprint" |
1473 |
gl_func_list="$gl_func_list mbsinit" |
gl_func_list="$gl_func_list mbsinit" |
1474 |
|
gl_header_list="$gl_header_list locale.h" |
1475 |
|
gl_func_list="$gl_func_list isblank" |
1476 |
|
gl_func_list="$gl_func_list mbrtowc" |
1477 |
|
gl_func_list="$gl_func_list wcrtomb" |
1478 |
|
gl_func_list="$gl_func_list wcscoll" |
1479 |
gl_func_list="$gl_func_list mblen" |
gl_func_list="$gl_func_list mblen" |
1480 |
gl_func_list="$gl_func_list mbrlen" |
gl_func_list="$gl_func_list mbrlen" |
1481 |
gl_func_list="$gl_func_list tzset" |
gl_func_list="$gl_func_list tzset" |
9034 |
|
|
9035 |
|
|
9036 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9037 |
case $LIBOBJS in |
case $LIBOBJS in |
9038 |
"save-cwd.$ac_objext" | \ |
"save-cwd.$ac_objext" | \ |
9039 |
*" save-cwd.$ac_objext" | \ |
*" save-cwd.$ac_objext" | \ |
9058 |
|
|
9059 |
|
|
9060 |
|
|
|
|
|
|
|
|
|
|
|
9061 |
echo "$as_me:$LINENO: checking whether memrchr is declared" >&5 |
echo "$as_me:$LINENO: checking whether memrchr is declared" >&5 |
9062 |
echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6 |
echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6 |
9063 |
if test "${ac_cv_have_decl_memrchr+set}" = set; then |
if test "${ac_cv_have_decl_memrchr+set}" = set; then |
10127 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
am_aux_dir=`cd $ac_aux_dir && pwd` |
10128 |
|
|
10129 |
# getdate.y works with bison only. |
# getdate.y works with bison only. |
10130 |
test "${YACC+set}" = set || YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y" |
: ${YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y"} |
10131 |
|
|
10132 |
|
|
10133 |
|
|
10556 |
|
|
10557 |
|
|
10558 |
|
|
10559 |
echo "$as_me:$LINENO: checking for ssize_t" >&5 |
echo "$as_me:$LINENO: checking whether getdelim is declared" >&5 |
10560 |
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6 |
10561 |
if test "${gt_cv_ssize_t+set}" = set; then |
if test "${ac_cv_have_decl_getdelim+set}" = set; then |
10562 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10563 |
else |
else |
10564 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
10567 |
cat confdefs.h >>conftest.$ac_ext |
cat confdefs.h >>conftest.$ac_ext |
10568 |
cat >>conftest.$ac_ext <<_ACEOF |
cat >>conftest.$ac_ext <<_ACEOF |
10569 |
/* end confdefs.h. */ |
/* end confdefs.h. */ |
10570 |
#include <sys/types.h> |
$ac_includes_default |
10571 |
int |
int |
10572 |
main () |
main () |
10573 |
{ |
{ |
10574 |
int x = sizeof (ssize_t *) + sizeof (ssize_t); |
#ifndef getdelim |
10575 |
|
char *p = (char *) getdelim; |
10576 |
|
#endif |
10577 |
|
|
10578 |
; |
; |
10579 |
return 0; |
return 0; |
10580 |
} |
} |
10601 |
ac_status=$? |
ac_status=$? |
10602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10603 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
10604 |
gt_cv_ssize_t=yes |
ac_cv_have_decl_getdelim=yes |
10605 |
else |
else |
10606 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
10607 |
sed 's/^/| /' conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10608 |
|
|
10609 |
gt_cv_ssize_t=no |
ac_cv_have_decl_getdelim=no |
10610 |
fi |
fi |
10611 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10612 |
fi |
fi |
10613 |
echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 |
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5 |
10614 |
echo "${ECHO_T}$gt_cv_ssize_t" >&6 |
echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6 |
10615 |
if test $gt_cv_ssize_t = no; then |
if test $ac_cv_have_decl_getdelim = yes; then |
10616 |
|
|
10617 |
cat >>confdefs.h <<\_ACEOF |
cat >>confdefs.h <<_ACEOF |
10618 |
#define ssize_t int |
#define HAVE_DECL_GETDELIM 1 |
10619 |
_ACEOF |
_ACEOF |
10620 |
|
|
10621 |
fi |
|
10622 |
|
else |
10623 |
|
cat >>confdefs.h <<_ACEOF |
10624 |
|
#define HAVE_DECL_GETDELIM 0 |
10625 |
|
_ACEOF |
10626 |
|
|
10627 |
|
|
10628 |
|
fi |
10629 |
|
|
10630 |
|
|
10631 |
|
|
10632 |
|
|
10633 |
echo "$as_me:$LINENO: checking whether getlogin is declared" >&5 |
echo "$as_me:$LINENO: checking whether getlogin is declared" >&5 |
10778 |
|
|
10779 |
|
|
10780 |
|
|
10781 |
|
echo "$as_me:$LINENO: checking for ssize_t" >&5 |
10782 |
|
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
10783 |
|
if test "${gt_cv_ssize_t+set}" = set; then |
10784 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10785 |
|
else |
10786 |
|
cat >conftest.$ac_ext <<_ACEOF |
10787 |
|
/* confdefs.h. */ |
10788 |
|
_ACEOF |
10789 |
|
cat confdefs.h >>conftest.$ac_ext |
10790 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10791 |
|
/* end confdefs.h. */ |
10792 |
|
#include <sys/types.h> |
10793 |
|
int |
10794 |
|
main () |
10795 |
|
{ |
10796 |
|
int x = sizeof (ssize_t *) + sizeof (ssize_t); |
10797 |
|
; |
10798 |
|
return 0; |
10799 |
|
} |
10800 |
|
_ACEOF |
10801 |
|
rm -f conftest.$ac_objext |
10802 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10803 |
|
(eval $ac_compile) 2>conftest.er1 |
10804 |
|
ac_status=$? |
10805 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10806 |
|
rm -f conftest.er1 |
10807 |
|
cat conftest.err >&5 |
10808 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10809 |
|
(exit $ac_status); } && |
10810 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
10811 |
|
|| test ! -s conftest.err' |
10812 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10813 |
|
(eval $ac_try) 2>&5 |
10814 |
|
ac_status=$? |
10815 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10816 |
|
(exit $ac_status); }; } && |
10817 |
|
{ ac_try='test -s conftest.$ac_objext' |
10818 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10819 |
|
(eval $ac_try) 2>&5 |
10820 |
|
ac_status=$? |
10821 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10822 |
|
(exit $ac_status); }; }; then |
10823 |
|
gt_cv_ssize_t=yes |
10824 |
|
else |
10825 |
|
echo "$as_me: failed program was:" >&5 |
10826 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10827 |
|
|
10828 |
|
gt_cv_ssize_t=no |
10829 |
|
fi |
10830 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10831 |
|
fi |
10832 |
|
echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 |
10833 |
|
echo "${ECHO_T}$gt_cv_ssize_t" >&6 |
10834 |
|
if test $gt_cv_ssize_t = no; then |
10835 |
|
|
10836 |
|
cat >>confdefs.h <<\_ACEOF |
10837 |
|
#define ssize_t int |
10838 |
|
_ACEOF |
10839 |
|
|
10840 |
|
fi |
10841 |
|
|
10842 |
|
|
10843 |
|
GETOPT_H= |
10844 |
|
|
10845 |
|
for ac_header in getopt.h |
10846 |
|
do |
10847 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10848 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10849 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10850 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10851 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10852 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10853 |
|
fi |
10854 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10855 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10856 |
|
else |
10857 |
|
# Is the header compilable? |
10858 |
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10859 |
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
10860 |
|
cat >conftest.$ac_ext <<_ACEOF |
10861 |
|
/* confdefs.h. */ |
10862 |
|
_ACEOF |
10863 |
|
cat confdefs.h >>conftest.$ac_ext |
10864 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10865 |
|
/* end confdefs.h. */ |
10866 |
|
$ac_includes_default |
10867 |
|
#include <$ac_header> |
10868 |
|
_ACEOF |
10869 |
|
rm -f conftest.$ac_objext |
10870 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10871 |
|
(eval $ac_compile) 2>conftest.er1 |
10872 |
|
ac_status=$? |
10873 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10874 |
|
rm -f conftest.er1 |
10875 |
|
cat conftest.err >&5 |
10876 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10877 |
|
(exit $ac_status); } && |
10878 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
10879 |
|
|| test ! -s conftest.err' |
10880 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10881 |
|
(eval $ac_try) 2>&5 |
10882 |
|
ac_status=$? |
10883 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10884 |
|
(exit $ac_status); }; } && |
10885 |
|
{ ac_try='test -s conftest.$ac_objext' |
10886 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10887 |
|
(eval $ac_try) 2>&5 |
10888 |
|
ac_status=$? |
10889 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10890 |
|
(exit $ac_status); }; }; then |
10891 |
|
ac_header_compiler=yes |
10892 |
|
else |
10893 |
|
echo "$as_me: failed program was:" >&5 |
10894 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10895 |
|
|
10896 |
|
ac_header_compiler=no |
10897 |
|
fi |
10898 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10899 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10900 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
10901 |
|
|
10902 |
|
# Is the header present? |
10903 |
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10904 |
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
10905 |
|
cat >conftest.$ac_ext <<_ACEOF |
10906 |
|
/* confdefs.h. */ |
10907 |
|
_ACEOF |
10908 |
|
cat confdefs.h >>conftest.$ac_ext |
10909 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10910 |
|
/* end confdefs.h. */ |
10911 |
|
#include <$ac_header> |
10912 |
|
_ACEOF |
10913 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10914 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10915 |
|
ac_status=$? |
10916 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10917 |
|
rm -f conftest.er1 |
10918 |
|
cat conftest.err >&5 |
10919 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10920 |
|
(exit $ac_status); } >/dev/null; then |
10921 |
|
if test -s conftest.err; then |
10922 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
10923 |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10924 |
|
else |
10925 |
|
ac_cpp_err= |
10926 |
|
fi |
10927 |
|
else |
10928 |
|
ac_cpp_err=yes |
10929 |
|
fi |
10930 |
|
if test -z "$ac_cpp_err"; then |
10931 |
|
ac_header_preproc=yes |
10932 |
|
else |
10933 |
|
echo "$as_me: failed program was:" >&5 |
10934 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10935 |
|
|
10936 |
|
ac_header_preproc=no |
10937 |
|
fi |
10938 |
|
rm -f conftest.err conftest.$ac_ext |
10939 |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10940 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
10941 |
|
|
10942 |
|
# So? What about this header? |
10943 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10944 |
|
yes:no: ) |
10945 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10946 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10947 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10948 |
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10949 |
|
ac_header_preproc=yes |
10950 |
|
;; |
10951 |
|
no:yes:* ) |
10952 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10953 |
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10954 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10955 |
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10956 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10957 |
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10958 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10959 |
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10960 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10961 |
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10962 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10963 |
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10964 |
|
( |
10965 |
|
cat <<\_ASBOX |
10966 |
|
## ------------------------------ ## |
10967 |
|
## Report this to bug-cvs@gnu.org ## |
10968 |
|
## ------------------------------ ## |
10969 |
|
_ASBOX |
10970 |
|
) | |
10971 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
10972 |
|
;; |
10973 |
|
esac |
10974 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10975 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10976 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10977 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10978 |
|
else |
10979 |
|
eval "$as_ac_Header=\$ac_header_preproc" |
10980 |
|
fi |
10981 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10982 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10983 |
|
|
10984 |
|
fi |
10985 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10986 |
|
cat >>confdefs.h <<_ACEOF |
10987 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10988 |
|
_ACEOF |
10989 |
|
|
10990 |
|
else |
10991 |
|
GETOPT_H=getopt.h |
10992 |
|
fi |
10993 |
|
|
10994 |
|
done |
10995 |
|
|
10996 |
|
if test -z "$GETOPT_H"; then |
10997 |
|
|
10998 |
|
for ac_func in getopt_long_only |
10999 |
|
do |
11000 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11001 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11002 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11003 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
11004 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11005 |
|
else |
11006 |
|
cat >conftest.$ac_ext <<_ACEOF |
11007 |
|
/* confdefs.h. */ |
11008 |
|
_ACEOF |
11009 |
|
cat confdefs.h >>conftest.$ac_ext |
11010 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11011 |
|
/* end confdefs.h. */ |
11012 |
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11013 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11014 |
|
#define $ac_func innocuous_$ac_func |
11015 |
|
|
11016 |
|
/* System header to define __stub macros and hopefully few prototypes, |
11017 |
|
which can conflict with char $ac_func (); below. |
11018 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11019 |
|
<limits.h> exists even on freestanding compilers. */ |
11020 |
|
|
11021 |
|
#ifdef __STDC__ |
11022 |
|
# include <limits.h> |
11023 |
|
#else |
11024 |
|
# include <assert.h> |
11025 |
|
#endif |
11026 |
|
|
11027 |
|
#undef $ac_func |
11028 |
|
|
11029 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
11030 |
|
#ifdef __cplusplus |
11031 |
|
extern "C" |
11032 |
|
{ |
11033 |
|
#endif |
11034 |
|
/* We use char because int might match the return type of a gcc2 |
11035 |
|
builtin and then its argument prototype would still apply. */ |
11036 |
|
char $ac_func (); |
11037 |
|
/* The GNU C library defines this for functions which it implements |
11038 |
|
to always fail with ENOSYS. Some functions are actually named |
11039 |
|
something starting with __ and the normal name is an alias. */ |
11040 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11041 |
|
choke me |
11042 |
|
#else |
11043 |
|
char (*f) () = $ac_func; |
11044 |
|
#endif |
11045 |
|
#ifdef __cplusplus |
11046 |
|
} |
11047 |
|
#endif |
11048 |
|
|
11049 |
|
int |
11050 |
|
main () |
11051 |
|
{ |
11052 |
|
return f != $ac_func; |
11053 |
|
; |
11054 |
|
return 0; |
11055 |
|
} |
11056 |
|
_ACEOF |
11057 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
11058 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11059 |
|
(eval $ac_link) 2>conftest.er1 |
11060 |
|
ac_status=$? |
11061 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11062 |
|
rm -f conftest.er1 |
11063 |
|
cat conftest.err >&5 |
11064 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11065 |
|
(exit $ac_status); } && |
11066 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
11067 |
|
|| test ! -s conftest.err' |
11068 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11069 |
|
(eval $ac_try) 2>&5 |
11070 |
|
ac_status=$? |
11071 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11072 |
|
(exit $ac_status); }; } && |
11073 |
|
{ ac_try='test -s conftest$ac_exeext' |
11074 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11075 |
|
(eval $ac_try) 2>&5 |
11076 |
|
ac_status=$? |
11077 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11078 |
|
(exit $ac_status); }; }; then |
11079 |
|
eval "$as_ac_var=yes" |
11080 |
|
else |
11081 |
|
echo "$as_me: failed program was:" >&5 |
11082 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11083 |
|
|
11084 |
|
eval "$as_ac_var=no" |
11085 |
|
fi |
11086 |
|
rm -f conftest.err conftest.$ac_objext \ |
11087 |
|
conftest$ac_exeext conftest.$ac_ext |
11088 |
|
fi |
11089 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11090 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11091 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11092 |
|
cat >>confdefs.h <<_ACEOF |
11093 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11094 |
|
_ACEOF |
11095 |
|
|
11096 |
|
else |
11097 |
|
GETOPT_H=getopt.h |
11098 |
|
fi |
11099 |
|
done |
11100 |
|
|
11101 |
|
fi |
11102 |
|
|
11103 |
|
if test -z "$GETOPT_H"; then |
11104 |
|
echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
11105 |
|
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 |
11106 |
|
if test "${ac_cv_have_decl_optreset+set}" = set; then |
11107 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11108 |
|
else |
11109 |
|
cat >conftest.$ac_ext <<_ACEOF |
11110 |
|
/* confdefs.h. */ |
11111 |
|
_ACEOF |
11112 |
|
cat confdefs.h >>conftest.$ac_ext |
11113 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11114 |
|
/* end confdefs.h. */ |
11115 |
|
#include <getopt.h> |
11116 |
|
|
11117 |
|
int |
11118 |
|
main () |
11119 |
|
{ |
11120 |
|
#ifndef optreset |
11121 |
|
char *p = (char *) optreset; |
11122 |
|
#endif |
11123 |
|
|
11124 |
|
; |
11125 |
|
return 0; |
11126 |
|
} |
11127 |
|
_ACEOF |
11128 |
|
rm -f conftest.$ac_objext |
11129 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11130 |
|
(eval $ac_compile) 2>conftest.er1 |
11131 |
|
ac_status=$? |
11132 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11133 |
|
rm -f conftest.er1 |
11134 |
|
cat conftest.err >&5 |
11135 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11136 |
|
(exit $ac_status); } && |
11137 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
11138 |
|
|| test ! -s conftest.err' |
11139 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11140 |
|
(eval $ac_try) 2>&5 |
11141 |
|
ac_status=$? |
11142 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11143 |
|
(exit $ac_status); }; } && |
11144 |
|
{ ac_try='test -s conftest.$ac_objext' |
11145 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11146 |
|
(eval $ac_try) 2>&5 |
11147 |
|
ac_status=$? |
11148 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11149 |
|
(exit $ac_status); }; }; then |
11150 |
|
ac_cv_have_decl_optreset=yes |
11151 |
|
else |
11152 |
|
echo "$as_me: failed program was:" >&5 |
11153 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11154 |
|
|
11155 |
|
ac_cv_have_decl_optreset=no |
11156 |
|
fi |
11157 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11158 |
|
fi |
11159 |
|
echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
11160 |
|
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 |
11161 |
|
if test $ac_cv_have_decl_optreset = yes; then |
11162 |
|
GETOPT_H=getopt.h |
11163 |
|
fi |
11164 |
|
|
11165 |
|
fi |
11166 |
|
|
11167 |
|
if test -z "$GETOPT_H"; then |
11168 |
|
echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
11169 |
|
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6 |
11170 |
|
if test "${gl_cv_func_gnu_getopt+set}" = set; then |
11171 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11172 |
|
else |
11173 |
|
if test "$cross_compiling" = yes; then |
11174 |
|
echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
11175 |
|
echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6 |
11176 |
|
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
11177 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11178 |
|
else |
11179 |
|
cat >conftest.$ac_ext <<_ACEOF |
11180 |
|
/* confdefs.h. */ |
11181 |
|
_ACEOF |
11182 |
|
cat confdefs.h >>conftest.$ac_ext |
11183 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11184 |
|
/* end confdefs.h. */ |
11185 |
|
#include <getopt.h> |
11186 |
|
|
11187 |
|
int |
11188 |
|
main () |
11189 |
|
{ |
11190 |
|
#ifndef getopt_clip |
11191 |
|
char *p = (char *) getopt_clip; |
11192 |
|
#endif |
11193 |
|
|
11194 |
|
; |
11195 |
|
return 0; |
11196 |
|
} |
11197 |
|
_ACEOF |
11198 |
|
rm -f conftest.$ac_objext |
11199 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11200 |
|
(eval $ac_compile) 2>conftest.er1 |
11201 |
|
ac_status=$? |
11202 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11203 |
|
rm -f conftest.er1 |
11204 |
|
cat conftest.err >&5 |
11205 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11206 |
|
(exit $ac_status); } && |
11207 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
11208 |
|
|| test ! -s conftest.err' |
11209 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11210 |
|
(eval $ac_try) 2>&5 |
11211 |
|
ac_status=$? |
11212 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11213 |
|
(exit $ac_status); }; } && |
11214 |
|
{ ac_try='test -s conftest.$ac_objext' |
11215 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11216 |
|
(eval $ac_try) 2>&5 |
11217 |
|
ac_status=$? |
11218 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11219 |
|
(exit $ac_status); }; }; then |
11220 |
|
ac_cv_have_decl_getopt_clip=yes |
11221 |
|
else |
11222 |
|
echo "$as_me: failed program was:" >&5 |
11223 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11224 |
|
|
11225 |
|
ac_cv_have_decl_getopt_clip=no |
11226 |
|
fi |
11227 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11228 |
|
fi |
11229 |
|
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
11230 |
|
echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6 |
11231 |
|
if test $ac_cv_have_decl_getopt_clip = yes; then |
11232 |
|
gl_cv_func_gnu_getopt=no |
11233 |
|
else |
11234 |
|
gl_cv_func_gnu_getopt=yes |
11235 |
|
fi |
11236 |
|
|
11237 |
|
else |
11238 |
|
cat >conftest.$ac_ext <<_ACEOF |
11239 |
|
/* confdefs.h. */ |
11240 |
|
_ACEOF |
11241 |
|
cat confdefs.h >>conftest.$ac_ext |
11242 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11243 |
|
/* end confdefs.h. */ |
11244 |
|
#include <getopt.h> |
11245 |
|
int |
11246 |
|
main () |
11247 |
|
{ |
11248 |
|
|
11249 |
|
char *myargv[3]; |
11250 |
|
myargv[0] = "conftest"; |
11251 |
|
myargv[1] = "-+"; |
11252 |
|
myargv[2] = 0; |
11253 |
|
return getopt (2, myargv, "+a") != '?'; |
11254 |
|
|
11255 |
|
; |
11256 |
|
return 0; |
11257 |
|
} |
11258 |
|
_ACEOF |
11259 |
|
rm -f conftest$ac_exeext |
11260 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11261 |
|
(eval $ac_link) 2>&5 |
11262 |
|
ac_status=$? |
11263 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11264 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11265 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11266 |
|
(eval $ac_try) 2>&5 |
11267 |
|
ac_status=$? |
11268 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11269 |
|
(exit $ac_status); }; }; then |
11270 |
|
gl_cv_func_gnu_getopt=yes |
11271 |
|
else |
11272 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
11273 |
|
echo "$as_me: failed program was:" >&5 |
11274 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11275 |
|
|
11276 |
|
( exit $ac_status ) |
11277 |
|
gl_cv_func_gnu_getopt=no |
11278 |
|
fi |
11279 |
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11280 |
|
fi |
11281 |
|
fi |
11282 |
|
echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
11283 |
|
echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6 |
11284 |
|
if test "$gl_cv_func_gnu_getopt" = "no"; then |
11285 |
|
GETOPT_H=getopt.h |
11286 |
|
fi |
11287 |
|
fi |
11288 |
|
|
11289 |
|
|
11290 |
|
|
11291 |
|
|
11292 |
|
|
13698 |
esac |
esac |
13699 |
|
|
13700 |
|
|
13701 |
|
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
13702 |
|
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
13703 |
|
if test "${am_cv_langinfo_codeset+set}" = set; then |
13704 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13705 |
|
else |
13706 |
|
cat >conftest.$ac_ext <<_ACEOF |
13707 |
|
/* confdefs.h. */ |
13708 |
|
_ACEOF |
13709 |
|
cat confdefs.h >>conftest.$ac_ext |
13710 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13711 |
|
/* end confdefs.h. */ |
13712 |
|
#include <langinfo.h> |
13713 |
|
int |
13714 |
|
main () |
13715 |
|
{ |
13716 |
|
char* cs = nl_langinfo(CODESET); |
13717 |
|
; |
13718 |
|
return 0; |
13719 |
|
} |
13720 |
|
_ACEOF |
13721 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
13722 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13723 |
|
(eval $ac_link) 2>conftest.er1 |
13724 |
|
ac_status=$? |
13725 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
13726 |
|
rm -f conftest.er1 |
13727 |
|
cat conftest.err >&5 |
13728 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13729 |
|
(exit $ac_status); } && |
13730 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
13731 |
|
|| test ! -s conftest.err' |
13732 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13733 |
|
(eval $ac_try) 2>&5 |
13734 |
|
ac_status=$? |
13735 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13736 |
|
(exit $ac_status); }; } && |
13737 |
|
{ ac_try='test -s conftest$ac_exeext' |
13738 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13739 |
|
(eval $ac_try) 2>&5 |
13740 |
|
ac_status=$? |
13741 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13742 |
|
(exit $ac_status); }; }; then |
13743 |
|
am_cv_langinfo_codeset=yes |
13744 |
|
else |
13745 |
|
echo "$as_me: failed program was:" >&5 |
13746 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13747 |
|
|
13748 |
|
am_cv_langinfo_codeset=no |
13749 |
|
fi |
13750 |
|
rm -f conftest.err conftest.$ac_objext \ |
13751 |
|
conftest$ac_exeext conftest.$ac_ext |
13752 |
|
|
13753 |
|
fi |
13754 |
|
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
13755 |
|
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
13756 |
|
if test $am_cv_langinfo_codeset = yes; then |
13757 |
|
|
13758 |
|
cat >>confdefs.h <<\_ACEOF |
13759 |
|
#define HAVE_LANGINFO_CODESET 1 |
13760 |
|
_ACEOF |
13761 |
|
|
13762 |
|
fi |
13763 |
|
|
13764 |
|
|
13765 |
|
|
13766 |
|
|
13767 |
|
|
13768 |
|
|
13769 |
|
|
13770 |
|
|
13771 |
|
|
13772 |
|
|
13773 |
|
|
13774 |
|
|
13775 |
|
|
13776 |
|
|
13777 |
|
|
13778 |
|
|
13779 |
|
|
13780 |
|
|
13781 |
|
|
13782 |
|
|
13783 |
|
|
13784 |
|
|
13785 |
|
|
13786 |
|
|
13787 |
|
|
13788 |
|
|
13789 |
|
|
13790 |
|
|
13791 |
|
|
13792 |
|
|
13793 |
|
|
13794 |
|
|
13795 |
echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
13796 |
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
13797 |
if test "${gt_cv_header_inttypes_h+set}" = set; then |
if test "${gt_cv_header_inttypes_h+set}" = set; then |
14108 |
|
|
14109 |
|
|
14110 |
|
|
|
echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5 |
|
|
echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6 |
|
|
if test "${gl_cv_func_tzset_clobber+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
|
|
|
if test "$cross_compiling" = yes; then |
|
|
gl_cv_func_tzset_clobber=yes |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
#if TIME_WITH_SYS_TIME |
|
|
# include <sys/time.h> |
|
|
# include <time.h> |
|
|
#else |
|
|
# if HAVE_SYS_TIME_H |
|
|
# include <sys/time.h> |
|
|
# else |
|
|
# include <time.h> |
|
|
# endif |
|
|
#endif |
|
|
#include <stdlib.h> |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
time_t t1 = 853958121; |
|
|
struct tm *p, s; |
|
|
putenv ("TZ=GMT0"); |
|
|
p = localtime (&t1); |
|
|
s = *p; |
|
|
putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"); |
|
|
tzset (); |
|
|
exit (p->tm_year != s.tm_year |
|
|
|| p->tm_mon != s.tm_mon |
|
|
|| p->tm_mday != s.tm_mday |
|
|
|| p->tm_hour != s.tm_hour |
|
|
|| p->tm_min != s.tm_min |
|
|
|| p->tm_sec != s.tm_sec); |
|
|
} |
|
|
|
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
gl_cv_func_tzset_clobber=no |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
( exit $ac_status ) |
|
|
gl_cv_func_tzset_clobber=yes |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5 |
|
|
echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6 |
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define HAVE_RUN_TZSET_TEST 1 |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
if test $gl_cv_func_tzset_clobber = yes; then |
|
|
|
|
|
case $LIBOBJS in |
|
|
"gettimeofday.$ac_objext" | \ |
|
|
*" gettimeofday.$ac_objext" | \ |
|
|
"gettimeofday.$ac_objext "* | \ |
|
|
*" gettimeofday.$ac_objext "* ) ;; |
|
|
*) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;; |
|
|
esac |
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define gmtime rpl_gmtime |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define localtime rpl_localtime |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define tzset rpl_tzset |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define TZSET_CLOBBERS_LOCALTIME_BUFFER 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
14111 |
|
|
14112 |
|
|
14113 |
|
|
14146 |
|
|
14147 |
|
|
14148 |
|
|
|
|
|
14149 |
: |
: |
14150 |
|
|
14151 |
|
|
15759 |
|
|
15760 |
|
|
15761 |
|
|
|
for ac_header in stdint.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
yes:no: ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
ac_header_preproc=yes |
|
|
;; |
|
|
no:yes:* ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------ ## |
|
|
## Report this to bug-cvs@gnu.org ## |
|
|
## ------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
fi |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
|
|
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 |
|
|
result= |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
#include <limits.h> |
|
|
#if HAVE_STDINT_H |
|
|
#include <stdint.h> |
|
|
#endif |
|
|
#ifdef SIZE_MAX |
|
|
Found it |
|
|
#endif |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
$EGREP "Found it" >/dev/null 2>&1; then |
|
|
result=yes |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
|
if test -z "$result"; then |
|
|
if test "$cross_compiling" = yes; then |
|
|
# Depending upon the size, compute the lo and hi bounds. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=0 ac_mid=0 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr $ac_mid + 1` |
|
|
if test $ac_lo -le $ac_mid; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=-1 ac_mid=-1 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
if test $ac_mid -le $ac_hi; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo= ac_hi= |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
# Binary search between lo and hi bounds. |
|
|
while test "x$ac_lo" != "x$ac_hi"; do |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
case $ac_lo in |
|
|
?*) res_hi=$ac_lo;; |
|
|
'') result=? ;; |
|
|
esac |
|
|
else |
|
|
if test "$cross_compiling" = yes; then |
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
long longval () { return ~(size_t)0 / 10; } |
|
|
unsigned long ulongval () { return ~(size_t)0 / 10; } |
|
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
FILE *f = fopen ("conftest.val", "w"); |
|
|
if (! f) |
|
|
exit (1); |
|
|
if ((~(size_t)0 / 10) < 0) |
|
|
{ |
|
|
long i = longval (); |
|
|
if (i != (~(size_t)0 / 10)) |
|
|
exit (1); |
|
|
fprintf (f, "%ld\n", i); |
|
|
} |
|
|
else |
|
|
{ |
|
|
unsigned long i = ulongval (); |
|
|
if (i != (~(size_t)0 / 10)) |
|
|
exit (1); |
|
|
fprintf (f, "%lu\n", i); |
|
|
} |
|
|
exit (ferror (f) || fclose (f) != 0); |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
res_hi=`cat conftest.val` |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
( exit $ac_status ) |
|
|
result=? |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
rm -f conftest.val |
|
|
if test "$cross_compiling" = yes; then |
|
|
# Depending upon the size, compute the lo and hi bounds. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=0 ac_mid=0 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr $ac_mid + 1` |
|
|
if test $ac_lo -le $ac_mid; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=-1 ac_mid=-1 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
if test $ac_mid -le $ac_hi; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo= ac_hi= |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
# Binary search between lo and hi bounds. |
|
|
while test "x$ac_lo" != "x$ac_hi"; do |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
case $ac_lo in |
|
|
?*) res_lo=$ac_lo;; |
|
|
'') result=? ;; |
|
|
esac |
|
|
else |
|
|
if test "$cross_compiling" = yes; then |
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
long longval () { return ~(size_t)0 % 10; } |
|
|
unsigned long ulongval () { return ~(size_t)0 % 10; } |
|
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
FILE *f = fopen ("conftest.val", "w"); |
|
|
if (! f) |
|
|
exit (1); |
|
|
if ((~(size_t)0 % 10) < 0) |
|
|
{ |
|
|
long i = longval (); |
|
|
if (i != (~(size_t)0 % 10)) |
|
|
exit (1); |
|
|
fprintf (f, "%ld\n", i); |
|
|
} |
|
|
else |
|
|
{ |
|
|
unsigned long i = ulongval (); |
|
|
if (i != (~(size_t)0 % 10)) |
|
|
exit (1); |
|
|
fprintf (f, "%lu\n", i); |
|
|
} |
|
|
exit (ferror (f) || fclose (f) != 0); |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
res_lo=`cat conftest.val` |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
( exit $ac_status ) |
|
|
result=? |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
rm -f conftest.val |
|
|
if test "$cross_compiling" = yes; then |
|
|
# Depending upon the size, compute the lo and hi bounds. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=0 ac_mid=0 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr $ac_mid + 1` |
|
|
if test $ac_lo -le $ac_mid; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=-1 ac_mid=-1 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
if test $ac_mid -le $ac_hi; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo= ac_hi= |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
# Binary search between lo and hi bounds. |
|
|
while test "x$ac_lo" != "x$ac_hi"; do |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
case $ac_lo in |
|
|
?*) fits_in_uint=$ac_lo;; |
|
|
'') result=? ;; |
|
|
esac |
|
|
else |
|
|
if test "$cross_compiling" = yes; then |
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot run test program while cross compiling |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
long longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
|
|
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
|
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
FILE *f = fopen ("conftest.val", "w"); |
|
|
if (! f) |
|
|
exit (1); |
|
|
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
|
|
{ |
|
|
long i = longval (); |
|
|
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
|
|
exit (1); |
|
|
fprintf (f, "%ld\n", i); |
|
|
} |
|
|
else |
|
|
{ |
|
|
unsigned long i = ulongval (); |
|
|
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
|
|
exit (1); |
|
|
fprintf (f, "%lu\n", i); |
|
|
} |
|
|
exit (ferror (f) || fclose (f) != 0); |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
fits_in_uint=`cat conftest.val` |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
( exit $ac_status ) |
|
|
result=? |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
rm -f conftest.val |
|
|
if test "$fits_in_uint" = 1; then |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stddef.h> |
|
|
extern size_t foo; |
|
|
extern unsigned long foo; |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
fits_in_uint=0 |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
if test -z "$result"; then |
|
|
if test "$fits_in_uint" = 1; then |
|
|
result="$res_hi$res_lo"U |
|
|
else |
|
|
result="$res_hi$res_lo"UL |
|
|
fi |
|
|
else |
|
|
result='~(size_t)0' |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $result" >&5 |
|
|
echo "${ECHO_T}$result" >&6 |
|
|
if test "$result" != yes; then |
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define SIZE_MAX $result |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
15762 |
|
|
15763 |
|
|
15764 |
|
|
16790 |
|
|
16791 |
|
|
16792 |
|
|
|
|
|
|
|
|
|
|
|
16793 |
fi |
fi |
16794 |
|
|
16795 |
|
|
17930 |
|
|
17931 |
|
|
17932 |
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17933 |
echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5 |
echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5 |
17934 |
echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6 |
echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6 |
17935 |
if test "${gl_cv_func_getcwd_path_max+set}" = set; then |
if test "${gl_cv_func_getcwd_path_max+set}" = set; then |
17954 |
#include <limits.h> |
#include <limits.h> |
17955 |
#include <sys/stat.h> |
#include <sys/stat.h> |
17956 |
#include <sys/types.h> |
#include <sys/types.h> |
17957 |
#if HAVE_FCNTL_H |
#include <fcntl.h> |
|
# include <fcntl.h> |
|
|
#endif |
|
17958 |
|
|
17959 |
#ifndef AT_FDCWD |
#ifndef AT_FDCWD |
17960 |
# define AT_FDCWD 0 |
# define AT_FDCWD 0 |
18155 |
|
|
18156 |
|
|
18157 |
|
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18158 |
: |
: |
18159 |
;; |
;; |
18160 |
esac |
esac |
18377 |
|
|
18378 |
|
|
18379 |
|
|
18380 |
|
|
18381 |
|
|
18382 |
|
|
18383 |
|
|
18384 |
|
for ac_func in getdelim |
18385 |
|
do |
18386 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18387 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18388 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
18389 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
18390 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18391 |
|
else |
18392 |
|
cat >conftest.$ac_ext <<_ACEOF |
18393 |
|
/* confdefs.h. */ |
18394 |
|
_ACEOF |
18395 |
|
cat confdefs.h >>conftest.$ac_ext |
18396 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18397 |
|
/* end confdefs.h. */ |
18398 |
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18399 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
18400 |
|
#define $ac_func innocuous_$ac_func |
18401 |
|
|
18402 |
|
/* System header to define __stub macros and hopefully few prototypes, |
18403 |
|
which can conflict with char $ac_func (); below. |
18404 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
18405 |
|
<limits.h> exists even on freestanding compilers. */ |
18406 |
|
|
18407 |
|
#ifdef __STDC__ |
18408 |
|
# include <limits.h> |
18409 |
|
#else |
18410 |
|
# include <assert.h> |
18411 |
|
#endif |
18412 |
|
|
18413 |
|
#undef $ac_func |
18414 |
|
|
18415 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18416 |
|
#ifdef __cplusplus |
18417 |
|
extern "C" |
18418 |
|
{ |
18419 |
|
#endif |
18420 |
|
/* We use char because int might match the return type of a gcc2 |
18421 |
|
builtin and then its argument prototype would still apply. */ |
18422 |
|
char $ac_func (); |
18423 |
|
/* The GNU C library defines this for functions which it implements |
18424 |
|
to always fail with ENOSYS. Some functions are actually named |
18425 |
|
something starting with __ and the normal name is an alias. */ |
18426 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
18427 |
|
choke me |
18428 |
|
#else |
18429 |
|
char (*f) () = $ac_func; |
18430 |
|
#endif |
18431 |
|
#ifdef __cplusplus |
18432 |
|
} |
18433 |
|
#endif |
18434 |
|
|
18435 |
|
int |
18436 |
|
main () |
18437 |
|
{ |
18438 |
|
return f != $ac_func; |
18439 |
|
; |
18440 |
|
return 0; |
18441 |
|
} |
18442 |
|
_ACEOF |
18443 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18444 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18445 |
|
(eval $ac_link) 2>conftest.er1 |
18446 |
|
ac_status=$? |
18447 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18448 |
|
rm -f conftest.er1 |
18449 |
|
cat conftest.err >&5 |
18450 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18451 |
|
(exit $ac_status); } && |
18452 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18453 |
|
|| test ! -s conftest.err' |
18454 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18455 |
|
(eval $ac_try) 2>&5 |
18456 |
|
ac_status=$? |
18457 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18458 |
|
(exit $ac_status); }; } && |
18459 |
|
{ ac_try='test -s conftest$ac_exeext' |
18460 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18461 |
|
(eval $ac_try) 2>&5 |
18462 |
|
ac_status=$? |
18463 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18464 |
|
(exit $ac_status); }; }; then |
18465 |
|
eval "$as_ac_var=yes" |
18466 |
|
else |
18467 |
|
echo "$as_me: failed program was:" >&5 |
18468 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18469 |
|
|
18470 |
|
eval "$as_ac_var=no" |
18471 |
|
fi |
18472 |
|
rm -f conftest.err conftest.$ac_objext \ |
18473 |
|
conftest$ac_exeext conftest.$ac_ext |
18474 |
|
fi |
18475 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18476 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
18477 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
18478 |
|
cat >>confdefs.h <<_ACEOF |
18479 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18480 |
|
_ACEOF |
18481 |
|
|
18482 |
|
else |
18483 |
|
case $LIBOBJS in |
18484 |
|
"$ac_func.$ac_objext" | \ |
18485 |
|
*" $ac_func.$ac_objext" | \ |
18486 |
|
"$ac_func.$ac_objext "* | \ |
18487 |
|
*" $ac_func.$ac_objext "* ) ;; |
18488 |
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
18489 |
|
esac |
18490 |
|
|
18491 |
|
fi |
18492 |
|
done |
18493 |
|
|
18494 |
|
|
18495 |
|
|
18496 |
|
: |
18497 |
|
|
18498 |
|
|
18499 |
|
|
18500 |
|
|
18501 |
|
|
18502 |
|
|
18503 |
|
if test $ac_cv_func_getdelim = no; then |
18504 |
|
|
18505 |
|
|
18506 |
|
|
18507 |
|
for ac_func in flockfile funlockfile |
18508 |
|
do |
18509 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18510 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18511 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
18512 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
18513 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18514 |
|
else |
18515 |
|
cat >conftest.$ac_ext <<_ACEOF |
18516 |
|
/* confdefs.h. */ |
18517 |
|
_ACEOF |
18518 |
|
cat confdefs.h >>conftest.$ac_ext |
18519 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18520 |
|
/* end confdefs.h. */ |
18521 |
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18522 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
18523 |
|
#define $ac_func innocuous_$ac_func |
18524 |
|
|
18525 |
|
/* System header to define __stub macros and hopefully few prototypes, |
18526 |
|
which can conflict with char $ac_func (); below. |
18527 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
18528 |
|
<limits.h> exists even on freestanding compilers. */ |
18529 |
|
|
18530 |
|
#ifdef __STDC__ |
18531 |
|
# include <limits.h> |
18532 |
|
#else |
18533 |
|
# include <assert.h> |
18534 |
|
#endif |
18535 |
|
|
18536 |
|
#undef $ac_func |
18537 |
|
|
18538 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18539 |
|
#ifdef __cplusplus |
18540 |
|
extern "C" |
18541 |
|
{ |
18542 |
|
#endif |
18543 |
|
/* We use char because int might match the return type of a gcc2 |
18544 |
|
builtin and then its argument prototype would still apply. */ |
18545 |
|
char $ac_func (); |
18546 |
|
/* The GNU C library defines this for functions which it implements |
18547 |
|
to always fail with ENOSYS. Some functions are actually named |
18548 |
|
something starting with __ and the normal name is an alias. */ |
18549 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
18550 |
|
choke me |
18551 |
|
#else |
18552 |
|
char (*f) () = $ac_func; |
18553 |
|
#endif |
18554 |
|
#ifdef __cplusplus |
18555 |
|
} |
18556 |
|
#endif |
18557 |
|
|
18558 |
|
int |
18559 |
|
main () |
18560 |
|
{ |
18561 |
|
return f != $ac_func; |
18562 |
|
; |
18563 |
|
return 0; |
18564 |
|
} |
18565 |
|
_ACEOF |
18566 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18567 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18568 |
|
(eval $ac_link) 2>conftest.er1 |
18569 |
|
ac_status=$? |
18570 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18571 |
|
rm -f conftest.er1 |
18572 |
|
cat conftest.err >&5 |
18573 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18574 |
|
(exit $ac_status); } && |
18575 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18576 |
|
|| test ! -s conftest.err' |
18577 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18578 |
|
(eval $ac_try) 2>&5 |
18579 |
|
ac_status=$? |
18580 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18581 |
|
(exit $ac_status); }; } && |
18582 |
|
{ ac_try='test -s conftest$ac_exeext' |
18583 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18584 |
|
(eval $ac_try) 2>&5 |
18585 |
|
ac_status=$? |
18586 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18587 |
|
(exit $ac_status); }; }; then |
18588 |
|
eval "$as_ac_var=yes" |
18589 |
|
else |
18590 |
|
echo "$as_me: failed program was:" >&5 |
18591 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18592 |
|
|
18593 |
|
eval "$as_ac_var=no" |
18594 |
|
fi |
18595 |
|
rm -f conftest.err conftest.$ac_objext \ |
18596 |
|
conftest$ac_exeext conftest.$ac_ext |
18597 |
|
fi |
18598 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18599 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
18600 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
18601 |
|
cat >>confdefs.h <<_ACEOF |
18602 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18603 |
|
_ACEOF |
18604 |
|
|
18605 |
|
fi |
18606 |
|
done |
18607 |
|
|
18608 |
|
|
18609 |
|
fi |
18610 |
|
|
18611 |
|
|
18612 |
|
|
18613 |
for ac_func in gethostname |
for ac_func in gethostname |
18614 |
do |
do |
18615 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18833 |
|
|
18834 |
|
|
18835 |
|
|
18836 |
am_getline_needs_run_time_check=no |
echo "$as_me:$LINENO: checking whether getline is declared" >&5 |
18837 |
|
echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6 |
18838 |
|
if test "${ac_cv_have_decl_getline+set}" = set; then |
18839 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18840 |
|
else |
18841 |
|
cat >conftest.$ac_ext <<_ACEOF |
18842 |
|
/* confdefs.h. */ |
18843 |
|
_ACEOF |
18844 |
|
cat confdefs.h >>conftest.$ac_ext |
18845 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18846 |
|
/* end confdefs.h. */ |
18847 |
|
$ac_includes_default |
18848 |
|
int |
18849 |
|
main () |
18850 |
|
{ |
18851 |
|
#ifndef getline |
18852 |
|
char *p = (char *) getline; |
18853 |
|
#endif |
18854 |
|
|
18855 |
|
; |
18856 |
|
return 0; |
18857 |
|
} |
18858 |
|
_ACEOF |
18859 |
|
rm -f conftest.$ac_objext |
18860 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18861 |
|
(eval $ac_compile) 2>conftest.er1 |
18862 |
|
ac_status=$? |
18863 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18864 |
|
rm -f conftest.er1 |
18865 |
|
cat conftest.err >&5 |
18866 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18867 |
|
(exit $ac_status); } && |
18868 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18869 |
|
|| test ! -s conftest.err' |
18870 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18871 |
|
(eval $ac_try) 2>&5 |
18872 |
|
ac_status=$? |
18873 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18874 |
|
(exit $ac_status); }; } && |
18875 |
|
{ ac_try='test -s conftest.$ac_objext' |
18876 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18877 |
|
(eval $ac_try) 2>&5 |
18878 |
|
ac_status=$? |
18879 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18880 |
|
(exit $ac_status); }; }; then |
18881 |
|
ac_cv_have_decl_getline=yes |
18882 |
|
else |
18883 |
|
echo "$as_me: failed program was:" >&5 |
18884 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18885 |
|
|
18886 |
|
ac_cv_have_decl_getline=no |
18887 |
|
fi |
18888 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18889 |
|
fi |
18890 |
|
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5 |
18891 |
|
echo "${ECHO_T}$ac_cv_have_decl_getline" >&6 |
18892 |
|
if test $ac_cv_have_decl_getline = yes; then |
18893 |
|
|
18894 |
|
cat >>confdefs.h <<_ACEOF |
18895 |
|
#define HAVE_DECL_GETLINE 1 |
18896 |
|
_ACEOF |
18897 |
|
|
18898 |
|
|
18899 |
|
else |
18900 |
|
cat >>confdefs.h <<_ACEOF |
18901 |
|
#define HAVE_DECL_GETLINE 0 |
18902 |
|
_ACEOF |
18903 |
|
|
18904 |
|
|
18905 |
|
fi |
18906 |
|
|
18907 |
|
|
18908 |
|
|
18909 |
|
gl_getline_needs_run_time_check=no |
18910 |
echo "$as_me:$LINENO: checking for getline" >&5 |
echo "$as_me:$LINENO: checking for getline" >&5 |
18911 |
echo $ECHO_N "checking for getline... $ECHO_C" >&6 |
echo $ECHO_N "checking for getline... $ECHO_C" >&6 |
18912 |
if test "${ac_cv_func_getline+set}" = set; then |
if test "${ac_cv_func_getline+set}" = set; then |
18998 |
echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 |
echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 |
18999 |
echo "${ECHO_T}$ac_cv_func_getline" >&6 |
echo "${ECHO_T}$ac_cv_func_getline" >&6 |
19000 |
if test $ac_cv_func_getline = yes; then |
if test $ac_cv_func_getline = yes; then |
19001 |
am_getline_needs_run_time_check=yes |
gl_getline_needs_run_time_check=yes |
19002 |
else |
else |
19003 |
am_cv_func_working_getline=no |
am_cv_func_working_getline=no |
19004 |
fi |
fi |
19005 |
|
|
19006 |
if test $am_getline_needs_run_time_check = yes; then |
if test $gl_getline_needs_run_time_check = yes; then |
19007 |
echo "$as_me:$LINENO: checking for working getline function" >&5 |
echo "$as_me:$LINENO: checking for working getline function" >&5 |
19008 |
echo $ECHO_N "checking for working getline function... $ECHO_C" >&6 |
echo $ECHO_N "checking for working getline function... $ECHO_C" >&6 |
19009 |
if test "${am_cv_func_working_getline+set}" = set; then |
if test "${am_cv_func_working_getline+set}" = set; then |
19078 |
esac |
esac |
19079 |
|
|
19080 |
|
|
19081 |
# Avoid multiple inclusions of getndelim2.o into LIBOBJS. |
|
19082 |
# This hack won't be needed after gnulib requires Autoconf 2.58 or later. |
|
19083 |
case " $LIBOBJS " in |
|
19084 |
*" getndelim2.$ac_objext "* ) ;; |
|
|
*) case $LIBOBJS in |
|
|
"getndelim2.$ac_objext" | \ |
|
|
*" getndelim2.$ac_objext" | \ |
|
|
"getndelim2.$ac_objext "* | \ |
|
|
*" getndelim2.$ac_objext "* ) ;; |
|
|
*) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;; |
|
|
esac |
|
|
;; |
|
|
esac |
|
19085 |
|
|
19086 |
|
|
19087 |
|
|
19183 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19184 |
_ACEOF |
_ACEOF |
19185 |
|
|
19186 |
|
else |
19187 |
|
case $LIBOBJS in |
19188 |
|
"$ac_func.$ac_objext" | \ |
19189 |
|
*" $ac_func.$ac_objext" | \ |
19190 |
|
"$ac_func.$ac_objext "* | \ |
19191 |
|
*" $ac_func.$ac_objext "* ) ;; |
19192 |
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
19193 |
|
esac |
19194 |
|
|
19195 |
fi |
fi |
19196 |
done |
done |
19197 |
|
|
19198 |
|
|
19199 |
|
|
19200 |
|
: |
19201 |
|
|
19202 |
|
|
|
fi |
|
19203 |
|
|
19204 |
|
|
19205 |
|
|
19206 |
for ac_func in getlogin_r |
|
19207 |
|
if test $ac_cv_func_getdelim = no; then |
19208 |
|
|
19209 |
|
|
19210 |
|
|
19211 |
|
for ac_func in flockfile funlockfile |
19212 |
do |
do |
19213 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19214 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19306 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19307 |
_ACEOF |
_ACEOF |
19308 |
|
|
|
else |
|
|
case $LIBOBJS in |
|
|
"$ac_func.$ac_objext" | \ |
|
|
*" $ac_func.$ac_objext" | \ |
|
|
"$ac_func.$ac_objext "* | \ |
|
|
*" $ac_func.$ac_objext "* ) ;; |
|
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
|
|
esac |
|
|
|
|
19309 |
fi |
fi |
19310 |
done |
done |
19311 |
|
|
19312 |
|
|
|
if test $ac_cv_func_strcasecmp = no; then |
|
|
|
|
|
|
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $LIBOBJS in |
|
|
"getlogin_r.$ac_objext" | \ |
|
|
*" getlogin_r.$ac_objext" | \ |
|
|
"getlogin_r.$ac_objext "* | \ |
|
|
*" getlogin_r.$ac_objext "* ) ;; |
|
|
*) LIBOBJS="$LIBOBJS getlogin_r.$ac_objext" ;; |
|
|
esac |
|
|
|
|
|
|
|
19313 |
fi |
fi |
19314 |
|
|
19315 |
|
|
|
# Avoid multiple inclusions of getndelim2.o into LIBOBJS. |
|
|
# This hack won't be needed after gnulib requires Autoconf 2.58 or later. |
|
|
case " $LIBOBJS " in |
|
|
*" getndelim2.$ac_objext "* ) ;; |
|
|
*) case $LIBOBJS in |
|
|
"getndelim2.$ac_objext" | \ |
|
|
*" getndelim2.$ac_objext" | \ |
|
|
"getndelim2.$ac_objext "* | \ |
|
|
*" getndelim2.$ac_objext "* ) ;; |
|
|
*) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;; |
|
|
esac |
|
|
;; |
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
: |
|
|
|
|
|
if test -z "$GETOPT_H"; then |
|
|
GETOPT_H= |
|
|
|
|
|
for ac_header in getopt.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
19316 |
fi |
fi |
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19317 |
|
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
19318 |
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
yes:no: ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
ac_header_preproc=yes |
|
|
;; |
|
|
no:yes:* ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------ ## |
|
|
## Report this to bug-cvs@gnu.org ## |
|
|
## ------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=\$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
fi |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
else |
|
|
GETOPT_H=getopt.h |
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
if test -z "$GETOPT_H"; then |
|
19319 |
|
|
19320 |
for ac_func in getopt_long_only |
for ac_func in getlogin_r |
19321 |
do |
do |
19322 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19323 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19416 |
_ACEOF |
_ACEOF |
19417 |
|
|
19418 |
else |
else |
19419 |
GETOPT_H=getopt.h |
case $LIBOBJS in |
19420 |
|
"$ac_func.$ac_objext" | \ |
19421 |
|
*" $ac_func.$ac_objext" | \ |
19422 |
|
"$ac_func.$ac_objext "* | \ |
19423 |
|
*" $ac_func.$ac_objext "* ) ;; |
19424 |
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
19425 |
|
esac |
19426 |
|
|
19427 |
fi |
fi |
19428 |
done |
done |
19429 |
|
|
|
fi |
|
19430 |
|
|
19431 |
if test -z "$GETOPT_H"; then |
if test $ac_cv_func_strcasecmp = no; then |
|
echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
|
|
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 |
|
|
if test "${ac_cv_have_decl_optreset+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <getopt.h> |
|
19432 |
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef optreset |
|
|
char *p = (char *) optreset; |
|
|
#endif |
|
19433 |
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_have_decl_optreset=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19434 |
|
|
19435 |
ac_cv_have_decl_optreset=no |
: |
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
|
|
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 |
|
|
if test $ac_cv_have_decl_optreset = yes; then |
|
|
GETOPT_H=getopt.h |
|
|
fi |
|
19436 |
|
|
|
fi |
|
19437 |
|
|
|
if test -z "$GETOPT_H"; then |
|
|
echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
|
|
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6 |
|
|
if test "${gl_cv_func_gnu_getopt+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$cross_compiling" = yes; then |
|
|
echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
|
|
echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6 |
|
|
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <getopt.h> |
|
19438 |
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef getopt_clip |
|
|
char *p = (char *) getopt_clip; |
|
|
#endif |
|
19439 |
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_have_decl_getopt_clip=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19440 |
|
|
|
ac_cv_have_decl_getopt_clip=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
|
|
echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6 |
|
|
if test $ac_cv_have_decl_getopt_clip = yes; then |
|
|
gl_cv_func_gnu_getopt=no |
|
|
else |
|
|
gl_cv_func_gnu_getopt=yes |
|
|
fi |
|
19441 |
|
|
19442 |
else |
: |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <getopt.h> |
|
|
int |
|
|
main () |
|
|
{ |
|
19443 |
|
|
|
char *myargv[3]; |
|
|
myargv[0] = "conftest"; |
|
|
myargv[1] = "-+"; |
|
|
myargv[2] = 0; |
|
|
return getopt (2, myargv, "+a") != '?'; |
|
19444 |
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
gl_cv_func_gnu_getopt=yes |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19445 |
|
|
|
( exit $ac_status ) |
|
|
gl_cv_func_gnu_getopt=no |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
|
|
echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6 |
|
|
if test "$gl_cv_func_gnu_getopt" = "no"; then |
|
|
GETOPT_H=getopt.h |
|
|
fi |
|
|
fi |
|
19446 |
|
|
|
if test -n "$GETOPT_H"; then |
|
19447 |
|
|
19448 |
GETOPT_H=getopt.h |
|
19449 |
|
|
19450 |
|
|
19451 |
|
|
19452 |
|
|
19453 |
|
case $LIBOBJS in |
19454 |
|
"getlogin_r.$ac_objext" | \ |
19455 |
|
*" getlogin_r.$ac_objext" | \ |
19456 |
|
"getlogin_r.$ac_objext "* | \ |
19457 |
|
*" getlogin_r.$ac_objext "* ) ;; |
19458 |
|
*) LIBOBJS="$LIBOBJS getlogin_r.$ac_objext" ;; |
19459 |
|
esac |
19460 |
|
|
19461 |
|
|
19462 |
|
fi |
19463 |
|
|
19464 |
|
|
19465 |
|
# Avoid multiple inclusions of getndelim2.o into LIBOBJS. |
19466 |
|
# This hack won't be needed after gnulib requires Autoconf 2.58 or later. |
19467 |
|
case " $LIBOBJS " in |
19468 |
|
*" getndelim2.$ac_objext "* ) ;; |
19469 |
|
*) case $LIBOBJS in |
19470 |
|
"getndelim2.$ac_objext" | \ |
19471 |
|
*" getndelim2.$ac_objext" | \ |
19472 |
|
"getndelim2.$ac_objext "* | \ |
19473 |
|
*" getndelim2.$ac_objext "* ) ;; |
19474 |
|
*) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;; |
19475 |
|
esac |
19476 |
|
;; |
19477 |
|
esac |
19478 |
|
|
19479 |
|
|
19480 |
|
|
19481 |
|
|
19482 |
|
|
19483 |
|
|
19484 |
|
|
19485 |
|
: |
19486 |
|
|
19487 |
|
|
19488 |
|
|
19489 |
|
if test -n "$GETOPT_H"; then |
19490 |
|
|
19491 |
case $LIBOBJS in |
case $LIBOBJS in |
19492 |
"getopt.$ac_objext" | \ |
"getopt.$ac_objext" | \ |
19493 |
*" getopt.$ac_objext" | \ |
*" getopt.$ac_objext" | \ |
19505 |
esac |
esac |
19506 |
|
|
19507 |
|
|
19508 |
|
GETOPT_H=getopt.h |
19509 |
|
|
19510 |
cat >>confdefs.h <<\_ACEOF |
cat >>confdefs.h <<\_ACEOF |
19511 |
#define __GETOPT_PREFIX rpl_ |
#define __GETOPT_PREFIX rpl_ |
19512 |
_ACEOF |
_ACEOF |
19513 |
|
|
19514 |
|
|
19515 |
|
|
19516 |
fi |
: |
19517 |
fi |
|
19518 |
|
fi |
19519 |
|
|
19520 |
|
|
19521 |
|
|
19522 |
|
|
20888 |
|
|
20889 |
|
|
20890 |
|
|
|
|
|
|
|
|
|
|
|
20891 |
for ac_func in __secure_getenv gettimeofday |
for ac_func in __secure_getenv gettimeofday |
20892 |
do |
do |
20893 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21415 |
|
|
21416 |
|
|
21417 |
|
|
|
|
|
|
|
|
|
|
|
21418 |
: |
: |
21419 |
|
|
21420 |
|
|
21524 |
|
|
21525 |
fi |
fi |
21526 |
|
|
21527 |
echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
21528 |
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6 |
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6 |
21529 |
if test "${gl_cv_func_mbrtowc+set}" = set; then |
if test "${gl_cv_func_mbrtowc+set}" = set; then |
21530 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
21539 |
int |
int |
21540 |
main () |
main () |
21541 |
{ |
{ |
21542 |
mbstate_t state; return ! (sizeof state && mbrtowc); |
wchar_t wc; |
21543 |
|
char const s[] = ""; |
21544 |
|
size_t n = 1; |
21545 |
|
mbstate_t state; |
21546 |
|
return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); |
21547 |
; |
; |
21548 |
return 0; |
return 0; |
21549 |
} |
} |
21942 |
|
|
21943 |
|
|
21944 |
|
|
21945 |
|
|
21946 |
|
|
21947 |
# Assume we'll default to using the included regex.c. |
# Assume we'll default to using the included regex.c. |
21948 |
ac_use_included_regex=yes |
ac_use_included_regex=yes |
21949 |
|
|
21954 |
# test #75' in grep-2.3. |
# test #75' in grep-2.3. |
21955 |
echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5 |
echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5 |
21956 |
echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6 |
echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6 |
21957 |
if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then |
if test "${gl_cv_func_working_re_compile_pattern+set}" = set; then |
21958 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
21959 |
else |
else |
21960 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
21961 |
jm_cv_func_working_re_compile_pattern=no |
gl_cv_func_working_re_compile_pattern=no |
21962 |
else |
else |
21963 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
21964 |
/* confdefs.h. */ |
/* confdefs.h. */ |
21966 |
cat confdefs.h >>conftest.$ac_ext |
cat confdefs.h >>conftest.$ac_ext |
21967 |
cat >>conftest.$ac_ext <<_ACEOF |
cat >>conftest.$ac_ext <<_ACEOF |
21968 |
/* end confdefs.h. */ |
/* end confdefs.h. */ |
21969 |
#include <stdio.h> |
$ac_includes_default |
21970 |
#include <string.h> |
#include <regex.h> |
21971 |
#include <regex.h> |
int |
21972 |
int |
main () |
21973 |
main () |
{ |
21974 |
{ |
static struct re_pattern_buffer regex; |
21975 |
static struct re_pattern_buffer regex; |
const char *s; |
21976 |
const char *s; |
struct re_registers regs; |
21977 |
struct re_registers regs; |
re_set_syntax (RE_SYNTAX_POSIX_EGREP); |
21978 |
re_set_syntax (RE_SYNTAX_POSIX_EGREP); |
memset (®ex, 0, sizeof (regex)); |
21979 |
memset (®ex, 0, sizeof (regex)); |
s = re_compile_pattern ("a[:]:]b\n", 9, ®ex); |
21980 |
s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex); |
/* This should fail with _Invalid character class name_ error. */ |
21981 |
/* This should fail with _Invalid character class name_ error. */ |
if (!s) |
21982 |
if (!s) |
exit (1); |
21983 |
exit (1); |
|
21984 |
|
/* This should succeed, but does not for e.g. glibc-2.1.3. */ |
21985 |
/* This should succeed, but doesn't for e.g. glibc-2.1.3. */ |
memset (®ex, 0, sizeof (regex)); |
21986 |
memset (®ex, 0, sizeof (regex)); |
s = re_compile_pattern ("{1", 2, ®ex); |
21987 |
s = re_compile_pattern ("{1", 2, ®ex); |
|
21988 |
|
if (s) |
21989 |
if (s) |
exit (1); |
21990 |
exit (1); |
|
21991 |
|
/* The following example is derived from a problem report |
21992 |
/* The following example is derived from a problem report |
against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ |
21993 |
against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ |
memset (®ex, 0, sizeof (regex)); |
21994 |
memset (®ex, 0, sizeof (regex)); |
s = re_compile_pattern ("[an\371]*n", 7, ®ex); |
21995 |
s = re_compile_pattern ("[an\371]*n", 7, ®ex); |
if (s) |
21996 |
if (s) |
exit (1); |
21997 |
exit (1); |
|
21998 |
|
/* This should match, but does not for e.g. glibc-2.2.1. */ |
21999 |
/* This should match, but doesn't for e.g. glibc-2.2.1. */ |
if (re_match (®ex, "an", 2, 0, ®s) != 2) |
22000 |
if (re_match (®ex, "an", 2, 0, ®s) != 2) |
exit (1); |
22001 |
exit (1); |
|
22002 |
|
memset (®ex, 0, sizeof (regex)); |
22003 |
memset (®ex, 0, sizeof (regex)); |
s = re_compile_pattern ("x", 1, ®ex); |
22004 |
s = re_compile_pattern ("x", 1, ®ex); |
if (s) |
22005 |
if (s) |
exit (1); |
22006 |
exit (1); |
|
22007 |
|
/* The version of regex.c in e.g. GNU libc-2.2.93 did not |
22008 |
/* The version of regex.c in e.g. GNU libc-2.2.93 didn't |
work with a negative RANGE argument. */ |
22009 |
work with a negative RANGE argument. */ |
if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) |
22010 |
if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) |
exit (1); |
22011 |
exit (1); |
|
22012 |
|
/* The version of regex.c in older versions of gnulib |
22013 |
exit (0); |
* ignored RE_ICASE. Detect that problem too. */ |
22014 |
} |
memset (®ex, 0, sizeof (regex)); |
22015 |
|
re_set_syntax(RE_SYNTAX_EMACS|RE_ICASE); |
22016 |
|
s = re_compile_pattern ("x", 1, ®ex); |
22017 |
|
if (s) |
22018 |
|
exit (1); |
22019 |
|
|
22020 |
|
if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) |
22021 |
|
exit (1); |
22022 |
|
|
22023 |
|
/* REG_STARTEND was added to glibc on 2004-01-15. |
22024 |
|
Reject older versions. */ |
22025 |
|
if (! REG_STARTEND) |
22026 |
|
exit (1); |
22027 |
|
|
22028 |
|
exit (0); |
22029 |
|
; |
22030 |
|
return 0; |
22031 |
|
} |
22032 |
_ACEOF |
_ACEOF |
22033 |
rm -f conftest$ac_exeext |
rm -f conftest$ac_exeext |
22034 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22041 |
ac_status=$? |
ac_status=$? |
22042 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22043 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
22044 |
jm_cv_func_working_re_compile_pattern=yes |
gl_cv_func_working_re_compile_pattern=yes |
22045 |
else |
else |
22046 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "$as_me: program exited with status $ac_status" >&5 |
22047 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
22048 |
sed 's/^/| /' conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
22049 |
|
|
22050 |
( exit $ac_status ) |
( exit $ac_status ) |
22051 |
jm_cv_func_working_re_compile_pattern=no |
gl_cv_func_working_re_compile_pattern=no |
22052 |
fi |
fi |
22053 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22054 |
fi |
fi |
22055 |
fi |
fi |
22056 |
echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5 |
echo "$as_me:$LINENO: result: $gl_cv_func_working_re_compile_pattern" >&5 |
22057 |
echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6 |
echo "${ECHO_T}$gl_cv_func_working_re_compile_pattern" >&6 |
22058 |
if test $jm_cv_func_working_re_compile_pattern = yes; then |
if test $gl_cv_func_working_re_compile_pattern = yes; then |
22059 |
ac_use_included_regex=no |
ac_use_included_regex=no |
22060 |
fi |
fi |
22061 |
|
|
22068 |
# Check whether --with-included-regex or --without-included-regex was given. |
# Check whether --with-included-regex or --without-included-regex was given. |
22069 |
if test "${with_included_regex+set}" = set; then |
if test "${with_included_regex+set}" = set; then |
22070 |
withval="$with_included_regex" |
withval="$with_included_regex" |
22071 |
jm_with_regex=$withval |
gl_with_regex=$withval |
22072 |
else |
else |
22073 |
jm_with_regex=$ac_use_included_regex |
gl_with_regex=$ac_use_included_regex |
22074 |
fi; |
fi; |
22075 |
if test "$jm_with_regex" = yes; then |
if test "X$gl_with_regex" = Xyes; then |
22076 |
case $LIBOBJS in |
case $LIBOBJS in |
22077 |
"regex.$ac_objext" | \ |
"regex.$ac_objext" | \ |
22078 |
*" regex.$ac_objext" | \ |
*" regex.$ac_objext" | \ |
22085 |
|
|
22086 |
|
|
22087 |
|
|
22088 |
|
: |
22089 |
|
|
22090 |
|
|
22091 |
|
|
22092 |
|
|
|
: |
|
|
|
|
22093 |
|
|
22094 |
|
|
22095 |
|
|
22108 |
|
|
22109 |
|
|
22110 |
|
|
|
for ac_func in btowc |
|
|
do |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define $ac_func innocuous_$ac_func |
|
22111 |
|
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func (); below. |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
<limits.h> exists even on freestanding compilers. */ |
|
22112 |
|
|
|
#ifdef __STDC__ |
|
|
# include <limits.h> |
|
|
#else |
|
|
# include <assert.h> |
|
|
#endif |
|
22113 |
|
|
|
#undef $ac_func |
|
22114 |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func (); |
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
char (*f) () = $ac_func; |
|
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
22115 |
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
return f != $ac_func; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
22116 |
|
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
22117 |
|
|
|
fi |
|
|
done |
|
22118 |
|
|
22119 |
|
|
22120 |
fi |
fi |
22411 |
|
|
22412 |
|
|
22413 |
|
|
|
|
|
|
|
|
|
|
|
22414 |
for ac_func in setenv unsetenv |
for ac_func in setenv unsetenv |
22415 |
do |
do |
22416 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23135 |
|
|
23136 |
|
|
23137 |
|
|
23138 |
|
for ac_header in stdint.h |
23139 |
|
do |
23140 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
23141 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
23142 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23143 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
23144 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
23145 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
23146 |
|
fi |
23147 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
23148 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
23149 |
|
else |
23150 |
|
# Is the header compilable? |
23151 |
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
23152 |
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
23153 |
|
cat >conftest.$ac_ext <<_ACEOF |
23154 |
|
/* confdefs.h. */ |
23155 |
|
_ACEOF |
23156 |
|
cat confdefs.h >>conftest.$ac_ext |
23157 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23158 |
|
/* end confdefs.h. */ |
23159 |
|
$ac_includes_default |
23160 |
|
#include <$ac_header> |
23161 |
|
_ACEOF |
23162 |
|
rm -f conftest.$ac_objext |
23163 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23164 |
|
(eval $ac_compile) 2>conftest.er1 |
23165 |
|
ac_status=$? |
23166 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23167 |
|
rm -f conftest.er1 |
23168 |
|
cat conftest.err >&5 |
23169 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23170 |
|
(exit $ac_status); } && |
23171 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23172 |
|
|| test ! -s conftest.err' |
23173 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23174 |
|
(eval $ac_try) 2>&5 |
23175 |
|
ac_status=$? |
23176 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23177 |
|
(exit $ac_status); }; } && |
23178 |
|
{ ac_try='test -s conftest.$ac_objext' |
23179 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23180 |
|
(eval $ac_try) 2>&5 |
23181 |
|
ac_status=$? |
23182 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23183 |
|
(exit $ac_status); }; }; then |
23184 |
|
ac_header_compiler=yes |
23185 |
|
else |
23186 |
|
echo "$as_me: failed program was:" >&5 |
23187 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23188 |
|
|
23189 |
|
ac_header_compiler=no |
23190 |
|
fi |
23191 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23192 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23193 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
23194 |
|
|
23195 |
|
# Is the header present? |
23196 |
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
23197 |
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
23198 |
|
cat >conftest.$ac_ext <<_ACEOF |
23199 |
|
/* confdefs.h. */ |
23200 |
|
_ACEOF |
23201 |
|
cat confdefs.h >>conftest.$ac_ext |
23202 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23203 |
|
/* end confdefs.h. */ |
23204 |
|
#include <$ac_header> |
23205 |
|
_ACEOF |
23206 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
23207 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
23208 |
|
ac_status=$? |
23209 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23210 |
|
rm -f conftest.er1 |
23211 |
|
cat conftest.err >&5 |
23212 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23213 |
|
(exit $ac_status); } >/dev/null; then |
23214 |
|
if test -s conftest.err; then |
23215 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
23216 |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
23217 |
|
else |
23218 |
|
ac_cpp_err= |
23219 |
|
fi |
23220 |
|
else |
23221 |
|
ac_cpp_err=yes |
23222 |
|
fi |
23223 |
|
if test -z "$ac_cpp_err"; then |
23224 |
|
ac_header_preproc=yes |
23225 |
|
else |
23226 |
|
echo "$as_me: failed program was:" >&5 |
23227 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23228 |
|
|
23229 |
|
ac_header_preproc=no |
23230 |
|
fi |
23231 |
|
rm -f conftest.err conftest.$ac_ext |
23232 |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23233 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
23234 |
|
|
23235 |
|
# So? What about this header? |
23236 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23237 |
|
yes:no: ) |
23238 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23239 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
23240 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23241 |
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
23242 |
|
ac_header_preproc=yes |
23243 |
|
;; |
23244 |
|
no:yes:* ) |
23245 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23246 |
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
23247 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23248 |
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
23249 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
23250 |
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
23251 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
23252 |
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
23253 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23254 |
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
23255 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23256 |
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
23257 |
|
( |
23258 |
|
cat <<\_ASBOX |
23259 |
|
## ------------------------------ ## |
23260 |
|
## Report this to bug-cvs@gnu.org ## |
23261 |
|
## ------------------------------ ## |
23262 |
|
_ASBOX |
23263 |
|
) | |
23264 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
23265 |
|
;; |
23266 |
|
esac |
23267 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23268 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
23269 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
23270 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
23271 |
|
else |
23272 |
|
eval "$as_ac_Header=\$ac_header_preproc" |
23273 |
|
fi |
23274 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
23275 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
23276 |
|
|
23277 |
|
fi |
23278 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
23279 |
|
cat >>confdefs.h <<_ACEOF |
23280 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
23281 |
|
_ACEOF |
23282 |
|
|
23283 |
|
fi |
23284 |
|
|
23285 |
|
done |
23286 |
|
|
23287 |
|
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
23288 |
|
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 |
23289 |
|
result= |
23290 |
|
cat >conftest.$ac_ext <<_ACEOF |
23291 |
|
/* confdefs.h. */ |
23292 |
|
_ACEOF |
23293 |
|
cat confdefs.h >>conftest.$ac_ext |
23294 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23295 |
|
/* end confdefs.h. */ |
23296 |
|
|
23297 |
|
#include <limits.h> |
23298 |
|
#if HAVE_STDINT_H |
23299 |
|
#include <stdint.h> |
23300 |
|
#endif |
23301 |
|
#ifdef SIZE_MAX |
23302 |
|
Found it |
23303 |
|
#endif |
23304 |
|
|
23305 |
|
_ACEOF |
23306 |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
23307 |
|
$EGREP "Found it" >/dev/null 2>&1; then |
23308 |
|
result=yes |
23309 |
|
fi |
23310 |
|
rm -f conftest* |
23311 |
|
|
23312 |
|
if test -z "$result"; then |
23313 |
|
if test "$cross_compiling" = yes; then |
23314 |
|
# Depending upon the size, compute the lo and hi bounds. |
23315 |
|
cat >conftest.$ac_ext <<_ACEOF |
23316 |
|
/* confdefs.h. */ |
23317 |
|
_ACEOF |
23318 |
|
cat confdefs.h >>conftest.$ac_ext |
23319 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23320 |
|
/* end confdefs.h. */ |
23321 |
|
#include <stddef.h> |
23322 |
|
int |
23323 |
|
main () |
23324 |
|
{ |
23325 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) >= 0)]; |
23326 |
|
test_array [0] = 0 |
23327 |
|
|
23328 |
|
; |
23329 |
|
return 0; |
23330 |
|
} |
23331 |
|
_ACEOF |
23332 |
|
rm -f conftest.$ac_objext |
23333 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23334 |
|
(eval $ac_compile) 2>conftest.er1 |
23335 |
|
ac_status=$? |
23336 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23337 |
|
rm -f conftest.er1 |
23338 |
|
cat conftest.err >&5 |
23339 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23340 |
|
(exit $ac_status); } && |
23341 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23342 |
|
|| test ! -s conftest.err' |
23343 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23344 |
|
(eval $ac_try) 2>&5 |
23345 |
|
ac_status=$? |
23346 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23347 |
|
(exit $ac_status); }; } && |
23348 |
|
{ ac_try='test -s conftest.$ac_objext' |
23349 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23350 |
|
(eval $ac_try) 2>&5 |
23351 |
|
ac_status=$? |
23352 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23353 |
|
(exit $ac_status); }; }; then |
23354 |
|
ac_lo=0 ac_mid=0 |
23355 |
|
while :; do |
23356 |
|
cat >conftest.$ac_ext <<_ACEOF |
23357 |
|
/* confdefs.h. */ |
23358 |
|
_ACEOF |
23359 |
|
cat confdefs.h >>conftest.$ac_ext |
23360 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23361 |
|
/* end confdefs.h. */ |
23362 |
|
#include <stddef.h> |
23363 |
|
int |
23364 |
|
main () |
23365 |
|
{ |
23366 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) <= $ac_mid)]; |
23367 |
|
test_array [0] = 0 |
23368 |
|
|
23369 |
|
; |
23370 |
|
return 0; |
23371 |
|
} |
23372 |
|
_ACEOF |
23373 |
|
rm -f conftest.$ac_objext |
23374 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23375 |
|
(eval $ac_compile) 2>conftest.er1 |
23376 |
|
ac_status=$? |
23377 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23378 |
|
rm -f conftest.er1 |
23379 |
|
cat conftest.err >&5 |
23380 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23381 |
|
(exit $ac_status); } && |
23382 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23383 |
|
|| test ! -s conftest.err' |
23384 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23385 |
|
(eval $ac_try) 2>&5 |
23386 |
|
ac_status=$? |
23387 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23388 |
|
(exit $ac_status); }; } && |
23389 |
|
{ ac_try='test -s conftest.$ac_objext' |
23390 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23391 |
|
(eval $ac_try) 2>&5 |
23392 |
|
ac_status=$? |
23393 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23394 |
|
(exit $ac_status); }; }; then |
23395 |
|
ac_hi=$ac_mid; break |
23396 |
|
else |
23397 |
|
echo "$as_me: failed program was:" >&5 |
23398 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23399 |
|
|
23400 |
|
ac_lo=`expr $ac_mid + 1` |
23401 |
|
if test $ac_lo -le $ac_mid; then |
23402 |
|
ac_lo= ac_hi= |
23403 |
|
break |
23404 |
|
fi |
23405 |
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
23406 |
|
fi |
23407 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23408 |
|
done |
23409 |
|
else |
23410 |
|
echo "$as_me: failed program was:" >&5 |
23411 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23412 |
|
|
23413 |
|
cat >conftest.$ac_ext <<_ACEOF |
23414 |
|
/* confdefs.h. */ |
23415 |
|
_ACEOF |
23416 |
|
cat confdefs.h >>conftest.$ac_ext |
23417 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23418 |
|
/* end confdefs.h. */ |
23419 |
|
#include <stddef.h> |
23420 |
|
int |
23421 |
|
main () |
23422 |
|
{ |
23423 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) < 0)]; |
23424 |
|
test_array [0] = 0 |
23425 |
|
|
23426 |
|
; |
23427 |
|
return 0; |
23428 |
|
} |
23429 |
|
_ACEOF |
23430 |
|
rm -f conftest.$ac_objext |
23431 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23432 |
|
(eval $ac_compile) 2>conftest.er1 |
23433 |
|
ac_status=$? |
23434 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23435 |
|
rm -f conftest.er1 |
23436 |
|
cat conftest.err >&5 |
23437 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23438 |
|
(exit $ac_status); } && |
23439 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23440 |
|
|| test ! -s conftest.err' |
23441 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23442 |
|
(eval $ac_try) 2>&5 |
23443 |
|
ac_status=$? |
23444 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23445 |
|
(exit $ac_status); }; } && |
23446 |
|
{ ac_try='test -s conftest.$ac_objext' |
23447 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23448 |
|
(eval $ac_try) 2>&5 |
23449 |
|
ac_status=$? |
23450 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23451 |
|
(exit $ac_status); }; }; then |
23452 |
|
ac_hi=-1 ac_mid=-1 |
23453 |
|
while :; do |
23454 |
|
cat >conftest.$ac_ext <<_ACEOF |
23455 |
|
/* confdefs.h. */ |
23456 |
|
_ACEOF |
23457 |
|
cat confdefs.h >>conftest.$ac_ext |
23458 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23459 |
|
/* end confdefs.h. */ |
23460 |
|
#include <stddef.h> |
23461 |
|
int |
23462 |
|
main () |
23463 |
|
{ |
23464 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) >= $ac_mid)]; |
23465 |
|
test_array [0] = 0 |
23466 |
|
|
23467 |
|
; |
23468 |
|
return 0; |
23469 |
|
} |
23470 |
|
_ACEOF |
23471 |
|
rm -f conftest.$ac_objext |
23472 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23473 |
|
(eval $ac_compile) 2>conftest.er1 |
23474 |
|
ac_status=$? |
23475 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23476 |
|
rm -f conftest.er1 |
23477 |
|
cat conftest.err >&5 |
23478 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23479 |
|
(exit $ac_status); } && |
23480 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23481 |
|
|| test ! -s conftest.err' |
23482 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23483 |
|
(eval $ac_try) 2>&5 |
23484 |
|
ac_status=$? |
23485 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23486 |
|
(exit $ac_status); }; } && |
23487 |
|
{ ac_try='test -s conftest.$ac_objext' |
23488 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23489 |
|
(eval $ac_try) 2>&5 |
23490 |
|
ac_status=$? |
23491 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23492 |
|
(exit $ac_status); }; }; then |
23493 |
|
ac_lo=$ac_mid; break |
23494 |
|
else |
23495 |
|
echo "$as_me: failed program was:" >&5 |
23496 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23497 |
|
|
23498 |
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
23499 |
|
if test $ac_mid -le $ac_hi; then |
23500 |
|
ac_lo= ac_hi= |
23501 |
|
break |
23502 |
|
fi |
23503 |
|
ac_mid=`expr 2 '*' $ac_mid` |
23504 |
|
fi |
23505 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23506 |
|
done |
23507 |
|
else |
23508 |
|
echo "$as_me: failed program was:" >&5 |
23509 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23510 |
|
|
23511 |
|
ac_lo= ac_hi= |
23512 |
|
fi |
23513 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23514 |
|
fi |
23515 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23516 |
|
# Binary search between lo and hi bounds. |
23517 |
|
while test "x$ac_lo" != "x$ac_hi"; do |
23518 |
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
23519 |
|
cat >conftest.$ac_ext <<_ACEOF |
23520 |
|
/* confdefs.h. */ |
23521 |
|
_ACEOF |
23522 |
|
cat confdefs.h >>conftest.$ac_ext |
23523 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23524 |
|
/* end confdefs.h. */ |
23525 |
|
#include <stddef.h> |
23526 |
|
int |
23527 |
|
main () |
23528 |
|
{ |
23529 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) <= $ac_mid)]; |
23530 |
|
test_array [0] = 0 |
23531 |
|
|
23532 |
|
; |
23533 |
|
return 0; |
23534 |
|
} |
23535 |
|
_ACEOF |
23536 |
|
rm -f conftest.$ac_objext |
23537 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23538 |
|
(eval $ac_compile) 2>conftest.er1 |
23539 |
|
ac_status=$? |
23540 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23541 |
|
rm -f conftest.er1 |
23542 |
|
cat conftest.err >&5 |
23543 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23544 |
|
(exit $ac_status); } && |
23545 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23546 |
|
|| test ! -s conftest.err' |
23547 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23548 |
|
(eval $ac_try) 2>&5 |
23549 |
|
ac_status=$? |
23550 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23551 |
|
(exit $ac_status); }; } && |
23552 |
|
{ ac_try='test -s conftest.$ac_objext' |
23553 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23554 |
|
(eval $ac_try) 2>&5 |
23555 |
|
ac_status=$? |
23556 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23557 |
|
(exit $ac_status); }; }; then |
23558 |
|
ac_hi=$ac_mid |
23559 |
|
else |
23560 |
|
echo "$as_me: failed program was:" >&5 |
23561 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23562 |
|
|
23563 |
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
23564 |
|
fi |
23565 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23566 |
|
done |
23567 |
|
case $ac_lo in |
23568 |
|
?*) res_hi=$ac_lo;; |
23569 |
|
'') result=? ;; |
23570 |
|
esac |
23571 |
|
else |
23572 |
|
if test "$cross_compiling" = yes; then |
23573 |
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
23574 |
|
See \`config.log' for more details." >&5 |
23575 |
|
echo "$as_me: error: cannot run test program while cross compiling |
23576 |
|
See \`config.log' for more details." >&2;} |
23577 |
|
{ (exit 1); exit 1; }; } |
23578 |
|
else |
23579 |
|
cat >conftest.$ac_ext <<_ACEOF |
23580 |
|
/* confdefs.h. */ |
23581 |
|
_ACEOF |
23582 |
|
cat confdefs.h >>conftest.$ac_ext |
23583 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23584 |
|
/* end confdefs.h. */ |
23585 |
|
#include <stddef.h> |
23586 |
|
long longval () { return (size_t)~(size_t)0 / 10; } |
23587 |
|
unsigned long ulongval () { return (size_t)~(size_t)0 / 10; } |
23588 |
|
#include <stdio.h> |
23589 |
|
#include <stdlib.h> |
23590 |
|
int |
23591 |
|
main () |
23592 |
|
{ |
23593 |
|
|
23594 |
|
FILE *f = fopen ("conftest.val", "w"); |
23595 |
|
if (! f) |
23596 |
|
exit (1); |
23597 |
|
if (((size_t)~(size_t)0 / 10) < 0) |
23598 |
|
{ |
23599 |
|
long i = longval (); |
23600 |
|
if (i != ((size_t)~(size_t)0 / 10)) |
23601 |
|
exit (1); |
23602 |
|
fprintf (f, "%ld\n", i); |
23603 |
|
} |
23604 |
|
else |
23605 |
|
{ |
23606 |
|
unsigned long i = ulongval (); |
23607 |
|
if (i != ((size_t)~(size_t)0 / 10)) |
23608 |
|
exit (1); |
23609 |
|
fprintf (f, "%lu\n", i); |
23610 |
|
} |
23611 |
|
exit (ferror (f) || fclose (f) != 0); |
23612 |
|
|
23613 |
|
; |
23614 |
|
return 0; |
23615 |
|
} |
23616 |
|
_ACEOF |
23617 |
|
rm -f conftest$ac_exeext |
23618 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23619 |
|
(eval $ac_link) 2>&5 |
23620 |
|
ac_status=$? |
23621 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23622 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
23623 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23624 |
|
(eval $ac_try) 2>&5 |
23625 |
|
ac_status=$? |
23626 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23627 |
|
(exit $ac_status); }; }; then |
23628 |
|
res_hi=`cat conftest.val` |
23629 |
|
else |
23630 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
23631 |
|
echo "$as_me: failed program was:" >&5 |
23632 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23633 |
|
|
23634 |
|
( exit $ac_status ) |
23635 |
|
result=? |
23636 |
|
fi |
23637 |
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
23638 |
|
fi |
23639 |
|
fi |
23640 |
|
rm -f conftest.val |
23641 |
|
if test "$cross_compiling" = yes; then |
23642 |
|
# Depending upon the size, compute the lo and hi bounds. |
23643 |
|
cat >conftest.$ac_ext <<_ACEOF |
23644 |
|
/* confdefs.h. */ |
23645 |
|
_ACEOF |
23646 |
|
cat confdefs.h >>conftest.$ac_ext |
23647 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23648 |
|
/* end confdefs.h. */ |
23649 |
|
#include <stddef.h> |
23650 |
|
int |
23651 |
|
main () |
23652 |
|
{ |
23653 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) >= 0)]; |
23654 |
|
test_array [0] = 0 |
23655 |
|
|
23656 |
|
; |
23657 |
|
return 0; |
23658 |
|
} |
23659 |
|
_ACEOF |
23660 |
|
rm -f conftest.$ac_objext |
23661 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23662 |
|
(eval $ac_compile) 2>conftest.er1 |
23663 |
|
ac_status=$? |
23664 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23665 |
|
rm -f conftest.er1 |
23666 |
|
cat conftest.err >&5 |
23667 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23668 |
|
(exit $ac_status); } && |
23669 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23670 |
|
|| test ! -s conftest.err' |
23671 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23672 |
|
(eval $ac_try) 2>&5 |
23673 |
|
ac_status=$? |
23674 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23675 |
|
(exit $ac_status); }; } && |
23676 |
|
{ ac_try='test -s conftest.$ac_objext' |
23677 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23678 |
|
(eval $ac_try) 2>&5 |
23679 |
|
ac_status=$? |
23680 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23681 |
|
(exit $ac_status); }; }; then |
23682 |
|
ac_lo=0 ac_mid=0 |
23683 |
|
while :; do |
23684 |
|
cat >conftest.$ac_ext <<_ACEOF |
23685 |
|
/* confdefs.h. */ |
23686 |
|
_ACEOF |
23687 |
|
cat confdefs.h >>conftest.$ac_ext |
23688 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23689 |
|
/* end confdefs.h. */ |
23690 |
|
#include <stddef.h> |
23691 |
|
int |
23692 |
|
main () |
23693 |
|
{ |
23694 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) <= $ac_mid)]; |
23695 |
|
test_array [0] = 0 |
23696 |
|
|
23697 |
|
; |
23698 |
|
return 0; |
23699 |
|
} |
23700 |
|
_ACEOF |
23701 |
|
rm -f conftest.$ac_objext |
23702 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23703 |
|
(eval $ac_compile) 2>conftest.er1 |
23704 |
|
ac_status=$? |
23705 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23706 |
|
rm -f conftest.er1 |
23707 |
|
cat conftest.err >&5 |
23708 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23709 |
|
(exit $ac_status); } && |
23710 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23711 |
|
|| test ! -s conftest.err' |
23712 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23713 |
|
(eval $ac_try) 2>&5 |
23714 |
|
ac_status=$? |
23715 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23716 |
|
(exit $ac_status); }; } && |
23717 |
|
{ ac_try='test -s conftest.$ac_objext' |
23718 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23719 |
|
(eval $ac_try) 2>&5 |
23720 |
|
ac_status=$? |
23721 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23722 |
|
(exit $ac_status); }; }; then |
23723 |
|
ac_hi=$ac_mid; break |
23724 |
|
else |
23725 |
|
echo "$as_me: failed program was:" >&5 |
23726 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23727 |
|
|
23728 |
|
ac_lo=`expr $ac_mid + 1` |
23729 |
|
if test $ac_lo -le $ac_mid; then |
23730 |
|
ac_lo= ac_hi= |
23731 |
|
break |
23732 |
|
fi |
23733 |
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
23734 |
|
fi |
23735 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23736 |
|
done |
23737 |
|
else |
23738 |
|
echo "$as_me: failed program was:" >&5 |
23739 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23740 |
|
|
23741 |
|
cat >conftest.$ac_ext <<_ACEOF |
23742 |
|
/* confdefs.h. */ |
23743 |
|
_ACEOF |
23744 |
|
cat confdefs.h >>conftest.$ac_ext |
23745 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23746 |
|
/* end confdefs.h. */ |
23747 |
|
#include <stddef.h> |
23748 |
|
int |
23749 |
|
main () |
23750 |
|
{ |
23751 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) < 0)]; |
23752 |
|
test_array [0] = 0 |
23753 |
|
|
23754 |
|
; |
23755 |
|
return 0; |
23756 |
|
} |
23757 |
|
_ACEOF |
23758 |
|
rm -f conftest.$ac_objext |
23759 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23760 |
|
(eval $ac_compile) 2>conftest.er1 |
23761 |
|
ac_status=$? |
23762 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23763 |
|
rm -f conftest.er1 |
23764 |
|
cat conftest.err >&5 |
23765 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23766 |
|
(exit $ac_status); } && |
23767 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23768 |
|
|| test ! -s conftest.err' |
23769 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23770 |
|
(eval $ac_try) 2>&5 |
23771 |
|
ac_status=$? |
23772 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23773 |
|
(exit $ac_status); }; } && |
23774 |
|
{ ac_try='test -s conftest.$ac_objext' |
23775 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23776 |
|
(eval $ac_try) 2>&5 |
23777 |
|
ac_status=$? |
23778 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23779 |
|
(exit $ac_status); }; }; then |
23780 |
|
ac_hi=-1 ac_mid=-1 |
23781 |
|
while :; do |
23782 |
|
cat >conftest.$ac_ext <<_ACEOF |
23783 |
|
/* confdefs.h. */ |
23784 |
|
_ACEOF |
23785 |
|
cat confdefs.h >>conftest.$ac_ext |
23786 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23787 |
|
/* end confdefs.h. */ |
23788 |
|
#include <stddef.h> |
23789 |
|
int |
23790 |
|
main () |
23791 |
|
{ |
23792 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) >= $ac_mid)]; |
23793 |
|
test_array [0] = 0 |
23794 |
|
|
23795 |
|
; |
23796 |
|
return 0; |
23797 |
|
} |
23798 |
|
_ACEOF |
23799 |
|
rm -f conftest.$ac_objext |
23800 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23801 |
|
(eval $ac_compile) 2>conftest.er1 |
23802 |
|
ac_status=$? |
23803 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23804 |
|
rm -f conftest.er1 |
23805 |
|
cat conftest.err >&5 |
23806 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23807 |
|
(exit $ac_status); } && |
23808 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23809 |
|
|| test ! -s conftest.err' |
23810 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23811 |
|
(eval $ac_try) 2>&5 |
23812 |
|
ac_status=$? |
23813 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23814 |
|
(exit $ac_status); }; } && |
23815 |
|
{ ac_try='test -s conftest.$ac_objext' |
23816 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23817 |
|
(eval $ac_try) 2>&5 |
23818 |
|
ac_status=$? |
23819 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23820 |
|
(exit $ac_status); }; }; then |
23821 |
|
ac_lo=$ac_mid; break |
23822 |
|
else |
23823 |
|
echo "$as_me: failed program was:" >&5 |
23824 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23825 |
|
|
23826 |
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
23827 |
|
if test $ac_mid -le $ac_hi; then |
23828 |
|
ac_lo= ac_hi= |
23829 |
|
break |
23830 |
|
fi |
23831 |
|
ac_mid=`expr 2 '*' $ac_mid` |
23832 |
|
fi |
23833 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23834 |
|
done |
23835 |
|
else |
23836 |
|
echo "$as_me: failed program was:" >&5 |
23837 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23838 |
|
|
23839 |
|
ac_lo= ac_hi= |
23840 |
|
fi |
23841 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23842 |
|
fi |
23843 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23844 |
|
# Binary search between lo and hi bounds. |
23845 |
|
while test "x$ac_lo" != "x$ac_hi"; do |
23846 |
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
23847 |
|
cat >conftest.$ac_ext <<_ACEOF |
23848 |
|
/* confdefs.h. */ |
23849 |
|
_ACEOF |
23850 |
|
cat confdefs.h >>conftest.$ac_ext |
23851 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23852 |
|
/* end confdefs.h. */ |
23853 |
|
#include <stddef.h> |
23854 |
|
int |
23855 |
|
main () |
23856 |
|
{ |
23857 |
|
static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) <= $ac_mid)]; |
23858 |
|
test_array [0] = 0 |
23859 |
|
|
23860 |
|
; |
23861 |
|
return 0; |
23862 |
|
} |
23863 |
|
_ACEOF |
23864 |
|
rm -f conftest.$ac_objext |
23865 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23866 |
|
(eval $ac_compile) 2>conftest.er1 |
23867 |
|
ac_status=$? |
23868 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23869 |
|
rm -f conftest.er1 |
23870 |
|
cat conftest.err >&5 |
23871 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23872 |
|
(exit $ac_status); } && |
23873 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23874 |
|
|| test ! -s conftest.err' |
23875 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23876 |
|
(eval $ac_try) 2>&5 |
23877 |
|
ac_status=$? |
23878 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23879 |
|
(exit $ac_status); }; } && |
23880 |
|
{ ac_try='test -s conftest.$ac_objext' |
23881 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23882 |
|
(eval $ac_try) 2>&5 |
23883 |
|
ac_status=$? |
23884 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23885 |
|
(exit $ac_status); }; }; then |
23886 |
|
ac_hi=$ac_mid |
23887 |
|
else |
23888 |
|
echo "$as_me: failed program was:" >&5 |
23889 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23890 |
|
|
23891 |
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
23892 |
|
fi |
23893 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23894 |
|
done |
23895 |
|
case $ac_lo in |
23896 |
|
?*) res_lo=$ac_lo;; |
23897 |
|
'') result=? ;; |
23898 |
|
esac |
23899 |
|
else |
23900 |
|
if test "$cross_compiling" = yes; then |
23901 |
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
23902 |
|
See \`config.log' for more details." >&5 |
23903 |
|
echo "$as_me: error: cannot run test program while cross compiling |
23904 |
|
See \`config.log' for more details." >&2;} |
23905 |
|
{ (exit 1); exit 1; }; } |
23906 |
|
else |
23907 |
|
cat >conftest.$ac_ext <<_ACEOF |
23908 |
|
/* confdefs.h. */ |
23909 |
|
_ACEOF |
23910 |
|
cat confdefs.h >>conftest.$ac_ext |
23911 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23912 |
|
/* end confdefs.h. */ |
23913 |
|
#include <stddef.h> |
23914 |
|
long longval () { return (size_t)~(size_t)0 % 10; } |
23915 |
|
unsigned long ulongval () { return (size_t)~(size_t)0 % 10; } |
23916 |
|
#include <stdio.h> |
23917 |
|
#include <stdlib.h> |
23918 |
|
int |
23919 |
|
main () |
23920 |
|
{ |
23921 |
|
|
23922 |
|
FILE *f = fopen ("conftest.val", "w"); |
23923 |
|
if (! f) |
23924 |
|
exit (1); |
23925 |
|
if (((size_t)~(size_t)0 % 10) < 0) |
23926 |
|
{ |
23927 |
|
long i = longval (); |
23928 |
|
if (i != ((size_t)~(size_t)0 % 10)) |
23929 |
|
exit (1); |
23930 |
|
fprintf (f, "%ld\n", i); |
23931 |
|
} |
23932 |
|
else |
23933 |
|
{ |
23934 |
|
unsigned long i = ulongval (); |
23935 |
|
if (i != ((size_t)~(size_t)0 % 10)) |
23936 |
|
exit (1); |
23937 |
|
fprintf (f, "%lu\n", i); |
23938 |
|
} |
23939 |
|
exit (ferror (f) || fclose (f) != 0); |
23940 |
|
|
23941 |
|
; |
23942 |
|
return 0; |
23943 |
|
} |
23944 |
|
_ACEOF |
23945 |
|
rm -f conftest$ac_exeext |
23946 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23947 |
|
(eval $ac_link) 2>&5 |
23948 |
|
ac_status=$? |
23949 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23950 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
23951 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23952 |
|
(eval $ac_try) 2>&5 |
23953 |
|
ac_status=$? |
23954 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23955 |
|
(exit $ac_status); }; }; then |
23956 |
|
res_lo=`cat conftest.val` |
23957 |
|
else |
23958 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
23959 |
|
echo "$as_me: failed program was:" >&5 |
23960 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
23961 |
|
|
23962 |
|
( exit $ac_status ) |
23963 |
|
result=? |
23964 |
|
fi |
23965 |
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
23966 |
|
fi |
23967 |
|
fi |
23968 |
|
rm -f conftest.val |
23969 |
|
if test "$cross_compiling" = yes; then |
23970 |
|
# Depending upon the size, compute the lo and hi bounds. |
23971 |
|
cat >conftest.$ac_ext <<_ACEOF |
23972 |
|
/* confdefs.h. */ |
23973 |
|
_ACEOF |
23974 |
|
cat confdefs.h >>conftest.$ac_ext |
23975 |
|
cat >>conftest.$ac_ext <<_ACEOF |
23976 |
|
/* end confdefs.h. */ |
23977 |
|
#include <stddef.h> |
23978 |
|
int |
23979 |
|
main () |
23980 |
|
{ |
23981 |
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
23982 |
|
test_array [0] = 0 |
23983 |
|
|
23984 |
|
; |
23985 |
|
return 0; |
23986 |
|
} |
23987 |
|
_ACEOF |
23988 |
|
rm -f conftest.$ac_objext |
23989 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23990 |
|
(eval $ac_compile) 2>conftest.er1 |
23991 |
|
ac_status=$? |
23992 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
23993 |
|
rm -f conftest.er1 |
23994 |
|
cat conftest.err >&5 |
23995 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23996 |
|
(exit $ac_status); } && |
23997 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
23998 |
|
|| test ! -s conftest.err' |
23999 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24000 |
|
(eval $ac_try) 2>&5 |
24001 |
|
ac_status=$? |
24002 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24003 |
|
(exit $ac_status); }; } && |
24004 |
|
{ ac_try='test -s conftest.$ac_objext' |
24005 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24006 |
|
(eval $ac_try) 2>&5 |
24007 |
|
ac_status=$? |
24008 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24009 |
|
(exit $ac_status); }; }; then |
24010 |
|
ac_lo=0 ac_mid=0 |
24011 |
|
while :; do |
24012 |
|
cat >conftest.$ac_ext <<_ACEOF |
24013 |
|
/* confdefs.h. */ |
24014 |
|
_ACEOF |
24015 |
|
cat confdefs.h >>conftest.$ac_ext |
24016 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24017 |
|
/* end confdefs.h. */ |
24018 |
|
#include <stddef.h> |
24019 |
|
int |
24020 |
|
main () |
24021 |
|
{ |
24022 |
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
24023 |
|
test_array [0] = 0 |
24024 |
|
|
24025 |
|
; |
24026 |
|
return 0; |
24027 |
|
} |
24028 |
|
_ACEOF |
24029 |
|
rm -f conftest.$ac_objext |
24030 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24031 |
|
(eval $ac_compile) 2>conftest.er1 |
24032 |
|
ac_status=$? |
24033 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
24034 |
|
rm -f conftest.er1 |
24035 |
|
cat conftest.err >&5 |
24036 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24037 |
|
(exit $ac_status); } && |
24038 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
24039 |
|
|| test ! -s conftest.err' |
24040 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24041 |
|
(eval $ac_try) 2>&5 |
24042 |
|
ac_status=$? |
24043 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24044 |
|
(exit $ac_status); }; } && |
24045 |
|
{ ac_try='test -s conftest.$ac_objext' |
24046 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24047 |
|
(eval $ac_try) 2>&5 |
24048 |
|
ac_status=$? |
24049 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24050 |
|
(exit $ac_status); }; }; then |
24051 |
|
ac_hi=$ac_mid; break |
24052 |
|
else |
24053 |
|
echo "$as_me: failed program was:" >&5 |
24054 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24055 |
|
|
24056 |
|
ac_lo=`expr $ac_mid + 1` |
24057 |
|
if test $ac_lo -le $ac_mid; then |
24058 |
|
ac_lo= ac_hi= |
24059 |
|
break |
24060 |
|
fi |
24061 |
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
24062 |
|
fi |
24063 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24064 |
|
done |
24065 |
|
else |
24066 |
|
echo "$as_me: failed program was:" >&5 |
24067 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24068 |
|
|
24069 |
|
cat >conftest.$ac_ext <<_ACEOF |
24070 |
|
/* confdefs.h. */ |
24071 |
|
_ACEOF |
24072 |
|
cat confdefs.h >>conftest.$ac_ext |
24073 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24074 |
|
/* end confdefs.h. */ |
24075 |
|
#include <stddef.h> |
24076 |
|
int |
24077 |
|
main () |
24078 |
|
{ |
24079 |
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
24080 |
|
test_array [0] = 0 |
24081 |
|
|
24082 |
|
; |
24083 |
|
return 0; |
24084 |
|
} |
24085 |
|
_ACEOF |
24086 |
|
rm -f conftest.$ac_objext |
24087 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24088 |
|
(eval $ac_compile) 2>conftest.er1 |
24089 |
|
ac_status=$? |
24090 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
24091 |
|
rm -f conftest.er1 |
24092 |
|
cat conftest.err >&5 |
24093 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24094 |
|
(exit $ac_status); } && |
24095 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
24096 |
|
|| test ! -s conftest.err' |
24097 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24098 |
|
(eval $ac_try) 2>&5 |
24099 |
|
ac_status=$? |
24100 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24101 |
|
(exit $ac_status); }; } && |
24102 |
|
{ ac_try='test -s conftest.$ac_objext' |
24103 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24104 |
|
(eval $ac_try) 2>&5 |
24105 |
|
ac_status=$? |
24106 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24107 |
|
(exit $ac_status); }; }; then |
24108 |
|
ac_hi=-1 ac_mid=-1 |
24109 |
|
while :; do |
24110 |
|
cat >conftest.$ac_ext <<_ACEOF |
24111 |
|
/* confdefs.h. */ |
24112 |
|
_ACEOF |
24113 |
|
cat confdefs.h >>conftest.$ac_ext |
24114 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24115 |
|
/* end confdefs.h. */ |
24116 |
|
#include <stddef.h> |
24117 |
|
int |
24118 |
|
main () |
24119 |
|
{ |
24120 |
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
24121 |
|
test_array [0] = 0 |
24122 |
|
|
24123 |
|
; |
24124 |
|
return 0; |
24125 |
|
} |
24126 |
|
_ACEOF |
24127 |
|
rm -f conftest.$ac_objext |
24128 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24129 |
|
(eval $ac_compile) 2>conftest.er1 |
24130 |
|
ac_status=$? |
24131 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
24132 |
|
rm -f conftest.er1 |
24133 |
|
cat conftest.err >&5 |
24134 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24135 |
|
(exit $ac_status); } && |
24136 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
24137 |
|
|| test ! -s conftest.err' |
24138 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24139 |
|
(eval $ac_try) 2>&5 |
24140 |
|
ac_status=$? |
24141 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24142 |
|
(exit $ac_status); }; } && |
24143 |
|
{ ac_try='test -s conftest.$ac_objext' |
24144 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24145 |
|
(eval $ac_try) 2>&5 |
24146 |
|
ac_status=$? |
24147 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24148 |
|
(exit $ac_status); }; }; then |
24149 |
|
ac_lo=$ac_mid; break |
24150 |
|
else |
24151 |
|
echo "$as_me: failed program was:" >&5 |
24152 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24153 |
|
|
24154 |
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
24155 |
|
if test $ac_mid -le $ac_hi; then |
24156 |
|
ac_lo= ac_hi= |
24157 |
|
break |
24158 |
|
fi |
24159 |
|
ac_mid=`expr 2 '*' $ac_mid` |
24160 |
|
fi |
24161 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24162 |
|
done |
24163 |
|
else |
24164 |
|
echo "$as_me: failed program was:" >&5 |
24165 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24166 |
|
|
24167 |
|
ac_lo= ac_hi= |
24168 |
|
fi |
24169 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24170 |
|
fi |
24171 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24172 |
|
# Binary search between lo and hi bounds. |
24173 |
|
while test "x$ac_lo" != "x$ac_hi"; do |
24174 |
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
24175 |
|
cat >conftest.$ac_ext <<_ACEOF |
24176 |
|
/* confdefs.h. */ |
24177 |
|
_ACEOF |
24178 |
|
cat confdefs.h >>conftest.$ac_ext |
24179 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24180 |
|
/* end confdefs.h. */ |
24181 |
|
#include <stddef.h> |
24182 |
|
int |
24183 |
|
main () |
24184 |
|
{ |
24185 |
|
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
24186 |
|
test_array [0] = 0 |
24187 |
|
|
24188 |
|
; |
24189 |
|
return 0; |
24190 |
|
} |
24191 |
|
_ACEOF |
24192 |
|
rm -f conftest.$ac_objext |
24193 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24194 |
|
(eval $ac_compile) 2>conftest.er1 |
24195 |
|
ac_status=$? |
24196 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
24197 |
|
rm -f conftest.er1 |
24198 |
|
cat conftest.err >&5 |
24199 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24200 |
|
(exit $ac_status); } && |
24201 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
24202 |
|
|| test ! -s conftest.err' |
24203 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24204 |
|
(eval $ac_try) 2>&5 |
24205 |
|
ac_status=$? |
24206 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24207 |
|
(exit $ac_status); }; } && |
24208 |
|
{ ac_try='test -s conftest.$ac_objext' |
24209 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24210 |
|
(eval $ac_try) 2>&5 |
24211 |
|
ac_status=$? |
24212 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24213 |
|
(exit $ac_status); }; }; then |
24214 |
|
ac_hi=$ac_mid |
24215 |
|
else |
24216 |
|
echo "$as_me: failed program was:" >&5 |
24217 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24218 |
|
|
24219 |
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
24220 |
|
fi |
24221 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24222 |
|
done |
24223 |
|
case $ac_lo in |
24224 |
|
?*) fits_in_uint=$ac_lo;; |
24225 |
|
'') result=? ;; |
24226 |
|
esac |
24227 |
|
else |
24228 |
|
if test "$cross_compiling" = yes; then |
24229 |
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
24230 |
|
See \`config.log' for more details." >&5 |
24231 |
|
echo "$as_me: error: cannot run test program while cross compiling |
24232 |
|
See \`config.log' for more details." >&2;} |
24233 |
|
{ (exit 1); exit 1; }; } |
24234 |
|
else |
24235 |
|
cat >conftest.$ac_ext <<_ACEOF |
24236 |
|
/* confdefs.h. */ |
24237 |
|
_ACEOF |
24238 |
|
cat confdefs.h >>conftest.$ac_ext |
24239 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24240 |
|
/* end confdefs.h. */ |
24241 |
|
#include <stddef.h> |
24242 |
|
long longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
24243 |
|
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
24244 |
|
#include <stdio.h> |
24245 |
|
#include <stdlib.h> |
24246 |
|
int |
24247 |
|
main () |
24248 |
|
{ |
24249 |
|
|
24250 |
|
FILE *f = fopen ("conftest.val", "w"); |
24251 |
|
if (! f) |
24252 |
|
exit (1); |
24253 |
|
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
24254 |
|
{ |
24255 |
|
long i = longval (); |
24256 |
|
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
24257 |
|
exit (1); |
24258 |
|
fprintf (f, "%ld\n", i); |
24259 |
|
} |
24260 |
|
else |
24261 |
|
{ |
24262 |
|
unsigned long i = ulongval (); |
24263 |
|
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
24264 |
|
exit (1); |
24265 |
|
fprintf (f, "%lu\n", i); |
24266 |
|
} |
24267 |
|
exit (ferror (f) || fclose (f) != 0); |
24268 |
|
|
24269 |
|
; |
24270 |
|
return 0; |
24271 |
|
} |
24272 |
|
_ACEOF |
24273 |
|
rm -f conftest$ac_exeext |
24274 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24275 |
|
(eval $ac_link) 2>&5 |
24276 |
|
ac_status=$? |
24277 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24278 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24279 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24280 |
|
(eval $ac_try) 2>&5 |
24281 |
|
ac_status=$? |
24282 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24283 |
|
(exit $ac_status); }; }; then |
24284 |
|
fits_in_uint=`cat conftest.val` |
24285 |
|
else |
24286 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
24287 |
|
echo "$as_me: failed program was:" >&5 |
24288 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24289 |
|
|
24290 |
|
( exit $ac_status ) |
24291 |
|
result=? |
24292 |
|
fi |
24293 |
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24294 |
|
fi |
24295 |
|
fi |
24296 |
|
rm -f conftest.val |
24297 |
|
if test "$fits_in_uint" = 1; then |
24298 |
|
cat >conftest.$ac_ext <<_ACEOF |
24299 |
|
/* confdefs.h. */ |
24300 |
|
_ACEOF |
24301 |
|
cat confdefs.h >>conftest.$ac_ext |
24302 |
|
cat >>conftest.$ac_ext <<_ACEOF |
24303 |
|
/* end confdefs.h. */ |
24304 |
|
#include <stddef.h> |
24305 |
|
extern size_t foo; |
24306 |
|
extern unsigned long foo; |
24307 |
|
|
24308 |
|
int |
24309 |
|
main () |
24310 |
|
{ |
24311 |
|
|
24312 |
|
; |
24313 |
|
return 0; |
24314 |
|
} |
24315 |
|
_ACEOF |
24316 |
|
rm -f conftest.$ac_objext |
24317 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24318 |
|
(eval $ac_compile) 2>conftest.er1 |
24319 |
|
ac_status=$? |
24320 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
24321 |
|
rm -f conftest.er1 |
24322 |
|
cat conftest.err >&5 |
24323 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24324 |
|
(exit $ac_status); } && |
24325 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
24326 |
|
|| test ! -s conftest.err' |
24327 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24328 |
|
(eval $ac_try) 2>&5 |
24329 |
|
ac_status=$? |
24330 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24331 |
|
(exit $ac_status); }; } && |
24332 |
|
{ ac_try='test -s conftest.$ac_objext' |
24333 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24334 |
|
(eval $ac_try) 2>&5 |
24335 |
|
ac_status=$? |
24336 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24337 |
|
(exit $ac_status); }; }; then |
24338 |
|
fits_in_uint=0 |
24339 |
|
else |
24340 |
|
echo "$as_me: failed program was:" >&5 |
24341 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
24342 |
|
|
24343 |
|
fi |
24344 |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24345 |
|
fi |
24346 |
|
if test -z "$result"; then |
24347 |
|
if test "$fits_in_uint" = 1; then |
24348 |
|
result="$res_hi$res_lo"U |
24349 |
|
else |
24350 |
|
result="$res_hi$res_lo"UL |
24351 |
|
fi |
24352 |
|
else |
24353 |
|
result='((size_t)~(size_t)0)' |
24354 |
|
fi |
24355 |
|
fi |
24356 |
|
echo "$as_me:$LINENO: result: $result" >&5 |
24357 |
|
echo "${ECHO_T}$result" >&6 |
24358 |
|
if test "$result" != yes; then |
24359 |
|
|
24360 |
|
cat >>confdefs.h <<_ACEOF |
24361 |
|
#define SIZE_MAX $result |
24362 |
|
_ACEOF |
24363 |
|
|
24364 |
|
fi |
24365 |
|
|
24366 |
|
|
24367 |
|
|
24368 |
|
|
24369 |
|
|
24370 |
|
|
26059 |
|
|
26060 |
|
|
26061 |
|
|
|
|
|
|
|
|
|
|
|
26062 |
|
|
26063 |
|
|
26064 |
|
|