2923
2932
gl_func_list="$gl_func_list lstat"
2924
2933
gl_header_list="$gl_header_list sys/mman.h"
2925
2934
gl_func_list="$gl_func_list mprotect"
2935
gl_func_list="$gl_func_list memchr"
2936
gl_func_list="$gl_func_list mkstemp"
2926
2937
gl_header_list="$gl_header_list unistd.h"
2927
2938
gl_func_list="$gl_func_list alarm"
2928
2939
gl_func_list="$gl_func_list pathconf"
2929
2940
gl_header_list="$gl_header_list sys/ioctl.h"
2930
2941
gl_header_list="$gl_header_list sys/filio.h"
2931
2942
gl_header_list="$gl_header_list sys/select.h"
2943
gl_func_list="$gl_func_list sleep"
2932
2944
gl_header_list="$gl_header_list stddef.h"
2933
2945
gl_header_list="$gl_header_list stdint.h"
2934
2946
gl_header_list="$gl_header_list wchar.h"
2935
2947
gl_header_list="$gl_header_list stdio.h"
2936
2948
gl_header_list="$gl_header_list stdlib.h"
2949
gl_func_list="$gl_func_list strdup"
2937
2950
gl_header_list="$gl_header_list string.h"
2938
2951
gl_header_list="$gl_header_list strings.h"
2939
2952
gl_func_list="$gl_func_list strndup"
2953
gl_func_list="$gl_func_list strptime"
2940
2954
gl_header_list="$gl_header_list sys/stat.h"
2941
2955
gl_header_list="$gl_header_list time.h"
2956
gl_func_list="$gl_func_list localtime_r"
2957
gl_func_list="$gl_func_list timegm"
2958
gl_func_list="$gl_func_list usleep"
2942
2959
gl_func_list="$gl_func_list vasnprintf"
2943
2960
gl_header_list="$gl_header_list sys/wait.h"
2944
2961
gl_func_list="$gl_func_list symlink"
10184
{ $as_echo "$as_me:$LINENO: checking for fseeko" >&5
10185
$as_echo_n "checking for fseeko... " >&6; }
10186
if test "${gl_cv_func_fseeko+set}" = set; then
10187
$as_echo_n "(cached) " >&6
10190
cat >conftest.$ac_ext <<_ACEOF
10193
cat confdefs.h >>conftest.$ac_ext
10194
cat >>conftest.$ac_ext <<_ACEOF
10195
/* end confdefs.h. */
10201
fseeko (stdin, 0, 0);
10206
rm -f conftest.$ac_objext conftest$ac_exeext
10207
if { (ac_try="$ac_link"
10208
case "(($ac_try" in
10209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210
*) ac_try_echo=$ac_try;;
10212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213
$as_echo "$ac_try_echo") >&5
10214
(eval "$ac_link") 2>conftest.er1
10216
grep -v '^ *+' conftest.er1 >conftest.err
10218
cat conftest.err >&5
10219
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
(exit $ac_status); } && {
10221
test -z "$ac_c_werror_flag" ||
10222
test ! -s conftest.err
10223
} && test -s conftest$ac_exeext && {
10224
test "$cross_compiling" = yes ||
10225
$as_test_x conftest$ac_exeext
10227
gl_cv_func_fseeko=yes
10229
$as_echo "$as_me: failed program was:" >&5
10230
sed 's/^/| /' conftest.$ac_ext >&5
10232
gl_cv_func_fseeko=no
10235
rm -rf conftest.dSYM
10236
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10237
conftest$ac_exeext conftest.$ac_ext
10240
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
10241
$as_echo "$gl_cv_func_fseeko" >&6; }
10152
10244
{ $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
10153
10245
$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
10154
10246
if test "${gl_cv_var_stdin_large_offset+set}" = set; then
13020
for ac_func in memchr
13022
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13023
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13024
$as_echo_n "checking for $ac_func... " >&6; }
13025
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13026
$as_echo_n "(cached) " >&6
13028
cat >conftest.$ac_ext <<_ACEOF
13031
cat confdefs.h >>conftest.$ac_ext
13032
cat >>conftest.$ac_ext <<_ACEOF
13033
/* end confdefs.h. */
13034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13035
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13036
#define $ac_func innocuous_$ac_func
13038
/* System header to define __stub macros and hopefully few prototypes,
13039
which can conflict with char $ac_func (); below.
13040
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13041
<limits.h> exists even on freestanding compilers. */
13044
# include <limits.h>
13046
# include <assert.h>
13051
/* Override any GCC internal prototype to avoid an error.
13052
Use char because int might match the return type of a GCC
13053
builtin and then its argument prototype would still apply. */
13058
/* The GNU C library defines this for functions which it implements
13059
to always fail with ENOSYS. Some functions are actually named
13060
something starting with __ and the normal name is an alias. */
13061
#if defined __stub_$ac_func || defined __stub___$ac_func
13068
return $ac_func ();
13073
rm -f conftest.$ac_objext conftest$ac_exeext
13074
if { (ac_try="$ac_link"
13075
case "(($ac_try" in
13076
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077
*) ac_try_echo=$ac_try;;
13079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080
$as_echo "$ac_try_echo") >&5
13081
(eval "$ac_link") 2>conftest.er1
13083
grep -v '^ *+' conftest.er1 >conftest.err
13085
cat conftest.err >&5
13086
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087
(exit $ac_status); } && {
13088
test -z "$ac_c_werror_flag" ||
13089
test ! -s conftest.err
13090
} && test -s conftest$ac_exeext && {
13091
test "$cross_compiling" = yes ||
13092
$as_test_x conftest$ac_exeext
13094
eval "$as_ac_var=yes"
13096
$as_echo "$as_me: failed program was:" >&5
13097
sed 's/^/| /' conftest.$ac_ext >&5
13099
eval "$as_ac_var=no"
13102
rm -rf conftest.dSYM
13103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104
conftest$ac_exeext conftest.$ac_ext
13106
ac_res=`eval 'as_val=${'$as_ac_var'}
13107
$as_echo "$as_val"'`
13108
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13109
$as_echo "$ac_res" >&6; }
13110
as_val=`eval 'as_val=${'$as_ac_var'}
13111
$as_echo "$as_val"'`
13112
if test "x$as_val" = x""yes; then
13113
cat >>confdefs.h <<_ACEOF
13114
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13125
if test $ac_cv_func_memchr = no; then
13128
for ac_header in bp-sym.h
13130
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13133
$as_echo_n "checking for $ac_header... " >&6; }
13134
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135
$as_echo_n "(cached) " >&6
13137
ac_res=`eval 'as_val=${'$as_ac_Header'}
13138
$as_echo "$as_val"'`
13139
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13140
$as_echo "$ac_res" >&6; }
13142
# Is the header compilable?
13143
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13144
$as_echo_n "checking $ac_header usability... " >&6; }
13145
cat >conftest.$ac_ext <<_ACEOF
13148
cat confdefs.h >>conftest.$ac_ext
13149
cat >>conftest.$ac_ext <<_ACEOF
13150
/* end confdefs.h. */
13151
$ac_includes_default
13152
#include <$ac_header>
13154
rm -f conftest.$ac_objext
13155
if { (ac_try="$ac_compile"
13156
case "(($ac_try" in
13157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158
*) ac_try_echo=$ac_try;;
13160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13161
$as_echo "$ac_try_echo") >&5
13162
(eval "$ac_compile") 2>conftest.er1
13164
grep -v '^ *+' conftest.er1 >conftest.err
13166
cat conftest.err >&5
13167
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168
(exit $ac_status); } && {
13169
test -z "$ac_c_werror_flag" ||
13170
test ! -s conftest.err
13171
} && test -s conftest.$ac_objext; then
13172
ac_header_compiler=yes
13174
$as_echo "$as_me: failed program was:" >&5
13175
sed 's/^/| /' conftest.$ac_ext >&5
13177
ac_header_compiler=no
13180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13182
$as_echo "$ac_header_compiler" >&6; }
13184
# Is the header present?
13185
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13186
$as_echo_n "checking $ac_header presence... " >&6; }
13187
cat >conftest.$ac_ext <<_ACEOF
13190
cat confdefs.h >>conftest.$ac_ext
13191
cat >>conftest.$ac_ext <<_ACEOF
13192
/* end confdefs.h. */
13193
#include <$ac_header>
13195
if { (ac_try="$ac_cpp conftest.$ac_ext"
13196
case "(($ac_try" in
13197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198
*) ac_try_echo=$ac_try;;
13200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13201
$as_echo "$ac_try_echo") >&5
13202
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13204
grep -v '^ *+' conftest.er1 >conftest.err
13206
cat conftest.err >&5
13207
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208
(exit $ac_status); } >/dev/null && {
13209
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13210
test ! -s conftest.err
13212
ac_header_preproc=yes
13214
$as_echo "$as_me: failed program was:" >&5
13215
sed 's/^/| /' conftest.$ac_ext >&5
13217
ac_header_preproc=no
13220
rm -f conftest.err conftest.$ac_ext
13221
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13222
$as_echo "$ac_header_preproc" >&6; }
13224
# So? What about this header?
13225
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13227
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13228
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13229
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13230
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13231
ac_header_preproc=yes
13234
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13235
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13236
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13237
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13238
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13239
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13240
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13241
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13242
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13243
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13244
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13245
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13249
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13250
$as_echo_n "checking for $ac_header... " >&6; }
13251
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252
$as_echo_n "(cached) " >&6
13254
eval "$as_ac_Header=\$ac_header_preproc"
13256
ac_res=`eval 'as_val=${'$as_ac_Header'}
13257
$as_echo "$as_val"'`
13258
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13259
$as_echo "$ac_res" >&6; }
13262
as_val=`eval 'as_val=${'$as_ac_Header'}
13263
$as_echo "$as_val"'`
13264
if test "x$as_val" = x""yes; then
13265
cat >>confdefs.h <<_ACEOF
13266
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13277
13120
if test $ac_cv_func_memchr = yes; then
13278
13121
# Detect platform-specific bugs in some versions of glibc:
13386
13229
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
13387
13230
$as_echo "$gl_cv_func_memchr_works" >&6; }
13388
13231
if test "$gl_cv_func_memchr_works" != yes; then
13391
for ac_header in bp-sym.h
13393
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13395
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13396
$as_echo_n "checking for $ac_header... " >&6; }
13397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13398
$as_echo_n "(cached) " >&6
13400
ac_res=`eval 'as_val=${'$as_ac_Header'}
13401
$as_echo "$as_val"'`
13402
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13403
$as_echo "$ac_res" >&6; }
13405
# Is the header compilable?
13406
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13407
$as_echo_n "checking $ac_header usability... " >&6; }
13408
cat >conftest.$ac_ext <<_ACEOF
13411
cat confdefs.h >>conftest.$ac_ext
13412
cat >>conftest.$ac_ext <<_ACEOF
13413
/* end confdefs.h. */
13414
$ac_includes_default
13415
#include <$ac_header>
13417
rm -f conftest.$ac_objext
13418
if { (ac_try="$ac_compile"
13419
case "(($ac_try" in
13420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421
*) ac_try_echo=$ac_try;;
13423
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13424
$as_echo "$ac_try_echo") >&5
13425
(eval "$ac_compile") 2>conftest.er1
13427
grep -v '^ *+' conftest.er1 >conftest.err
13429
cat conftest.err >&5
13430
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
(exit $ac_status); } && {
13432
test -z "$ac_c_werror_flag" ||
13433
test ! -s conftest.err
13434
} && test -s conftest.$ac_objext; then
13435
ac_header_compiler=yes
13437
$as_echo "$as_me: failed program was:" >&5
13438
sed 's/^/| /' conftest.$ac_ext >&5
13440
ac_header_compiler=no
13443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445
$as_echo "$ac_header_compiler" >&6; }
13447
# Is the header present?
13448
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449
$as_echo_n "checking $ac_header presence... " >&6; }
13450
cat >conftest.$ac_ext <<_ACEOF
13453
cat confdefs.h >>conftest.$ac_ext
13454
cat >>conftest.$ac_ext <<_ACEOF
13455
/* end confdefs.h. */
13456
#include <$ac_header>
13458
if { (ac_try="$ac_cpp conftest.$ac_ext"
13459
case "(($ac_try" in
13460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461
*) ac_try_echo=$ac_try;;
13463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13464
$as_echo "$ac_try_echo") >&5
13465
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13467
grep -v '^ *+' conftest.er1 >conftest.err
13469
cat conftest.err >&5
13470
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
(exit $ac_status); } >/dev/null && {
13472
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13473
test ! -s conftest.err
13475
ac_header_preproc=yes
13477
$as_echo "$as_me: failed program was:" >&5
13478
sed 's/^/| /' conftest.$ac_ext >&5
13480
ac_header_preproc=no
13483
rm -f conftest.err conftest.$ac_ext
13484
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485
$as_echo "$ac_header_preproc" >&6; }
13487
# So? What about this header?
13488
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13490
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13492
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13493
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13494
ac_header_preproc=yes
13497
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13499
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13500
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13501
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13502
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13503
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13504
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13505
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13506
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13507
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13508
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13512
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13513
$as_echo_n "checking for $ac_header... " >&6; }
13514
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13515
$as_echo_n "(cached) " >&6
13517
eval "$as_ac_Header=\$ac_header_preproc"
13519
ac_res=`eval 'as_val=${'$as_ac_Header'}
13520
$as_echo "$as_val"'`
13521
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13522
$as_echo "$ac_res" >&6; }
13525
as_val=`eval 'as_val=${'$as_ac_Header'}
13526
$as_echo "$as_val"'`
13527
if test "x$as_val" = x""yes; then
13528
cat >>confdefs.h <<_ACEOF
13529
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13537
13232
REPLACE_MEMCHR=1
13237
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13546
13246
gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13250
for ac_header in bp-sym.h
13252
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13255
$as_echo_n "checking for $ac_header... " >&6; }
13256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13257
$as_echo_n "(cached) " >&6
13259
ac_res=`eval 'as_val=${'$as_ac_Header'}
13260
$as_echo "$as_val"'`
13261
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13262
$as_echo "$ac_res" >&6; }
13264
# Is the header compilable?
13265
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13266
$as_echo_n "checking $ac_header usability... " >&6; }
13267
cat >conftest.$ac_ext <<_ACEOF
13270
cat confdefs.h >>conftest.$ac_ext
13271
cat >>conftest.$ac_ext <<_ACEOF
13272
/* end confdefs.h. */
13273
$ac_includes_default
13274
#include <$ac_header>
13276
rm -f conftest.$ac_objext
13277
if { (ac_try="$ac_compile"
13278
case "(($ac_try" in
13279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280
*) ac_try_echo=$ac_try;;
13282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13283
$as_echo "$ac_try_echo") >&5
13284
(eval "$ac_compile") 2>conftest.er1
13286
grep -v '^ *+' conftest.er1 >conftest.err
13288
cat conftest.err >&5
13289
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290
(exit $ac_status); } && {
13291
test -z "$ac_c_werror_flag" ||
13292
test ! -s conftest.err
13293
} && test -s conftest.$ac_objext; then
13294
ac_header_compiler=yes
13296
$as_echo "$as_me: failed program was:" >&5
13297
sed 's/^/| /' conftest.$ac_ext >&5
13299
ac_header_compiler=no
13302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13304
$as_echo "$ac_header_compiler" >&6; }
13306
# Is the header present?
13307
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13308
$as_echo_n "checking $ac_header presence... " >&6; }
13309
cat >conftest.$ac_ext <<_ACEOF
13312
cat confdefs.h >>conftest.$ac_ext
13313
cat >>conftest.$ac_ext <<_ACEOF
13314
/* end confdefs.h. */
13315
#include <$ac_header>
13317
if { (ac_try="$ac_cpp conftest.$ac_ext"
13318
case "(($ac_try" in
13319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320
*) ac_try_echo=$ac_try;;
13322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13323
$as_echo "$ac_try_echo") >&5
13324
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13326
grep -v '^ *+' conftest.er1 >conftest.err
13328
cat conftest.err >&5
13329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330
(exit $ac_status); } >/dev/null && {
13331
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13332
test ! -s conftest.err
13334
ac_header_preproc=yes
13336
$as_echo "$as_me: failed program was:" >&5
13337
sed 's/^/| /' conftest.$ac_ext >&5
13339
ac_header_preproc=no
13342
rm -f conftest.err conftest.$ac_ext
13343
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13344
$as_echo "$ac_header_preproc" >&6; }
13346
# So? What about this header?
13347
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13349
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13350
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13351
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13352
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13353
ac_header_preproc=yes
13356
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13357
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13358
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13359
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13360
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13361
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13362
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13363
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13364
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13365
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13366
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13367
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13371
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13372
$as_echo_n "checking for $ac_header... " >&6; }
13373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13374
$as_echo_n "(cached) " >&6
13376
eval "$as_ac_Header=\$ac_header_preproc"
13378
ac_res=`eval 'as_val=${'$as_ac_Header'}
13379
$as_echo "$as_val"'`
13380
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13381
$as_echo "$ac_res" >&6; }
13384
as_val=`eval 'as_val=${'$as_ac_Header'}
13385
$as_echo "$as_val"'`
13386
if test "x$as_val" = x""yes; then
13387
cat >>confdefs.h <<_ACEOF
13388
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13551
13398
# Check whether --enable-largefile was given.
16310
{ $as_echo "$as_me:$LINENO: checking whether strtok_r is declared" >&5
16311
$as_echo_n "checking whether strtok_r is declared... " >&6; }
16312
if test "${ac_cv_have_decl_strtok_r+set}" = set; then
16313
$as_echo_n "(cached) " >&6
16315
cat >conftest.$ac_ext <<_ACEOF
16318
cat confdefs.h >>conftest.$ac_ext
16319
cat >>conftest.$ac_ext <<_ACEOF
16320
/* end confdefs.h. */
16321
$ac_includes_default
16333
rm -f conftest.$ac_objext
16334
if { (ac_try="$ac_compile"
16335
case "(($ac_try" in
16336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337
*) ac_try_echo=$ac_try;;
16339
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16340
$as_echo "$ac_try_echo") >&5
16341
(eval "$ac_compile") 2>conftest.er1
16343
grep -v '^ *+' conftest.er1 >conftest.err
16345
cat conftest.err >&5
16346
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347
(exit $ac_status); } && {
16348
test -z "$ac_c_werror_flag" ||
16349
test ! -s conftest.err
16350
} && test -s conftest.$ac_objext; then
16351
ac_cv_have_decl_strtok_r=yes
16353
$as_echo "$as_me: failed program was:" >&5
16354
sed 's/^/| /' conftest.$ac_ext >&5
16356
ac_cv_have_decl_strtok_r=no
16359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtok_r" >&5
16362
$as_echo "$ac_cv_have_decl_strtok_r" >&6; }
16363
if test "x$ac_cv_have_decl_strtok_r" = x""yes; then
16365
cat >>confdefs.h <<_ACEOF
16366
#define HAVE_DECL_STRTOK_R 1
16371
cat >>confdefs.h <<_ACEOF
16372
#define HAVE_DECL_STRTOK_R 0
16434
16380
{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16435
16381
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16436
16382
if test "${ac_cv_header_stat_broken+set}" = set; then
17042
{ $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
17043
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17044
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
17045
$as_echo_n "(cached) " >&6
17048
if test "$cross_compiling" = yes; then
17051
# Guess yes on glibc systems.
17052
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17053
# Guess yes on FreeBSD >= 5.
17054
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17055
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17056
# Guess yes on MacOS X >= 10.3.
17057
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17058
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17059
# Guess yes on OpenBSD >= 3.9.
17060
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17061
gl_cv_func_snprintf_retval_c99="guessing no";;
17062
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17063
# Guess yes on Solaris >= 2.6.
17064
solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17065
solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17066
# Guess yes on AIX >= 4.
17067
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17068
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17069
# Guess yes on NetBSD >= 3.
17070
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17071
gl_cv_func_snprintf_retval_c99="guessing no";;
17072
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17073
# Guess yes on BeOS.
17074
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17075
# If we don't know, assume the worst.
17076
*) gl_cv_func_snprintf_retval_c99="guessing no";;
17080
cat >conftest.$ac_ext <<_ACEOF
17083
cat confdefs.h >>conftest.$ac_ext
17084
cat >>conftest.$ac_ext <<_ACEOF
17085
/* end confdefs.h. */
17088
#include <string.h>
17089
static char buf[100];
17092
strcpy (buf, "ABCDEF");
17093
if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17098
rm -f conftest$ac_exeext
17099
if { (ac_try="$ac_link"
17100
case "(($ac_try" in
17101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102
*) ac_try_echo=$ac_try;;
17104
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17105
$as_echo "$ac_try_echo") >&5
17106
(eval "$ac_link") 2>&5
17108
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17110
{ (case "(($ac_try" in
17111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112
*) ac_try_echo=$ac_try;;
17114
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17115
$as_echo "$ac_try_echo") >&5
17116
(eval "$ac_try") 2>&5
17118
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119
(exit $ac_status); }; }; then
17120
gl_cv_func_snprintf_retval_c99=yes
17122
$as_echo "$as_me: program exited with status $ac_status" >&5
17123
$as_echo "$as_me: failed program was:" >&5
17124
sed 's/^/| /' conftest.$ac_ext >&5
17126
( exit $ac_status )
17127
gl_cv_func_snprintf_retval_c99=no
17129
rm -rf conftest.dSYM
17130
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17136
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
17137
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17545
{ $as_echo "$as_me:$LINENO: checking whether alarm is declared" >&5
17546
$as_echo_n "checking whether alarm is declared... " >&6; }
17547
if test "${ac_cv_have_decl_alarm+set}" = set; then
17548
$as_echo_n "(cached) " >&6
17550
cat >conftest.$ac_ext <<_ACEOF
17553
cat confdefs.h >>conftest.$ac_ext
17554
cat >>conftest.$ac_ext <<_ACEOF
17555
/* end confdefs.h. */
17556
$ac_includes_default
17568
rm -f conftest.$ac_objext
17569
if { (ac_try="$ac_compile"
17570
case "(($ac_try" in
17571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572
*) ac_try_echo=$ac_try;;
17574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17575
$as_echo "$ac_try_echo") >&5
17576
(eval "$ac_compile") 2>conftest.er1
17578
grep -v '^ *+' conftest.er1 >conftest.err
17580
cat conftest.err >&5
17581
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582
(exit $ac_status); } && {
17583
test -z "$ac_c_werror_flag" ||
17584
test ! -s conftest.err
17585
} && test -s conftest.$ac_objext; then
17586
ac_cv_have_decl_alarm=yes
17588
$as_echo "$as_me: failed program was:" >&5
17589
sed 's/^/| /' conftest.$ac_ext >&5
17591
ac_cv_have_decl_alarm=no
17594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_alarm" >&5
17597
$as_echo "$ac_cv_have_decl_alarm" >&6; }
17598
if test "x$ac_cv_have_decl_alarm" = x""yes; then
17600
cat >>confdefs.h <<_ACEOF
17601
#define HAVE_DECL_ALARM 1
17606
cat >>confdefs.h <<_ACEOF
17607
#define HAVE_DECL_ALARM 0
18274
{ $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18275
$as_echo_n "checking for fseeko... " >&6; }
18276
if test "${gl_cv_func_fseeko+set}" = set; then
18277
$as_echo_n "(cached) " >&6
18280
cat >conftest.$ac_ext <<_ACEOF
18283
cat confdefs.h >>conftest.$ac_ext
18284
cat >>conftest.$ac_ext <<_ACEOF
18285
/* end confdefs.h. */
18291
fseeko (stdin, 0, 0);
18296
rm -f conftest.$ac_objext conftest$ac_exeext
18297
if { (ac_try="$ac_link"
18298
case "(($ac_try" in
18299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300
*) ac_try_echo=$ac_try;;
18302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18303
$as_echo "$ac_try_echo") >&5
18304
(eval "$ac_link") 2>conftest.er1
18306
grep -v '^ *+' conftest.er1 >conftest.err
18308
cat conftest.err >&5
18309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310
(exit $ac_status); } && {
18311
test -z "$ac_c_werror_flag" ||
18312
test ! -s conftest.err
18313
} && test -s conftest$ac_exeext && {
18314
test "$cross_compiling" = yes ||
18315
$as_test_x conftest$ac_exeext
18317
gl_cv_func_fseeko=yes
18319
$as_echo "$as_me: failed program was:" >&5
18320
sed 's/^/| /' conftest.$ac_ext >&5
18322
gl_cv_func_fseeko=no
18325
rm -rf conftest.dSYM
18326
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327
conftest$ac_exeext conftest.$ac_ext
18330
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18331
$as_echo "$gl_cv_func_fseeko" >&6; }
18332
if test $gl_cv_func_fseeko = no \
18333
|| test $gl_cv_var_stdin_large_offset = no; then
18343
gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18417
if test $gl_cv_func_fseeko = no; then
18422
if test $gl_cv_func_fseeko = yes; then
18433
gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18438
if test $gl_cv_var_stdin_large_offset = no; then
18442
if test $gl_cv_func_fseeko = yes; then
18453
gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
27677
# Code from module sleep:
27680
{ $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
27681
$as_echo_n "checking whether sleep is declared... " >&6; }
27682
if test "${ac_cv_have_decl_sleep+set}" = set; then
27683
$as_echo_n "(cached) " >&6
27685
cat >conftest.$ac_ext <<_ACEOF
27688
cat confdefs.h >>conftest.$ac_ext
27689
cat >>conftest.$ac_ext <<_ACEOF
27690
/* end confdefs.h. */
27691
#include <unistd.h>
27704
rm -f conftest.$ac_objext
27705
if { (ac_try="$ac_compile"
27706
case "(($ac_try" in
27707
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708
*) ac_try_echo=$ac_try;;
27710
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27711
$as_echo "$ac_try_echo") >&5
27712
(eval "$ac_compile") 2>conftest.er1
27714
grep -v '^ *+' conftest.er1 >conftest.err
27716
cat conftest.err >&5
27717
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718
(exit $ac_status); } && {
27719
test -z "$ac_c_werror_flag" ||
27720
test ! -s conftest.err
27721
} && test -s conftest.$ac_objext; then
27722
ac_cv_have_decl_sleep=yes
27724
$as_echo "$as_me: failed program was:" >&5
27725
sed 's/^/| /' conftest.$ac_ext >&5
27727
ac_cv_have_decl_sleep=no
27730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
27733
$as_echo "$ac_cv_have_decl_sleep" >&6; }
27734
if test "x$ac_cv_have_decl_sleep" = x""yes; then
27736
cat >>confdefs.h <<_ACEOF
27737
#define HAVE_DECL_SLEEP 1
27742
cat >>confdefs.h <<_ACEOF
27743
#define HAVE_DECL_SLEEP 0
27757
if test $ac_cv_have_decl_sleep != yes; then
27767
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
27770
{ $as_echo "$as_me:$LINENO: checking for working sleep" >&5
27771
$as_echo_n "checking for working sleep... " >&6; }
27772
if test "${gl_cv_func_sleep_works+set}" = set; then
27773
$as_echo_n "(cached) " >&6
27775
if test "$cross_compiling" = yes; then
27776
gl_cv_func_sleep_works="guessing no"
27778
cat >conftest.$ac_ext <<_ACEOF
27781
cat confdefs.h >>conftest.$ac_ext
27782
cat >>conftest.$ac_ext <<_ACEOF
27783
/* end confdefs.h. */
27786
#include <unistd.h>
27787
#include <signal.h>
27789
handle_alarm (int sig)
27791
if (sig != SIGALRM)
27799
/* Failure to compile this test due to missing alarm is okay,
27800
since all such platforms (mingw) also lack sleep. */
27801
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
27802
unsigned int remaining;
27803
signal (SIGALRM, handle_alarm);
27805
remaining = sleep (pentecost);
27806
return !(pentecost - 10 < remaining && remaining <= pentecost);
27811
rm -f conftest$ac_exeext
27812
if { (ac_try="$ac_link"
27813
case "(($ac_try" in
27814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27815
*) ac_try_echo=$ac_try;;
27817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27818
$as_echo "$ac_try_echo") >&5
27819
(eval "$ac_link") 2>&5
27821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27823
{ (case "(($ac_try" in
27824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825
*) ac_try_echo=$ac_try;;
27827
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27828
$as_echo "$ac_try_echo") >&5
27829
(eval "$ac_try") 2>&5
27831
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832
(exit $ac_status); }; }; then
27833
gl_cv_func_sleep_works=yes
27835
$as_echo "$as_me: program exited with status $ac_status" >&5
27836
$as_echo "$as_me: failed program was:" >&5
27837
sed 's/^/| /' conftest.$ac_ext >&5
27839
( exit $ac_status )
27840
gl_cv_func_sleep_works=no
27842
rm -rf conftest.dSYM
27843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27848
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
27849
$as_echo "$gl_cv_func_sleep_works" >&6; }
27850
if test "$gl_cv_func_sleep_works" != yes; then
27860
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
27872
cat >>confdefs.h <<\_ACEOF
27873
#define GNULIB_TEST_SLEEP 1
27546
27878
# Code from module snprintf:
31743
for ac_func in strdup
31745
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31746
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31747
$as_echo_n "checking for $ac_func... " >&6; }
31748
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31749
$as_echo_n "(cached) " >&6
31751
cat >conftest.$ac_ext <<_ACEOF
31754
cat confdefs.h >>conftest.$ac_ext
31755
cat >>conftest.$ac_ext <<_ACEOF
31756
/* end confdefs.h. */
31757
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31758
For example, HP-UX 11i <limits.h> declares gettimeofday. */
31759
#define $ac_func innocuous_$ac_func
31761
/* System header to define __stub macros and hopefully few prototypes,
31762
which can conflict with char $ac_func (); below.
31763
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31764
<limits.h> exists even on freestanding compilers. */
31767
# include <limits.h>
31769
# include <assert.h>
31774
/* Override any GCC internal prototype to avoid an error.
31775
Use char because int might match the return type of a GCC
31776
builtin and then its argument prototype would still apply. */
31781
/* The GNU C library defines this for functions which it implements
31782
to always fail with ENOSYS. Some functions are actually named
31783
something starting with __ and the normal name is an alias. */
31784
#if defined __stub_$ac_func || defined __stub___$ac_func
31791
return $ac_func ();
31796
rm -f conftest.$ac_objext conftest$ac_exeext
31797
if { (ac_try="$ac_link"
31798
case "(($ac_try" in
31799
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800
*) ac_try_echo=$ac_try;;
31802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31803
$as_echo "$ac_try_echo") >&5
31804
(eval "$ac_link") 2>conftest.er1
31806
grep -v '^ *+' conftest.er1 >conftest.err
31808
cat conftest.err >&5
31809
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810
(exit $ac_status); } && {
31811
test -z "$ac_c_werror_flag" ||
31812
test ! -s conftest.err
31813
} && test -s conftest$ac_exeext && {
31814
test "$cross_compiling" = yes ||
31815
$as_test_x conftest$ac_exeext
31817
eval "$as_ac_var=yes"
31819
$as_echo "$as_me: failed program was:" >&5
31820
sed 's/^/| /' conftest.$ac_ext >&5
31822
eval "$as_ac_var=no"
31825
rm -rf conftest.dSYM
31826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31827
conftest$ac_exeext conftest.$ac_ext
31829
ac_res=`eval 'as_val=${'$as_ac_var'}
31830
$as_echo "$as_val"'`
31831
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31832
$as_echo "$ac_res" >&6; }
31833
as_val=`eval 'as_val=${'$as_ac_var'}
31834
$as_echo "$as_val"'`
31835
if test "x$as_val" = x""yes; then
31836
cat >>confdefs.h <<_ACEOF
31837
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31842
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32085
gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
32200
for ac_func in strptime
32202
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32204
$as_echo_n "checking for $ac_func... " >&6; }
32205
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32206
$as_echo_n "(cached) " >&6
32208
cat >conftest.$ac_ext <<_ACEOF
32211
cat confdefs.h >>conftest.$ac_ext
32212
cat >>conftest.$ac_ext <<_ACEOF
32213
/* end confdefs.h. */
32214
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32215
For example, HP-UX 11i <limits.h> declares gettimeofday. */
32216
#define $ac_func innocuous_$ac_func
32218
/* System header to define __stub macros and hopefully few prototypes,
32219
which can conflict with char $ac_func (); below.
32220
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32221
<limits.h> exists even on freestanding compilers. */
32224
# include <limits.h>
32226
# include <assert.h>
32231
/* Override any GCC internal prototype to avoid an error.
32232
Use char because int might match the return type of a GCC
32233
builtin and then its argument prototype would still apply. */
32238
/* The GNU C library defines this for functions which it implements
32239
to always fail with ENOSYS. Some functions are actually named
32240
something starting with __ and the normal name is an alias. */
32241
#if defined __stub_$ac_func || defined __stub___$ac_func
32248
return $ac_func ();
32253
rm -f conftest.$ac_objext conftest$ac_exeext
32254
if { (ac_try="$ac_link"
32255
case "(($ac_try" in
32256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257
*) ac_try_echo=$ac_try;;
32259
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32260
$as_echo "$ac_try_echo") >&5
32261
(eval "$ac_link") 2>conftest.er1
32263
grep -v '^ *+' conftest.er1 >conftest.err
32265
cat conftest.err >&5
32266
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267
(exit $ac_status); } && {
32268
test -z "$ac_c_werror_flag" ||
32269
test ! -s conftest.err
32270
} && test -s conftest$ac_exeext && {
32271
test "$cross_compiling" = yes ||
32272
$as_test_x conftest$ac_exeext
32274
eval "$as_ac_var=yes"
32276
$as_echo "$as_me: failed program was:" >&5
32277
sed 's/^/| /' conftest.$ac_ext >&5
32279
eval "$as_ac_var=no"
32282
rm -rf conftest.dSYM
32283
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32284
conftest$ac_exeext conftest.$ac_ext
32286
ac_res=`eval 'as_val=${'$as_ac_var'}
32287
$as_echo "$as_val"'`
32288
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32289
$as_echo "$ac_res" >&6; }
32290
as_val=`eval 'as_val=${'$as_ac_var'}
32291
$as_echo "$as_val"'`
32292
if test "x$as_val" = x""yes; then
32293
cat >>confdefs.h <<_ACEOF
32294
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32299
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32306
if test $ac_cv_func_strptime = yes; then
32434
if test $ac_cv_func_strptime != yes; then
32444
gl_LIBOBJS="$gl_LIBOBJS strptime.$ac_objext"
32604
# Code from module strtok_r:
32610
for ac_func in strtok_r
32612
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32613
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32614
$as_echo_n "checking for $ac_func... " >&6; }
32615
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32616
$as_echo_n "(cached) " >&6
32618
cat >conftest.$ac_ext <<_ACEOF
32621
cat confdefs.h >>conftest.$ac_ext
32622
cat >>conftest.$ac_ext <<_ACEOF
32623
/* end confdefs.h. */
32624
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32625
For example, HP-UX 11i <limits.h> declares gettimeofday. */
32626
#define $ac_func innocuous_$ac_func
32628
/* System header to define __stub macros and hopefully few prototypes,
32629
which can conflict with char $ac_func (); below.
32630
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32631
<limits.h> exists even on freestanding compilers. */
32634
# include <limits.h>
32636
# include <assert.h>
32641
/* Override any GCC internal prototype to avoid an error.
32642
Use char because int might match the return type of a GCC
32643
builtin and then its argument prototype would still apply. */
32648
/* The GNU C library defines this for functions which it implements
32649
to always fail with ENOSYS. Some functions are actually named
32650
something starting with __ and the normal name is an alias. */
32651
#if defined __stub_$ac_func || defined __stub___$ac_func
32658
return $ac_func ();
32663
rm -f conftest.$ac_objext conftest$ac_exeext
32664
if { (ac_try="$ac_link"
32665
case "(($ac_try" in
32666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667
*) ac_try_echo=$ac_try;;
32669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32670
$as_echo "$ac_try_echo") >&5
32671
(eval "$ac_link") 2>conftest.er1
32673
grep -v '^ *+' conftest.er1 >conftest.err
32675
cat conftest.err >&5
32676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677
(exit $ac_status); } && {
32678
test -z "$ac_c_werror_flag" ||
32679
test ! -s conftest.err
32680
} && test -s conftest$ac_exeext && {
32681
test "$cross_compiling" = yes ||
32682
$as_test_x conftest$ac_exeext
32684
eval "$as_ac_var=yes"
32686
$as_echo "$as_me: failed program was:" >&5
32687
sed 's/^/| /' conftest.$ac_ext >&5
32689
eval "$as_ac_var=no"
32692
rm -rf conftest.dSYM
32693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32694
conftest$ac_exeext conftest.$ac_ext
32696
ac_res=`eval 'as_val=${'$as_ac_var'}
32697
$as_echo "$as_val"'`
32698
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32699
$as_echo "$ac_res" >&6; }
32700
as_val=`eval 'as_val=${'$as_ac_var'}
32701
$as_echo "$as_val"'`
32702
if test "x$as_val" = x""yes; then
32703
cat >>confdefs.h <<_ACEOF
32704
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32710
if test $ac_cv_func_strtok_r = yes; then
32711
{ $as_echo "$as_me:$LINENO: checking whether strtok_r works" >&5
32712
$as_echo_n "checking whether strtok_r works... " >&6; }
32713
if test "${gl_cv_func_strtok_r_works+set}" = set; then
32714
$as_echo_n "(cached) " >&6
32716
if test "$cross_compiling" = yes; then
32719
# Guess no on glibc systems.
32720
*-gnu*) gl_cv_func_strtok_r_works="guessing no";;
32721
*) gl_cv_func_strtok_r_works="guessing yes";;
32725
cat >conftest.$ac_ext <<_ACEOF
32728
cat confdefs.h >>conftest.$ac_ext
32729
cat >>conftest.$ac_ext <<_ACEOF
32730
/* end confdefs.h. */
32732
#ifndef __OPTIMIZE__
32733
# define __OPTIMIZE__ 1
32735
#undef __OPTIMIZE_SIZE__
32736
#undef __NO_INLINE__
32737
#include <stdlib.h>
32738
#include <string.h>
32743
char delimiters[] = "xxxxxxxx";
32744
char *save_ptr = (char *) 0xd0d0;
32745
strtok_r (delimiters, "x", &save_ptr);
32746
strtok_r (NULL, "x", &save_ptr);
32754
rm -f conftest$ac_exeext
32755
if { (ac_try="$ac_link"
32756
case "(($ac_try" in
32757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758
*) ac_try_echo=$ac_try;;
32760
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32761
$as_echo "$ac_try_echo") >&5
32762
(eval "$ac_link") 2>&5
32764
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32766
{ (case "(($ac_try" in
32767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768
*) ac_try_echo=$ac_try;;
32770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32771
$as_echo "$ac_try_echo") >&5
32772
(eval "$ac_try") 2>&5
32774
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775
(exit $ac_status); }; }; then
32776
gl_cv_func_strtok_r_works=yes
32778
$as_echo "$as_me: program exited with status $ac_status" >&5
32779
$as_echo "$as_me: failed program was:" >&5
32780
sed 's/^/| /' conftest.$ac_ext >&5
32782
( exit $ac_status )
32783
gl_cv_func_strtok_r_works=no
32785
rm -rf conftest.dSYM
32786
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32792
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtok_r_works" >&5
32793
$as_echo "$gl_cv_func_strtok_r_works" >&6; }
32794
case "$gl_cv_func_strtok_r_works" in
32796
UNDEFINE_STRTOK_R=1
32808
gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
32821
if test $ac_cv_have_decl_strtok_r = no; then
32822
HAVE_DECL_STRTOK_R=0
32832
cat >>confdefs.h <<\_ACEOF
32833
#define GNULIB_TEST_STRTOK_R 1
32464
32838
# Code from module sys_ioctl:
34724
35129
gl_LIBOBJS="$gl_LIBOBJS timegm.$ac_objext"
34726
ac_cv_func_timegm=no
34737
for ac_func in timegm
34739
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34740
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34741
$as_echo_n "checking for $ac_func... " >&6; }
34742
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34743
$as_echo_n "(cached) " >&6
34745
cat >conftest.$ac_ext <<_ACEOF
34748
cat confdefs.h >>conftest.$ac_ext
34749
cat >>conftest.$ac_ext <<_ACEOF
34750
/* end confdefs.h. */
34751
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34752
For example, HP-UX 11i <limits.h> declares gettimeofday. */
34753
#define $ac_func innocuous_$ac_func
34755
/* System header to define __stub macros and hopefully few prototypes,
34756
which can conflict with char $ac_func (); below.
34757
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34758
<limits.h> exists even on freestanding compilers. */
34761
# include <limits.h>
34763
# include <assert.h>
34768
/* Override any GCC internal prototype to avoid an error.
34769
Use char because int might match the return type of a GCC
34770
builtin and then its argument prototype would still apply. */
34775
/* The GNU C library defines this for functions which it implements
34776
to always fail with ENOSYS. Some functions are actually named
34777
something starting with __ and the normal name is an alias. */
34778
#if defined __stub_$ac_func || defined __stub___$ac_func
34785
return $ac_func ();
34790
rm -f conftest.$ac_objext conftest$ac_exeext
34791
if { (ac_try="$ac_link"
34792
case "(($ac_try" in
34793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794
*) ac_try_echo=$ac_try;;
34796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34797
$as_echo "$ac_try_echo") >&5
34798
(eval "$ac_link") 2>conftest.er1
34800
grep -v '^ *+' conftest.er1 >conftest.err
34802
cat conftest.err >&5
34803
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804
(exit $ac_status); } && {
34805
test -z "$ac_c_werror_flag" ||
34806
test ! -s conftest.err
34807
} && test -s conftest$ac_exeext && {
34808
test "$cross_compiling" = yes ||
34809
$as_test_x conftest$ac_exeext
34811
eval "$as_ac_var=yes"
34813
$as_echo "$as_me: failed program was:" >&5
34814
sed 's/^/| /' conftest.$ac_ext >&5
34816
eval "$as_ac_var=no"
34819
rm -rf conftest.dSYM
34820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34821
conftest$ac_exeext conftest.$ac_ext
34823
ac_res=`eval 'as_val=${'$as_ac_var'}
34824
$as_echo "$as_val"'`
34825
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34826
$as_echo "$ac_res" >&6; }
34827
as_val=`eval 'as_val=${'$as_ac_var'}
34828
$as_echo "$as_val"'`
34829
if test "x$as_val" = x""yes; then
34830
cat >>confdefs.h <<_ACEOF
34831
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34836
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34844
if test $ac_cv_func_timegm = yes; then
34845
{ $as_echo "$as_me:$LINENO: checking whether timegm is declared" >&5
34846
$as_echo_n "checking whether timegm is declared... " >&6; }
34847
if test "${ac_cv_have_decl_timegm+set}" = set; then
34848
$as_echo_n "(cached) " >&6
34850
cat >conftest.$ac_ext <<_ACEOF
34853
cat confdefs.h >>conftest.$ac_ext
34854
cat >>conftest.$ac_ext <<_ACEOF
34855
/* end confdefs.h. */
34869
rm -f conftest.$ac_objext
34870
if { (ac_try="$ac_compile"
34871
case "(($ac_try" in
34872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873
*) ac_try_echo=$ac_try;;
34875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34876
$as_echo "$ac_try_echo") >&5
34877
(eval "$ac_compile") 2>conftest.er1
34879
grep -v '^ *+' conftest.er1 >conftest.err
34881
cat conftest.err >&5
34882
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883
(exit $ac_status); } && {
34884
test -z "$ac_c_werror_flag" ||
34885
test ! -s conftest.err
34886
} && test -s conftest.$ac_objext; then
34887
ac_cv_have_decl_timegm=yes
34889
$as_echo "$as_me: failed program was:" >&5
34890
sed 's/^/| /' conftest.$ac_ext >&5
34892
ac_cv_have_decl_timegm=no
34895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_timegm" >&5
34898
$as_echo "$ac_cv_have_decl_timegm" >&6; }
34899
if test "x$ac_cv_have_decl_timegm" = x""yes; then
34901
cat >>confdefs.h <<_ACEOF
34902
#define HAVE_DECL_TIMEGM 1
34907
cat >>confdefs.h <<_ACEOF
34908
#define HAVE_DECL_TIMEGM 0
34916
if test $REPLACE_TIMEGM = 1; then
35247
35461
# Code from module useless-if-before-free:
35462
# Code from module usleep:
35473
{ $as_echo "$as_me:$LINENO: checking for useconds_t" >&5
35474
$as_echo_n "checking for useconds_t... " >&6; }
35475
if test "${ac_cv_type_useconds_t+set}" = set; then
35476
$as_echo_n "(cached) " >&6
35478
ac_cv_type_useconds_t=no
35479
cat >conftest.$ac_ext <<_ACEOF
35482
cat confdefs.h >>conftest.$ac_ext
35483
cat >>conftest.$ac_ext <<_ACEOF
35484
/* end confdefs.h. */
35485
$ac_includes_default
35489
if (sizeof (useconds_t))
35495
rm -f conftest.$ac_objext
35496
if { (ac_try="$ac_compile"
35497
case "(($ac_try" in
35498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35499
*) ac_try_echo=$ac_try;;
35501
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35502
$as_echo "$ac_try_echo") >&5
35503
(eval "$ac_compile") 2>conftest.er1
35505
grep -v '^ *+' conftest.er1 >conftest.err
35507
cat conftest.err >&5
35508
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509
(exit $ac_status); } && {
35510
test -z "$ac_c_werror_flag" ||
35511
test ! -s conftest.err
35512
} && test -s conftest.$ac_objext; then
35513
cat >conftest.$ac_ext <<_ACEOF
35516
cat confdefs.h >>conftest.$ac_ext
35517
cat >>conftest.$ac_ext <<_ACEOF
35518
/* end confdefs.h. */
35519
$ac_includes_default
35523
if (sizeof ((useconds_t)))
35529
rm -f conftest.$ac_objext
35530
if { (ac_try="$ac_compile"
35531
case "(($ac_try" in
35532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533
*) ac_try_echo=$ac_try;;
35535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35536
$as_echo "$ac_try_echo") >&5
35537
(eval "$ac_compile") 2>conftest.er1
35539
grep -v '^ *+' conftest.er1 >conftest.err
35541
cat conftest.err >&5
35542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543
(exit $ac_status); } && {
35544
test -z "$ac_c_werror_flag" ||
35545
test ! -s conftest.err
35546
} && test -s conftest.$ac_objext; then
35549
$as_echo "$as_me: failed program was:" >&5
35550
sed 's/^/| /' conftest.$ac_ext >&5
35552
ac_cv_type_useconds_t=yes
35555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35557
$as_echo "$as_me: failed program was:" >&5
35558
sed 's/^/| /' conftest.$ac_ext >&5
35563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35565
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_useconds_t" >&5
35566
$as_echo "$ac_cv_type_useconds_t" >&6; }
35567
if test "x$ac_cv_type_useconds_t" = x""yes; then
35571
cat >>confdefs.h <<\_ACEOF
35572
#define useconds_t unsigned int
35577
if test $ac_cv_func_usleep = no; then
35587
gl_LIBOBJS="$gl_LIBOBJS usleep.$ac_objext"
35590
{ $as_echo "$as_me:$LINENO: checking whether usleep allows large arguments" >&5
35591
$as_echo_n "checking whether usleep allows large arguments... " >&6; }
35592
if test "${gl_cv_func_usleep_works+set}" = set; then
35593
$as_echo_n "(cached) " >&6
35595
if test "$cross_compiling" = yes; then
35596
gl_cv_func_usleep_works="guessing no"
35598
cat >conftest.$ac_ext <<_ACEOF
35601
cat confdefs.h >>conftest.$ac_ext
35602
cat >>conftest.$ac_ext <<_ACEOF
35603
/* end confdefs.h. */
35605
#include <unistd.h>
35610
return !!usleep (1000000);
35615
rm -f conftest$ac_exeext
35616
if { (ac_try="$ac_link"
35617
case "(($ac_try" in
35618
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35619
*) ac_try_echo=$ac_try;;
35621
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35622
$as_echo "$ac_try_echo") >&5
35623
(eval "$ac_link") 2>&5
35625
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35627
{ (case "(($ac_try" in
35628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35629
*) ac_try_echo=$ac_try;;
35631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35632
$as_echo "$ac_try_echo") >&5
35633
(eval "$ac_try") 2>&5
35635
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636
(exit $ac_status); }; }; then
35637
gl_cv_func_usleep_works=yes
35639
$as_echo "$as_me: program exited with status $ac_status" >&5
35640
$as_echo "$as_me: failed program was:" >&5
35641
sed 's/^/| /' conftest.$ac_ext >&5
35643
( exit $ac_status )
35644
gl_cv_func_usleep_works=no
35646
rm -rf conftest.dSYM
35647
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35652
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_usleep_works" >&5
35653
$as_echo "$gl_cv_func_usleep_works" >&6; }
35654
if test "$gl_cv_func_usleep_works" != yes; then
35664
gl_LIBOBJS="$gl_LIBOBJS usleep.$ac_objext"
35676
cat >>confdefs.h <<\_ACEOF
35677
#define GNULIB_TEST_USLEEP 1
35248
35682
# Code from module vasnprintf:
45826
# Check whether --with-gnu-ld was given.
45827
if test "${with_gnu_ld+set}" = set; then
45828
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
45834
if test "$GCC" = yes; then
45835
# Check if gcc -print-prog-name=ld gives a path.
45836
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
45837
$as_echo_n "checking for ld used by $CC... " >&6; }
45840
# gcc leaves a trailing carriage return which upsets mingw
45841
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
45843
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
45846
# Accept absolute paths.
45848
re_direlt='/[^/][^/]*/\.\./'
45849
# Canonicalize the pathname of ld
45850
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
45851
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
45852
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
45854
test -z "$LD" && LD="$ac_prog"
45857
# If it fails, then pretend we aren't using GCC.
45861
# If it is relative, then search for the first ld in PATH.
45862
with_gnu_ld=unknown
45865
elif test "$with_gnu_ld" = yes; then
45866
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
45867
$as_echo_n "checking for GNU ld... " >&6; }
45869
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
45870
$as_echo_n "checking for non-GNU ld... " >&6; }
45872
if test "${lt_cv_path_LD+set}" = set; then
45873
$as_echo_n "(cached) " >&6
45875
if test -z "$LD"; then
45876
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
45877
for ac_dir in $PATH; do
45879
test -z "$ac_dir" && ac_dir=.
45880
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
45881
lt_cv_path_LD="$ac_dir/$ac_prog"
45882
# Check to see if the program is GNU ld. I'd rather use --version,
45883
# but apparently some variants of GNU ld only accept -v.
45884
# Break only if it was the GNU/non-GNU ld that we prefer.
45885
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
45886
*GNU* | *'with BFD'*)
45887
test "$with_gnu_ld" != no && break
45890
test "$with_gnu_ld" != yes && break
45897
lt_cv_path_LD="$LD" # Let the user override the test with a path.
45901
LD="$lt_cv_path_LD"
45902
if test -n "$LD"; then
45903
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
45904
$as_echo "$LD" >&6; }
45906
{ $as_echo "$as_me:$LINENO: result: no" >&5
45907
$as_echo "no" >&6; }
45909
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
45910
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
45911
{ (exit 1); exit 1; }; }
45912
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
45913
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
45914
if test "${lt_cv_prog_gnu_ld+set}" = set; then
45915
$as_echo_n "(cached) " >&6
45917
# I'd rather use --version here, but apparently some GNU lds only accept -v.
45918
case `$LD -v 2>&1 </dev/null` in
45919
*GNU* | *'with BFD'*)
45920
lt_cv_prog_gnu_ld=yes
45923
lt_cv_prog_gnu_ld=no
45927
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
45928
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
45929
with_gnu_ld=$lt_cv_prog_gnu_ld
45384
45937
VERSION_SCRIPT_FLAGS=-Wl,--version-script=
45385
`/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null` || \
45938
`$LD --help 2>&1 | grep -- --version-script >/dev/null` || \
45386
45939
VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
47131
for ac_func in xdr_u_int64_t
47133
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47134
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47135
$as_echo_n "checking for $ac_func... " >&6; }
47136
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47137
$as_echo_n "(cached) " >&6
47139
cat >conftest.$ac_ext <<_ACEOF
47142
cat confdefs.h >>conftest.$ac_ext
47143
cat >>conftest.$ac_ext <<_ACEOF
47144
/* end confdefs.h. */
47145
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47146
For example, HP-UX 11i <limits.h> declares gettimeofday. */
47147
#define $ac_func innocuous_$ac_func
47149
/* System header to define __stub macros and hopefully few prototypes,
47150
which can conflict with char $ac_func (); below.
47151
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47152
<limits.h> exists even on freestanding compilers. */
47155
# include <limits.h>
47157
# include <assert.h>
47162
/* Override any GCC internal prototype to avoid an error.
47163
Use char because int might match the return type of a GCC
47164
builtin and then its argument prototype would still apply. */
47169
/* The GNU C library defines this for functions which it implements
47170
to always fail with ENOSYS. Some functions are actually named
47171
something starting with __ and the normal name is an alias. */
47172
#if defined __stub_$ac_func || defined __stub___$ac_func
47179
return $ac_func ();
47184
rm -f conftest.$ac_objext conftest$ac_exeext
47185
if { (ac_try="$ac_link"
47186
case "(($ac_try" in
47187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47188
*) ac_try_echo=$ac_try;;
47190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47191
$as_echo "$ac_try_echo") >&5
47192
(eval "$ac_link") 2>conftest.er1
47194
grep -v '^ *+' conftest.er1 >conftest.err
47196
cat conftest.err >&5
47197
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47198
(exit $ac_status); } && {
47199
test -z "$ac_c_werror_flag" ||
47200
test ! -s conftest.err
47201
} && test -s conftest$ac_exeext && {
47202
test "$cross_compiling" = yes ||
47203
$as_test_x conftest$ac_exeext
47205
eval "$as_ac_var=yes"
47207
$as_echo "$as_me: failed program was:" >&5
47208
sed 's/^/| /' conftest.$ac_ext >&5
47210
eval "$as_ac_var=no"
47213
rm -rf conftest.dSYM
47214
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47215
conftest$ac_exeext conftest.$ac_ext
47217
ac_res=`eval 'as_val=${'$as_ac_var'}
47218
$as_echo "$as_val"'`
47219
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47220
$as_echo "$ac_res" >&6; }
47221
as_val=`eval 'as_val=${'$as_ac_var'}
47222
$as_echo "$as_val"'`
47223
if test "x$as_val" = x""yes; then
47224
cat >>confdefs.h <<_ACEOF
47225
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46578
47233
{ $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
46579
47234
$as_echo_n "checking for gettext in -lintl... " >&6; }
46580
47235
if test "${ac_cv_lib_intl_gettext+set}" = set; then
47735
# Extract the first word of "bash", so it can be a program name with args.
47736
set dummy bash; ac_word=$2
47737
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47738
$as_echo_n "checking for $ac_word... " >&6; }
47739
if test "${ac_cv_path_BASH_PATH+set}" = set; then
47740
$as_echo_n "(cached) " >&6
47744
ac_cv_path_BASH_PATH="$BASH_PATH" # Let the user override the test with a path.
47747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47748
as_dummy="/bin:$PATH"
47749
for as_dir in $as_dummy
47752
test -z "$as_dir" && as_dir=.
47753
for ac_exec_ext in '' $ac_executable_extensions; do
47754
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47755
ac_cv_path_BASH_PATH="$as_dir/$ac_word$ac_exec_ext"
47756
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47763
test -z "$ac_cv_path_BASH_PATH" && ac_cv_path_BASH_PATH="/bin/bash"
47767
BASH_PATH=$ac_cv_path_BASH_PATH
47768
if test -n "$BASH_PATH"; then
47769
{ $as_echo "$as_me:$LINENO: result: $BASH_PATH" >&5
47770
$as_echo "$BASH_PATH" >&6; }
47772
{ $as_echo "$as_me:$LINENO: result: no" >&5
47773
$as_echo "no" >&6; }
47778
cat >>confdefs.h <<_ACEOF
47779
#define BASH_PATH "$BASH_PATH"
47783
48401
# Extract the first word of "iptables", so it can be a program name with args.
47784
48402
set dummy iptables; ac_word=$2
47785
48403
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47831
# Extract the first word of "ip6tables", so it can be a program name with args.
47832
set dummy ip6tables; ac_word=$2
47833
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47834
$as_echo_n "checking for $ac_word... " >&6; }
47835
if test "${ac_cv_path_IP6TABLES_PATH+set}" = set; then
47836
$as_echo_n "(cached) " >&6
47838
case $IP6TABLES_PATH in
47840
ac_cv_path_IP6TABLES_PATH="$IP6TABLES_PATH" # Let the user override the test with a path.
47843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47844
as_dummy="/usr/sbin:$PATH"
47845
for as_dir in $as_dummy
47848
test -z "$as_dir" && as_dir=.
47849
for ac_exec_ext in '' $ac_executable_extensions; do
47850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47851
ac_cv_path_IP6TABLES_PATH="$as_dir/$ac_word$ac_exec_ext"
47852
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47859
test -z "$ac_cv_path_IP6TABLES_PATH" && ac_cv_path_IP6TABLES_PATH="/sbin/ip6tables"
47863
IP6TABLES_PATH=$ac_cv_path_IP6TABLES_PATH
47864
if test -n "$IP6TABLES_PATH"; then
47865
{ $as_echo "$as_me:$LINENO: result: $IP6TABLES_PATH" >&5
47866
$as_echo "$IP6TABLES_PATH" >&6; }
47868
{ $as_echo "$as_me:$LINENO: result: no" >&5
47869
$as_echo "no" >&6; }
47874
cat >>confdefs.h <<_ACEOF
47875
#define IP6TABLES_PATH "$IP6TABLES_PATH"
47879
48449
# Extract the first word of "ebtables", so it can be a program name with args.
47880
48450
set dummy ebtables; ac_word=$2
47881
48451
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47927
# Extract the first word of "grep", so it can be a program name with args.
47928
set dummy grep; ac_word=$2
47929
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47930
$as_echo_n "checking for $ac_word... " >&6; }
47931
if test "${ac_cv_path_GREP_PATH+set}" = set; then
47932
$as_echo_n "(cached) " >&6
47936
ac_cv_path_GREP_PATH="$GREP_PATH" # Let the user override the test with a path.
47939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47940
as_dummy="/bin:$PATH"
47941
for as_dir in $as_dummy
47944
test -z "$as_dir" && as_dir=.
47945
for ac_exec_ext in '' $ac_executable_extensions; do
47946
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47947
ac_cv_path_GREP_PATH="$as_dir/$ac_word$ac_exec_ext"
47948
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47955
test -z "$ac_cv_path_GREP_PATH" && ac_cv_path_GREP_PATH="/bin/grep"
47959
GREP_PATH=$ac_cv_path_GREP_PATH
47960
if test -n "$GREP_PATH"; then
47961
{ $as_echo "$as_me:$LINENO: result: $GREP_PATH" >&5
47962
$as_echo "$GREP_PATH" >&6; }
47964
{ $as_echo "$as_me:$LINENO: result: no" >&5
47965
$as_echo "no" >&6; }
47970
cat >>confdefs.h <<_ACEOF
47971
#define GREP_PATH "$GREP_PATH"
47975
# Extract the first word of "gawk", so it can be a program name with args.
47976
set dummy gawk; ac_word=$2
47977
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47978
$as_echo_n "checking for $ac_word... " >&6; }
47979
if test "${ac_cv_path_GAWK_PATH+set}" = set; then
47980
$as_echo_n "(cached) " >&6
47984
ac_cv_path_GAWK_PATH="$GAWK_PATH" # Let the user override the test with a path.
47987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47988
as_dummy="/bin:$PATH"
47989
for as_dir in $as_dummy
47992
test -z "$as_dir" && as_dir=.
47993
for ac_exec_ext in '' $ac_executable_extensions; do
47994
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47995
ac_cv_path_GAWK_PATH="$as_dir/$ac_word$ac_exec_ext"
47996
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48003
test -z "$ac_cv_path_GAWK_PATH" && ac_cv_path_GAWK_PATH="/bin/gawk"
48007
GAWK_PATH=$ac_cv_path_GAWK_PATH
48008
if test -n "$GAWK_PATH"; then
48009
{ $as_echo "$as_me:$LINENO: result: $GAWK_PATH" >&5
48010
$as_echo "$GAWK_PATH" >&6; }
48012
{ $as_echo "$as_me:$LINENO: result: no" >&5
48013
$as_echo "no" >&6; }
48018
cat >>confdefs.h <<_ACEOF
48019
#define GAWK_PATH "$GAWK_PATH"
48024
48498
if test "$with_openvz" = "yes"; then