3417
4521
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421
$ac_path_EGREP_found && break 3
4524
$ac_path_EGREP_found && break 3
3426
4528
IFS=$as_save_IFS
3431
EGREP="$ac_cv_path_EGREP"
3432
if test -z "$EGREP"; then
3433
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3434
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4529
if test -z "$ac_cv_path_EGREP"; then
4530
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3435
4532
{ (exit 1); exit 1; }; }
3439
4535
ac_cv_path_EGREP=$EGREP
3445
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3446
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4540
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4541
$as_echo "$ac_cv_path_EGREP" >&6; }
3447
4542
EGREP="$ac_cv_path_EGREP"
3451
{ echo "$as_me:$LINENO: checking for AIX" >&5
3452
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3453
cat >conftest.$ac_ext <<_ACEOF
3456
cat confdefs.h >>conftest.$ac_ext
3457
cat >>conftest.$ac_ext <<_ACEOF
3458
/* end confdefs.h. */
4545
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4546
$as_echo_n "checking for ANSI C header files... " >&6; }
4547
if test "${ac_cv_header_stdc+set}" = set; then
4548
$as_echo_n "(cached) " >&6
4550
cat >conftest.$ac_ext <<_ACEOF
4553
cat confdefs.h >>conftest.$ac_ext
4554
cat >>conftest.$ac_ext <<_ACEOF
4555
/* end confdefs.h. */
4569
rm -f conftest.$ac_objext
4570
if { (ac_try="$ac_compile"
4572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573
*) ac_try_echo=$ac_try;;
4575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576
$as_echo "$ac_try_echo") >&5
4577
(eval "$ac_compile") 2>conftest.er1
4579
grep -v '^ *+' conftest.er1 >conftest.err
4581
cat conftest.err >&5
4582
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583
(exit $ac_status); } && {
4584
test -z "$ac_c_werror_flag" ||
4585
test ! -s conftest.err
4586
} && test -s conftest.$ac_objext; then
4587
ac_cv_header_stdc=yes
4589
$as_echo "$as_me: failed program was:" >&5
4590
sed 's/^/| /' conftest.$ac_ext >&5
4592
ac_cv_header_stdc=no
4595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
if test $ac_cv_header_stdc = yes; then
4598
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599
cat >conftest.$ac_ext <<_ACEOF
4602
cat confdefs.h >>conftest.$ac_ext
4603
cat >>conftest.$ac_ext <<_ACEOF
4604
/* end confdefs.h. */
4608
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609
$EGREP "memchr" >/dev/null 2>&1; then
4612
ac_cv_header_stdc=no
4618
if test $ac_cv_header_stdc = yes; then
4619
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620
cat >conftest.$ac_ext <<_ACEOF
4623
cat confdefs.h >>conftest.$ac_ext
4624
cat >>conftest.$ac_ext <<_ACEOF
4625
/* end confdefs.h. */
4629
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630
$EGREP "free" >/dev/null 2>&1; then
4633
ac_cv_header_stdc=no
4639
if test $ac_cv_header_stdc = yes; then
4640
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641
if test "$cross_compiling" = yes; then
4644
cat >conftest.$ac_ext <<_ACEOF
4647
cat confdefs.h >>conftest.$ac_ext
4648
cat >>conftest.$ac_ext <<_ACEOF
4649
/* end confdefs.h. */
4652
#if ((' ' & 0x0FF) == 0x020)
4653
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656
# define ISLOWER(c) \
4657
(('a' <= (c) && (c) <= 'i') \
4658
|| ('j' <= (c) && (c) <= 'r') \
4659
|| ('s' <= (c) && (c) <= 'z'))
4660
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3464
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465
$EGREP "yes" >/dev/null 2>&1; then
3466
{ echo "$as_me:$LINENO: result: yes" >&5
3467
echo "${ECHO_T}yes" >&6; }
3468
cat >>confdefs.h <<\_ACEOF
4663
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668
for (i = 0; i < 256; i++)
4669
if (XOR (islower (i), ISLOWER (i))
4670
|| toupper (i) != TOUPPER (i))
4675
rm -f conftest$ac_exeext
4676
if { (ac_try="$ac_link"
4678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679
*) ac_try_echo=$ac_try;;
4681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682
$as_echo "$ac_try_echo") >&5
4683
(eval "$ac_link") 2>&5
4685
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687
{ (case "(($ac_try" in
4688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689
*) ac_try_echo=$ac_try;;
4691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692
$as_echo "$ac_try_echo") >&5
4693
(eval "$ac_try") 2>&5
4695
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696
(exit $ac_status); }; }; then
4699
$as_echo "$as_me: program exited with status $ac_status" >&5
4700
$as_echo "$as_me: failed program was:" >&5
4701
sed 's/^/| /' conftest.$ac_ext >&5
4704
ac_cv_header_stdc=no
4706
rm -rf conftest.dSYM
4707
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714
$as_echo "$ac_cv_header_stdc" >&6; }
4715
if test $ac_cv_header_stdc = yes; then
4717
cat >>confdefs.h <<\_ACEOF
4718
#define STDC_HEADERS 1
4723
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734
inttypes.h stdint.h unistd.h
4736
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4738
$as_echo_n "checking for $ac_header... " >&6; }
4739
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4740
$as_echo_n "(cached) " >&6
4742
cat >conftest.$ac_ext <<_ACEOF
4745
cat confdefs.h >>conftest.$ac_ext
4746
cat >>conftest.$ac_ext <<_ACEOF
4747
/* end confdefs.h. */
4748
$ac_includes_default
4750
#include <$ac_header>
4752
rm -f conftest.$ac_objext
4753
if { (ac_try="$ac_compile"
4755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756
*) ac_try_echo=$ac_try;;
4758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759
$as_echo "$ac_try_echo") >&5
4760
(eval "$ac_compile") 2>conftest.er1
4762
grep -v '^ *+' conftest.er1 >conftest.err
4764
cat conftest.err >&5
4765
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
(exit $ac_status); } && {
4767
test -z "$ac_c_werror_flag" ||
4768
test ! -s conftest.err
4769
} && test -s conftest.$ac_objext; then
4770
eval "$as_ac_Header=yes"
4772
$as_echo "$as_me: failed program was:" >&5
4773
sed 's/^/| /' conftest.$ac_ext >&5
4775
eval "$as_ac_Header=no"
4778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780
ac_res=`eval 'as_val=${'$as_ac_Header'}
4781
$as_echo "$as_val"'`
4782
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4783
$as_echo "$ac_res" >&6; }
4784
as_val=`eval 'as_val=${'$as_ac_Header'}
4785
$as_echo "$as_val"'`
4786
if test "x$as_val" = x""yes; then
4787
cat >>confdefs.h <<_ACEOF
4788
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799
if test "${ac_cv_header_minix_config_h+set}" = set; then
4800
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801
$as_echo_n "checking for minix/config.h... " >&6; }
4802
if test "${ac_cv_header_minix_config_h+set}" = set; then
4803
$as_echo_n "(cached) " >&6
4805
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4808
# Is the header compilable?
4809
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4810
$as_echo_n "checking minix/config.h usability... " >&6; }
4811
cat >conftest.$ac_ext <<_ACEOF
4814
cat confdefs.h >>conftest.$ac_ext
4815
cat >>conftest.$ac_ext <<_ACEOF
4816
/* end confdefs.h. */
4817
$ac_includes_default
4818
#include <minix/config.h>
4820
rm -f conftest.$ac_objext
4821
if { (ac_try="$ac_compile"
4823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824
*) ac_try_echo=$ac_try;;
4826
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827
$as_echo "$ac_try_echo") >&5
4828
(eval "$ac_compile") 2>conftest.er1
4830
grep -v '^ *+' conftest.er1 >conftest.err
4832
cat conftest.err >&5
4833
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834
(exit $ac_status); } && {
4835
test -z "$ac_c_werror_flag" ||
4836
test ! -s conftest.err
4837
} && test -s conftest.$ac_objext; then
4838
ac_header_compiler=yes
4840
$as_echo "$as_me: failed program was:" >&5
4841
sed 's/^/| /' conftest.$ac_ext >&5
4843
ac_header_compiler=no
4846
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848
$as_echo "$ac_header_compiler" >&6; }
4850
# Is the header present?
4851
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4852
$as_echo_n "checking minix/config.h presence... " >&6; }
4853
cat >conftest.$ac_ext <<_ACEOF
4856
cat confdefs.h >>conftest.$ac_ext
4857
cat >>conftest.$ac_ext <<_ACEOF
4858
/* end confdefs.h. */
4859
#include <minix/config.h>
4861
if { (ac_try="$ac_cpp conftest.$ac_ext"
4863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864
*) ac_try_echo=$ac_try;;
4866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867
$as_echo "$ac_try_echo") >&5
4868
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870
grep -v '^ *+' conftest.er1 >conftest.err
4872
cat conftest.err >&5
4873
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); } >/dev/null && {
4875
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876
test ! -s conftest.err
4878
ac_header_preproc=yes
4880
$as_echo "$as_me: failed program was:" >&5
4881
sed 's/^/| /' conftest.$ac_ext >&5
4883
ac_header_preproc=no
4886
rm -f conftest.err conftest.$ac_ext
4887
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888
$as_echo "$ac_header_preproc" >&6; }
4890
# So? What about this header?
4891
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4893
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4894
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4896
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4897
ac_header_preproc=yes
4900
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4901
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4902
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4903
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4904
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4905
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4906
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4907
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4908
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4909
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4910
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4911
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4913
## ------------------------------- ##
4914
## Report this to bug-wget@gnu.org ##
4915
## ------------------------------- ##
4917
) | sed "s/^/$as_me: WARNING: /" >&2
4920
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4921
$as_echo_n "checking for minix/config.h... " >&6; }
4922
if test "${ac_cv_header_minix_config_h+set}" = set; then
4923
$as_echo_n "(cached) " >&6
4925
ac_cv_header_minix_config_h=$ac_header_preproc
4927
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4928
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4931
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4938
if test "$MINIX" = yes; then
4940
cat >>confdefs.h <<\_ACEOF
4941
#define _POSIX_SOURCE 1
4945
cat >>confdefs.h <<\_ACEOF
4946
#define _POSIX_1_SOURCE 2
4950
cat >>confdefs.h <<\_ACEOF
4959
cat >>confdefs.h <<\_ACEOF
4960
#define _XOPEN_SOURCE 500
4968
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4969
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4970
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4971
$as_echo_n "(cached) " >&6
4973
cat >conftest.$ac_ext <<_ACEOF
4976
cat confdefs.h >>conftest.$ac_ext
4977
cat >>conftest.$ac_ext <<_ACEOF
4978
/* end confdefs.h. */
4980
# define __EXTENSIONS__ 1
4981
$ac_includes_default
4990
rm -f conftest.$ac_objext
4991
if { (ac_try="$ac_compile"
4993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994
*) ac_try_echo=$ac_try;;
4996
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997
$as_echo "$ac_try_echo") >&5
4998
(eval "$ac_compile") 2>conftest.er1
5000
grep -v '^ *+' conftest.er1 >conftest.err
5002
cat conftest.err >&5
5003
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004
(exit $ac_status); } && {
5005
test -z "$ac_c_werror_flag" ||
5006
test ! -s conftest.err
5007
} && test -s conftest.$ac_objext; then
5008
ac_cv_safe_to_define___extensions__=yes
5010
$as_echo "$as_me: failed program was:" >&5
5011
sed 's/^/| /' conftest.$ac_ext >&5
5013
ac_cv_safe_to_define___extensions__=no
5016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5019
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5020
test $ac_cv_safe_to_define___extensions__ = yes &&
5021
cat >>confdefs.h <<\_ACEOF
5022
#define __EXTENSIONS__ 1
5025
cat >>confdefs.h <<\_ACEOF
3469
5026
#define _ALL_SOURCE 1
3473
{ echo "$as_me:$LINENO: result: no" >&5
3474
echo "${ECHO_T}no" >&6; }
5029
cat >>confdefs.h <<\_ACEOF
5030
#define _GNU_SOURCE 1
5033
cat >>confdefs.h <<\_ACEOF
5034
#define _POSIX_PTHREAD_SEMANTICS 1
5037
cat >>confdefs.h <<\_ACEOF
5038
#define _TANDEM_SOURCE 1
5044
if test -n "$ac_tool_prefix"; then
5045
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5047
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5048
$as_echo_n "checking for $ac_word... " >&6; }
5049
if test "${ac_cv_prog_RANLIB+set}" = set; then
5050
$as_echo_n "(cached) " >&6
5052
if test -n "$RANLIB"; then
5053
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059
test -z "$as_dir" && as_dir=.
5060
for ac_exec_ext in '' $ac_executable_extensions; do
5061
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5063
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072
RANLIB=$ac_cv_prog_RANLIB
5073
if test -n "$RANLIB"; then
5074
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5075
$as_echo "$RANLIB" >&6; }
5077
{ $as_echo "$as_me:$LINENO: result: no" >&5
5078
$as_echo "no" >&6; }
5083
if test -z "$ac_cv_prog_RANLIB"; then
5084
ac_ct_RANLIB=$RANLIB
5085
# Extract the first word of "ranlib", so it can be a program name with args.
5086
set dummy ranlib; ac_word=$2
5087
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088
$as_echo_n "checking for $ac_word... " >&6; }
5089
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090
$as_echo_n "(cached) " >&6
5092
if test -n "$ac_ct_RANLIB"; then
5093
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099
test -z "$as_dir" && as_dir=.
5100
for ac_exec_ext in '' $ac_executable_extensions; do
5101
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102
ac_cv_prog_ac_ct_RANLIB="ranlib"
5103
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5113
if test -n "$ac_ct_RANLIB"; then
5114
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115
$as_echo "$ac_ct_RANLIB" >&6; }
5117
{ $as_echo "$as_me:$LINENO: result: no" >&5
5118
$as_echo "no" >&6; }
5121
if test "x$ac_ct_RANLIB" = x; then
5124
case $cross_compiling:$ac_tool_warned in
5126
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5127
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128
ac_tool_warned=yes ;;
5130
RANLIB=$ac_ct_RANLIB
5133
RANLIB="$ac_cv_prog_RANLIB"
5143
{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5144
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5145
if test "${ac_cv_sys_largefile_source+set}" = set; then
5146
$as_echo_n "(cached) " >&6
5149
cat >conftest.$ac_ext <<_ACEOF
5152
cat confdefs.h >>conftest.$ac_ext
5153
cat >>conftest.$ac_ext <<_ACEOF
5154
/* end confdefs.h. */
5155
#include <sys/types.h> /* for off_t */
5160
int (*fp) (FILE *, off_t, int) = fseeko;
5161
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5166
rm -f conftest.$ac_objext conftest$ac_exeext
5167
if { (ac_try="$ac_link"
5169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170
*) ac_try_echo=$ac_try;;
5172
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173
$as_echo "$ac_try_echo") >&5
5174
(eval "$ac_link") 2>conftest.er1
5176
grep -v '^ *+' conftest.er1 >conftest.err
5178
cat conftest.err >&5
5179
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180
(exit $ac_status); } && {
5181
test -z "$ac_c_werror_flag" ||
5182
test ! -s conftest.err
5183
} && test -s conftest$ac_exeext && {
5184
test "$cross_compiling" = yes ||
5185
$as_test_x conftest$ac_exeext
5187
ac_cv_sys_largefile_source=no; break
5189
$as_echo "$as_me: failed program was:" >&5
5190
sed 's/^/| /' conftest.$ac_ext >&5
5195
rm -rf conftest.dSYM
5196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5197
conftest$ac_exeext conftest.$ac_ext
5198
cat >conftest.$ac_ext <<_ACEOF
5201
cat confdefs.h >>conftest.$ac_ext
5202
cat >>conftest.$ac_ext <<_ACEOF
5203
/* end confdefs.h. */
5204
#define _LARGEFILE_SOURCE 1
5205
#include <sys/types.h> /* for off_t */
5210
int (*fp) (FILE *, off_t, int) = fseeko;
5211
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5216
rm -f conftest.$ac_objext conftest$ac_exeext
5217
if { (ac_try="$ac_link"
5219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220
*) ac_try_echo=$ac_try;;
5222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223
$as_echo "$ac_try_echo") >&5
5224
(eval "$ac_link") 2>conftest.er1
5226
grep -v '^ *+' conftest.er1 >conftest.err
5228
cat conftest.err >&5
5229
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230
(exit $ac_status); } && {
5231
test -z "$ac_c_werror_flag" ||
5232
test ! -s conftest.err
5233
} && test -s conftest$ac_exeext && {
5234
test "$cross_compiling" = yes ||
5235
$as_test_x conftest$ac_exeext
5237
ac_cv_sys_largefile_source=1; break
5239
$as_echo "$as_me: failed program was:" >&5
5240
sed 's/^/| /' conftest.$ac_ext >&5
5245
rm -rf conftest.dSYM
5246
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5247
conftest$ac_exeext conftest.$ac_ext
5248
ac_cv_sys_largefile_source=unknown
5252
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5253
$as_echo "$ac_cv_sys_largefile_source" >&6; }
5254
case $ac_cv_sys_largefile_source in #(
5257
cat >>confdefs.h <<_ACEOF
5258
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5264
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5265
# in glibc 2.1.3, but that breaks too many other things.
5266
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5267
if test $ac_cv_sys_largefile_source != unknown; then
5269
cat >>confdefs.h <<\_ACEOF
5270
#define HAVE_FSEEKO 1
5285
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5286
$as_echo_n "checking whether NLS is requested... " >&6; }
5287
# Check whether --enable-nls was given.
5288
if test "${enable_nls+set}" = set; then
5289
enableval=$enable_nls; USE_NLS=$enableval
5294
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5295
$as_echo "$USE_NLS" >&6; }
5300
GETTEXT_MACRO_VERSION=0.17
5304
# Extract the first word of "msgfmt", so it can be a program name with args.
5305
set dummy msgfmt; ac_word=$2
5306
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5307
$as_echo_n "checking for $ac_word... " >&6; }
5308
if test "${ac_cv_path_MSGFMT+set}" = set; then
5309
$as_echo_n "(cached) " >&6
5313
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5316
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5317
for ac_dir in $PATH; do
5318
test -z "$ac_dir" && ac_dir=.
5319
if test -f $ac_dir/$ac_word; then
5320
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5321
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5322
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5328
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5332
MSGFMT="$ac_cv_path_MSGFMT"
5333
if test -n "$MSGFMT"; then
5334
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5335
$as_echo "$MSGFMT" >&6; }
5337
{ $as_echo "$as_me:$LINENO: result: no" >&5
5338
$as_echo "no" >&6; }
5341
# Extract the first word of "gmsgfmt", so it can be a program name with args.
5342
set dummy gmsgfmt; ac_word=$2
5343
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344
$as_echo_n "checking for $ac_word... " >&6; }
5345
if test "${ac_cv_path_GMSGFMT+set}" = set; then
5346
$as_echo_n "(cached) " >&6
5350
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357
test -z "$as_dir" && as_dir=.
5358
for ac_exec_ext in '' $ac_executable_extensions; do
5359
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5361
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5372
GMSGFMT=$ac_cv_path_GMSGFMT
5373
if test -n "$GMSGFMT"; then
5374
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5375
$as_echo "$GMSGFMT" >&6; }
5377
{ $as_echo "$as_me:$LINENO: result: no" >&5
5378
$as_echo "no" >&6; }
5383
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5384
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5385
*) MSGFMT_015=$MSGFMT ;;
5388
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5389
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5390
*) GMSGFMT_015=$GMSGFMT ;;
5394
# Extract the first word of "xgettext", so it can be a program name with args.
5395
set dummy xgettext; ac_word=$2
5396
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397
$as_echo_n "checking for $ac_word... " >&6; }
5398
if test "${ac_cv_path_XGETTEXT+set}" = set; then
5399
$as_echo_n "(cached) " >&6
5403
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5406
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5407
for ac_dir in $PATH; do
5408
test -z "$ac_dir" && ac_dir=.
5409
if test -f $ac_dir/$ac_word; then
5410
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5411
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5412
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5418
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5422
XGETTEXT="$ac_cv_path_XGETTEXT"
5423
if test -n "$XGETTEXT"; then
5424
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5425
$as_echo "$XGETTEXT" >&6; }
5427
{ $as_echo "$as_me:$LINENO: result: no" >&5
5428
$as_echo "no" >&6; }
5433
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5434
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5435
*) XGETTEXT_015=$XGETTEXT ;;
5439
# Extract the first word of "msgmerge", so it can be a program name with args.
5440
set dummy msgmerge; ac_word=$2
5441
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5442
$as_echo_n "checking for $ac_word... " >&6; }
5443
if test "${ac_cv_path_MSGMERGE+set}" = set; then
5444
$as_echo_n "(cached) " >&6
5448
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5451
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452
for ac_dir in $PATH; do
5453
test -z "$ac_dir" && ac_dir=.
5454
if test -f $ac_dir/$ac_word; then
5455
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5456
ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5462
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5466
MSGMERGE="$ac_cv_path_MSGMERGE"
5467
if test -n "$MSGMERGE"; then
5468
{ $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5469
$as_echo "$MSGMERGE" >&6; }
5471
{ $as_echo "$as_me:$LINENO: result: no" >&5
5472
$as_echo "no" >&6; }
5476
test -n "$localedir" || localedir='${datadir}/locale'
5479
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5482
ac_config_commands="$ac_config_commands po-directories"
5486
if test "X$prefix" = "XNONE"; then
5487
acl_final_prefix="$ac_default_prefix"
5489
acl_final_prefix="$prefix"
5491
if test "X$exec_prefix" = "XNONE"; then
5492
acl_final_exec_prefix='${prefix}'
5494
acl_final_exec_prefix="$exec_prefix"
5496
acl_save_prefix="$prefix"
5497
prefix="$acl_final_prefix"
5498
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5499
prefix="$acl_save_prefix"
5502
# Check whether --with-gnu-ld was given.
5503
if test "${with_gnu_ld+set}" = set; then
5504
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5509
# Prepare PATH_SEPARATOR.
5510
# The user is always right.
5511
if test "${PATH_SEPARATOR+set}" != set; then
5512
echo "#! /bin/sh" >conf$$.sh
5513
echo "exit 0" >>conf$$.sh
5515
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5523
if test "$GCC" = yes; then
5524
# Check if gcc -print-prog-name=ld gives a path.
5525
{ $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5526
$as_echo_n "checking for ld used by GCC... " >&6; }
5529
# gcc leaves a trailing carriage return which upsets mingw
5530
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5532
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5535
# Accept absolute paths.
5536
[\\/]* | [A-Za-z]:[\\/]*)
5537
re_direlt='/[^/][^/]*/\.\./'
5538
# Canonicalize the path of ld
5539
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5540
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5541
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5543
test -z "$LD" && LD="$ac_prog"
5546
# If it fails, then pretend we aren't using GCC.
5550
# If it is relative, then search for the first ld in PATH.
5554
elif test "$with_gnu_ld" = yes; then
5555
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5556
$as_echo_n "checking for GNU ld... " >&6; }
5558
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559
$as_echo_n "checking for non-GNU ld... " >&6; }
5561
if test "${acl_cv_path_LD+set}" = set; then
5562
$as_echo_n "(cached) " >&6
5564
if test -z "$LD"; then
5565
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5566
for ac_dir in $PATH; do
5567
test -z "$ac_dir" && ac_dir=.
5568
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5569
acl_cv_path_LD="$ac_dir/$ac_prog"
5570
# Check to see if the program is GNU ld. I'd rather use --version,
5571
# but apparently some GNU ld's only accept -v.
5572
# Break only if it was the GNU/non-GNU ld that we prefer.
5573
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5574
*GNU* | *'with BFD'*)
5575
test "$with_gnu_ld" != no && break ;;
5577
test "$with_gnu_ld" != yes && break ;;
5583
acl_cv_path_LD="$LD" # Let the user override the test with a path.
5587
LD="$acl_cv_path_LD"
5588
if test -n "$LD"; then
5589
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
5590
$as_echo "$LD" >&6; }
5592
{ $as_echo "$as_me:$LINENO: result: no" >&5
5593
$as_echo "no" >&6; }
5595
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5596
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5597
{ (exit 1); exit 1; }; }
5598
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5599
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5600
if test "${acl_cv_prog_gnu_ld+set}" = set; then
5601
$as_echo_n "(cached) " >&6
5603
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5604
case `$LD -v 2>&1 </dev/null` in
5605
*GNU* | *'with BFD'*)
5606
acl_cv_prog_gnu_ld=yes ;;
5608
acl_cv_prog_gnu_ld=no ;;
5611
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5612
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5613
with_gnu_ld=$acl_cv_prog_gnu_ld
5618
{ $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5619
$as_echo_n "checking for shared library run path origin... " >&6; }
5620
if test "${acl_cv_rpath+set}" = set; then
5621
$as_echo_n "(cached) " >&6
5624
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5625
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5631
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5632
$as_echo "$acl_cv_rpath" >&6; }
5634
acl_libext="$acl_cv_libext"
5635
acl_shlibext="$acl_cv_shlibext"
5636
acl_libname_spec="$acl_cv_libname_spec"
5637
acl_library_names_spec="$acl_cv_library_names_spec"
5638
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5639
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5640
acl_hardcode_direct="$acl_cv_hardcode_direct"
5641
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5642
# Check whether --enable-rpath was given.
5643
if test "${enable_rpath+set}" = set; then
5644
enableval=$enable_rpath; :
5652
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5653
if test -n "$searchpath"; then
5654
acl_save_IFS="${IFS= }"; IFS=":"
5655
for searchdir in $searchpath; do
5656
if test -d "$searchdir"; then
5657
case "$searchdir" in
5658
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5659
*) searchdir=`cd "$searchdir" && pwd`
5660
case "$searchdir" in
5661
*/lib64 ) acl_libdirstem=lib64 ;;
5679
acl_save_prefix="$prefix"
5680
prefix="$acl_final_prefix"
5681
acl_save_exec_prefix="$exec_prefix"
5682
exec_prefix="$acl_final_exec_prefix"
5684
eval additional_includedir=\"$includedir\"
5685
eval additional_libdir=\"$libdir\"
5687
exec_prefix="$acl_save_exec_prefix"
5688
prefix="$acl_save_prefix"
5691
# Check whether --with-libiconv-prefix was given.
5692
if test "${with_libiconv_prefix+set}" = set; then
5693
withval=$with_libiconv_prefix;
5694
if test "X$withval" = "Xno"; then
5697
if test "X$withval" = "X"; then
5699
acl_save_prefix="$prefix"
5700
prefix="$acl_final_prefix"
5701
acl_save_exec_prefix="$exec_prefix"
5702
exec_prefix="$acl_final_exec_prefix"
5704
eval additional_includedir=\"$includedir\"
5705
eval additional_libdir=\"$libdir\"
5707
exec_prefix="$acl_save_exec_prefix"
5708
prefix="$acl_save_prefix"
5711
additional_includedir="$withval/include"
5712
additional_libdir="$withval/$acl_libdirstem"
5724
names_already_handled=
5725
names_next_round='iconv '
5726
while test -n "$names_next_round"; do
5727
names_this_round="$names_next_round"
5729
for name in $names_this_round; do
5731
for n in $names_already_handled; do
5732
if test "$n" = "$name"; then
5737
if test -z "$already_handled"; then
5738
names_already_handled="$names_already_handled $name"
5739
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5740
eval value=\"\$HAVE_LIB$uppername\"
5741
if test -n "$value"; then
5742
if test "$value" = yes; then
5743
eval value=\"\$LIB$uppername\"
5744
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5745
eval value=\"\$LTLIB$uppername\"
5746
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5755
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5756
if test -n "$acl_shlibext"; then
5757
shrext=".$acl_shlibext" # typically: shrext=.so
5761
if test $use_additional = yes; then
5762
dir="$additional_libdir"
5763
if test -n "$acl_shlibext"; then
5764
if test -f "$dir/$libname$shrext"; then
5766
found_so="$dir/$libname$shrext"
5768
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5769
ver=`(cd "$dir" && \
5770
for f in "$libname$shrext".*; do echo "$f"; done \
5771
| sed -e "s,^$libname$shrext\\\\.,," \
5772
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5773
| sed 1q ) 2>/dev/null`
5774
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5776
found_so="$dir/$libname$shrext.$ver"
5779
eval library_names=\"$acl_library_names_spec\"
5780
for f in $library_names; do
5781
if test -f "$dir/$f"; then
5790
if test "X$found_dir" = "X"; then
5791
if test -f "$dir/$libname.$acl_libext"; then
5793
found_a="$dir/$libname.$acl_libext"
5796
if test "X$found_dir" != "X"; then
5797
if test -f "$dir/$libname.la"; then
5798
found_la="$dir/$libname.la"
5802
if test "X$found_dir" = "X"; then
5803
for x in $LDFLAGS $LTLIBICONV; do
5805
acl_save_prefix="$prefix"
5806
prefix="$acl_final_prefix"
5807
acl_save_exec_prefix="$exec_prefix"
5808
exec_prefix="$acl_final_exec_prefix"
5810
exec_prefix="$acl_save_exec_prefix"
5811
prefix="$acl_save_prefix"
5815
dir=`echo "X$x" | sed -e 's/^X-L//'`
5816
if test -n "$acl_shlibext"; then
5817
if test -f "$dir/$libname$shrext"; then
5819
found_so="$dir/$libname$shrext"
5821
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5822
ver=`(cd "$dir" && \
5823
for f in "$libname$shrext".*; do echo "$f"; done \
5824
| sed -e "s,^$libname$shrext\\\\.,," \
5825
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5826
| sed 1q ) 2>/dev/null`
5827
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5829
found_so="$dir/$libname$shrext.$ver"
5832
eval library_names=\"$acl_library_names_spec\"
5833
for f in $library_names; do
5834
if test -f "$dir/$f"; then
5843
if test "X$found_dir" = "X"; then
5844
if test -f "$dir/$libname.$acl_libext"; then
5846
found_a="$dir/$libname.$acl_libext"
5849
if test "X$found_dir" != "X"; then
5850
if test -f "$dir/$libname.la"; then
5851
found_la="$dir/$libname.la"
5856
if test "X$found_dir" != "X"; then
5861
if test "X$found_dir" != "X"; then
5862
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5863
if test "X$found_so" != "X"; then
5864
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5865
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5868
for x in $ltrpathdirs; do
5869
if test "X$x" = "X$found_dir"; then
5874
if test -z "$haveit"; then
5875
ltrpathdirs="$ltrpathdirs $found_dir"
5877
if test "$acl_hardcode_direct" = yes; then
5878
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5880
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5881
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5883
for x in $rpathdirs; do
5884
if test "X$x" = "X$found_dir"; then
5889
if test -z "$haveit"; then
5890
rpathdirs="$rpathdirs $found_dir"
5894
for x in $LDFLAGS $LIBICONV; do
5896
acl_save_prefix="$prefix"
5897
prefix="$acl_final_prefix"
5898
acl_save_exec_prefix="$exec_prefix"
5899
exec_prefix="$acl_final_exec_prefix"
5901
exec_prefix="$acl_save_exec_prefix"
5902
prefix="$acl_save_prefix"
5904
if test "X$x" = "X-L$found_dir"; then
5909
if test -z "$haveit"; then
5910
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5912
if test "$acl_hardcode_minus_L" != no; then
5913
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5915
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5921
if test "X$found_a" != "X"; then
5922
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5924
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5927
additional_includedir=
5928
case "$found_dir" in
5929
*/$acl_libdirstem | */$acl_libdirstem/)
5930
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5931
LIBICONV_PREFIX="$basedir"
5932
additional_includedir="$basedir/include"
5935
if test "X$additional_includedir" != "X"; then
5936
if test "X$additional_includedir" != "X/usr/include"; then
5938
if test "X$additional_includedir" = "X/usr/local/include"; then
5939
if test -n "$GCC"; then
5941
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5945
if test -z "$haveit"; then
5946
for x in $CPPFLAGS $INCICONV; do
5948
acl_save_prefix="$prefix"
5949
prefix="$acl_final_prefix"
5950
acl_save_exec_prefix="$exec_prefix"
5951
exec_prefix="$acl_final_exec_prefix"
5953
exec_prefix="$acl_save_exec_prefix"
5954
prefix="$acl_save_prefix"
5956
if test "X$x" = "X-I$additional_includedir"; then
5961
if test -z "$haveit"; then
5962
if test -d "$additional_includedir"; then
5963
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5969
if test -n "$found_la"; then
5970
save_libdir="$libdir"
5972
*/* | *\\*) . "$found_la" ;;
5973
*) . "./$found_la" ;;
5975
libdir="$save_libdir"
5976
for dep in $dependency_libs; do
5979
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5980
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5982
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5983
if test -n "$GCC"; then
5985
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5989
if test -z "$haveit"; then
5991
for x in $LDFLAGS $LIBICONV; do
5993
acl_save_prefix="$prefix"
5994
prefix="$acl_final_prefix"
5995
acl_save_exec_prefix="$exec_prefix"
5996
exec_prefix="$acl_final_exec_prefix"
5998
exec_prefix="$acl_save_exec_prefix"
5999
prefix="$acl_save_prefix"
6001
if test "X$x" = "X-L$additional_libdir"; then
6006
if test -z "$haveit"; then
6007
if test -d "$additional_libdir"; then
6008
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6012
for x in $LDFLAGS $LTLIBICONV; do
6014
acl_save_prefix="$prefix"
6015
prefix="$acl_final_prefix"
6016
acl_save_exec_prefix="$exec_prefix"
6017
exec_prefix="$acl_final_exec_prefix"
6019
exec_prefix="$acl_save_exec_prefix"
6020
prefix="$acl_save_prefix"
6022
if test "X$x" = "X-L$additional_libdir"; then
6027
if test -z "$haveit"; then
6028
if test -d "$additional_libdir"; then
6029
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6036
dir=`echo "X$dep" | sed -e 's/^X-R//'`
6037
if test "$enable_rpath" != no; then
6039
for x in $rpathdirs; do
6040
if test "X$x" = "X$dir"; then
6045
if test -z "$haveit"; then
6046
rpathdirs="$rpathdirs $dir"
6049
for x in $ltrpathdirs; do
6050
if test "X$x" = "X$dir"; then
6055
if test -z "$haveit"; then
6056
ltrpathdirs="$ltrpathdirs $dir"
6061
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6064
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6067
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6068
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6074
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6075
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6081
if test "X$rpathdirs" != "X"; then
6082
if test -n "$acl_hardcode_libdir_separator"; then
6084
for found_dir in $rpathdirs; do
6085
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6087
acl_save_libdir="$libdir"
6089
eval flag=\"$acl_hardcode_libdir_flag_spec\"
6090
libdir="$acl_save_libdir"
6091
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6093
for found_dir in $rpathdirs; do
6094
acl_save_libdir="$libdir"
6096
eval flag=\"$acl_hardcode_libdir_flag_spec\"
6097
libdir="$acl_save_libdir"
6098
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6102
if test "X$ltrpathdirs" != "X"; then
6103
for found_dir in $ltrpathdirs; do
6104
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6132
{ $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6133
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6134
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6135
$as_echo_n "(cached) " >&6
6137
gt_save_LIBS="$LIBS"
6138
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6139
cat >conftest.$ac_ext <<_ACEOF
6142
cat confdefs.h >>conftest.$ac_ext
6143
cat >>conftest.$ac_ext <<_ACEOF
6144
/* end confdefs.h. */
6145
#include <CoreFoundation/CFPreferences.h>
6149
CFPreferencesCopyAppValue(NULL, NULL)
6154
rm -f conftest.$ac_objext conftest$ac_exeext
6155
if { (ac_try="$ac_link"
6157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158
*) ac_try_echo=$ac_try;;
6160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161
$as_echo "$ac_try_echo") >&5
6162
(eval "$ac_link") 2>conftest.er1
6164
grep -v '^ *+' conftest.er1 >conftest.err
6166
cat conftest.err >&5
6167
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168
(exit $ac_status); } && {
6169
test -z "$ac_c_werror_flag" ||
6170
test ! -s conftest.err
6171
} && test -s conftest$ac_exeext && {
6172
test "$cross_compiling" = yes ||
6173
$as_test_x conftest$ac_exeext
6175
gt_cv_func_CFPreferencesCopyAppValue=yes
6177
$as_echo "$as_me: failed program was:" >&5
6178
sed 's/^/| /' conftest.$ac_ext >&5
6180
gt_cv_func_CFPreferencesCopyAppValue=no
6183
rm -rf conftest.dSYM
6184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185
conftest$ac_exeext conftest.$ac_ext
6186
LIBS="$gt_save_LIBS"
6188
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6189
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6190
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6192
cat >>confdefs.h <<\_ACEOF
6193
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6197
{ $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6198
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6199
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6200
$as_echo_n "(cached) " >&6
6202
gt_save_LIBS="$LIBS"
6203
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6204
cat >conftest.$ac_ext <<_ACEOF
6207
cat confdefs.h >>conftest.$ac_ext
6208
cat >>conftest.$ac_ext <<_ACEOF
6209
/* end confdefs.h. */
6210
#include <CoreFoundation/CFLocale.h>
6214
CFLocaleCopyCurrent();
6219
rm -f conftest.$ac_objext conftest$ac_exeext
6220
if { (ac_try="$ac_link"
6222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223
*) ac_try_echo=$ac_try;;
6225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226
$as_echo "$ac_try_echo") >&5
6227
(eval "$ac_link") 2>conftest.er1
6229
grep -v '^ *+' conftest.er1 >conftest.err
6231
cat conftest.err >&5
6232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233
(exit $ac_status); } && {
6234
test -z "$ac_c_werror_flag" ||
6235
test ! -s conftest.err
6236
} && test -s conftest$ac_exeext && {
6237
test "$cross_compiling" = yes ||
6238
$as_test_x conftest$ac_exeext
6240
gt_cv_func_CFLocaleCopyCurrent=yes
6242
$as_echo "$as_me: failed program was:" >&5
6243
sed 's/^/| /' conftest.$ac_ext >&5
6245
gt_cv_func_CFLocaleCopyCurrent=no
6248
rm -rf conftest.dSYM
6249
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250
conftest$ac_exeext conftest.$ac_ext
6251
LIBS="$gt_save_LIBS"
6253
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6254
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6255
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6257
cat >>confdefs.h <<\_ACEOF
6258
#define HAVE_CFLOCALECOPYCURRENT 1
6263
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6264
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6276
case " $gt_needs " in
6277
*" need-formatstring-macros "*) gt_api_version=3 ;;
6278
*" need-ngettext "*) gt_api_version=2 ;;
6279
*) gt_api_version=1 ;;
6281
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6282
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6284
if test "$USE_NLS" = "yes"; then
6285
gt_use_preinstalled_gnugettext=no
6288
if test $gt_api_version -ge 3; then
6289
gt_revision_test_code='
6290
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6291
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6293
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6296
gt_revision_test_code=
6298
if test $gt_api_version -ge 2; then
6299
gt_expression_test_code=' + * ngettext ("", "", 0)'
6301
gt_expression_test_code=
6304
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6305
$as_echo_n "checking for GNU gettext in libc... " >&6; }
6306
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
6307
$as_echo_n "(cached) " >&6
6309
cat >conftest.$ac_ext <<_ACEOF
6312
cat confdefs.h >>conftest.$ac_ext
6313
cat >>conftest.$ac_ext <<_ACEOF
6314
/* end confdefs.h. */
6315
#include <libintl.h>
6316
$gt_revision_test_code
6317
extern int _nl_msg_cat_cntr;
6318
extern int *_nl_domain_bindings;
6322
bindtextdomain ("", "");
6323
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6328
rm -f conftest.$ac_objext conftest$ac_exeext
6329
if { (ac_try="$ac_link"
6331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332
*) ac_try_echo=$ac_try;;
6334
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335
$as_echo "$ac_try_echo") >&5
6336
(eval "$ac_link") 2>conftest.er1
6338
grep -v '^ *+' conftest.er1 >conftest.err
6340
cat conftest.err >&5
6341
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342
(exit $ac_status); } && {
6343
test -z "$ac_c_werror_flag" ||
6344
test ! -s conftest.err
6345
} && test -s conftest$ac_exeext && {
6346
test "$cross_compiling" = yes ||
6347
$as_test_x conftest$ac_exeext
6349
eval "$gt_func_gnugettext_libc=yes"
6351
$as_echo "$as_me: failed program was:" >&5
6352
sed 's/^/| /' conftest.$ac_ext >&5
6354
eval "$gt_func_gnugettext_libc=no"
6357
rm -rf conftest.dSYM
6358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6359
conftest$ac_exeext conftest.$ac_ext
6361
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
6362
$as_echo "$as_val"'`
6363
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6364
$as_echo "$ac_res" >&6; }
6366
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6372
am_save_CPPFLAGS="$CPPFLAGS"
6374
for element in $INCICONV; do
6376
for x in $CPPFLAGS; do
6378
acl_save_prefix="$prefix"
6379
prefix="$acl_final_prefix"
6380
acl_save_exec_prefix="$exec_prefix"
6381
exec_prefix="$acl_final_exec_prefix"
6383
exec_prefix="$acl_save_exec_prefix"
6384
prefix="$acl_save_prefix"
6386
if test "X$x" = "X$element"; then
6391
if test -z "$haveit"; then
6392
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6397
{ $as_echo "$as_me:$LINENO: checking for iconv" >&5
6398
$as_echo_n "checking for iconv... " >&6; }
6399
if test "${am_cv_func_iconv+set}" = set; then
6400
$as_echo_n "(cached) " >&6
6403
am_cv_func_iconv="no, consider installing GNU libiconv"
6405
cat >conftest.$ac_ext <<_ACEOF
6408
cat confdefs.h >>conftest.$ac_ext
6409
cat >>conftest.$ac_ext <<_ACEOF
6410
/* end confdefs.h. */
6416
iconv_t cd = iconv_open("","");
6417
iconv(cd,NULL,NULL,NULL,NULL);
6423
rm -f conftest.$ac_objext conftest$ac_exeext
6424
if { (ac_try="$ac_link"
6426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427
*) ac_try_echo=$ac_try;;
6429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6430
$as_echo "$ac_try_echo") >&5
6431
(eval "$ac_link") 2>conftest.er1
6433
grep -v '^ *+' conftest.er1 >conftest.err
6435
cat conftest.err >&5
6436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437
(exit $ac_status); } && {
6438
test -z "$ac_c_werror_flag" ||
6439
test ! -s conftest.err
6440
} && test -s conftest$ac_exeext && {
6441
test "$cross_compiling" = yes ||
6442
$as_test_x conftest$ac_exeext
6444
am_cv_func_iconv=yes
6446
$as_echo "$as_me: failed program was:" >&5
6447
sed 's/^/| /' conftest.$ac_ext >&5
6452
rm -rf conftest.dSYM
6453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454
conftest$ac_exeext conftest.$ac_ext
6455
if test "$am_cv_func_iconv" != yes; then
6456
am_save_LIBS="$LIBS"
6457
LIBS="$LIBS $LIBICONV"
6458
cat >conftest.$ac_ext <<_ACEOF
6461
cat confdefs.h >>conftest.$ac_ext
6462
cat >>conftest.$ac_ext <<_ACEOF
6463
/* end confdefs.h. */
6469
iconv_t cd = iconv_open("","");
6470
iconv(cd,NULL,NULL,NULL,NULL);
6476
rm -f conftest.$ac_objext conftest$ac_exeext
6477
if { (ac_try="$ac_link"
6479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480
*) ac_try_echo=$ac_try;;
6482
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483
$as_echo "$ac_try_echo") >&5
6484
(eval "$ac_link") 2>conftest.er1
6486
grep -v '^ *+' conftest.er1 >conftest.err
6488
cat conftest.err >&5
6489
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490
(exit $ac_status); } && {
6491
test -z "$ac_c_werror_flag" ||
6492
test ! -s conftest.err
6493
} && test -s conftest$ac_exeext && {
6494
test "$cross_compiling" = yes ||
6495
$as_test_x conftest$ac_exeext
6498
am_cv_func_iconv=yes
6500
$as_echo "$as_me: failed program was:" >&5
6501
sed 's/^/| /' conftest.$ac_ext >&5
6506
rm -rf conftest.dSYM
6507
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508
conftest$ac_exeext conftest.$ac_ext
6509
LIBS="$am_save_LIBS"
6513
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6514
$as_echo "$am_cv_func_iconv" >&6; }
6515
if test "$am_cv_func_iconv" = yes; then
6516
{ $as_echo "$as_me:$LINENO: checking for working iconv" >&5
6517
$as_echo_n "checking for working iconv... " >&6; }
6518
if test "${am_cv_func_iconv_works+set}" = set; then
6519
$as_echo_n "(cached) " >&6
6522
am_save_LIBS="$LIBS"
6523
if test $am_cv_lib_iconv = yes; then
6524
LIBS="$LIBS $LIBICONV"
6526
if test "$cross_compiling" = yes; then
6528
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6529
*) am_cv_func_iconv_works="guessing yes" ;;
6532
cat >conftest.$ac_ext <<_ACEOF
6535
cat confdefs.h >>conftest.$ac_ext
6536
cat >>conftest.$ac_ext <<_ACEOF
6537
/* end confdefs.h. */
6543
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6546
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6547
if (cd_utf8_to_88591 != (iconv_t)(-1))
6549
static const char input[] = "\342\202\254"; /* EURO SIGN */
6551
const char *inptr = input;
6552
size_t inbytesleft = strlen (input);
6554
size_t outbytesleft = sizeof (buf);
6555
size_t res = iconv (cd_utf8_to_88591,
6556
(char **) &inptr, &inbytesleft,
6557
&outptr, &outbytesleft);
6562
#if 0 /* This bug could be worked around by the caller. */
6563
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6565
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6566
if (cd_88591_to_utf8 != (iconv_t)(-1))
6568
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6570
const char *inptr = input;
6571
size_t inbytesleft = strlen (input);
6573
size_t outbytesleft = sizeof (buf);
6574
size_t res = iconv (cd_88591_to_utf8,
6575
(char **) &inptr, &inbytesleft,
6576
&outptr, &outbytesleft);
6582
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6584
if (/* Try standardized names. */
6585
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6586
/* Try IRIX, OSF/1 names. */
6587
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6588
/* Try AIX names. */
6589
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6590
/* Try HP-UX names. */
6591
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6596
rm -f conftest$ac_exeext
6597
if { (ac_try="$ac_link"
6599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600
*) ac_try_echo=$ac_try;;
6602
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603
$as_echo "$ac_try_echo") >&5
6604
(eval "$ac_link") 2>&5
6606
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6608
{ (case "(($ac_try" in
6609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610
*) ac_try_echo=$ac_try;;
6612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613
$as_echo "$ac_try_echo") >&5
6614
(eval "$ac_try") 2>&5
6616
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617
(exit $ac_status); }; }; then
6618
am_cv_func_iconv_works=yes
6620
$as_echo "$as_me: program exited with status $ac_status" >&5
6621
$as_echo "$as_me: failed program was:" >&5
6622
sed 's/^/| /' conftest.$ac_ext >&5
6625
am_cv_func_iconv_works=no
6627
rm -rf conftest.dSYM
6628
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6632
LIBS="$am_save_LIBS"
6635
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6636
$as_echo "$am_cv_func_iconv_works" >&6; }
6637
case "$am_cv_func_iconv_works" in
6638
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
6639
*) am_func_iconv=yes ;;
6642
am_func_iconv=no am_cv_lib_iconv=no
6644
if test "$am_func_iconv" = yes; then
6646
cat >>confdefs.h <<\_ACEOF
6647
#define HAVE_ICONV 1
6651
if test "$am_cv_lib_iconv" = yes; then
6652
{ $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6653
$as_echo_n "checking how to link with libiconv... " >&6; }
6654
{ $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
6655
$as_echo "$LIBICONV" >&6; }
6657
CPPFLAGS="$am_save_CPPFLAGS"
6671
acl_save_prefix="$prefix"
6672
prefix="$acl_final_prefix"
6673
acl_save_exec_prefix="$exec_prefix"
6674
exec_prefix="$acl_final_exec_prefix"
6676
eval additional_includedir=\"$includedir\"
6677
eval additional_libdir=\"$libdir\"
6679
exec_prefix="$acl_save_exec_prefix"
6680
prefix="$acl_save_prefix"
6683
# Check whether --with-libintl-prefix was given.
6684
if test "${with_libintl_prefix+set}" = set; then
6685
withval=$with_libintl_prefix;
6686
if test "X$withval" = "Xno"; then
6689
if test "X$withval" = "X"; then
6691
acl_save_prefix="$prefix"
6692
prefix="$acl_final_prefix"
6693
acl_save_exec_prefix="$exec_prefix"
6694
exec_prefix="$acl_final_exec_prefix"
6696
eval additional_includedir=\"$includedir\"
6697
eval additional_libdir=\"$libdir\"
6699
exec_prefix="$acl_save_exec_prefix"
6700
prefix="$acl_save_prefix"
6703
additional_includedir="$withval/include"
6704
additional_libdir="$withval/$acl_libdirstem"
6716
names_already_handled=
6717
names_next_round='intl '
6718
while test -n "$names_next_round"; do
6719
names_this_round="$names_next_round"
6721
for name in $names_this_round; do
6723
for n in $names_already_handled; do
6724
if test "$n" = "$name"; then
6729
if test -z "$already_handled"; then
6730
names_already_handled="$names_already_handled $name"
6731
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6732
eval value=\"\$HAVE_LIB$uppername\"
6733
if test -n "$value"; then
6734
if test "$value" = yes; then
6735
eval value=\"\$LIB$uppername\"
6736
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6737
eval value=\"\$LTLIB$uppername\"
6738
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6747
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6748
if test -n "$acl_shlibext"; then
6749
shrext=".$acl_shlibext" # typically: shrext=.so
6753
if test $use_additional = yes; then
6754
dir="$additional_libdir"
6755
if test -n "$acl_shlibext"; then
6756
if test -f "$dir/$libname$shrext"; then
6758
found_so="$dir/$libname$shrext"
6760
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6761
ver=`(cd "$dir" && \
6762
for f in "$libname$shrext".*; do echo "$f"; done \
6763
| sed -e "s,^$libname$shrext\\\\.,," \
6764
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6765
| sed 1q ) 2>/dev/null`
6766
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6768
found_so="$dir/$libname$shrext.$ver"
6771
eval library_names=\"$acl_library_names_spec\"
6772
for f in $library_names; do
6773
if test -f "$dir/$f"; then
6782
if test "X$found_dir" = "X"; then
6783
if test -f "$dir/$libname.$acl_libext"; then
6785
found_a="$dir/$libname.$acl_libext"
6788
if test "X$found_dir" != "X"; then
6789
if test -f "$dir/$libname.la"; then
6790
found_la="$dir/$libname.la"
6794
if test "X$found_dir" = "X"; then
6795
for x in $LDFLAGS $LTLIBINTL; do
6797
acl_save_prefix="$prefix"
6798
prefix="$acl_final_prefix"
6799
acl_save_exec_prefix="$exec_prefix"
6800
exec_prefix="$acl_final_exec_prefix"
6802
exec_prefix="$acl_save_exec_prefix"
6803
prefix="$acl_save_prefix"
6807
dir=`echo "X$x" | sed -e 's/^X-L//'`
6808
if test -n "$acl_shlibext"; then
6809
if test -f "$dir/$libname$shrext"; then
6811
found_so="$dir/$libname$shrext"
6813
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6814
ver=`(cd "$dir" && \
6815
for f in "$libname$shrext".*; do echo "$f"; done \
6816
| sed -e "s,^$libname$shrext\\\\.,," \
6817
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6818
| sed 1q ) 2>/dev/null`
6819
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6821
found_so="$dir/$libname$shrext.$ver"
6824
eval library_names=\"$acl_library_names_spec\"
6825
for f in $library_names; do
6826
if test -f "$dir/$f"; then
6835
if test "X$found_dir" = "X"; then
6836
if test -f "$dir/$libname.$acl_libext"; then
6838
found_a="$dir/$libname.$acl_libext"
6841
if test "X$found_dir" != "X"; then
6842
if test -f "$dir/$libname.la"; then
6843
found_la="$dir/$libname.la"
6848
if test "X$found_dir" != "X"; then
6853
if test "X$found_dir" != "X"; then
6854
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6855
if test "X$found_so" != "X"; then
6856
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6857
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6860
for x in $ltrpathdirs; do
6861
if test "X$x" = "X$found_dir"; then
6866
if test -z "$haveit"; then
6867
ltrpathdirs="$ltrpathdirs $found_dir"
6869
if test "$acl_hardcode_direct" = yes; then
6870
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6872
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6873
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6875
for x in $rpathdirs; do
6876
if test "X$x" = "X$found_dir"; then
6881
if test -z "$haveit"; then
6882
rpathdirs="$rpathdirs $found_dir"
6886
for x in $LDFLAGS $LIBINTL; do
6888
acl_save_prefix="$prefix"
6889
prefix="$acl_final_prefix"
6890
acl_save_exec_prefix="$exec_prefix"
6891
exec_prefix="$acl_final_exec_prefix"
6893
exec_prefix="$acl_save_exec_prefix"
6894
prefix="$acl_save_prefix"
6896
if test "X$x" = "X-L$found_dir"; then
6901
if test -z "$haveit"; then
6902
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6904
if test "$acl_hardcode_minus_L" != no; then
6905
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6907
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6913
if test "X$found_a" != "X"; then
6914
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6916
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6919
additional_includedir=
6920
case "$found_dir" in
6921
*/$acl_libdirstem | */$acl_libdirstem/)
6922
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6923
LIBINTL_PREFIX="$basedir"
6924
additional_includedir="$basedir/include"
6927
if test "X$additional_includedir" != "X"; then
6928
if test "X$additional_includedir" != "X/usr/include"; then
6930
if test "X$additional_includedir" = "X/usr/local/include"; then
6931
if test -n "$GCC"; then
6933
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6937
if test -z "$haveit"; then
6938
for x in $CPPFLAGS $INCINTL; do
6940
acl_save_prefix="$prefix"
6941
prefix="$acl_final_prefix"
6942
acl_save_exec_prefix="$exec_prefix"
6943
exec_prefix="$acl_final_exec_prefix"
6945
exec_prefix="$acl_save_exec_prefix"
6946
prefix="$acl_save_prefix"
6948
if test "X$x" = "X-I$additional_includedir"; then
6953
if test -z "$haveit"; then
6954
if test -d "$additional_includedir"; then
6955
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6961
if test -n "$found_la"; then
6962
save_libdir="$libdir"
6964
*/* | *\\*) . "$found_la" ;;
6965
*) . "./$found_la" ;;
6967
libdir="$save_libdir"
6968
for dep in $dependency_libs; do
6971
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6972
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6974
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6975
if test -n "$GCC"; then
6977
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6981
if test -z "$haveit"; then
6983
for x in $LDFLAGS $LIBINTL; do
6985
acl_save_prefix="$prefix"
6986
prefix="$acl_final_prefix"
6987
acl_save_exec_prefix="$exec_prefix"
6988
exec_prefix="$acl_final_exec_prefix"
6990
exec_prefix="$acl_save_exec_prefix"
6991
prefix="$acl_save_prefix"
6993
if test "X$x" = "X-L$additional_libdir"; then
6998
if test -z "$haveit"; then
6999
if test -d "$additional_libdir"; then
7000
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7004
for x in $LDFLAGS $LTLIBINTL; do
7006
acl_save_prefix="$prefix"
7007
prefix="$acl_final_prefix"
7008
acl_save_exec_prefix="$exec_prefix"
7009
exec_prefix="$acl_final_exec_prefix"
7011
exec_prefix="$acl_save_exec_prefix"
7012
prefix="$acl_save_prefix"
7014
if test "X$x" = "X-L$additional_libdir"; then
7019
if test -z "$haveit"; then
7020
if test -d "$additional_libdir"; then
7021
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7028
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7029
if test "$enable_rpath" != no; then
7031
for x in $rpathdirs; do
7032
if test "X$x" = "X$dir"; then
7037
if test -z "$haveit"; then
7038
rpathdirs="$rpathdirs $dir"
7041
for x in $ltrpathdirs; do
7042
if test "X$x" = "X$dir"; then
7047
if test -z "$haveit"; then
7048
ltrpathdirs="$ltrpathdirs $dir"
7053
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7056
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7059
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7060
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7066
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7067
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7073
if test "X$rpathdirs" != "X"; then
7074
if test -n "$acl_hardcode_libdir_separator"; then
7076
for found_dir in $rpathdirs; do
7077
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7079
acl_save_libdir="$libdir"
7081
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7082
libdir="$acl_save_libdir"
7083
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7085
for found_dir in $rpathdirs; do
7086
acl_save_libdir="$libdir"
7088
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7089
libdir="$acl_save_libdir"
7090
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7094
if test "X$ltrpathdirs" != "X"; then
7095
for found_dir in $ltrpathdirs; do
7096
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7100
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7101
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7102
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
7103
$as_echo_n "(cached) " >&6
7105
gt_save_CPPFLAGS="$CPPFLAGS"
7106
CPPFLAGS="$CPPFLAGS $INCINTL"
7107
gt_save_LIBS="$LIBS"
7108
LIBS="$LIBS $LIBINTL"
7109
cat >conftest.$ac_ext <<_ACEOF
7112
cat confdefs.h >>conftest.$ac_ext
7113
cat >>conftest.$ac_ext <<_ACEOF
7114
/* end confdefs.h. */
7115
#include <libintl.h>
7116
$gt_revision_test_code
7117
extern int _nl_msg_cat_cntr;
7122
const char *_nl_expand_alias (const char *);
7126
bindtextdomain ("", "");
7127
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7132
rm -f conftest.$ac_objext conftest$ac_exeext
7133
if { (ac_try="$ac_link"
7135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136
*) ac_try_echo=$ac_try;;
7138
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139
$as_echo "$ac_try_echo") >&5
7140
(eval "$ac_link") 2>conftest.er1
7142
grep -v '^ *+' conftest.er1 >conftest.err
7144
cat conftest.err >&5
7145
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146
(exit $ac_status); } && {
7147
test -z "$ac_c_werror_flag" ||
7148
test ! -s conftest.err
7149
} && test -s conftest$ac_exeext && {
7150
test "$cross_compiling" = yes ||
7151
$as_test_x conftest$ac_exeext
7153
eval "$gt_func_gnugettext_libintl=yes"
7155
$as_echo "$as_me: failed program was:" >&5
7156
sed 's/^/| /' conftest.$ac_ext >&5
7158
eval "$gt_func_gnugettext_libintl=no"
7161
rm -rf conftest.dSYM
7162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163
conftest$ac_exeext conftest.$ac_ext
7164
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7165
LIBS="$LIBS $LIBICONV"
7166
cat >conftest.$ac_ext <<_ACEOF
7169
cat confdefs.h >>conftest.$ac_ext
7170
cat >>conftest.$ac_ext <<_ACEOF
7171
/* end confdefs.h. */
7172
#include <libintl.h>
7173
$gt_revision_test_code
7174
extern int _nl_msg_cat_cntr;
7179
const char *_nl_expand_alias (const char *);
7183
bindtextdomain ("", "");
7184
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7189
rm -f conftest.$ac_objext conftest$ac_exeext
7190
if { (ac_try="$ac_link"
7192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193
*) ac_try_echo=$ac_try;;
7195
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196
$as_echo "$ac_try_echo") >&5
7197
(eval "$ac_link") 2>conftest.er1
7199
grep -v '^ *+' conftest.er1 >conftest.err
7201
cat conftest.err >&5
7202
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203
(exit $ac_status); } && {
7204
test -z "$ac_c_werror_flag" ||
7205
test ! -s conftest.err
7206
} && test -s conftest$ac_exeext && {
7207
test "$cross_compiling" = yes ||
7208
$as_test_x conftest$ac_exeext
7210
LIBINTL="$LIBINTL $LIBICONV"
7211
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7212
eval "$gt_func_gnugettext_libintl=yes"
7215
$as_echo "$as_me: failed program was:" >&5
7216
sed 's/^/| /' conftest.$ac_ext >&5
7221
rm -rf conftest.dSYM
7222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223
conftest$ac_exeext conftest.$ac_ext
7225
CPPFLAGS="$gt_save_CPPFLAGS"
7226
LIBS="$gt_save_LIBS"
7228
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
7229
$as_echo "$as_val"'`
7230
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7231
$as_echo "$ac_res" >&6; }
7234
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7235
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7236
&& test "$PACKAGE" != gettext-runtime \
7237
&& test "$PACKAGE" != gettext-tools; }; then
7238
gt_use_preinstalled_gnugettext=yes
7247
if test -n "$INTL_MACOSX_LIBS"; then
7248
if test "$gt_use_preinstalled_gnugettext" = "yes" \
7249
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
7250
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7251
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7255
if test "$gt_use_preinstalled_gnugettext" = "yes" \
7256
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
7258
cat >>confdefs.h <<\_ACEOF
7259
#define ENABLE_NLS 1
7267
{ $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
7268
$as_echo_n "checking whether to use NLS... " >&6; }
7269
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7270
$as_echo "$USE_NLS" >&6; }
7271
if test "$USE_NLS" = "yes"; then
7272
{ $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7273
$as_echo_n "checking where the gettext function comes from... " >&6; }
7274
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7275
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7276
gt_source="external libintl"
7281
gt_source="included intl directory"
7283
{ $as_echo "$as_me:$LINENO: result: $gt_source" >&5
7284
$as_echo "$gt_source" >&6; }
7287
if test "$USE_NLS" = "yes"; then
7289
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7290
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7291
{ $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
7292
$as_echo_n "checking how to link with libintl... " >&6; }
7293
{ $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
7294
$as_echo "$LIBINTL" >&6; }
7296
for element in $INCINTL; do
7298
for x in $CPPFLAGS; do
7300
acl_save_prefix="$prefix"
7301
prefix="$acl_final_prefix"
7302
acl_save_exec_prefix="$exec_prefix"
7303
exec_prefix="$acl_final_exec_prefix"
7305
exec_prefix="$acl_save_exec_prefix"
7306
prefix="$acl_save_prefix"
7308
if test "X$x" = "X$element"; then
7313
if test -z "$haveit"; then
7314
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7321
cat >>confdefs.h <<\_ACEOF
7322
#define HAVE_GETTEXT 1
7326
cat >>confdefs.h <<\_ACEOF
7327
#define HAVE_DCGETTEXT 1
7346
if test -n "$ac_tool_prefix"; then
7347
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7350
$as_echo_n "checking for $ac_word... " >&6; }
7351
if test "${ac_cv_prog_RANLIB+set}" = set; then
7352
$as_echo_n "(cached) " >&6
7354
if test -n "$RANLIB"; then
7355
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361
test -z "$as_dir" && as_dir=.
7362
for ac_exec_ext in '' $ac_executable_extensions; do
7363
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374
RANLIB=$ac_cv_prog_RANLIB
7375
if test -n "$RANLIB"; then
7376
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7377
$as_echo "$RANLIB" >&6; }
7379
{ $as_echo "$as_me:$LINENO: result: no" >&5
7380
$as_echo "no" >&6; }
7385
if test -z "$ac_cv_prog_RANLIB"; then
7386
ac_ct_RANLIB=$RANLIB
7387
# Extract the first word of "ranlib", so it can be a program name with args.
7388
set dummy ranlib; ac_word=$2
7389
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390
$as_echo_n "checking for $ac_word... " >&6; }
7391
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392
$as_echo_n "(cached) " >&6
7394
if test -n "$ac_ct_RANLIB"; then
7395
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401
test -z "$as_dir" && as_dir=.
7402
for ac_exec_ext in '' $ac_executable_extensions; do
7403
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404
ac_cv_prog_ac_ct_RANLIB="ranlib"
7405
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415
if test -n "$ac_ct_RANLIB"; then
7416
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417
$as_echo "$ac_ct_RANLIB" >&6; }
7419
{ $as_echo "$as_me:$LINENO: result: no" >&5
7420
$as_echo "no" >&6; }
7423
if test "x$ac_ct_RANLIB" = x; then
7426
case $cross_compiling:$ac_tool_warned in
7428
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7429
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430
ac_tool_warned=yes ;;
7432
RANLIB=$ac_ct_RANLIB
7435
RANLIB="$ac_cv_prog_RANLIB"
7439
for ac_prog in flex lex
7441
# Extract the first word of "$ac_prog", so it can be a program name with args.
7442
set dummy $ac_prog; ac_word=$2
7443
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7444
$as_echo_n "checking for $ac_word... " >&6; }
7445
if test "${ac_cv_prog_LEX+set}" = set; then
7446
$as_echo_n "(cached) " >&6
7448
if test -n "$LEX"; then
7449
ac_cv_prog_LEX="$LEX" # Let the user override the test.
7451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455
test -z "$as_dir" && as_dir=.
7456
for ac_exec_ext in '' $ac_executable_extensions; do
7457
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458
ac_cv_prog_LEX="$ac_prog"
7459
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469
if test -n "$LEX"; then
7470
{ $as_echo "$as_me:$LINENO: result: $LEX" >&5
7471
$as_echo "$LEX" >&6; }
7473
{ $as_echo "$as_me:$LINENO: result: no" >&5
7474
$as_echo "no" >&6; }
7478
test -n "$LEX" && break
7480
test -n "$LEX" || LEX=":"
7482
if test "x$LEX" != "x:"; then
7483
cat >conftest.l <<_ACEOF
7489
e { yyless (input () != 0); }
7490
f { unput (yytext[0]); }
7491
. { BEGIN INITIAL; }
7493
#ifdef YYTEXT_POINTER
7494
extern char *yytext;
7499
return ! yylex () + ! yywrap ();
7502
{ (ac_try="$LEX conftest.l"
7504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505
*) ac_try_echo=$ac_try;;
7507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508
$as_echo "$ac_try_echo") >&5
7509
(eval "$LEX conftest.l") 2>&5
7511
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512
(exit $ac_status); }
7513
{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
7514
$as_echo_n "checking lex output file root... " >&6; }
7515
if test "${ac_cv_prog_lex_root+set}" = set; then
7516
$as_echo_n "(cached) " >&6
7519
if test -f lex.yy.c; then
7520
ac_cv_prog_lex_root=lex.yy
7521
elif test -f lexyy.c; then
7522
ac_cv_prog_lex_root=lexyy
7524
{ { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7525
$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7526
{ (exit 1); exit 1; }; }
7529
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7530
$as_echo "$ac_cv_prog_lex_root" >&6; }
7531
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7533
if test -z "${LEXLIB+set}"; then
7534
{ $as_echo "$as_me:$LINENO: checking lex library" >&5
7535
$as_echo_n "checking lex library... " >&6; }
7536
if test "${ac_cv_lib_lex+set}" = set; then
7537
$as_echo_n "(cached) " >&6
7541
ac_cv_lib_lex='none needed'
7542
for ac_lib in '' -lfl -ll; do
7543
LIBS="$ac_lib $ac_save_LIBS"
7544
cat >conftest.$ac_ext <<_ACEOF
7545
`cat $LEX_OUTPUT_ROOT.c`
7547
rm -f conftest.$ac_objext conftest$ac_exeext
7548
if { (ac_try="$ac_link"
7550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551
*) ac_try_echo=$ac_try;;
7553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554
$as_echo "$ac_try_echo") >&5
7555
(eval "$ac_link") 2>conftest.er1
7557
grep -v '^ *+' conftest.er1 >conftest.err
7559
cat conftest.err >&5
7560
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561
(exit $ac_status); } && {
7562
test -z "$ac_c_werror_flag" ||
7563
test ! -s conftest.err
7564
} && test -s conftest$ac_exeext && {
7565
test "$cross_compiling" = yes ||
7566
$as_test_x conftest$ac_exeext
7568
ac_cv_lib_lex=$ac_lib
7570
$as_echo "$as_me: failed program was:" >&5
7571
sed 's/^/| /' conftest.$ac_ext >&5
7576
rm -rf conftest.dSYM
7577
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7578
conftest$ac_exeext conftest.$ac_ext
7579
test "$ac_cv_lib_lex" != 'none needed' && break
7584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
7585
$as_echo "$ac_cv_lib_lex" >&6; }
7586
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7590
{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7591
$as_echo_n "checking whether yytext is a pointer... " >&6; }
7592
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7593
$as_echo_n "(cached) " >&6
7595
# POSIX says lex can declare yytext either as a pointer or an array; the
7596
# default is implementation-dependent. Figure out which it is, since
7597
# not all implementations provide the %pointer and %array declarations.
7598
ac_cv_prog_lex_yytext_pointer=no
7600
LIBS="$LEXLIB $ac_save_LIBS"
7601
cat >conftest.$ac_ext <<_ACEOF
7602
#define YYTEXT_POINTER 1
7603
`cat $LEX_OUTPUT_ROOT.c`
7605
rm -f conftest.$ac_objext conftest$ac_exeext
7606
if { (ac_try="$ac_link"
7608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609
*) ac_try_echo=$ac_try;;
7611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612
$as_echo "$ac_try_echo") >&5
7613
(eval "$ac_link") 2>conftest.er1
7615
grep -v '^ *+' conftest.er1 >conftest.err
7617
cat conftest.err >&5
7618
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619
(exit $ac_status); } && {
7620
test -z "$ac_c_werror_flag" ||
7621
test ! -s conftest.err
7622
} && test -s conftest$ac_exeext && {
7623
test "$cross_compiling" = yes ||
7624
$as_test_x conftest$ac_exeext
7626
ac_cv_prog_lex_yytext_pointer=yes
7628
$as_echo "$as_me: failed program was:" >&5
7629
sed 's/^/| /' conftest.$ac_ext >&5
7634
rm -rf conftest.dSYM
7635
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636
conftest$ac_exeext conftest.$ac_ext
7640
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7641
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7642
if test $ac_cv_prog_lex_yytext_pointer = yes; then
7644
cat >>confdefs.h <<\_ACEOF
7645
#define YYTEXT_POINTER 1
7649
rm -f conftest.l $LEX_OUTPUT_ROOT.c
3480
7653
if test -n "$auto_cflags"; then
3481
7654
if test -n "$GCC"; then
12483
{ $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12484
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12485
if test "${gl_cv_have_include_next+set}" = set; then
12486
$as_echo_n "(cached) " >&6
12488
rm -rf conftestd1a conftestd1b conftestd2
12489
mkdir conftestd1a conftestd1b conftestd2
12490
cat <<EOF > conftestd1a/conftest.h
12491
#define DEFINED_IN_CONFTESTD1
12492
#include_next <conftest.h>
12493
#ifdef DEFINED_IN_CONFTESTD2
12496
#error "include_next doesn't work"
12499
cat <<EOF > conftestd1b/conftest.h
12500
#define DEFINED_IN_CONFTESTD1
12502
#include_next <conftest.h>
12503
#ifdef DEFINED_IN_CONFTESTD2
12506
#error "include_next doesn't work"
12509
cat <<EOF > conftestd2/conftest.h
12510
#ifndef DEFINED_IN_CONFTESTD1
12511
#error "include_next test doesn't work"
12513
#define DEFINED_IN_CONFTESTD2
12515
gl_save_CPPFLAGS="$CPPFLAGS"
12516
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12517
cat >conftest.$ac_ext <<_ACEOF
12518
#include <conftest.h>
12520
rm -f conftest.$ac_objext
12521
if { (ac_try="$ac_compile"
12522
case "(($ac_try" in
12523
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524
*) ac_try_echo=$ac_try;;
12526
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527
$as_echo "$ac_try_echo") >&5
12528
(eval "$ac_compile") 2>conftest.er1
12530
grep -v '^ *+' conftest.er1 >conftest.err
12532
cat conftest.err >&5
12533
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534
(exit $ac_status); } && {
12535
test -z "$ac_c_werror_flag" ||
12536
test ! -s conftest.err
12537
} && test -s conftest.$ac_objext; then
12538
gl_cv_have_include_next=yes
12540
$as_echo "$as_me: failed program was:" >&5
12541
sed 's/^/| /' conftest.$ac_ext >&5
12543
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12544
cat >conftest.$ac_ext <<_ACEOF
12545
#include <conftest.h>
12547
rm -f conftest.$ac_objext
12548
if { (ac_try="$ac_compile"
12549
case "(($ac_try" in
12550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551
*) ac_try_echo=$ac_try;;
12553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554
$as_echo "$ac_try_echo") >&5
12555
(eval "$ac_compile") 2>conftest.er1
12557
grep -v '^ *+' conftest.er1 >conftest.err
12559
cat conftest.err >&5
12560
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561
(exit $ac_status); } && {
12562
test -z "$ac_c_werror_flag" ||
12563
test ! -s conftest.err
12564
} && test -s conftest.$ac_objext; then
12565
gl_cv_have_include_next=buggy
12567
$as_echo "$as_me: failed program was:" >&5
12568
sed 's/^/| /' conftest.$ac_ext >&5
12570
gl_cv_have_include_next=no
12573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578
CPPFLAGS="$gl_save_CPPFLAGS"
12579
rm -rf conftestd1a conftestd1b conftestd2
12582
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12583
$as_echo "$gl_cv_have_include_next" >&6; }
12584
PRAGMA_SYSTEM_HEADER=
12585
if test $gl_cv_have_include_next = yes; then
12586
INCLUDE_NEXT=include_next
12587
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12588
if test -n "$GCC"; then
12589
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12592
if test $gl_cv_have_include_next = buggy; then
12593
INCLUDE_NEXT=include
12594
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12596
INCLUDE_NEXT=include
12597
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12608
for ac_header in $ac_header_list
12610
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12613
$as_echo_n "checking for $ac_header... " >&6; }
12614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615
$as_echo_n "(cached) " >&6
12617
ac_res=`eval 'as_val=${'$as_ac_Header'}
12618
$as_echo "$as_val"'`
12619
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12620
$as_echo "$ac_res" >&6; }
12622
# Is the header compilable?
12623
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12624
$as_echo_n "checking $ac_header usability... " >&6; }
12625
cat >conftest.$ac_ext <<_ACEOF
12628
cat confdefs.h >>conftest.$ac_ext
12629
cat >>conftest.$ac_ext <<_ACEOF
12630
/* end confdefs.h. */
12631
$ac_includes_default
12632
#include <$ac_header>
12634
rm -f conftest.$ac_objext
12635
if { (ac_try="$ac_compile"
12636
case "(($ac_try" in
12637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638
*) ac_try_echo=$ac_try;;
12640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641
$as_echo "$ac_try_echo") >&5
12642
(eval "$ac_compile") 2>conftest.er1
12644
grep -v '^ *+' conftest.er1 >conftest.err
12646
cat conftest.err >&5
12647
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
(exit $ac_status); } && {
12649
test -z "$ac_c_werror_flag" ||
12650
test ! -s conftest.err
12651
} && test -s conftest.$ac_objext; then
12652
ac_header_compiler=yes
12654
$as_echo "$as_me: failed program was:" >&5
12655
sed 's/^/| /' conftest.$ac_ext >&5
12657
ac_header_compiler=no
12660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12662
$as_echo "$ac_header_compiler" >&6; }
12664
# Is the header present?
12665
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12666
$as_echo_n "checking $ac_header presence... " >&6; }
12667
cat >conftest.$ac_ext <<_ACEOF
12670
cat confdefs.h >>conftest.$ac_ext
12671
cat >>conftest.$ac_ext <<_ACEOF
12672
/* end confdefs.h. */
12673
#include <$ac_header>
12675
if { (ac_try="$ac_cpp conftest.$ac_ext"
12676
case "(($ac_try" in
12677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678
*) ac_try_echo=$ac_try;;
12680
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12681
$as_echo "$ac_try_echo") >&5
12682
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12684
grep -v '^ *+' conftest.er1 >conftest.err
12686
cat conftest.err >&5
12687
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688
(exit $ac_status); } >/dev/null && {
12689
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12690
test ! -s conftest.err
12692
ac_header_preproc=yes
12694
$as_echo "$as_me: failed program was:" >&5
12695
sed 's/^/| /' conftest.$ac_ext >&5
12697
ac_header_preproc=no
12700
rm -f conftest.err conftest.$ac_ext
12701
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12702
$as_echo "$ac_header_preproc" >&6; }
12704
# So? What about this header?
12705
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12707
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12708
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12709
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12710
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12711
ac_header_preproc=yes
12714
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12715
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12716
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12717
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12718
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12719
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12720
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12721
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12722
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12723
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12724
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12725
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12727
## ------------------------------- ##
12728
## Report this to bug-wget@gnu.org ##
12729
## ------------------------------- ##
12731
) | sed "s/^/$as_me: WARNING: /" >&2
12734
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12735
$as_echo_n "checking for $ac_header... " >&6; }
12736
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737
$as_echo_n "(cached) " >&6
12739
eval "$as_ac_Header=\$ac_header_preproc"
12741
ac_res=`eval 'as_val=${'$as_ac_Header'}
12742
$as_echo "$as_val"'`
12743
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12744
$as_echo "$ac_res" >&6; }
12747
as_val=`eval 'as_val=${'$as_ac_Header'}
12748
$as_echo "$as_val"'`
12749
if test "x$as_val" = x""yes; then
12750
cat >>confdefs.h <<_ACEOF
12751
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12762
{ $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12763
$as_echo_n "checking for complete errno.h... " >&6; }
12764
if test "${gl_cv_header_errno_h_complete+set}" = set; then
12765
$as_echo_n "(cached) " >&6
12768
cat >conftest.$ac_ext <<_ACEOF
12771
cat confdefs.h >>conftest.$ac_ext
12772
cat >>conftest.$ac_ext <<_ACEOF
12773
/* end confdefs.h. */
12776
#if !defined ENOMSG
12782
#if !defined ENOLINK
12785
#if !defined EPROTO
12788
#if !defined EMULTIHOP
12791
#if !defined EBADMSG
12794
#if !defined EOVERFLOW
12797
#if !defined ENOTSUP
12800
#if !defined ESTALE
12803
#if !defined ECANCELED
12808
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809
$EGREP "booboo" >/dev/null 2>&1; then
12810
gl_cv_header_errno_h_complete=no
12812
gl_cv_header_errno_h_complete=yes
12818
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12819
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
12820
if test $gl_cv_header_errno_h_complete = yes; then
12834
if test $gl_cv_have_include_next = yes; then
12835
gl_cv_next_errno_h='<'errno.h'>'
12837
{ $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12838
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
12839
if test "${gl_cv_next_errno_h+set}" = set; then
12840
$as_echo_n "(cached) " >&6
12843
if test $ac_cv_header_errno_h = yes; then
12844
cat >conftest.$ac_ext <<_ACEOF
12847
cat confdefs.h >>conftest.$ac_ext
12848
cat >>conftest.$ac_ext <<_ACEOF
12849
/* end confdefs.h. */
12854
aix*) gl_absname_cpp="$ac_cpp -C" ;;
12855
*) gl_absname_cpp="$ac_cpp" ;;
12857
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12858
sed -n '\#/errno.h#{
12859
s#.*"\(.*/errno.h\)".*#\1#
12865
gl_cv_next_errno_h='<'errno.h'>'
12869
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12870
$as_echo "$gl_cv_next_errno_h" >&6; }
12872
NEXT_ERRNO_H=$gl_cv_next_errno_h
12874
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12875
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12876
gl_next_as_first_directive='<'errno.h'>'
12878
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12879
gl_next_as_first_directive=$gl_cv_next_errno_h
12881
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12889
if test -n "$ERRNO_H"; then
12890
{ $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12891
$as_echo_n "checking for EMULTIHOP value... " >&6; }
12892
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12893
$as_echo_n "(cached) " >&6
12896
cat >conftest.$ac_ext <<_ACEOF
12899
cat confdefs.h >>conftest.$ac_ext
12900
cat >>conftest.$ac_ext <<_ACEOF
12901
/* end confdefs.h. */
12909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910
$EGREP "yes" >/dev/null 2>&1; then
12911
gl_cv_header_errno_h_EMULTIHOP=yes
12913
gl_cv_header_errno_h_EMULTIHOP=no
12917
if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12918
cat >conftest.$ac_ext <<_ACEOF
12921
cat confdefs.h >>conftest.$ac_ext
12922
cat >>conftest.$ac_ext <<_ACEOF
12923
/* end confdefs.h. */
12925
#define _XOPEN_SOURCE_EXTENDED 1
12932
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12933
$EGREP "yes" >/dev/null 2>&1; then
12934
gl_cv_header_errno_h_EMULTIHOP=hidden
12938
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12939
if test "$cross_compiling" = yes; then
12940
# Depending upon the size, compute the lo and hi bounds.
12941
cat >conftest.$ac_ext <<_ACEOF
12944
cat confdefs.h >>conftest.$ac_ext
12945
cat >>conftest.$ac_ext <<_ACEOF
12946
/* end confdefs.h. */
12948
#define _XOPEN_SOURCE_EXTENDED 1
12950
/* The following two lines are a workaround against an autoconf-2.52 bug. */
12952
#include <stdlib.h>
12957
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12964
rm -f conftest.$ac_objext
12965
if { (ac_try="$ac_compile"
12966
case "(($ac_try" in
12967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968
*) ac_try_echo=$ac_try;;
12970
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971
$as_echo "$ac_try_echo") >&5
12972
(eval "$ac_compile") 2>conftest.er1
12974
grep -v '^ *+' conftest.er1 >conftest.err
12976
cat conftest.err >&5
12977
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978
(exit $ac_status); } && {
12979
test -z "$ac_c_werror_flag" ||
12980
test ! -s conftest.err
12981
} && test -s conftest.$ac_objext; then
12984
cat >conftest.$ac_ext <<_ACEOF
12987
cat confdefs.h >>conftest.$ac_ext
12988
cat >>conftest.$ac_ext <<_ACEOF
12989
/* end confdefs.h. */
12991
#define _XOPEN_SOURCE_EXTENDED 1
12993
/* The following two lines are a workaround against an autoconf-2.52 bug. */
12995
#include <stdlib.h>
13000
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13007
rm -f conftest.$ac_objext
13008
if { (ac_try="$ac_compile"
13009
case "(($ac_try" in
13010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011
*) ac_try_echo=$ac_try;;
13013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014
$as_echo "$ac_try_echo") >&5
13015
(eval "$ac_compile") 2>conftest.er1
13017
grep -v '^ *+' conftest.er1 >conftest.err
13019
cat conftest.err >&5
13020
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021
(exit $ac_status); } && {
13022
test -z "$ac_c_werror_flag" ||
13023
test ! -s conftest.err
13024
} && test -s conftest.$ac_objext; then
13025
ac_hi=$ac_mid; break
13027
$as_echo "$as_me: failed program was:" >&5
13028
sed 's/^/| /' conftest.$ac_ext >&5
13030
ac_lo=`expr $ac_mid + 1`
13031
if test $ac_lo -le $ac_mid; then
13035
ac_mid=`expr 2 '*' $ac_mid + 1`
13038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041
$as_echo "$as_me: failed program was:" >&5
13042
sed 's/^/| /' conftest.$ac_ext >&5
13044
cat >conftest.$ac_ext <<_ACEOF
13047
cat confdefs.h >>conftest.$ac_ext
13048
cat >>conftest.$ac_ext <<_ACEOF
13049
/* end confdefs.h. */
13051
#define _XOPEN_SOURCE_EXTENDED 1
13053
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13055
#include <stdlib.h>
13060
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
13067
rm -f conftest.$ac_objext
13068
if { (ac_try="$ac_compile"
13069
case "(($ac_try" in
13070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071
*) ac_try_echo=$ac_try;;
13073
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074
$as_echo "$ac_try_echo") >&5
13075
(eval "$ac_compile") 2>conftest.er1
13077
grep -v '^ *+' conftest.er1 >conftest.err
13079
cat conftest.err >&5
13080
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081
(exit $ac_status); } && {
13082
test -z "$ac_c_werror_flag" ||
13083
test ! -s conftest.err
13084
} && test -s conftest.$ac_objext; then
13087
cat >conftest.$ac_ext <<_ACEOF
13090
cat confdefs.h >>conftest.$ac_ext
13091
cat >>conftest.$ac_ext <<_ACEOF
13092
/* end confdefs.h. */
13094
#define _XOPEN_SOURCE_EXTENDED 1
13096
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13098
#include <stdlib.h>
13103
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
13110
rm -f conftest.$ac_objext
13111
if { (ac_try="$ac_compile"
13112
case "(($ac_try" in
13113
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114
*) ac_try_echo=$ac_try;;
13116
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117
$as_echo "$ac_try_echo") >&5
13118
(eval "$ac_compile") 2>conftest.er1
13120
grep -v '^ *+' conftest.er1 >conftest.err
13122
cat conftest.err >&5
13123
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124
(exit $ac_status); } && {
13125
test -z "$ac_c_werror_flag" ||
13126
test ! -s conftest.err
13127
} && test -s conftest.$ac_objext; then
13128
ac_lo=$ac_mid; break
13130
$as_echo "$as_me: failed program was:" >&5
13131
sed 's/^/| /' conftest.$ac_ext >&5
13133
ac_hi=`expr '(' $ac_mid ')' - 1`
13134
if test $ac_mid -le $ac_hi; then
13138
ac_mid=`expr 2 '*' $ac_mid`
13141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144
$as_echo "$as_me: failed program was:" >&5
13145
sed 's/^/| /' conftest.$ac_ext >&5
13150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154
# Binary search between lo and hi bounds.
13155
while test "x$ac_lo" != "x$ac_hi"; do
13156
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13157
cat >conftest.$ac_ext <<_ACEOF
13160
cat confdefs.h >>conftest.$ac_ext
13161
cat >>conftest.$ac_ext <<_ACEOF
13162
/* end confdefs.h. */
13164
#define _XOPEN_SOURCE_EXTENDED 1
13166
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13168
#include <stdlib.h>
13173
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13180
rm -f conftest.$ac_objext
13181
if { (ac_try="$ac_compile"
13182
case "(($ac_try" in
13183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184
*) ac_try_echo=$ac_try;;
13186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187
$as_echo "$ac_try_echo") >&5
13188
(eval "$ac_compile") 2>conftest.er1
13190
grep -v '^ *+' conftest.er1 >conftest.err
13192
cat conftest.err >&5
13193
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194
(exit $ac_status); } && {
13195
test -z "$ac_c_werror_flag" ||
13196
test ! -s conftest.err
13197
} && test -s conftest.$ac_objext; then
13200
$as_echo "$as_me: failed program was:" >&5
13201
sed 's/^/| /' conftest.$ac_ext >&5
13203
ac_lo=`expr '(' $ac_mid ')' + 1`
13206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
13213
cat >conftest.$ac_ext <<_ACEOF
13216
cat confdefs.h >>conftest.$ac_ext
13217
cat >>conftest.$ac_ext <<_ACEOF
13218
/* end confdefs.h. */
13220
#define _XOPEN_SOURCE_EXTENDED 1
13222
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13224
#include <stdlib.h>
13226
static long int longval () { return EMULTIHOP; }
13227
static unsigned long int ulongval () { return EMULTIHOP; }
13229
#include <stdlib.h>
13234
FILE *f = fopen ("conftest.val", "w");
13237
if ((EMULTIHOP) < 0)
13239
long int i = longval ();
13240
if (i != (EMULTIHOP))
13242
fprintf (f, "%ld", i);
13246
unsigned long int i = ulongval ();
13247
if (i != (EMULTIHOP))
13249
fprintf (f, "%lu", i);
13251
/* Do not output a trailing newline, as this causes \r\n confusion
13252
on some platforms. */
13253
return ferror (f) || fclose (f) != 0;
13259
rm -f conftest$ac_exeext
13260
if { (ac_try="$ac_link"
13261
case "(($ac_try" in
13262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263
*) ac_try_echo=$ac_try;;
13265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266
$as_echo "$ac_try_echo") >&5
13267
(eval "$ac_link") 2>&5
13269
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271
{ (case "(($ac_try" in
13272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273
*) ac_try_echo=$ac_try;;
13275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276
$as_echo "$ac_try_echo") >&5
13277
(eval "$ac_try") 2>&5
13279
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280
(exit $ac_status); }; }; then
13281
gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
13283
$as_echo "$as_me: program exited with status $ac_status" >&5
13284
$as_echo "$as_me: failed program was:" >&5
13285
sed 's/^/| /' conftest.$ac_ext >&5
13288
rm -rf conftest.dSYM
13289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13296
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13297
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13298
case $gl_cv_header_errno_h_EMULTIHOP in
13300
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13303
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13311
if test -n "$ERRNO_H"; then
13312
{ $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
13313
$as_echo_n "checking for ENOLINK value... " >&6; }
13314
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
13315
$as_echo_n "(cached) " >&6
13318
cat >conftest.$ac_ext <<_ACEOF
13321
cat confdefs.h >>conftest.$ac_ext
13322
cat >>conftest.$ac_ext <<_ACEOF
13323
/* end confdefs.h. */
13331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332
$EGREP "yes" >/dev/null 2>&1; then
13333
gl_cv_header_errno_h_ENOLINK=yes
13335
gl_cv_header_errno_h_ENOLINK=no
13339
if test $gl_cv_header_errno_h_ENOLINK = no; then
13340
cat >conftest.$ac_ext <<_ACEOF
13343
cat confdefs.h >>conftest.$ac_ext
13344
cat >>conftest.$ac_ext <<_ACEOF
13345
/* end confdefs.h. */
13347
#define _XOPEN_SOURCE_EXTENDED 1
13354
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355
$EGREP "yes" >/dev/null 2>&1; then
13356
gl_cv_header_errno_h_ENOLINK=hidden
13360
if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13361
if test "$cross_compiling" = yes; then
13362
# Depending upon the size, compute the lo and hi bounds.
13363
cat >conftest.$ac_ext <<_ACEOF
13366
cat confdefs.h >>conftest.$ac_ext
13367
cat >>conftest.$ac_ext <<_ACEOF
13368
/* end confdefs.h. */
13370
#define _XOPEN_SOURCE_EXTENDED 1
13372
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13374
#include <stdlib.h>
13379
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13386
rm -f conftest.$ac_objext
13387
if { (ac_try="$ac_compile"
13388
case "(($ac_try" in
13389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390
*) ac_try_echo=$ac_try;;
13392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393
$as_echo "$ac_try_echo") >&5
13394
(eval "$ac_compile") 2>conftest.er1
13396
grep -v '^ *+' conftest.er1 >conftest.err
13398
cat conftest.err >&5
13399
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400
(exit $ac_status); } && {
13401
test -z "$ac_c_werror_flag" ||
13402
test ! -s conftest.err
13403
} && test -s conftest.$ac_objext; then
13406
cat >conftest.$ac_ext <<_ACEOF
13409
cat confdefs.h >>conftest.$ac_ext
13410
cat >>conftest.$ac_ext <<_ACEOF
13411
/* end confdefs.h. */
13413
#define _XOPEN_SOURCE_EXTENDED 1
13415
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13417
#include <stdlib.h>
13422
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13429
rm -f conftest.$ac_objext
13430
if { (ac_try="$ac_compile"
13431
case "(($ac_try" in
13432
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433
*) ac_try_echo=$ac_try;;
13435
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436
$as_echo "$ac_try_echo") >&5
13437
(eval "$ac_compile") 2>conftest.er1
13439
grep -v '^ *+' conftest.er1 >conftest.err
13441
cat conftest.err >&5
13442
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443
(exit $ac_status); } && {
13444
test -z "$ac_c_werror_flag" ||
13445
test ! -s conftest.err
13446
} && test -s conftest.$ac_objext; then
13447
ac_hi=$ac_mid; break
13449
$as_echo "$as_me: failed program was:" >&5
13450
sed 's/^/| /' conftest.$ac_ext >&5
13452
ac_lo=`expr $ac_mid + 1`
13453
if test $ac_lo -le $ac_mid; then
13457
ac_mid=`expr 2 '*' $ac_mid + 1`
13460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463
$as_echo "$as_me: failed program was:" >&5
13464
sed 's/^/| /' conftest.$ac_ext >&5
13466
cat >conftest.$ac_ext <<_ACEOF
13469
cat confdefs.h >>conftest.$ac_ext
13470
cat >>conftest.$ac_ext <<_ACEOF
13471
/* end confdefs.h. */
13473
#define _XOPEN_SOURCE_EXTENDED 1
13475
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13477
#include <stdlib.h>
13482
static int test_array [1 - 2 * !((ENOLINK) < 0)];
13489
rm -f conftest.$ac_objext
13490
if { (ac_try="$ac_compile"
13491
case "(($ac_try" in
13492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493
*) ac_try_echo=$ac_try;;
13495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496
$as_echo "$ac_try_echo") >&5
13497
(eval "$ac_compile") 2>conftest.er1
13499
grep -v '^ *+' conftest.er1 >conftest.err
13501
cat conftest.err >&5
13502
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503
(exit $ac_status); } && {
13504
test -z "$ac_c_werror_flag" ||
13505
test ! -s conftest.err
13506
} && test -s conftest.$ac_objext; then
13509
cat >conftest.$ac_ext <<_ACEOF
13512
cat confdefs.h >>conftest.$ac_ext
13513
cat >>conftest.$ac_ext <<_ACEOF
13514
/* end confdefs.h. */
13516
#define _XOPEN_SOURCE_EXTENDED 1
13518
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13520
#include <stdlib.h>
13525
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13532
rm -f conftest.$ac_objext
13533
if { (ac_try="$ac_compile"
13534
case "(($ac_try" in
13535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536
*) ac_try_echo=$ac_try;;
13538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13539
$as_echo "$ac_try_echo") >&5
13540
(eval "$ac_compile") 2>conftest.er1
13542
grep -v '^ *+' conftest.er1 >conftest.err
13544
cat conftest.err >&5
13545
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546
(exit $ac_status); } && {
13547
test -z "$ac_c_werror_flag" ||
13548
test ! -s conftest.err
13549
} && test -s conftest.$ac_objext; then
13550
ac_lo=$ac_mid; break
13552
$as_echo "$as_me: failed program was:" >&5
13553
sed 's/^/| /' conftest.$ac_ext >&5
13555
ac_hi=`expr '(' $ac_mid ')' - 1`
13556
if test $ac_mid -le $ac_hi; then
13560
ac_mid=`expr 2 '*' $ac_mid`
13563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566
$as_echo "$as_me: failed program was:" >&5
13567
sed 's/^/| /' conftest.$ac_ext >&5
13572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576
# Binary search between lo and hi bounds.
13577
while test "x$ac_lo" != "x$ac_hi"; do
13578
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13579
cat >conftest.$ac_ext <<_ACEOF
13582
cat confdefs.h >>conftest.$ac_ext
13583
cat >>conftest.$ac_ext <<_ACEOF
13584
/* end confdefs.h. */
13586
#define _XOPEN_SOURCE_EXTENDED 1
13588
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13590
#include <stdlib.h>
13595
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13602
rm -f conftest.$ac_objext
13603
if { (ac_try="$ac_compile"
13604
case "(($ac_try" in
13605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606
*) ac_try_echo=$ac_try;;
13608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609
$as_echo "$ac_try_echo") >&5
13610
(eval "$ac_compile") 2>conftest.er1
13612
grep -v '^ *+' conftest.er1 >conftest.err
13614
cat conftest.err >&5
13615
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616
(exit $ac_status); } && {
13617
test -z "$ac_c_werror_flag" ||
13618
test ! -s conftest.err
13619
} && test -s conftest.$ac_objext; then
13622
$as_echo "$as_me: failed program was:" >&5
13623
sed 's/^/| /' conftest.$ac_ext >&5
13625
ac_lo=`expr '(' $ac_mid ')' + 1`
13628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13635
cat >conftest.$ac_ext <<_ACEOF
13638
cat confdefs.h >>conftest.$ac_ext
13639
cat >>conftest.$ac_ext <<_ACEOF
13640
/* end confdefs.h. */
13642
#define _XOPEN_SOURCE_EXTENDED 1
13644
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13646
#include <stdlib.h>
13648
static long int longval () { return ENOLINK; }
13649
static unsigned long int ulongval () { return ENOLINK; }
13651
#include <stdlib.h>
13656
FILE *f = fopen ("conftest.val", "w");
13661
long int i = longval ();
13662
if (i != (ENOLINK))
13664
fprintf (f, "%ld", i);
13668
unsigned long int i = ulongval ();
13669
if (i != (ENOLINK))
13671
fprintf (f, "%lu", i);
13673
/* Do not output a trailing newline, as this causes \r\n confusion
13674
on some platforms. */
13675
return ferror (f) || fclose (f) != 0;
13681
rm -f conftest$ac_exeext
13682
if { (ac_try="$ac_link"
13683
case "(($ac_try" in
13684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685
*) ac_try_echo=$ac_try;;
13687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688
$as_echo "$ac_try_echo") >&5
13689
(eval "$ac_link") 2>&5
13691
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13693
{ (case "(($ac_try" in
13694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695
*) ac_try_echo=$ac_try;;
13697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698
$as_echo "$ac_try_echo") >&5
13699
(eval "$ac_try") 2>&5
13701
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702
(exit $ac_status); }; }; then
13703
gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13705
$as_echo "$as_me: program exited with status $ac_status" >&5
13706
$as_echo "$as_me: failed program was:" >&5
13707
sed 's/^/| /' conftest.$ac_ext >&5
13710
rm -rf conftest.dSYM
13711
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13719
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13720
case $gl_cv_header_errno_h_ENOLINK in
13722
ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13725
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13733
if test -n "$ERRNO_H"; then
13734
{ $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13735
$as_echo_n "checking for EOVERFLOW value... " >&6; }
13736
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13737
$as_echo_n "(cached) " >&6
13740
cat >conftest.$ac_ext <<_ACEOF
13743
cat confdefs.h >>conftest.$ac_ext
13744
cat >>conftest.$ac_ext <<_ACEOF
13745
/* end confdefs.h. */
13753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754
$EGREP "yes" >/dev/null 2>&1; then
13755
gl_cv_header_errno_h_EOVERFLOW=yes
13757
gl_cv_header_errno_h_EOVERFLOW=no
13761
if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13762
cat >conftest.$ac_ext <<_ACEOF
13765
cat confdefs.h >>conftest.$ac_ext
13766
cat >>conftest.$ac_ext <<_ACEOF
13767
/* end confdefs.h. */
13769
#define _XOPEN_SOURCE_EXTENDED 1
13776
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13777
$EGREP "yes" >/dev/null 2>&1; then
13778
gl_cv_header_errno_h_EOVERFLOW=hidden
13782
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13783
if test "$cross_compiling" = yes; then
13784
# Depending upon the size, compute the lo and hi bounds.
13785
cat >conftest.$ac_ext <<_ACEOF
13788
cat confdefs.h >>conftest.$ac_ext
13789
cat >>conftest.$ac_ext <<_ACEOF
13790
/* end confdefs.h. */
13792
#define _XOPEN_SOURCE_EXTENDED 1
13794
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13796
#include <stdlib.h>
13801
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13808
rm -f conftest.$ac_objext
13809
if { (ac_try="$ac_compile"
13810
case "(($ac_try" in
13811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812
*) ac_try_echo=$ac_try;;
13814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815
$as_echo "$ac_try_echo") >&5
13816
(eval "$ac_compile") 2>conftest.er1
13818
grep -v '^ *+' conftest.er1 >conftest.err
13820
cat conftest.err >&5
13821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822
(exit $ac_status); } && {
13823
test -z "$ac_c_werror_flag" ||
13824
test ! -s conftest.err
13825
} && test -s conftest.$ac_objext; then
13828
cat >conftest.$ac_ext <<_ACEOF
13831
cat confdefs.h >>conftest.$ac_ext
13832
cat >>conftest.$ac_ext <<_ACEOF
13833
/* end confdefs.h. */
13835
#define _XOPEN_SOURCE_EXTENDED 1
13837
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13839
#include <stdlib.h>
13844
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13851
rm -f conftest.$ac_objext
13852
if { (ac_try="$ac_compile"
13853
case "(($ac_try" in
13854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855
*) ac_try_echo=$ac_try;;
13857
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858
$as_echo "$ac_try_echo") >&5
13859
(eval "$ac_compile") 2>conftest.er1
13861
grep -v '^ *+' conftest.er1 >conftest.err
13863
cat conftest.err >&5
13864
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865
(exit $ac_status); } && {
13866
test -z "$ac_c_werror_flag" ||
13867
test ! -s conftest.err
13868
} && test -s conftest.$ac_objext; then
13869
ac_hi=$ac_mid; break
13871
$as_echo "$as_me: failed program was:" >&5
13872
sed 's/^/| /' conftest.$ac_ext >&5
13874
ac_lo=`expr $ac_mid + 1`
13875
if test $ac_lo -le $ac_mid; then
13879
ac_mid=`expr 2 '*' $ac_mid + 1`
13882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885
$as_echo "$as_me: failed program was:" >&5
13886
sed 's/^/| /' conftest.$ac_ext >&5
13888
cat >conftest.$ac_ext <<_ACEOF
13891
cat confdefs.h >>conftest.$ac_ext
13892
cat >>conftest.$ac_ext <<_ACEOF
13893
/* end confdefs.h. */
13895
#define _XOPEN_SOURCE_EXTENDED 1
13897
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13899
#include <stdlib.h>
13904
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13911
rm -f conftest.$ac_objext
13912
if { (ac_try="$ac_compile"
13913
case "(($ac_try" in
13914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915
*) ac_try_echo=$ac_try;;
13917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918
$as_echo "$ac_try_echo") >&5
13919
(eval "$ac_compile") 2>conftest.er1
13921
grep -v '^ *+' conftest.er1 >conftest.err
13923
cat conftest.err >&5
13924
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925
(exit $ac_status); } && {
13926
test -z "$ac_c_werror_flag" ||
13927
test ! -s conftest.err
13928
} && test -s conftest.$ac_objext; then
13931
cat >conftest.$ac_ext <<_ACEOF
13934
cat confdefs.h >>conftest.$ac_ext
13935
cat >>conftest.$ac_ext <<_ACEOF
13936
/* end confdefs.h. */
13938
#define _XOPEN_SOURCE_EXTENDED 1
13940
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13942
#include <stdlib.h>
13947
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13954
rm -f conftest.$ac_objext
13955
if { (ac_try="$ac_compile"
13956
case "(($ac_try" in
13957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958
*) ac_try_echo=$ac_try;;
13960
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961
$as_echo "$ac_try_echo") >&5
13962
(eval "$ac_compile") 2>conftest.er1
13964
grep -v '^ *+' conftest.er1 >conftest.err
13966
cat conftest.err >&5
13967
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968
(exit $ac_status); } && {
13969
test -z "$ac_c_werror_flag" ||
13970
test ! -s conftest.err
13971
} && test -s conftest.$ac_objext; then
13972
ac_lo=$ac_mid; break
13974
$as_echo "$as_me: failed program was:" >&5
13975
sed 's/^/| /' conftest.$ac_ext >&5
13977
ac_hi=`expr '(' $ac_mid ')' - 1`
13978
if test $ac_mid -le $ac_hi; then
13982
ac_mid=`expr 2 '*' $ac_mid`
13985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988
$as_echo "$as_me: failed program was:" >&5
13989
sed 's/^/| /' conftest.$ac_ext >&5
13994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998
# Binary search between lo and hi bounds.
13999
while test "x$ac_lo" != "x$ac_hi"; do
14000
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001
cat >conftest.$ac_ext <<_ACEOF
14004
cat confdefs.h >>conftest.$ac_ext
14005
cat >>conftest.$ac_ext <<_ACEOF
14006
/* end confdefs.h. */
14008
#define _XOPEN_SOURCE_EXTENDED 1
14010
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14012
#include <stdlib.h>
14017
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14024
rm -f conftest.$ac_objext
14025
if { (ac_try="$ac_compile"
14026
case "(($ac_try" in
14027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028
*) ac_try_echo=$ac_try;;
14030
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031
$as_echo "$ac_try_echo") >&5
14032
(eval "$ac_compile") 2>conftest.er1
14034
grep -v '^ *+' conftest.er1 >conftest.err
14036
cat conftest.err >&5
14037
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038
(exit $ac_status); } && {
14039
test -z "$ac_c_werror_flag" ||
14040
test ! -s conftest.err
14041
} && test -s conftest.$ac_objext; then
14044
$as_echo "$as_me: failed program was:" >&5
14045
sed 's/^/| /' conftest.$ac_ext >&5
14047
ac_lo=`expr '(' $ac_mid ')' + 1`
14050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
14057
cat >conftest.$ac_ext <<_ACEOF
14060
cat confdefs.h >>conftest.$ac_ext
14061
cat >>conftest.$ac_ext <<_ACEOF
14062
/* end confdefs.h. */
14064
#define _XOPEN_SOURCE_EXTENDED 1
14066
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14068
#include <stdlib.h>
14070
static long int longval () { return EOVERFLOW; }
14071
static unsigned long int ulongval () { return EOVERFLOW; }
14073
#include <stdlib.h>
14078
FILE *f = fopen ("conftest.val", "w");
14081
if ((EOVERFLOW) < 0)
14083
long int i = longval ();
14084
if (i != (EOVERFLOW))
14086
fprintf (f, "%ld", i);
14090
unsigned long int i = ulongval ();
14091
if (i != (EOVERFLOW))
14093
fprintf (f, "%lu", i);
14095
/* Do not output a trailing newline, as this causes \r\n confusion
14096
on some platforms. */
14097
return ferror (f) || fclose (f) != 0;
14103
rm -f conftest$ac_exeext
14104
if { (ac_try="$ac_link"
14105
case "(($ac_try" in
14106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107
*) ac_try_echo=$ac_try;;
14109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14110
$as_echo "$ac_try_echo") >&5
14111
(eval "$ac_link") 2>&5
14113
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115
{ (case "(($ac_try" in
14116
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117
*) ac_try_echo=$ac_try;;
14119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120
$as_echo "$ac_try_echo") >&5
14121
(eval "$ac_try") 2>&5
14123
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124
(exit $ac_status); }; }; then
14125
gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
14127
$as_echo "$as_me: program exited with status $ac_status" >&5
14128
$as_echo "$as_me: failed program was:" >&5
14129
sed 's/^/| /' conftest.$ac_ext >&5
14132
rm -rf conftest.dSYM
14133
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14141
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14142
case $gl_cv_header_errno_h_EOVERFLOW in
14144
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14147
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14155
{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14156
$as_echo_n "checking whether strerror_r is declared... " >&6; }
14157
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14158
$as_echo_n "(cached) " >&6
14160
cat >conftest.$ac_ext <<_ACEOF
14163
cat confdefs.h >>conftest.$ac_ext
14164
cat >>conftest.$ac_ext <<_ACEOF
14165
/* end confdefs.h. */
14166
$ac_includes_default
14178
rm -f conftest.$ac_objext
14179
if { (ac_try="$ac_compile"
14180
case "(($ac_try" in
14181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182
*) ac_try_echo=$ac_try;;
14184
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185
$as_echo "$ac_try_echo") >&5
14186
(eval "$ac_compile") 2>conftest.er1
14188
grep -v '^ *+' conftest.er1 >conftest.err
14190
cat conftest.err >&5
14191
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192
(exit $ac_status); } && {
14193
test -z "$ac_c_werror_flag" ||
14194
test ! -s conftest.err
14195
} && test -s conftest.$ac_objext; then
14196
ac_cv_have_decl_strerror_r=yes
14198
$as_echo "$as_me: failed program was:" >&5
14199
sed 's/^/| /' conftest.$ac_ext >&5
14201
ac_cv_have_decl_strerror_r=no
14204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14207
$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14208
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14210
cat >>confdefs.h <<_ACEOF
14211
#define HAVE_DECL_STRERROR_R 1
14216
cat >>confdefs.h <<_ACEOF
14217
#define HAVE_DECL_STRERROR_R 0
14225
for ac_func in strerror_r
14227
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14229
$as_echo_n "checking for $ac_func... " >&6; }
14230
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231
$as_echo_n "(cached) " >&6
14233
cat >conftest.$ac_ext <<_ACEOF
14236
cat confdefs.h >>conftest.$ac_ext
14237
cat >>conftest.$ac_ext <<_ACEOF
14238
/* end confdefs.h. */
14239
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14241
#define $ac_func innocuous_$ac_func
14243
/* System header to define __stub macros and hopefully few prototypes,
14244
which can conflict with char $ac_func (); below.
14245
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246
<limits.h> exists even on freestanding compilers. */
14249
# include <limits.h>
14251
# include <assert.h>
14256
/* Override any GCC internal prototype to avoid an error.
14257
Use char because int might match the return type of a GCC
14258
builtin and then its argument prototype would still apply. */
14263
/* The GNU C library defines this for functions which it implements
14264
to always fail with ENOSYS. Some functions are actually named
14265
something starting with __ and the normal name is an alias. */
14266
#if defined __stub_$ac_func || defined __stub___$ac_func
14273
return $ac_func ();
14278
rm -f conftest.$ac_objext conftest$ac_exeext
14279
if { (ac_try="$ac_link"
14280
case "(($ac_try" in
14281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282
*) ac_try_echo=$ac_try;;
14284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285
$as_echo "$ac_try_echo") >&5
14286
(eval "$ac_link") 2>conftest.er1
14288
grep -v '^ *+' conftest.er1 >conftest.err
14290
cat conftest.err >&5
14291
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292
(exit $ac_status); } && {
14293
test -z "$ac_c_werror_flag" ||
14294
test ! -s conftest.err
14295
} && test -s conftest$ac_exeext && {
14296
test "$cross_compiling" = yes ||
14297
$as_test_x conftest$ac_exeext
14299
eval "$as_ac_var=yes"
14301
$as_echo "$as_me: failed program was:" >&5
14302
sed 's/^/| /' conftest.$ac_ext >&5
14304
eval "$as_ac_var=no"
14307
rm -rf conftest.dSYM
14308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309
conftest$ac_exeext conftest.$ac_ext
14311
ac_res=`eval 'as_val=${'$as_ac_var'}
14312
$as_echo "$as_val"'`
14313
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14314
$as_echo "$ac_res" >&6; }
14315
as_val=`eval 'as_val=${'$as_ac_var'}
14316
$as_echo "$as_val"'`
14317
if test "x$as_val" = x""yes; then
14318
cat >>confdefs.h <<_ACEOF
14319
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325
{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14326
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
14327
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14328
$as_echo_n "(cached) " >&6
14331
ac_cv_func_strerror_r_char_p=no
14332
if test $ac_cv_have_decl_strerror_r = yes; then
14333
cat >conftest.$ac_ext <<_ACEOF
14336
cat confdefs.h >>conftest.$ac_ext
14337
cat >>conftest.$ac_ext <<_ACEOF
14338
/* end confdefs.h. */
14339
$ac_includes_default
14345
char x = *strerror_r (0, buf, sizeof buf);
14346
char *p = strerror_r (0, buf, sizeof buf);
14353
rm -f conftest.$ac_objext
14354
if { (ac_try="$ac_compile"
14355
case "(($ac_try" in
14356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357
*) ac_try_echo=$ac_try;;
14359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14360
$as_echo "$ac_try_echo") >&5
14361
(eval "$ac_compile") 2>conftest.er1
14363
grep -v '^ *+' conftest.er1 >conftest.err
14365
cat conftest.err >&5
14366
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367
(exit $ac_status); } && {
14368
test -z "$ac_c_werror_flag" ||
14369
test ! -s conftest.err
14370
} && test -s conftest.$ac_objext; then
14371
ac_cv_func_strerror_r_char_p=yes
14373
$as_echo "$as_me: failed program was:" >&5
14374
sed 's/^/| /' conftest.$ac_ext >&5
14379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381
# strerror_r is not declared. Choose between
14382
# systems that have relatively inaccessible declarations for the
14383
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
14384
# former has a strerror_r that returns char*, while the latter
14385
# has a strerror_r that returns `int'.
14386
# This test should segfault on the DEC system.
14387
if test "$cross_compiling" = yes; then
14390
cat >conftest.$ac_ext <<_ACEOF
14393
cat confdefs.h >>conftest.$ac_ext
14394
cat >>conftest.$ac_ext <<_ACEOF
14395
/* end confdefs.h. */
14396
$ac_includes_default
14397
extern char *strerror_r ();
14402
char x = *strerror_r (0, buf, sizeof buf);
14403
return ! isalpha (x);
14408
rm -f conftest$ac_exeext
14409
if { (ac_try="$ac_link"
14410
case "(($ac_try" in
14411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412
*) ac_try_echo=$ac_try;;
14414
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415
$as_echo "$ac_try_echo") >&5
14416
(eval "$ac_link") 2>&5
14418
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14420
{ (case "(($ac_try" in
14421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422
*) ac_try_echo=$ac_try;;
14424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14425
$as_echo "$ac_try_echo") >&5
14426
(eval "$ac_try") 2>&5
14428
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429
(exit $ac_status); }; }; then
14430
ac_cv_func_strerror_r_char_p=yes
14432
$as_echo "$as_me: program exited with status $ac_status" >&5
14433
$as_echo "$as_me: failed program was:" >&5
14434
sed 's/^/| /' conftest.$ac_ext >&5
14437
rm -rf conftest.dSYM
14438
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14446
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14447
if test $ac_cv_func_strerror_r_char_p = yes; then
14449
cat >>confdefs.h <<\_ACEOF
14450
#define STRERROR_R_CHAR_P 1
14456
XGETTEXT_EXTRA_OPTIONS=
14460
GNULIB_FPRINTF_POSIX=0;
14462
GNULIB_PRINTF_POSIX=0;
14464
GNULIB_SPRINTF_POSIX=0;
14466
GNULIB_VFPRINTF_POSIX=0;
14468
GNULIB_VPRINTF_POSIX=0;
14469
GNULIB_VSNPRINTF=0;
14470
GNULIB_VSPRINTF_POSIX=0;
14473
GNULIB_VASPRINTF=0;
14474
GNULIB_OBSTACK_PRINTF=0;
14475
GNULIB_OBSTACK_PRINTF_POSIX=0;
14495
GNULIB_STDIO_H_SIGPIPE=0;
14496
REPLACE_STDIO_WRITE_FUNCS=0;
14498
REPLACE_VFPRINTF=0;
14501
REPLACE_SNPRINTF=0;
14502
HAVE_DECL_SNPRINTF=1;
14503
REPLACE_VSNPRINTF=0;
14504
HAVE_DECL_VSNPRINTF=1;
14506
REPLACE_VSPRINTF=0;
14510
REPLACE_VDPRINTF=0;
14512
REPLACE_VASPRINTF=0;
14513
HAVE_DECL_OBSTACK_PRINTF=1;
14514
REPLACE_OBSTACK_PRINTF=0;
14525
HAVE_DECL_FPURGE=1;
14528
HAVE_DECL_GETDELIM=1;
14529
HAVE_DECL_GETLINE=1;
14534
{ $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14535
$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14536
if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14537
$as_echo_n "(cached) " >&6
14539
cat >conftest.$ac_ext <<_ACEOF
14542
cat confdefs.h >>conftest.$ac_ext
14543
cat >>conftest.$ac_ext <<_ACEOF
14544
/* end confdefs.h. */
14549
#if defined __SL64 && defined __SCLE /* cygwin */
14550
/* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14551
fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
14552
it is easier to do a version check than building a runtime test. */
14553
# include <cygwin/version.h>
14554
# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14562
rm -f conftest.$ac_objext conftest$ac_exeext
14563
if { (ac_try="$ac_link"
14564
case "(($ac_try" in
14565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566
*) ac_try_echo=$ac_try;;
14568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569
$as_echo "$ac_try_echo") >&5
14570
(eval "$ac_link") 2>conftest.er1
14572
grep -v '^ *+' conftest.er1 >conftest.err
14574
cat conftest.err >&5
14575
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576
(exit $ac_status); } && {
14577
test -z "$ac_c_werror_flag" ||
14578
test ! -s conftest.err
14579
} && test -s conftest$ac_exeext && {
14580
test "$cross_compiling" = yes ||
14581
$as_test_x conftest$ac_exeext
14583
gl_cv_var_stdin_large_offset=yes
14585
$as_echo "$as_me: failed program was:" >&5
14586
sed 's/^/| /' conftest.$ac_ext >&5
14588
gl_cv_var_stdin_large_offset=no
14591
rm -rf conftest.dSYM
14592
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593
conftest$ac_exeext conftest.$ac_ext
14595
{ $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14596
$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14598
{ $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14599
$as_echo_n "checking whether getdelim is declared... " >&6; }
14600
if test "${ac_cv_have_decl_getdelim+set}" = set; then
14601
$as_echo_n "(cached) " >&6
14603
cat >conftest.$ac_ext <<_ACEOF
14606
cat confdefs.h >>conftest.$ac_ext
14607
cat >>conftest.$ac_ext <<_ACEOF
14608
/* end confdefs.h. */
14609
$ac_includes_default
14621
rm -f conftest.$ac_objext
14622
if { (ac_try="$ac_compile"
14623
case "(($ac_try" in
14624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625
*) ac_try_echo=$ac_try;;
14627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628
$as_echo "$ac_try_echo") >&5
14629
(eval "$ac_compile") 2>conftest.er1
14631
grep -v '^ *+' conftest.er1 >conftest.err
14633
cat conftest.err >&5
14634
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635
(exit $ac_status); } && {
14636
test -z "$ac_c_werror_flag" ||
14637
test ! -s conftest.err
14638
} && test -s conftest.$ac_objext; then
14639
ac_cv_have_decl_getdelim=yes
14641
$as_echo "$as_me: failed program was:" >&5
14642
sed 's/^/| /' conftest.$ac_ext >&5
14644
ac_cv_have_decl_getdelim=no
14647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14650
$as_echo "$ac_cv_have_decl_getdelim" >&6; }
14651
if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14653
cat >>confdefs.h <<_ACEOF
14654
#define HAVE_DECL_GETDELIM 1
14659
cat >>confdefs.h <<_ACEOF
14660
#define HAVE_DECL_GETDELIM 0
14667
{ $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14668
$as_echo_n "checking whether getline is declared... " >&6; }
14669
if test "${ac_cv_have_decl_getline+set}" = set; then
14670
$as_echo_n "(cached) " >&6
14672
cat >conftest.$ac_ext <<_ACEOF
14675
cat confdefs.h >>conftest.$ac_ext
14676
cat >>conftest.$ac_ext <<_ACEOF
14677
/* end confdefs.h. */
14678
$ac_includes_default
14690
rm -f conftest.$ac_objext
14691
if { (ac_try="$ac_compile"
14692
case "(($ac_try" in
14693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694
*) ac_try_echo=$ac_try;;
14696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697
$as_echo "$ac_try_echo") >&5
14698
(eval "$ac_compile") 2>conftest.er1
14700
grep -v '^ *+' conftest.er1 >conftest.err
14702
cat conftest.err >&5
14703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704
(exit $ac_status); } && {
14705
test -z "$ac_c_werror_flag" ||
14706
test ! -s conftest.err
14707
} && test -s conftest.$ac_objext; then
14708
ac_cv_have_decl_getline=yes
14710
$as_echo "$as_me: failed program was:" >&5
14711
sed 's/^/| /' conftest.$ac_ext >&5
14713
ac_cv_have_decl_getline=no
14716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14719
$as_echo "$ac_cv_have_decl_getline" >&6; }
14720
if test "x$ac_cv_have_decl_getline" = x""yes; then
14722
cat >>confdefs.h <<_ACEOF
14723
#define HAVE_DECL_GETLINE 1
14728
cat >>confdefs.h <<_ACEOF
14729
#define HAVE_DECL_GETLINE 0
14742
GNULIB_EUIDACCESS=0;
14745
GNULIB_FTRUNCATE=0;
14747
GNULIB_GETDOMAINNAME=0;
14748
GNULIB_GETDTABLESIZE=0;
14749
GNULIB_GETHOSTNAME=0;
14750
GNULIB_GETLOGIN_R=0;
14751
GNULIB_GETPAGESIZE=0;
14752
GNULIB_GETUSERSHELL=0;
14759
GNULIB_UNISTD_H_GETOPT=0;
14760
GNULIB_UNISTD_H_SIGPIPE=0;
14767
HAVE_GETDOMAINNAME=1;
14768
HAVE_GETDTABLESIZE=1;
14769
HAVE_GETHOSTNAME=1;
14770
HAVE_GETPAGESIZE=1;
14771
HAVE_GETUSERSHELL=1;
14776
HAVE_DECL_ENVIRON=1;
14777
HAVE_DECL_GETLOGIN_R=1;
14779
HAVE_SYS_PARAM_H=0;
14785
REPLACE_GETPAGESIZE=0;
14789
UNISTD_H_HAVE_WINSOCK2_H=0;
14790
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14799
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14801
for ac_header in getopt.h
14803
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14804
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14806
$as_echo_n "checking for $ac_header... " >&6; }
14807
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14808
$as_echo_n "(cached) " >&6
14810
ac_res=`eval 'as_val=${'$as_ac_Header'}
14811
$as_echo "$as_val"'`
14812
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14813
$as_echo "$ac_res" >&6; }
14815
# Is the header compilable?
14816
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14817
$as_echo_n "checking $ac_header usability... " >&6; }
14818
cat >conftest.$ac_ext <<_ACEOF
14821
cat confdefs.h >>conftest.$ac_ext
14822
cat >>conftest.$ac_ext <<_ACEOF
14823
/* end confdefs.h. */
14824
$ac_includes_default
14825
#include <$ac_header>
14827
rm -f conftest.$ac_objext
14828
if { (ac_try="$ac_compile"
14829
case "(($ac_try" in
14830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831
*) ac_try_echo=$ac_try;;
14833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834
$as_echo "$ac_try_echo") >&5
14835
(eval "$ac_compile") 2>conftest.er1
14837
grep -v '^ *+' conftest.er1 >conftest.err
14839
cat conftest.err >&5
14840
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841
(exit $ac_status); } && {
14842
test -z "$ac_c_werror_flag" ||
14843
test ! -s conftest.err
14844
} && test -s conftest.$ac_objext; then
14845
ac_header_compiler=yes
14847
$as_echo "$as_me: failed program was:" >&5
14848
sed 's/^/| /' conftest.$ac_ext >&5
14850
ac_header_compiler=no
14853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855
$as_echo "$ac_header_compiler" >&6; }
14857
# Is the header present?
14858
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859
$as_echo_n "checking $ac_header presence... " >&6; }
14860
cat >conftest.$ac_ext <<_ACEOF
14863
cat confdefs.h >>conftest.$ac_ext
14864
cat >>conftest.$ac_ext <<_ACEOF
14865
/* end confdefs.h. */
14866
#include <$ac_header>
14868
if { (ac_try="$ac_cpp conftest.$ac_ext"
14869
case "(($ac_try" in
14870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871
*) ac_try_echo=$ac_try;;
14873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874
$as_echo "$ac_try_echo") >&5
14875
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14877
grep -v '^ *+' conftest.er1 >conftest.err
14879
cat conftest.err >&5
14880
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881
(exit $ac_status); } >/dev/null && {
14882
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14883
test ! -s conftest.err
14885
ac_header_preproc=yes
14887
$as_echo "$as_me: failed program was:" >&5
14888
sed 's/^/| /' conftest.$ac_ext >&5
14890
ac_header_preproc=no
14893
rm -f conftest.err conftest.$ac_ext
14894
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895
$as_echo "$ac_header_preproc" >&6; }
14897
# So? What about this header?
14898
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14900
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904
ac_header_preproc=yes
14907
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14910
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14911
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14914
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14915
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14920
## ------------------------------- ##
14921
## Report this to bug-wget@gnu.org ##
14922
## ------------------------------- ##
14924
) | sed "s/^/$as_me: WARNING: /" >&2
14927
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14928
$as_echo_n "checking for $ac_header... " >&6; }
14929
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930
$as_echo_n "(cached) " >&6
14932
eval "$as_ac_Header=\$ac_header_preproc"
14934
ac_res=`eval 'as_val=${'$as_ac_Header'}
14935
$as_echo "$as_val"'`
14936
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14937
$as_echo "$ac_res" >&6; }
14940
as_val=`eval 'as_val=${'$as_ac_Header'}
14941
$as_echo "$as_val"'`
14942
if test "x$as_val" = x""yes; then
14943
cat >>confdefs.h <<_ACEOF
14944
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14948
gl_replace_getopt=yes
14955
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14957
for ac_func in getopt_long_only
14959
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14961
$as_echo_n "checking for $ac_func... " >&6; }
14962
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14963
$as_echo_n "(cached) " >&6
14965
cat >conftest.$ac_ext <<_ACEOF
14968
cat confdefs.h >>conftest.$ac_ext
14969
cat >>conftest.$ac_ext <<_ACEOF
14970
/* end confdefs.h. */
14971
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14973
#define $ac_func innocuous_$ac_func
14975
/* System header to define __stub macros and hopefully few prototypes,
14976
which can conflict with char $ac_func (); below.
14977
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978
<limits.h> exists even on freestanding compilers. */
14981
# include <limits.h>
14983
# include <assert.h>
14988
/* Override any GCC internal prototype to avoid an error.
14989
Use char because int might match the return type of a GCC
14990
builtin and then its argument prototype would still apply. */
14995
/* The GNU C library defines this for functions which it implements
14996
to always fail with ENOSYS. Some functions are actually named
14997
something starting with __ and the normal name is an alias. */
14998
#if defined __stub_$ac_func || defined __stub___$ac_func
15005
return $ac_func ();
15010
rm -f conftest.$ac_objext conftest$ac_exeext
15011
if { (ac_try="$ac_link"
15012
case "(($ac_try" in
15013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014
*) ac_try_echo=$ac_try;;
15016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017
$as_echo "$ac_try_echo") >&5
15018
(eval "$ac_link") 2>conftest.er1
15020
grep -v '^ *+' conftest.er1 >conftest.err
15022
cat conftest.err >&5
15023
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024
(exit $ac_status); } && {
15025
test -z "$ac_c_werror_flag" ||
15026
test ! -s conftest.err
15027
} && test -s conftest$ac_exeext && {
15028
test "$cross_compiling" = yes ||
15029
$as_test_x conftest$ac_exeext
15031
eval "$as_ac_var=yes"
15033
$as_echo "$as_me: failed program was:" >&5
15034
sed 's/^/| /' conftest.$ac_ext >&5
15036
eval "$as_ac_var=no"
15039
rm -rf conftest.dSYM
15040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15041
conftest$ac_exeext conftest.$ac_ext
15043
ac_res=`eval 'as_val=${'$as_ac_var'}
15044
$as_echo "$as_val"'`
15045
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046
$as_echo "$ac_res" >&6; }
15047
as_val=`eval 'as_val=${'$as_ac_var'}
15048
$as_echo "$as_val"'`
15049
if test "x$as_val" = x""yes; then
15050
cat >>confdefs.h <<_ACEOF
15051
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15055
gl_replace_getopt=yes
15061
if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15062
{ $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15063
$as_echo_n "checking whether optreset is declared... " >&6; }
15064
if test "${ac_cv_have_decl_optreset+set}" = set; then
15065
$as_echo_n "(cached) " >&6
15067
cat >conftest.$ac_ext <<_ACEOF
15070
cat confdefs.h >>conftest.$ac_ext
15071
cat >>conftest.$ac_ext <<_ACEOF
15072
/* end confdefs.h. */
15073
#include <getopt.h>
15086
rm -f conftest.$ac_objext
15087
if { (ac_try="$ac_compile"
15088
case "(($ac_try" in
15089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090
*) ac_try_echo=$ac_try;;
15092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093
$as_echo "$ac_try_echo") >&5
15094
(eval "$ac_compile") 2>conftest.er1
15096
grep -v '^ *+' conftest.er1 >conftest.err
15098
cat conftest.err >&5
15099
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100
(exit $ac_status); } && {
15101
test -z "$ac_c_werror_flag" ||
15102
test ! -s conftest.err
15103
} && test -s conftest.$ac_objext; then
15104
ac_cv_have_decl_optreset=yes
15106
$as_echo "$as_me: failed program was:" >&5
15107
sed 's/^/| /' conftest.$ac_ext >&5
15109
ac_cv_have_decl_optreset=no
15112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15115
$as_echo "$ac_cv_have_decl_optreset" >&6; }
15116
if test "x$ac_cv_have_decl_optreset" = x""yes; then
15117
gl_replace_getopt=yes
15122
if test -z "$gl_replace_getopt"; then
15123
{ $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15124
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15125
if test "${gl_cv_func_getopt_posix+set}" = set; then
15126
$as_echo_n "(cached) " >&6
15129
if test "$cross_compiling" = yes; then
15131
mingw*) gl_cv_func_getopt_posix="guessing no";;
15132
*) gl_cv_func_getopt_posix="guessing yes";;
15136
cat >conftest.$ac_ext <<_ACEOF
15139
cat confdefs.h >>conftest.$ac_ext
15140
cat >>conftest.$ac_ext <<_ACEOF
15141
/* end confdefs.h. */
15143
#include <unistd.h>
15144
#include <stdlib.h>
15145
#include <string.h>
15147
/* The glibc implementation of getopt supports setting optind = 0 as a means
15148
of clearing the internal state, but other implementations don't. */
15149
#if (__GLIBC__ >= 2)
15150
# define OPTIND_MIN 0
15152
# define OPTIND_MIN 1
15163
argv[argc++] = "program";
15164
argv[argc++] = "-a";
15165
argv[argc++] = "foo";
15166
argv[argc++] = "bar";
15167
optind = OPTIND_MIN;
15170
c = getopt (argc, argv, "ab");
15173
c = getopt (argc, argv, "ab");
15176
if (!(optind == 2))
15179
/* Some internal state exists at this point. */
15185
argv[argc++] = "program";
15186
argv[argc++] = "donald";
15187
argv[argc++] = "-p";
15188
argv[argc++] = "billy";
15189
argv[argc++] = "duck";
15190
argv[argc++] = "-a";
15191
argv[argc++] = "bar";
15192
optind = OPTIND_MIN;
15195
c = getopt (argc, argv, "+abp:q:");
15198
if (!(strcmp (argv[0], "program") == 0))
15200
if (!(strcmp (argv[1], "donald") == 0))
15202
if (!(strcmp (argv[2], "-p") == 0))
15204
if (!(strcmp (argv[3], "billy") == 0))
15206
if (!(strcmp (argv[4], "duck") == 0))
15208
if (!(strcmp (argv[5], "-a") == 0))
15210
if (!(strcmp (argv[6], "bar") == 0))
15212
if (!(optind == 1))
15220
rm -f conftest$ac_exeext
15221
if { (ac_try="$ac_link"
15222
case "(($ac_try" in
15223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224
*) ac_try_echo=$ac_try;;
15226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227
$as_echo "$ac_try_echo") >&5
15228
(eval "$ac_link") 2>&5
15230
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15232
{ (case "(($ac_try" in
15233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234
*) ac_try_echo=$ac_try;;
15236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237
$as_echo "$ac_try_echo") >&5
15238
(eval "$ac_try") 2>&5
15240
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241
(exit $ac_status); }; }; then
15242
gl_cv_func_getopt_posix=yes
15244
$as_echo "$as_me: program exited with status $ac_status" >&5
15245
$as_echo "$as_me: failed program was:" >&5
15246
sed 's/^/| /' conftest.$ac_ext >&5
15248
( exit $ac_status )
15249
gl_cv_func_getopt_posix=no
15251
rm -rf conftest.dSYM
15252
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15258
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15259
$as_echo "$gl_cv_func_getopt_posix" >&6; }
15260
case "$gl_cv_func_getopt_posix" in
15261
*no) gl_replace_getopt=yes ;;
15265
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15266
{ $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15267
$as_echo_n "checking for working GNU getopt function... " >&6; }
15268
if test "${gl_cv_func_getopt_gnu+set}" = set; then
15269
$as_echo_n "(cached) " >&6
15271
if test "$cross_compiling" = yes; then
15273
*-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
15274
*) gl_cv_func_getopt_gnu=yes;;
15278
cat >conftest.$ac_ext <<_ACEOF
15281
cat confdefs.h >>conftest.$ac_ext
15282
cat >>conftest.$ac_ext <<_ACEOF
15283
/* end confdefs.h. */
15284
#include <getopt.h>
15285
#include <stddef.h>
15286
#include <string.h>
15291
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15292
and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15293
OSF/1 5.1, Solaris 10. */
15296
myargv[0] = "conftest";
15300
if (getopt (2, myargv, "+a") != '?')
15303
/* This code succeeds on glibc 2.8, mingw,
15304
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15305
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin. */
15307
char *argv[] = { "program", "-p", "foo", "bar" };
15310
if (getopt (4, argv, "p::") != 'p')
15312
if (optarg != NULL)
15314
if (getopt (4, argv, "p::") != -1)
15325
rm -f conftest$ac_exeext
15326
if { (ac_try="$ac_link"
15327
case "(($ac_try" in
15328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329
*) ac_try_echo=$ac_try;;
15331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332
$as_echo "$ac_try_echo") >&5
15333
(eval "$ac_link") 2>&5
15335
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15337
{ (case "(($ac_try" in
15338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339
*) ac_try_echo=$ac_try;;
15341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342
$as_echo "$ac_try_echo") >&5
15343
(eval "$ac_try") 2>&5
15345
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346
(exit $ac_status); }; }; then
15347
gl_cv_func_getopt_gnu=yes
15349
$as_echo "$as_me: program exited with status $ac_status" >&5
15350
$as_echo "$as_me: failed program was:" >&5
15351
sed 's/^/| /' conftest.$ac_ext >&5
15353
( exit $ac_status )
15354
gl_cv_func_getopt_gnu=no
15356
rm -rf conftest.dSYM
15357
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15363
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15364
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
15365
if test "$gl_cv_func_getopt_gnu" = "no"; then
15366
gl_replace_getopt=yes
15370
{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15371
$as_echo_n "checking whether getenv is declared... " >&6; }
15372
if test "${ac_cv_have_decl_getenv+set}" = set; then
15373
$as_echo_n "(cached) " >&6
15375
cat >conftest.$ac_ext <<_ACEOF
15378
cat confdefs.h >>conftest.$ac_ext
15379
cat >>conftest.$ac_ext <<_ACEOF
15380
/* end confdefs.h. */
15381
$ac_includes_default
15393
rm -f conftest.$ac_objext
15394
if { (ac_try="$ac_compile"
15395
case "(($ac_try" in
15396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397
*) ac_try_echo=$ac_try;;
15399
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15400
$as_echo "$ac_try_echo") >&5
15401
(eval "$ac_compile") 2>conftest.er1
15403
grep -v '^ *+' conftest.er1 >conftest.err
15405
cat conftest.err >&5
15406
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407
(exit $ac_status); } && {
15408
test -z "$ac_c_werror_flag" ||
15409
test ! -s conftest.err
15410
} && test -s conftest.$ac_objext; then
15411
ac_cv_have_decl_getenv=yes
15413
$as_echo "$as_me: failed program was:" >&5
15414
sed 's/^/| /' conftest.$ac_ext >&5
15416
ac_cv_have_decl_getenv=no
15419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15422
$as_echo "$ac_cv_have_decl_getenv" >&6; }
15423
if test "x$ac_cv_have_decl_getenv" = x""yes; then
15425
cat >>confdefs.h <<_ACEOF
15426
#define HAVE_DECL_GETENV 1
15431
cat >>confdefs.h <<_ACEOF
15432
#define HAVE_DECL_GETENV 0
15444
if test -n "$gl_replace_getopt"; then
15450
cat >>confdefs.h <<\_ACEOF
15451
#define __GETOPT_PREFIX rpl_
15456
GNULIB_UNISTD_H_GETOPT=1
15465
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15475
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15489
{ $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
15490
$as_echo_n "checking whether getpass is declared... " >&6; }
15491
if test "${ac_cv_have_decl_getpass+set}" = set; then
15492
$as_echo_n "(cached) " >&6
15494
cat >conftest.$ac_ext <<_ACEOF
15497
cat confdefs.h >>conftest.$ac_ext
15498
cat >>conftest.$ac_ext <<_ACEOF
15499
/* end confdefs.h. */
15500
$ac_includes_default
15512
rm -f conftest.$ac_objext
15513
if { (ac_try="$ac_compile"
15514
case "(($ac_try" in
15515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516
*) ac_try_echo=$ac_try;;
15518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519
$as_echo "$ac_try_echo") >&5
15520
(eval "$ac_compile") 2>conftest.er1
15522
grep -v '^ *+' conftest.er1 >conftest.err
15524
cat conftest.err >&5
15525
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526
(exit $ac_status); } && {
15527
test -z "$ac_c_werror_flag" ||
15528
test ! -s conftest.err
15529
} && test -s conftest.$ac_objext; then
15530
ac_cv_have_decl_getpass=yes
15532
$as_echo "$as_me: failed program was:" >&5
15533
sed 's/^/| /' conftest.$ac_ext >&5
15535
ac_cv_have_decl_getpass=no
15538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
15541
$as_echo "$ac_cv_have_decl_getpass" >&6; }
15542
if test "x$ac_cv_have_decl_getpass" = x""yes; then
15544
cat >>confdefs.h <<_ACEOF
15545
#define HAVE_DECL_GETPASS 1
15550
cat >>confdefs.h <<_ACEOF
15551
#define HAVE_DECL_GETPASS 0
15566
for ac_func in $ac_func_list
15568
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15570
$as_echo_n "checking for $ac_func... " >&6; }
15571
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572
$as_echo_n "(cached) " >&6
15574
cat >conftest.$ac_ext <<_ACEOF
15577
cat confdefs.h >>conftest.$ac_ext
15578
cat >>conftest.$ac_ext <<_ACEOF
15579
/* end confdefs.h. */
15580
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582
#define $ac_func innocuous_$ac_func
15584
/* System header to define __stub macros and hopefully few prototypes,
15585
which can conflict with char $ac_func (); below.
15586
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587
<limits.h> exists even on freestanding compilers. */
15590
# include <limits.h>
15592
# include <assert.h>
15597
/* Override any GCC internal prototype to avoid an error.
15598
Use char because int might match the return type of a GCC
15599
builtin and then its argument prototype would still apply. */
15604
/* The GNU C library defines this for functions which it implements
15605
to always fail with ENOSYS. Some functions are actually named
15606
something starting with __ and the normal name is an alias. */
15607
#if defined __stub_$ac_func || defined __stub___$ac_func
15614
return $ac_func ();
15619
rm -f conftest.$ac_objext conftest$ac_exeext
15620
if { (ac_try="$ac_link"
15621
case "(($ac_try" in
15622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623
*) ac_try_echo=$ac_try;;
15625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626
$as_echo "$ac_try_echo") >&5
15627
(eval "$ac_link") 2>conftest.er1
15629
grep -v '^ *+' conftest.er1 >conftest.err
15631
cat conftest.err >&5
15632
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
(exit $ac_status); } && {
15634
test -z "$ac_c_werror_flag" ||
15635
test ! -s conftest.err
15636
} && test -s conftest$ac_exeext && {
15637
test "$cross_compiling" = yes ||
15638
$as_test_x conftest$ac_exeext
15640
eval "$as_ac_var=yes"
15642
$as_echo "$as_me: failed program was:" >&5
15643
sed 's/^/| /' conftest.$ac_ext >&5
15645
eval "$as_ac_var=no"
15648
rm -rf conftest.dSYM
15649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650
conftest$ac_exeext conftest.$ac_ext
15652
ac_res=`eval 'as_val=${'$as_ac_var'}
15653
$as_echo "$as_val"'`
15654
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655
$as_echo "$ac_res" >&6; }
15656
as_val=`eval 'as_val=${'$as_ac_var'}
15657
$as_echo "$as_val"'`
15658
if test "x$as_val" = x""yes; then
15659
cat >>confdefs.h <<_ACEOF
15660
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15672
{ $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
15673
$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
15674
if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
15675
$as_echo_n "(cached) " >&6
15677
cat >conftest.$ac_ext <<_ACEOF
15680
cat confdefs.h >>conftest.$ac_ext
15681
cat >>conftest.$ac_ext <<_ACEOF
15682
/* end confdefs.h. */
15683
$ac_includes_default
15687
#ifndef fflush_unlocked
15688
(void) fflush_unlocked;
15695
rm -f conftest.$ac_objext
15696
if { (ac_try="$ac_compile"
15697
case "(($ac_try" in
15698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699
*) ac_try_echo=$ac_try;;
15701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702
$as_echo "$ac_try_echo") >&5
15703
(eval "$ac_compile") 2>conftest.er1
15705
grep -v '^ *+' conftest.er1 >conftest.err
15707
cat conftest.err >&5
15708
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709
(exit $ac_status); } && {
15710
test -z "$ac_c_werror_flag" ||
15711
test ! -s conftest.err
15712
} && test -s conftest.$ac_objext; then
15713
ac_cv_have_decl_fflush_unlocked=yes
15715
$as_echo "$as_me: failed program was:" >&5
15716
sed 's/^/| /' conftest.$ac_ext >&5
15718
ac_cv_have_decl_fflush_unlocked=no
15721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
15724
$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
15725
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
15727
cat >>confdefs.h <<_ACEOF
15728
#define HAVE_DECL_FFLUSH_UNLOCKED 1
15733
cat >>confdefs.h <<_ACEOF
15734
#define HAVE_DECL_FFLUSH_UNLOCKED 0
15741
{ $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
15742
$as_echo_n "checking whether flockfile is declared... " >&6; }
15743
if test "${ac_cv_have_decl_flockfile+set}" = set; then
15744
$as_echo_n "(cached) " >&6
15746
cat >conftest.$ac_ext <<_ACEOF
15749
cat confdefs.h >>conftest.$ac_ext
15750
cat >>conftest.$ac_ext <<_ACEOF
15751
/* end confdefs.h. */
15752
$ac_includes_default
15764
rm -f conftest.$ac_objext
15765
if { (ac_try="$ac_compile"
15766
case "(($ac_try" in
15767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768
*) ac_try_echo=$ac_try;;
15770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15771
$as_echo "$ac_try_echo") >&5
15772
(eval "$ac_compile") 2>conftest.er1
15774
grep -v '^ *+' conftest.er1 >conftest.err
15776
cat conftest.err >&5
15777
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778
(exit $ac_status); } && {
15779
test -z "$ac_c_werror_flag" ||
15780
test ! -s conftest.err
15781
} && test -s conftest.$ac_objext; then
15782
ac_cv_have_decl_flockfile=yes
15784
$as_echo "$as_me: failed program was:" >&5
15785
sed 's/^/| /' conftest.$ac_ext >&5
15787
ac_cv_have_decl_flockfile=no
15790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
15793
$as_echo "$ac_cv_have_decl_flockfile" >&6; }
15794
if test "x$ac_cv_have_decl_flockfile" = x""yes; then
15796
cat >>confdefs.h <<_ACEOF
15797
#define HAVE_DECL_FLOCKFILE 1
15802
cat >>confdefs.h <<_ACEOF
15803
#define HAVE_DECL_FLOCKFILE 0
15810
{ $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
15811
$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
15812
if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
15813
$as_echo_n "(cached) " >&6
15815
cat >conftest.$ac_ext <<_ACEOF
15818
cat confdefs.h >>conftest.$ac_ext
15819
cat >>conftest.$ac_ext <<_ACEOF
15820
/* end confdefs.h. */
15821
$ac_includes_default
15825
#ifndef fputs_unlocked
15826
(void) fputs_unlocked;
15833
rm -f conftest.$ac_objext
15834
if { (ac_try="$ac_compile"
15835
case "(($ac_try" in
15836
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837
*) ac_try_echo=$ac_try;;
15839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840
$as_echo "$ac_try_echo") >&5
15841
(eval "$ac_compile") 2>conftest.er1
15843
grep -v '^ *+' conftest.er1 >conftest.err
15845
cat conftest.err >&5
15846
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847
(exit $ac_status); } && {
15848
test -z "$ac_c_werror_flag" ||
15849
test ! -s conftest.err
15850
} && test -s conftest.$ac_objext; then
15851
ac_cv_have_decl_fputs_unlocked=yes
15853
$as_echo "$as_me: failed program was:" >&5
15854
sed 's/^/| /' conftest.$ac_ext >&5
15856
ac_cv_have_decl_fputs_unlocked=no
15859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
15862
$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
15863
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
15865
cat >>confdefs.h <<_ACEOF
15866
#define HAVE_DECL_FPUTS_UNLOCKED 1
15871
cat >>confdefs.h <<_ACEOF
15872
#define HAVE_DECL_FPUTS_UNLOCKED 0
15879
{ $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
15880
$as_echo_n "checking whether funlockfile is declared... " >&6; }
15881
if test "${ac_cv_have_decl_funlockfile+set}" = set; then
15882
$as_echo_n "(cached) " >&6
15884
cat >conftest.$ac_ext <<_ACEOF
15887
cat confdefs.h >>conftest.$ac_ext
15888
cat >>conftest.$ac_ext <<_ACEOF
15889
/* end confdefs.h. */
15890
$ac_includes_default
15894
#ifndef funlockfile
15895
(void) funlockfile;
15902
rm -f conftest.$ac_objext
15903
if { (ac_try="$ac_compile"
15904
case "(($ac_try" in
15905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906
*) ac_try_echo=$ac_try;;
15908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909
$as_echo "$ac_try_echo") >&5
15910
(eval "$ac_compile") 2>conftest.er1
15912
grep -v '^ *+' conftest.er1 >conftest.err
15914
cat conftest.err >&5
15915
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916
(exit $ac_status); } && {
15917
test -z "$ac_c_werror_flag" ||
15918
test ! -s conftest.err
15919
} && test -s conftest.$ac_objext; then
15920
ac_cv_have_decl_funlockfile=yes
15922
$as_echo "$as_me: failed program was:" >&5
15923
sed 's/^/| /' conftest.$ac_ext >&5
15925
ac_cv_have_decl_funlockfile=no
15928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
15931
$as_echo "$ac_cv_have_decl_funlockfile" >&6; }
15932
if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
15934
cat >>confdefs.h <<_ACEOF
15935
#define HAVE_DECL_FUNLOCKFILE 1
15940
cat >>confdefs.h <<_ACEOF
15941
#define HAVE_DECL_FUNLOCKFILE 0
15948
{ $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
15949
$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
15950
if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
15951
$as_echo_n "(cached) " >&6
15953
cat >conftest.$ac_ext <<_ACEOF
15956
cat confdefs.h >>conftest.$ac_ext
15957
cat >>conftest.$ac_ext <<_ACEOF
15958
/* end confdefs.h. */
15959
$ac_includes_default
15963
#ifndef putc_unlocked
15964
(void) putc_unlocked;
15971
rm -f conftest.$ac_objext
15972
if { (ac_try="$ac_compile"
15973
case "(($ac_try" in
15974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975
*) ac_try_echo=$ac_try;;
15977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978
$as_echo "$ac_try_echo") >&5
15979
(eval "$ac_compile") 2>conftest.er1
15981
grep -v '^ *+' conftest.er1 >conftest.err
15983
cat conftest.err >&5
15984
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985
(exit $ac_status); } && {
15986
test -z "$ac_c_werror_flag" ||
15987
test ! -s conftest.err
15988
} && test -s conftest.$ac_objext; then
15989
ac_cv_have_decl_putc_unlocked=yes
15991
$as_echo "$as_me: failed program was:" >&5
15992
sed 's/^/| /' conftest.$ac_ext >&5
15994
ac_cv_have_decl_putc_unlocked=no
15997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
16000
$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
16001
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
16003
cat >>confdefs.h <<_ACEOF
16004
#define HAVE_DECL_PUTC_UNLOCKED 1
16009
cat >>confdefs.h <<_ACEOF
16010
#define HAVE_DECL_PUTC_UNLOCKED 0
16018
{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16019
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16020
if test "${am_cv_langinfo_codeset+set}" = set; then
16021
$as_echo_n "(cached) " >&6
16023
cat >conftest.$ac_ext <<_ACEOF
16026
cat confdefs.h >>conftest.$ac_ext
16027
cat >>conftest.$ac_ext <<_ACEOF
16028
/* end confdefs.h. */
16029
#include <langinfo.h>
16033
char* cs = nl_langinfo(CODESET); return !cs;
16038
rm -f conftest.$ac_objext conftest$ac_exeext
16039
if { (ac_try="$ac_link"
16040
case "(($ac_try" in
16041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042
*) ac_try_echo=$ac_try;;
16044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045
$as_echo "$ac_try_echo") >&5
16046
(eval "$ac_link") 2>conftest.er1
16048
grep -v '^ *+' conftest.er1 >conftest.err
16050
cat conftest.err >&5
16051
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052
(exit $ac_status); } && {
16053
test -z "$ac_c_werror_flag" ||
16054
test ! -s conftest.err
16055
} && test -s conftest$ac_exeext && {
16056
test "$cross_compiling" = yes ||
16057
$as_test_x conftest$ac_exeext
16059
am_cv_langinfo_codeset=yes
16061
$as_echo "$as_me: failed program was:" >&5
16062
sed 's/^/| /' conftest.$ac_ext >&5
16064
am_cv_langinfo_codeset=no
16067
rm -rf conftest.dSYM
16068
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069
conftest$ac_exeext conftest.$ac_ext
16072
{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16073
$as_echo "$am_cv_langinfo_codeset" >&6; }
16074
if test $am_cv_langinfo_codeset = yes; then
16076
cat >>confdefs.h <<\_ACEOF
16077
#define HAVE_LANGINFO_CODESET 1
16082
{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
16083
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
16084
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
16085
$as_echo_n "(cached) " >&6
16087
cat >conftest.$ac_ext <<_ACEOF
16090
cat confdefs.h >>conftest.$ac_ext
16091
cat >>conftest.$ac_ext <<_ACEOF
16092
/* end confdefs.h. */
16093
$ac_includes_default
16097
#ifndef getc_unlocked
16098
(void) getc_unlocked;
16105
rm -f conftest.$ac_objext
16106
if { (ac_try="$ac_compile"
16107
case "(($ac_try" in
16108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109
*) ac_try_echo=$ac_try;;
16111
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112
$as_echo "$ac_try_echo") >&5
16113
(eval "$ac_compile") 2>conftest.er1
16115
grep -v '^ *+' conftest.er1 >conftest.err
16117
cat conftest.err >&5
16118
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119
(exit $ac_status); } && {
16120
test -z "$ac_c_werror_flag" ||
16121
test ! -s conftest.err
16122
} && test -s conftest.$ac_objext; then
16123
ac_cv_have_decl_getc_unlocked=yes
16125
$as_echo "$as_me: failed program was:" >&5
16126
sed 's/^/| /' conftest.$ac_ext >&5
16128
ac_cv_have_decl_getc_unlocked=no
16131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
16134
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
16135
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
16137
cat >>confdefs.h <<_ACEOF
16138
#define HAVE_DECL_GETC_UNLOCKED 1
16143
cat >>confdefs.h <<_ACEOF
16144
#define HAVE_DECL_GETC_UNLOCKED 0
16152
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16153
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
16154
if test "${ac_cv_gnu_library_2_1+set}" = set; then
16155
$as_echo_n "(cached) " >&6
16157
cat >conftest.$ac_ext <<_ACEOF
16160
cat confdefs.h >>conftest.$ac_ext
16161
cat >>conftest.$ac_ext <<_ACEOF
16162
/* end confdefs.h. */
16164
#include <features.h>
16165
#ifdef __GNU_LIBRARY__
16166
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
16174
ac_cv_gnu_library_2_1=yes
16176
ac_cv_gnu_library_2_1=no
16183
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16184
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
16186
GLIBC21="$ac_cv_gnu_library_2_1"
16195
GNULIB_MBSRTOWCS=0;
16196
GNULIB_MBSNRTOWCS=0;
16198
GNULIB_WCSRTOMBS=0;
16199
GNULIB_WCSNRTOMBS=0;
16211
HAVE_DECL_WCWIDTH=1;
16212
REPLACE_MBSTATE_T=0;
16218
REPLACE_MBSRTOWCS=0;
16219
REPLACE_MBSNRTOWCS=0;
16221
REPLACE_WCSRTOMBS=0;
16222
REPLACE_WCSNRTOMBS=0;
16228
{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
16229
$as_echo_n "checking for mbstate_t... " >&6; }
16230
if test "${ac_cv_type_mbstate_t+set}" = set; then
16231
$as_echo_n "(cached) " >&6
16233
cat >conftest.$ac_ext <<_ACEOF
16236
cat confdefs.h >>conftest.$ac_ext
16237
cat >>conftest.$ac_ext <<_ACEOF
16238
/* end confdefs.h. */
16239
$ac_includes_default
16240
# include <wchar.h>
16244
mbstate_t x; return sizeof x;
16249
rm -f conftest.$ac_objext
16250
if { (ac_try="$ac_compile"
16251
case "(($ac_try" in
16252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253
*) ac_try_echo=$ac_try;;
16255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256
$as_echo "$ac_try_echo") >&5
16257
(eval "$ac_compile") 2>conftest.er1
16259
grep -v '^ *+' conftest.er1 >conftest.err
16261
cat conftest.err >&5
16262
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
(exit $ac_status); } && {
16264
test -z "$ac_c_werror_flag" ||
16265
test ! -s conftest.err
16266
} && test -s conftest.$ac_objext; then
16267
ac_cv_type_mbstate_t=yes
16269
$as_echo "$as_me: failed program was:" >&5
16270
sed 's/^/| /' conftest.$ac_ext >&5
16272
ac_cv_type_mbstate_t=no
16275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16278
$as_echo "$ac_cv_type_mbstate_t" >&6; }
16279
if test $ac_cv_type_mbstate_t = yes; then
16281
cat >>confdefs.h <<\_ACEOF
16282
#define HAVE_MBSTATE_T 1
16287
cat >>confdefs.h <<\_ACEOF
16288
#define mbstate_t int
16300
{ $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16301
$as_echo_n "checking for a traditional japanese locale... " >&6; }
16302
if test "${gt_cv_locale_ja+set}" = set; then
16303
$as_echo_n "(cached) " >&6
16306
cat >conftest.$ac_ext <<_ACEOF
16309
cat confdefs.h >>conftest.$ac_ext
16310
cat >>conftest.$ac_ext <<_ACEOF
16311
/* end confdefs.h. */
16313
#include <locale.h>
16315
#if HAVE_LANGINFO_CODESET
16316
# include <langinfo.h>
16318
#include <stdlib.h>
16319
#include <string.h>
16325
/* Check whether the given locale name is recognized by the system. */
16326
if (setlocale (LC_ALL, "") == NULL) return 1;
16327
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16328
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16329
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16330
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16331
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16332
some unit tests fail. */
16333
#if HAVE_LANGINFO_CODESET
16335
const char *cs = nl_langinfo (CODESET);
16336
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16341
/* On Cygwin, avoid locale names without encoding suffix, because the
16342
locale_charset() function relies on the encoding suffix. Note that
16343
LC_ALL is set on the command line. */
16344
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16346
/* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
16347
on Cygwin 1.5.x. */
16348
if (MB_CUR_MAX == 1)
16350
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16351
This excludes the UTF-8 encoding. */
16352
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16353
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16354
for (p = buf; *p != '\0'; p++)
16355
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362
(eval $ac_link) 2>&5
16364
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365
(exit $ac_status); } && test -s conftest$ac_exeext; then
16366
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16367
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16368
# configure script would override the LC_ALL setting. Likewise for
16369
# LC_CTYPE, which is also set at the beginning of the configure script.
16370
# Test for the AIX locale name.
16371
if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16372
gt_cv_locale_ja=ja_JP
16374
# Test for the locale name with explicit encoding suffix.
16375
if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16376
gt_cv_locale_ja=ja_JP.EUC-JP
16378
# Test for the HP-UX, OSF/1, NetBSD locale name.
16379
if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16380
gt_cv_locale_ja=ja_JP.eucJP
16382
# Test for the IRIX, FreeBSD locale name.
16383
if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16384
gt_cv_locale_ja=ja_JP.EUC
16386
# Test for the Solaris 7 locale name.
16387
if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16390
# Special test for NetBSD 1.6.
16391
if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16392
gt_cv_locale_ja=ja_JP.eucJP
16395
gt_cv_locale_ja=none
16406
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16407
$as_echo "$gt_cv_locale_ja" >&6; }
16408
LOCALE_JA=$gt_cv_locale_ja
16414
{ $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16415
$as_echo_n "checking for a transitional chinese locale... " >&6; }
16416
if test "${gt_cv_locale_zh_CN+set}" = set; then
16417
$as_echo_n "(cached) " >&6
16420
cat >conftest.$ac_ext <<_ACEOF
16423
cat confdefs.h >>conftest.$ac_ext
16424
cat >>conftest.$ac_ext <<_ACEOF
16425
/* end confdefs.h. */
16427
#include <locale.h>
16428
#include <stdlib.h>
16430
#if HAVE_LANGINFO_CODESET
16431
# include <langinfo.h>
16433
#include <stdlib.h>
16434
#include <string.h>
16440
/* Check whether the given locale name is recognized by the system. */
16441
if (setlocale (LC_ALL, "") == NULL) return 1;
16442
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16443
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16444
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16445
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16446
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16447
some unit tests fail. */
16448
#if HAVE_LANGINFO_CODESET
16450
const char *cs = nl_langinfo (CODESET);
16451
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16456
/* On Cygwin, avoid locale names without encoding suffix, because the
16457
locale_charset() function relies on the encoding suffix. Note that
16458
LC_ALL is set on the command line. */
16459
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16461
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16462
This excludes the UTF-8 encoding. */
16463
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16464
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16465
for (p = buf; *p != '\0'; p++)
16466
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16468
/* Check whether a typical GB18030 multibyte sequence is recognized as a
16469
single wide character. This excludes the GB2312 and GBK encodings. */
16470
if (mblen ("\203\062\332\066", 5) != 4)
16476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477
(eval $ac_link) 2>&5
16479
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480
(exit $ac_status); } && test -s conftest$ac_exeext; then
16481
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16482
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16483
# configure script would override the LC_ALL setting. Likewise for
16484
# LC_CTYPE, which is also set at the beginning of the configure script.
16485
# Test for the locale name without encoding suffix.
16486
if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16487
gt_cv_locale_zh_CN=zh_CN
16489
# Test for the locale name with explicit encoding suffix.
16490
if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16491
gt_cv_locale_zh_CN=zh_CN.GB18030
16494
gt_cv_locale_zh_CN=none
16498
# If there was a link error, due to mblen(), the system is so old that
16499
# it certainly doesn't have a chinese locale.
16500
gt_cv_locale_zh_CN=none
16505
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16506
$as_echo "$gt_cv_locale_zh_CN" >&6; }
16507
LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16512
{ $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16513
$as_echo_n "checking for a french Unicode locale... " >&6; }
16514
if test "${gt_cv_locale_fr_utf8+set}" = set; then
16515
$as_echo_n "(cached) " >&6
16518
cat >conftest.$ac_ext <<_ACEOF
16521
cat confdefs.h >>conftest.$ac_ext
16522
cat >>conftest.$ac_ext <<_ACEOF
16523
/* end confdefs.h. */
16525
#include <locale.h>
16527
#if HAVE_LANGINFO_CODESET
16528
# include <langinfo.h>
16530
#include <stdlib.h>
16531
#include <string.h>
16535
/* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
16536
imitates locale dependent behaviour by looking at the environment
16537
variables, and all locales use the UTF-8 encoding. */
16538
#if !(defined __BEOS__ || defined __HAIKU__)
16539
/* Check whether the given locale name is recognized by the system. */
16540
if (setlocale (LC_ALL, "") == NULL) return 1;
16541
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16542
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16543
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16544
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16545
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16546
some unit tests fail. */
16547
# if HAVE_LANGINFO_CODESET
16549
const char *cs = nl_langinfo (CODESET);
16550
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16555
/* On Cygwin, avoid locale names without encoding suffix, because the
16556
locale_charset() function relies on the encoding suffix. Note that
16557
LC_ALL is set on the command line. */
16558
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16560
/* Check whether in the abbreviation of the second month, the second
16561
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16562
two bytes long, with UTF-8 encoding. */
16563
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16564
if (strftime (buf, sizeof (buf), "%b", &t) < 4
16565
|| buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16568
/* Check whether the decimal separator is a comma.
16569
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16570
are nl_langinfo(RADIXCHAR) are both ".". */
16571
if (localeconv () ->decimal_point[0] != ',') return 1;
16576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577
(eval $ac_link) 2>&5
16579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580
(exit $ac_status); } && test -s conftest$ac_exeext; then
16581
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16582
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16583
# configure script would override the LC_ALL setting. Likewise for
16584
# LC_CTYPE, which is also set at the beginning of the configure script.
16585
# Test for the usual locale name.
16586
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16587
gt_cv_locale_fr_utf8=fr_FR
16589
# Test for the locale name with explicit encoding suffix.
16590
if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16591
gt_cv_locale_fr_utf8=fr_FR.UTF-8
16593
# Test for the Solaris 7 locale name.
16594
if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16595
gt_cv_locale_fr_utf8=fr.UTF-8
16598
gt_cv_locale_fr_utf8=none
16606
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16607
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
16608
LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16620
GNULIB_RAWMEMCHR=0;
16623
GNULIB_STRCHRNUL=0;
16630
GNULIB_STRCASESTR=0;
16637
GNULIB_MBSCASECMP=0;
16638
GNULIB_MBSNCASECMP=0;
16639
GNULIB_MBSPCASECMP=0;
16640
GNULIB_MBSCASESTR=0;
16647
GNULIB_STRSIGNAL=0;
16648
GNULIB_STRVERSCMP=0;
16649
HAVE_DECL_MEMMEM=1;
16651
HAVE_DECL_MEMRCHR=1;
16656
HAVE_DECL_STRDUP=1;
16658
HAVE_DECL_STRNDUP=1;
16659
HAVE_DECL_STRNLEN=1;
16663
HAVE_DECL_STRTOK_R=1;
16664
HAVE_DECL_STRERROR=1;
16665
HAVE_DECL_STRSIGNAL=1;
16671
REPLACE_STRCASESTR=0;
16672
REPLACE_STRERROR=0;
16673
REPLACE_STRSIGNAL=0;
16682
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16683
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16684
# irrelevant for anonymous mappings.
16685
{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
16686
$as_echo_n "checking for mmap... " >&6; }
16687
if test "${ac_cv_func_mmap+set}" = set; then
16688
$as_echo_n "(cached) " >&6
16690
cat >conftest.$ac_ext <<_ACEOF
16693
cat confdefs.h >>conftest.$ac_ext
16694
cat >>conftest.$ac_ext <<_ACEOF
16695
/* end confdefs.h. */
16696
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
16697
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16698
#define mmap innocuous_mmap
16700
/* System header to define __stub macros and hopefully few prototypes,
16701
which can conflict with char mmap (); below.
16702
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703
<limits.h> exists even on freestanding compilers. */
16706
# include <limits.h>
16708
# include <assert.h>
16713
/* Override any GCC internal prototype to avoid an error.
16714
Use char because int might match the return type of a GCC
16715
builtin and then its argument prototype would still apply. */
16720
/* The GNU C library defines this for functions which it implements
16721
to always fail with ENOSYS. Some functions are actually named
16722
something starting with __ and the normal name is an alias. */
16723
#if defined __stub_mmap || defined __stub___mmap
16735
rm -f conftest.$ac_objext conftest$ac_exeext
16736
if { (ac_try="$ac_link"
16737
case "(($ac_try" in
16738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739
*) ac_try_echo=$ac_try;;
16741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16742
$as_echo "$ac_try_echo") >&5
16743
(eval "$ac_link") 2>conftest.er1
16745
grep -v '^ *+' conftest.er1 >conftest.err
16747
cat conftest.err >&5
16748
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749
(exit $ac_status); } && {
16750
test -z "$ac_c_werror_flag" ||
16751
test ! -s conftest.err
16752
} && test -s conftest$ac_exeext && {
16753
test "$cross_compiling" = yes ||
16754
$as_test_x conftest$ac_exeext
16756
ac_cv_func_mmap=yes
16758
$as_echo "$as_me: failed program was:" >&5
16759
sed 's/^/| /' conftest.$ac_ext >&5
16764
rm -rf conftest.dSYM
16765
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766
conftest$ac_exeext conftest.$ac_ext
16768
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
16769
$as_echo "$ac_cv_func_mmap" >&6; }
16770
if test "x$ac_cv_func_mmap" = x""yes; then
16777
# Try to allow MAP_ANONYMOUS.
16778
gl_have_mmap_anonymous=no
16779
if test $gl_have_mmap = yes; then
16780
{ $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
16781
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16782
cat >conftest.$ac_ext <<_ACEOF
16785
cat confdefs.h >>conftest.$ac_ext
16786
cat >>conftest.$ac_ext <<_ACEOF
16787
/* end confdefs.h. */
16789
#include <sys/mman.h>
16790
#ifdef MAP_ANONYMOUS
16791
I cant identify this map.
16795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796
$EGREP "I cant identify this map." >/dev/null 2>&1; then
16797
gl_have_mmap_anonymous=yes
16801
if test $gl_have_mmap_anonymous != yes; then
16802
cat >conftest.$ac_ext <<_ACEOF
16805
cat confdefs.h >>conftest.$ac_ext
16806
cat >>conftest.$ac_ext <<_ACEOF
16807
/* end confdefs.h. */
16809
#include <sys/mman.h>
16811
I cant identify this map.
16815
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816
$EGREP "I cant identify this map." >/dev/null 2>&1; then
16818
cat >>confdefs.h <<\_ACEOF
16819
#define MAP_ANONYMOUS MAP_ANON
16822
gl_have_mmap_anonymous=yes
16827
{ $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
16828
$as_echo "$gl_have_mmap_anonymous" >&6; }
16829
if test $gl_have_mmap_anonymous = yes; then
16831
cat >>confdefs.h <<\_ACEOF
16832
#define HAVE_MAP_ANONYMOUS 1
16861
for ac_func in memchr
16863
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16865
$as_echo_n "checking for $ac_func... " >&6; }
16866
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867
$as_echo_n "(cached) " >&6
16869
cat >conftest.$ac_ext <<_ACEOF
16872
cat confdefs.h >>conftest.$ac_ext
16873
cat >>conftest.$ac_ext <<_ACEOF
16874
/* end confdefs.h. */
16875
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16877
#define $ac_func innocuous_$ac_func
16879
/* System header to define __stub macros and hopefully few prototypes,
16880
which can conflict with char $ac_func (); below.
16881
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882
<limits.h> exists even on freestanding compilers. */
16885
# include <limits.h>
16887
# include <assert.h>
16892
/* Override any GCC internal prototype to avoid an error.
16893
Use char because int might match the return type of a GCC
16894
builtin and then its argument prototype would still apply. */
16899
/* The GNU C library defines this for functions which it implements
16900
to always fail with ENOSYS. Some functions are actually named
16901
something starting with __ and the normal name is an alias. */
16902
#if defined __stub_$ac_func || defined __stub___$ac_func
16909
return $ac_func ();
16914
rm -f conftest.$ac_objext conftest$ac_exeext
16915
if { (ac_try="$ac_link"
16916
case "(($ac_try" in
16917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918
*) ac_try_echo=$ac_try;;
16920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921
$as_echo "$ac_try_echo") >&5
16922
(eval "$ac_link") 2>conftest.er1
16924
grep -v '^ *+' conftest.er1 >conftest.err
16926
cat conftest.err >&5
16927
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928
(exit $ac_status); } && {
16929
test -z "$ac_c_werror_flag" ||
16930
test ! -s conftest.err
16931
} && test -s conftest$ac_exeext && {
16932
test "$cross_compiling" = yes ||
16933
$as_test_x conftest$ac_exeext
16935
eval "$as_ac_var=yes"
16937
$as_echo "$as_me: failed program was:" >&5
16938
sed 's/^/| /' conftest.$ac_ext >&5
16940
eval "$as_ac_var=no"
16943
rm -rf conftest.dSYM
16944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945
conftest$ac_exeext conftest.$ac_ext
16947
ac_res=`eval 'as_val=${'$as_ac_var'}
16948
$as_echo "$as_val"'`
16949
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16950
$as_echo "$ac_res" >&6; }
16951
as_val=`eval 'as_val=${'$as_ac_var'}
16952
$as_echo "$as_val"'`
16953
if test "x$as_val" = x""yes; then
16954
cat >>confdefs.h <<_ACEOF
16955
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16966
if test $ac_cv_func_memchr = no; then
16969
for ac_header in bp-sym.h
16971
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16972
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16973
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16974
$as_echo_n "checking for $ac_header... " >&6; }
16975
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976
$as_echo_n "(cached) " >&6
16978
ac_res=`eval 'as_val=${'$as_ac_Header'}
16979
$as_echo "$as_val"'`
16980
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981
$as_echo "$ac_res" >&6; }
16983
# Is the header compilable?
16984
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16985
$as_echo_n "checking $ac_header usability... " >&6; }
16986
cat >conftest.$ac_ext <<_ACEOF
16989
cat confdefs.h >>conftest.$ac_ext
16990
cat >>conftest.$ac_ext <<_ACEOF
16991
/* end confdefs.h. */
16992
$ac_includes_default
16993
#include <$ac_header>
16995
rm -f conftest.$ac_objext
16996
if { (ac_try="$ac_compile"
16997
case "(($ac_try" in
16998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999
*) ac_try_echo=$ac_try;;
17001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17002
$as_echo "$ac_try_echo") >&5
17003
(eval "$ac_compile") 2>conftest.er1
17005
grep -v '^ *+' conftest.er1 >conftest.err
17007
cat conftest.err >&5
17008
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009
(exit $ac_status); } && {
17010
test -z "$ac_c_werror_flag" ||
17011
test ! -s conftest.err
17012
} && test -s conftest.$ac_objext; then
17013
ac_header_compiler=yes
17015
$as_echo "$as_me: failed program was:" >&5
17016
sed 's/^/| /' conftest.$ac_ext >&5
17018
ac_header_compiler=no
17021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17023
$as_echo "$ac_header_compiler" >&6; }
17025
# Is the header present?
17026
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17027
$as_echo_n "checking $ac_header presence... " >&6; }
17028
cat >conftest.$ac_ext <<_ACEOF
17031
cat confdefs.h >>conftest.$ac_ext
17032
cat >>conftest.$ac_ext <<_ACEOF
17033
/* end confdefs.h. */
17034
#include <$ac_header>
17036
if { (ac_try="$ac_cpp conftest.$ac_ext"
17037
case "(($ac_try" in
17038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039
*) ac_try_echo=$ac_try;;
17041
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042
$as_echo "$ac_try_echo") >&5
17043
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045
grep -v '^ *+' conftest.er1 >conftest.err
17047
cat conftest.err >&5
17048
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049
(exit $ac_status); } >/dev/null && {
17050
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17051
test ! -s conftest.err
17053
ac_header_preproc=yes
17055
$as_echo "$as_me: failed program was:" >&5
17056
sed 's/^/| /' conftest.$ac_ext >&5
17058
ac_header_preproc=no
17061
rm -f conftest.err conftest.$ac_ext
17062
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063
$as_echo "$ac_header_preproc" >&6; }
17065
# So? What about this header?
17066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17068
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072
ac_header_preproc=yes
17075
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17078
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17079
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17082
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17083
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17088
## ------------------------------- ##
17089
## Report this to bug-wget@gnu.org ##
17090
## ------------------------------- ##
17092
) | sed "s/^/$as_me: WARNING: /" >&2
17095
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17096
$as_echo_n "checking for $ac_header... " >&6; }
17097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17098
$as_echo_n "(cached) " >&6
17100
eval "$as_ac_Header=\$ac_header_preproc"
17102
ac_res=`eval 'as_val=${'$as_ac_Header'}
17103
$as_echo "$as_val"'`
17104
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17105
$as_echo "$ac_res" >&6; }
17108
as_val=`eval 'as_val=${'$as_ac_Header'}
17109
$as_echo "$as_val"'`
17110
if test "x$as_val" = x""yes; then
17111
cat >>confdefs.h <<_ACEOF
17112
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17123
if test $ac_cv_func_memchr = yes; then
17124
# Detect platform-specific bugs in some versions of glibc:
17125
# memchr should not dereference anything with length 0
17126
# http://bugzilla.redhat.com/499689
17127
# memchr should not dereference overestimated length after a match
17128
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17129
# http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17130
# Assume that memchr works on platforms that lack mprotect.
17131
{ $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
17132
$as_echo_n "checking whether memchr works... " >&6; }
17133
if test "${gl_cv_func_memchr_works+set}" = set; then
17134
$as_echo_n "(cached) " >&6
17136
if test "$cross_compiling" = yes; then
17137
gl_cv_func_memchr_works="guessing no"
17139
cat >conftest.$ac_ext <<_ACEOF
17142
cat confdefs.h >>conftest.$ac_ext
17143
cat >>conftest.$ac_ext <<_ACEOF
17144
/* end confdefs.h. */
17146
#include <string.h>
17147
#if HAVE_SYS_MMAN_H
17148
# include <fcntl.h>
17149
# include <unistd.h>
17150
# include <sys/types.h>
17151
# include <sys/mman.h>
17153
# define MAP_FILE 0
17161
char *fence = NULL;
17162
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17163
# if HAVE_MAP_ANONYMOUS
17164
const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17166
# else /* !HAVE_MAP_ANONYMOUS */
17167
const int flags = MAP_FILE | MAP_PRIVATE;
17168
int fd = open ("/dev/zero", O_RDONLY, 0666);
17172
int pagesize = getpagesize ();
17174
(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17176
if (two_pages != (char *)(-1)
17177
&& mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17178
fence = two_pages + pagesize;
17183
if (memchr (fence, 0, 0))
17185
strcpy (fence - 9, "12345678");
17186
if (memchr (fence - 9, 0, 79) != fence - 1)
17195
rm -f conftest$ac_exeext
17196
if { (ac_try="$ac_link"
17197
case "(($ac_try" in
17198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199
*) ac_try_echo=$ac_try;;
17201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202
$as_echo "$ac_try_echo") >&5
17203
(eval "$ac_link") 2>&5
17205
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207
{ (case "(($ac_try" in
17208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209
*) ac_try_echo=$ac_try;;
17211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212
$as_echo "$ac_try_echo") >&5
17213
(eval "$ac_try") 2>&5
17215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216
(exit $ac_status); }; }; then
17217
gl_cv_func_memchr_works=yes
17219
$as_echo "$as_me: program exited with status $ac_status" >&5
17220
$as_echo "$as_me: failed program was:" >&5
17221
sed 's/^/| /' conftest.$ac_ext >&5
17223
( exit $ac_status )
17224
gl_cv_func_memchr_works=no
17226
rm -rf conftest.dSYM
17227
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17232
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
17233
$as_echo "$gl_cv_func_memchr_works" >&6; }
17234
if test "$gl_cv_func_memchr_works" != yes; then
17237
for ac_header in bp-sym.h
17239
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17240
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17242
$as_echo_n "checking for $ac_header... " >&6; }
17243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17244
$as_echo_n "(cached) " >&6
17246
ac_res=`eval 'as_val=${'$as_ac_Header'}
17247
$as_echo "$as_val"'`
17248
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17249
$as_echo "$ac_res" >&6; }
17251
# Is the header compilable?
17252
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253
$as_echo_n "checking $ac_header usability... " >&6; }
17254
cat >conftest.$ac_ext <<_ACEOF
17257
cat confdefs.h >>conftest.$ac_ext
17258
cat >>conftest.$ac_ext <<_ACEOF
17259
/* end confdefs.h. */
17260
$ac_includes_default
17261
#include <$ac_header>
17263
rm -f conftest.$ac_objext
17264
if { (ac_try="$ac_compile"
17265
case "(($ac_try" in
17266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267
*) ac_try_echo=$ac_try;;
17269
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17270
$as_echo "$ac_try_echo") >&5
17271
(eval "$ac_compile") 2>conftest.er1
17273
grep -v '^ *+' conftest.er1 >conftest.err
17275
cat conftest.err >&5
17276
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277
(exit $ac_status); } && {
17278
test -z "$ac_c_werror_flag" ||
17279
test ! -s conftest.err
17280
} && test -s conftest.$ac_objext; then
17281
ac_header_compiler=yes
17283
$as_echo "$as_me: failed program was:" >&5
17284
sed 's/^/| /' conftest.$ac_ext >&5
17286
ac_header_compiler=no
17289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291
$as_echo "$ac_header_compiler" >&6; }
17293
# Is the header present?
17294
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17295
$as_echo_n "checking $ac_header presence... " >&6; }
17296
cat >conftest.$ac_ext <<_ACEOF
17299
cat confdefs.h >>conftest.$ac_ext
17300
cat >>conftest.$ac_ext <<_ACEOF
17301
/* end confdefs.h. */
17302
#include <$ac_header>
17304
if { (ac_try="$ac_cpp conftest.$ac_ext"
17305
case "(($ac_try" in
17306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307
*) ac_try_echo=$ac_try;;
17309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17310
$as_echo "$ac_try_echo") >&5
17311
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17313
grep -v '^ *+' conftest.er1 >conftest.err
17315
cat conftest.err >&5
17316
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317
(exit $ac_status); } >/dev/null && {
17318
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319
test ! -s conftest.err
17321
ac_header_preproc=yes
17323
$as_echo "$as_me: failed program was:" >&5
17324
sed 's/^/| /' conftest.$ac_ext >&5
17326
ac_header_preproc=no
17329
rm -f conftest.err conftest.$ac_ext
17330
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331
$as_echo "$ac_header_preproc" >&6; }
17333
# So? What about this header?
17334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340
ac_header_preproc=yes
17343
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17346
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17347
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17350
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17351
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17356
## ------------------------------- ##
17357
## Report this to bug-wget@gnu.org ##
17358
## ------------------------------- ##
17360
) | sed "s/^/$as_me: WARNING: /" >&2
17363
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17364
$as_echo_n "checking for $ac_header... " >&6; }
17365
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366
$as_echo_n "(cached) " >&6
17368
eval "$as_ac_Header=\$ac_header_preproc"
17370
ac_res=`eval 'as_val=${'$as_ac_Header'}
17371
$as_echo "$as_val"'`
17372
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17373
$as_echo "$ac_res" >&6; }
17376
as_val=`eval 'as_val=${'$as_ac_Header'}
17377
$as_echo "$as_val"'`
17378
if test "x$as_val" = x""yes; then
17379
cat >>confdefs.h <<_ACEOF
17380
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17397
gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17403
gl_cv_c_multiarch=no
17404
cat >conftest.$ac_ext <<_ACEOF
17407
cat confdefs.h >>conftest.$ac_ext
17408
cat >>conftest.$ac_ext <<_ACEOF
17409
/* end confdefs.h. */
17410
#ifndef __APPLE_CC__
17411
not a universal capable compiler
17416
rm -f conftest.$ac_objext
17417
if { (ac_try="$ac_compile"
17418
case "(($ac_try" in
17419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420
*) ac_try_echo=$ac_try;;
17422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17423
$as_echo "$ac_try_echo") >&5
17424
(eval "$ac_compile") 2>conftest.er1
17426
grep -v '^ *+' conftest.er1 >conftest.err
17428
cat conftest.err >&5
17429
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430
(exit $ac_status); } && {
17431
test -z "$ac_c_werror_flag" ||
17432
test ! -s conftest.err
17433
} && test -s conftest.$ac_objext; then
17437
for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17438
if test -n "$prev"; then
17440
i?86 | x86_64 | ppc | ppc64)
17441
if test -z "$arch" || test "$arch" = "$word"; then
17444
gl_cv_c_multiarch=yes
17450
if test "x$word" = "x-arch"; then
17457
$as_echo "$as_me: failed program was:" >&5
17458
sed 's/^/| /' conftest.$ac_ext >&5
17463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464
if test $gl_cv_c_multiarch = yes; then
17466
cat >>confdefs.h <<\_ACEOF
17467
#define AA_APPLE_UNIVERSAL_BUILD 1
17470
APPLE_UNIVERSAL_BUILD=1
17472
APPLE_UNIVERSAL_BUILD=0
17477
{ $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17478
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17479
if test "${gl_cv_func_malloc_posix+set}" = set; then
17480
$as_echo_n "(cached) " >&6
17483
cat >conftest.$ac_ext <<_ACEOF
17486
cat confdefs.h >>conftest.$ac_ext
17487
cat >>conftest.$ac_ext <<_ACEOF
17488
/* end confdefs.h. */
17493
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17501
rm -f conftest.$ac_objext
17502
if { (ac_try="$ac_compile"
17503
case "(($ac_try" in
17504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505
*) ac_try_echo=$ac_try;;
17507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508
$as_echo "$ac_try_echo") >&5
17509
(eval "$ac_compile") 2>conftest.er1
17511
grep -v '^ *+' conftest.er1 >conftest.err
17513
cat conftest.err >&5
17514
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515
(exit $ac_status); } && {
17516
test -z "$ac_c_werror_flag" ||
17517
test ! -s conftest.err
17518
} && test -s conftest.$ac_objext; then
17519
gl_cv_func_malloc_posix=yes
17521
$as_echo "$as_me: failed program was:" >&5
17522
sed 's/^/| /' conftest.$ac_ext >&5
17524
gl_cv_func_malloc_posix=no
17527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
17531
$as_echo "$gl_cv_func_malloc_posix" >&6; }
17534
GNULIB_MALLOC_POSIX=0;
17535
GNULIB_REALLOC_POSIX=0;
17536
GNULIB_CALLOC_POSIX=0;
17538
GNULIB_GETLOADAVG=0;
17539
GNULIB_GETSUBOPT=0;
17552
HAVE_CALLOC_POSIX=1;
17554
HAVE_MALLOC_POSIX=1;
17557
HAVE_REALLOC_POSIX=1;
17564
HAVE_STRUCT_RANDOM_DATA=1;
17565
HAVE_SYS_LOADAVG_H=0;
17567
HAVE_DECL_GETLOADAVG=1;
17579
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17580
$as_echo_n "checking for wchar_t... " >&6; }
17581
if test "${gt_cv_c_wchar_t+set}" = set; then
17582
$as_echo_n "(cached) " >&6
17584
cat >conftest.$ac_ext <<_ACEOF
17587
cat confdefs.h >>conftest.$ac_ext
17588
cat >>conftest.$ac_ext <<_ACEOF
17589
/* end confdefs.h. */
17590
#include <stddef.h>
17591
wchar_t foo = (wchar_t)'\0';
17600
rm -f conftest.$ac_objext
17601
if { (ac_try="$ac_compile"
17602
case "(($ac_try" in
17603
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604
*) ac_try_echo=$ac_try;;
17606
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17607
$as_echo "$ac_try_echo") >&5
17608
(eval "$ac_compile") 2>conftest.er1
17610
grep -v '^ *+' conftest.er1 >conftest.err
17612
cat conftest.err >&5
17613
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614
(exit $ac_status); } && {
17615
test -z "$ac_c_werror_flag" ||
17616
test ! -s conftest.err
17617
} && test -s conftest.$ac_objext; then
17618
gt_cv_c_wchar_t=yes
17620
$as_echo "$as_me: failed program was:" >&5
17621
sed 's/^/| /' conftest.$ac_ext >&5
17626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17629
$as_echo "$gt_cv_c_wchar_t" >&6; }
17630
if test $gt_cv_c_wchar_t = yes; then
17632
cat >>confdefs.h <<\_ACEOF
17633
#define HAVE_WCHAR_T 1
17641
{ $as_echo "$as_me:$LINENO: checking for long long int" >&5
17642
$as_echo_n "checking for long long int... " >&6; }
17643
if test "${ac_cv_type_long_long_int+set}" = set; then
17644
$as_echo_n "(cached) " >&6
17646
cat >conftest.$ac_ext <<_ACEOF
17650
cat confdefs.h >>conftest.$ac_ext
17651
cat >>conftest.$ac_ext <<_ACEOF
17652
/* end confdefs.h. */
17653
/* For now, do not test the preprocessor; as of 2007 there are too many
17654
implementations with broken preprocessors. Perhaps this can
17655
be revisited in 2012. In the meantime, code should not expect
17656
#if to work with literals wider than 32 bits. */
17657
/* Test literals. */
17658
long long int ll = 9223372036854775807ll;
17659
long long int nll = -9223372036854775807LL;
17660
unsigned long long int ull = 18446744073709551615ULL;
17661
/* Test constant expressions. */
17662
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17664
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17670
/* Test availability of runtime routines for shift and division. */
17671
long long int llmax = 9223372036854775807ll;
17672
unsigned long long int ullmax = 18446744073709551615ull;
17673
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17674
| (llmax / ll) | (llmax % ll)
17675
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17676
| (ullmax / ull) | (ullmax % ull));
17682
rm -f conftest.$ac_objext conftest$ac_exeext
17683
if { (ac_try="$ac_link"
17684
case "(($ac_try" in
17685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686
*) ac_try_echo=$ac_try;;
17688
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689
$as_echo "$ac_try_echo") >&5
17690
(eval "$ac_link") 2>conftest.er1
17692
grep -v '^ *+' conftest.er1 >conftest.err
17694
cat conftest.err >&5
17695
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696
(exit $ac_status); } && {
17697
test -z "$ac_c_werror_flag" ||
17698
test ! -s conftest.err
17699
} && test -s conftest$ac_exeext && {
17700
test "$cross_compiling" = yes ||
17701
$as_test_x conftest$ac_exeext
17703
if test "$cross_compiling" = yes; then
17704
ac_cv_type_long_long_int=yes
17706
cat >conftest.$ac_ext <<_ACEOF
17709
cat confdefs.h >>conftest.$ac_ext
17710
cat >>conftest.$ac_ext <<_ACEOF
17711
/* end confdefs.h. */
17712
#include <limits.h>
17715
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
17716
# define LLONG_MAX (HALF - 1 + HALF)
17721
long long int n = 1;
17725
long long int m = n << i;
17728
if (LLONG_MAX / 2 < m)
17736
rm -f conftest$ac_exeext
17737
if { (ac_try="$ac_link"
17738
case "(($ac_try" in
17739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740
*) ac_try_echo=$ac_try;;
17742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743
$as_echo "$ac_try_echo") >&5
17744
(eval "$ac_link") 2>&5
17746
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748
{ (case "(($ac_try" in
17749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750
*) ac_try_echo=$ac_try;;
17752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753
$as_echo "$ac_try_echo") >&5
17754
(eval "$ac_try") 2>&5
17756
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757
(exit $ac_status); }; }; then
17758
ac_cv_type_long_long_int=yes
17760
$as_echo "$as_me: program exited with status $ac_status" >&5
17761
$as_echo "$as_me: failed program was:" >&5
17762
sed 's/^/| /' conftest.$ac_ext >&5
17764
( exit $ac_status )
17765
ac_cv_type_long_long_int=no
17767
rm -rf conftest.dSYM
17768
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17773
$as_echo "$as_me: failed program was:" >&5
17774
sed 's/^/| /' conftest.$ac_ext >&5
17776
ac_cv_type_long_long_int=no
17779
rm -rf conftest.dSYM
17780
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781
conftest$ac_exeext conftest.$ac_ext
17783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17784
$as_echo "$ac_cv_type_long_long_int" >&6; }
17785
if test $ac_cv_type_long_long_int = yes; then
17787
cat >>confdefs.h <<\_ACEOF
17788
#define HAVE_LONG_LONG_INT 1
17794
{ $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
17795
$as_echo_n "checking for unsigned long long int... " >&6; }
17796
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
17797
$as_echo_n "(cached) " >&6
17799
cat >conftest.$ac_ext <<_ACEOF
17803
cat confdefs.h >>conftest.$ac_ext
17804
cat >>conftest.$ac_ext <<_ACEOF
17805
/* end confdefs.h. */
17806
/* For now, do not test the preprocessor; as of 2007 there are too many
17807
implementations with broken preprocessors. Perhaps this can
17808
be revisited in 2012. In the meantime, code should not expect
17809
#if to work with literals wider than 32 bits. */
17810
/* Test literals. */
17811
long long int ll = 9223372036854775807ll;
17812
long long int nll = -9223372036854775807LL;
17813
unsigned long long int ull = 18446744073709551615ULL;
17814
/* Test constant expressions. */
17815
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17817
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17823
/* Test availability of runtime routines for shift and division. */
17824
long long int llmax = 9223372036854775807ll;
17825
unsigned long long int ullmax = 18446744073709551615ull;
17826
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17827
| (llmax / ll) | (llmax % ll)
17828
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17829
| (ullmax / ull) | (ullmax % ull));
17835
rm -f conftest.$ac_objext conftest$ac_exeext
17836
if { (ac_try="$ac_link"
17837
case "(($ac_try" in
17838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839
*) ac_try_echo=$ac_try;;
17841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842
$as_echo "$ac_try_echo") >&5
17843
(eval "$ac_link") 2>conftest.er1
17845
grep -v '^ *+' conftest.er1 >conftest.err
17847
cat conftest.err >&5
17848
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849
(exit $ac_status); } && {
17850
test -z "$ac_c_werror_flag" ||
17851
test ! -s conftest.err
17852
} && test -s conftest$ac_exeext && {
17853
test "$cross_compiling" = yes ||
17854
$as_test_x conftest$ac_exeext
17856
ac_cv_type_unsigned_long_long_int=yes
17858
$as_echo "$as_me: failed program was:" >&5
17859
sed 's/^/| /' conftest.$ac_ext >&5
17861
ac_cv_type_unsigned_long_long_int=no
17864
rm -rf conftest.dSYM
17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866
conftest$ac_exeext conftest.$ac_ext
17868
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
17869
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17870
if test $ac_cv_type_unsigned_long_long_int = yes; then
17872
cat >>confdefs.h <<\_ACEOF
17873
#define HAVE_UNSIGNED_LONG_LONG_INT 1
17888
HAVE_DECL_STRNCASECMP=1;
17897
for ac_func in strcasestr
17899
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17901
$as_echo_n "checking for $ac_func... " >&6; }
17902
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903
$as_echo_n "(cached) " >&6
17905
cat >conftest.$ac_ext <<_ACEOF
17908
cat confdefs.h >>conftest.$ac_ext
17909
cat >>conftest.$ac_ext <<_ACEOF
17910
/* end confdefs.h. */
17911
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17913
#define $ac_func innocuous_$ac_func
17915
/* System header to define __stub macros and hopefully few prototypes,
17916
which can conflict with char $ac_func (); below.
17917
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918
<limits.h> exists even on freestanding compilers. */
17921
# include <limits.h>
17923
# include <assert.h>
17928
/* Override any GCC internal prototype to avoid an error.
17929
Use char because int might match the return type of a GCC
17930
builtin and then its argument prototype would still apply. */
17935
/* The GNU C library defines this for functions which it implements
17936
to always fail with ENOSYS. Some functions are actually named
17937
something starting with __ and the normal name is an alias. */
17938
#if defined __stub_$ac_func || defined __stub___$ac_func
17945
return $ac_func ();
17950
rm -f conftest.$ac_objext conftest$ac_exeext
17951
if { (ac_try="$ac_link"
17952
case "(($ac_try" in
17953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954
*) ac_try_echo=$ac_try;;
17956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17957
$as_echo "$ac_try_echo") >&5
17958
(eval "$ac_link") 2>conftest.er1
17960
grep -v '^ *+' conftest.er1 >conftest.err
17962
cat conftest.err >&5
17963
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964
(exit $ac_status); } && {
17965
test -z "$ac_c_werror_flag" ||
17966
test ! -s conftest.err
17967
} && test -s conftest$ac_exeext && {
17968
test "$cross_compiling" = yes ||
17969
$as_test_x conftest$ac_exeext
17971
eval "$as_ac_var=yes"
17973
$as_echo "$as_me: failed program was:" >&5
17974
sed 's/^/| /' conftest.$ac_ext >&5
17976
eval "$as_ac_var=no"
17979
rm -rf conftest.dSYM
17980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17981
conftest$ac_exeext conftest.$ac_ext
17983
ac_res=`eval 'as_val=${'$as_ac_var'}
17984
$as_echo "$as_val"'`
17985
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17986
$as_echo "$ac_res" >&6; }
17987
as_val=`eval 'as_val=${'$as_ac_var'}
17988
$as_echo "$as_val"'`
17989
if test "x$as_val" = x""yes; then
17990
cat >>confdefs.h <<_ACEOF
17991
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17997
if test $ac_cv_func_strcasestr = no; then
18000
if test "$gl_cv_func_memchr_works" != yes; then
18001
REPLACE_STRCASESTR=1
18004
if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
18013
gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
18025
if test -z "$ERRNO_H"; then
18026
{ $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
18027
$as_echo_n "checking for working strerror function... " >&6; }
18028
if test "${gl_cv_func_working_strerror+set}" = set; then
18029
$as_echo_n "(cached) " >&6
18031
if test "$cross_compiling" = yes; then
18032
cat >conftest.$ac_ext <<_ACEOF
18035
cat confdefs.h >>conftest.$ac_ext
18036
cat >>conftest.$ac_ext <<_ACEOF
18037
/* end confdefs.h. */
18038
#include <string.h>
18043
return !*strerror (-2);
18048
rm -f conftest.$ac_objext
18049
if { (ac_try="$ac_compile"
18050
case "(($ac_try" in
18051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052
*) ac_try_echo=$ac_try;;
18054
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18055
$as_echo "$ac_try_echo") >&5
18056
(eval "$ac_compile") 2>conftest.er1
18058
grep -v '^ *+' conftest.er1 >conftest.err
18060
cat conftest.err >&5
18061
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062
(exit $ac_status); } && {
18063
test -z "$ac_c_werror_flag" ||
18064
test ! -s conftest.err
18065
} && test -s conftest.$ac_objext; then
18066
gl_cv_func_working_strerror=yes
18068
$as_echo "$as_me: failed program was:" >&5
18069
sed 's/^/| /' conftest.$ac_ext >&5
18071
gl_cv_func_working_strerror=no
18074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077
cat >conftest.$ac_ext <<_ACEOF
18080
cat confdefs.h >>conftest.$ac_ext
18081
cat >>conftest.$ac_ext <<_ACEOF
18082
/* end confdefs.h. */
18083
#include <string.h>
18088
return !*strerror (-2);
18093
rm -f conftest$ac_exeext
18094
if { (ac_try="$ac_link"
18095
case "(($ac_try" in
18096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097
*) ac_try_echo=$ac_try;;
18099
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100
$as_echo "$ac_try_echo") >&5
18101
(eval "$ac_link") 2>&5
18103
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18105
{ (case "(($ac_try" in
18106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107
*) ac_try_echo=$ac_try;;
18109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110
$as_echo "$ac_try_echo") >&5
18111
(eval "$ac_try") 2>&5
18113
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114
(exit $ac_status); }; }; then
18115
gl_cv_func_working_strerror=yes
18117
$as_echo "$as_me: program exited with status $ac_status" >&5
18118
$as_echo "$as_me: failed program was:" >&5
18119
sed 's/^/| /' conftest.$ac_ext >&5
18121
( exit $ac_status )
18122
gl_cv_func_working_strerror=no
18124
rm -rf conftest.dSYM
18125
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18131
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
18132
$as_echo "$gl_cv_func_working_strerror" >&6; }
18133
if test $gl_cv_func_working_strerror = no; then
18139
if test $REPLACE_STRERROR = 1; then
18141
{ $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18142
$as_echo_n "checking whether strerror is declared... " >&6; }
18143
if test "${ac_cv_have_decl_strerror+set}" = set; then
18144
$as_echo_n "(cached) " >&6
18146
cat >conftest.$ac_ext <<_ACEOF
18149
cat confdefs.h >>conftest.$ac_ext
18150
cat >>conftest.$ac_ext <<_ACEOF
18151
/* end confdefs.h. */
18152
$ac_includes_default
18164
rm -f conftest.$ac_objext
18165
if { (ac_try="$ac_compile"
18166
case "(($ac_try" in
18167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168
*) ac_try_echo=$ac_try;;
18170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171
$as_echo "$ac_try_echo") >&5
18172
(eval "$ac_compile") 2>conftest.er1
18174
grep -v '^ *+' conftest.er1 >conftest.err
18176
cat conftest.err >&5
18177
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178
(exit $ac_status); } && {
18179
test -z "$ac_c_werror_flag" ||
18180
test ! -s conftest.err
18181
} && test -s conftest.$ac_objext; then
18182
ac_cv_have_decl_strerror=yes
18184
$as_echo "$as_me: failed program was:" >&5
18185
sed 's/^/| /' conftest.$ac_ext >&5
18187
ac_cv_have_decl_strerror=no
18190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18193
$as_echo "$ac_cv_have_decl_strerror" >&6; }
18194
if test "x$ac_cv_have_decl_strerror" = x""yes; then
18196
cat >>confdefs.h <<_ACEOF
18197
#define HAVE_DECL_STRERROR 1
18202
cat >>confdefs.h <<_ACEOF
18203
#define HAVE_DECL_STRERROR 0
18216
if test $ac_cv_header_sys_socket_h != yes; then
18218
for ac_header in winsock2.h
18220
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18223
$as_echo_n "checking for $ac_header... " >&6; }
18224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18225
$as_echo_n "(cached) " >&6
18227
ac_res=`eval 'as_val=${'$as_ac_Header'}
18228
$as_echo "$as_val"'`
18229
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18230
$as_echo "$ac_res" >&6; }
18232
# Is the header compilable?
18233
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18234
$as_echo_n "checking $ac_header usability... " >&6; }
18235
cat >conftest.$ac_ext <<_ACEOF
18238
cat confdefs.h >>conftest.$ac_ext
18239
cat >>conftest.$ac_ext <<_ACEOF
18240
/* end confdefs.h. */
18241
$ac_includes_default
18242
#include <$ac_header>
18244
rm -f conftest.$ac_objext
18245
if { (ac_try="$ac_compile"
18246
case "(($ac_try" in
18247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248
*) ac_try_echo=$ac_try;;
18250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251
$as_echo "$ac_try_echo") >&5
18252
(eval "$ac_compile") 2>conftest.er1
18254
grep -v '^ *+' conftest.er1 >conftest.err
18256
cat conftest.err >&5
18257
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258
(exit $ac_status); } && {
18259
test -z "$ac_c_werror_flag" ||
18260
test ! -s conftest.err
18261
} && test -s conftest.$ac_objext; then
18262
ac_header_compiler=yes
18264
$as_echo "$as_me: failed program was:" >&5
18265
sed 's/^/| /' conftest.$ac_ext >&5
18267
ac_header_compiler=no
18270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272
$as_echo "$ac_header_compiler" >&6; }
18274
# Is the header present?
18275
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18276
$as_echo_n "checking $ac_header presence... " >&6; }
18277
cat >conftest.$ac_ext <<_ACEOF
18280
cat confdefs.h >>conftest.$ac_ext
18281
cat >>conftest.$ac_ext <<_ACEOF
18282
/* end confdefs.h. */
18283
#include <$ac_header>
18285
if { (ac_try="$ac_cpp conftest.$ac_ext"
18286
case "(($ac_try" in
18287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288
*) ac_try_echo=$ac_try;;
18290
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291
$as_echo "$ac_try_echo") >&5
18292
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18294
grep -v '^ *+' conftest.er1 >conftest.err
18296
cat conftest.err >&5
18297
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298
(exit $ac_status); } >/dev/null && {
18299
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18300
test ! -s conftest.err
18302
ac_header_preproc=yes
18304
$as_echo "$as_me: failed program was:" >&5
18305
sed 's/^/| /' conftest.$ac_ext >&5
18307
ac_header_preproc=no
18310
rm -f conftest.err conftest.$ac_ext
18311
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18312
$as_echo "$ac_header_preproc" >&6; }
18314
# So? What about this header?
18315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18317
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18318
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18319
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18320
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18321
ac_header_preproc=yes
18324
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18325
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18326
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18327
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18328
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18329
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18330
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18331
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18332
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18333
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18334
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18335
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18337
## ------------------------------- ##
18338
## Report this to bug-wget@gnu.org ##
18339
## ------------------------------- ##
18341
) | sed "s/^/$as_me: WARNING: /" >&2
18344
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18345
$as_echo_n "checking for $ac_header... " >&6; }
18346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347
$as_echo_n "(cached) " >&6
18349
eval "$as_ac_Header=\$ac_header_preproc"
18351
ac_res=`eval 'as_val=${'$as_ac_Header'}
18352
$as_echo "$as_val"'`
18353
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18354
$as_echo "$ac_res" >&6; }
18357
as_val=`eval 'as_val=${'$as_ac_Header'}
18358
$as_echo "$as_val"'`
18359
if test "x$as_val" = x""yes; then
18360
cat >>confdefs.h <<_ACEOF
18361
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18372
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18373
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18374
if test "${ac_cv_c_restrict+set}" = set; then
18375
$as_echo_n "(cached) " >&6
18377
ac_cv_c_restrict=no
18378
# The order here caters to the fact that C++ does not require restrict.
18379
for ac_kw in __restrict __restrict__ _Restrict restrict; do
18380
cat >conftest.$ac_ext <<_ACEOF
18383
cat confdefs.h >>conftest.$ac_ext
18384
cat >>conftest.$ac_ext <<_ACEOF
18385
/* end confdefs.h. */
18386
typedef int * int_ptr;
18387
int foo (int_ptr $ac_kw ip) {
18394
int * $ac_kw t = s;
18401
rm -f conftest.$ac_objext
18402
if { (ac_try="$ac_compile"
18403
case "(($ac_try" in
18404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405
*) ac_try_echo=$ac_try;;
18407
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408
$as_echo "$ac_try_echo") >&5
18409
(eval "$ac_compile") 2>conftest.er1
18411
grep -v '^ *+' conftest.er1 >conftest.err
18413
cat conftest.err >&5
18414
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415
(exit $ac_status); } && {
18416
test -z "$ac_c_werror_flag" ||
18417
test ! -s conftest.err
18418
} && test -s conftest.$ac_objext; then
18419
ac_cv_c_restrict=$ac_kw
18421
$as_echo "$as_me: failed program was:" >&5
18422
sed 's/^/| /' conftest.$ac_ext >&5
18427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428
test "$ac_cv_c_restrict" != no && break
18432
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
18433
$as_echo "$ac_cv_c_restrict" >&6; }
18436
case $ac_cv_c_restrict in
18438
no) cat >>confdefs.h <<\_ACEOF
18439
#define restrict /**/
18442
*) cat >>confdefs.h <<_ACEOF
18443
#define restrict $ac_cv_c_restrict
18464
if test $gl_cv_have_include_next = yes; then
18465
gl_cv_next_string_h='<'string.h'>'
18467
{ $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
18468
$as_echo_n "checking absolute name of <string.h>... " >&6; }
18469
if test "${gl_cv_next_string_h+set}" = set; then
18470
$as_echo_n "(cached) " >&6
18473
if test $ac_cv_header_string_h = yes; then
18474
cat >conftest.$ac_ext <<_ACEOF
18477
cat confdefs.h >>conftest.$ac_ext
18478
cat >>conftest.$ac_ext <<_ACEOF
18479
/* end confdefs.h. */
18480
#include <string.h>
18484
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18485
*) gl_absname_cpp="$ac_cpp" ;;
18487
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18488
sed -n '\#/string.h#{
18489
s#.*"\(.*/string.h\)".*#\1#
18495
gl_cv_next_string_h='<'string.h'>'
18499
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
18500
$as_echo "$gl_cv_next_string_h" >&6; }
18502
NEXT_STRING_H=$gl_cv_next_string_h
18504
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18505
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18506
gl_next_as_first_directive='<'string.h'>'
18508
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18509
gl_next_as_first_directive=$gl_cv_next_string_h
18511
NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18531
if test $gl_cv_have_include_next = yes; then
18532
gl_cv_next_strings_h='<'strings.h'>'
18534
{ $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
18535
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
18536
if test "${gl_cv_next_strings_h+set}" = set; then
18537
$as_echo_n "(cached) " >&6
18540
if test $ac_cv_header_strings_h = yes; then
18541
cat >conftest.$ac_ext <<_ACEOF
18544
cat confdefs.h >>conftest.$ac_ext
18545
cat >>conftest.$ac_ext <<_ACEOF
18546
/* end confdefs.h. */
18547
#include <strings.h>
18551
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18552
*) gl_absname_cpp="$ac_cpp" ;;
18554
gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555
sed -n '\#/strings.h#{
18556
s#.*"\(.*/strings.h\)".*#\1#
18562
gl_cv_next_strings_h='<'strings.h'>'
18566
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
18567
$as_echo "$gl_cv_next_strings_h" >&6; }
18569
NEXT_STRINGS_H=$gl_cv_next_strings_h
18571
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18572
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18573
gl_next_as_first_directive='<'strings.h'>'
18575
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18576
gl_next_as_first_directive=$gl_cv_next_strings_h
18578
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18586
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18587
$as_echo_n "checking for wint_t... " >&6; }
18588
if test "${gt_cv_c_wint_t+set}" = set; then
18589
$as_echo_n "(cached) " >&6
18591
cat >conftest.$ac_ext <<_ACEOF
18594
cat confdefs.h >>conftest.$ac_ext
18595
cat >>conftest.$ac_ext <<_ACEOF
18596
/* end confdefs.h. */
18598
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18600
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18601
before <wchar.h>. */
18602
#include <stddef.h>
18606
wint_t foo = (wchar_t)'\0';
18615
rm -f conftest.$ac_objext
18616
if { (ac_try="$ac_compile"
18617
case "(($ac_try" in
18618
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619
*) ac_try_echo=$ac_try;;
18621
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622
$as_echo "$ac_try_echo") >&5
18623
(eval "$ac_compile") 2>conftest.er1
18625
grep -v '^ *+' conftest.er1 >conftest.err
18627
cat conftest.err >&5
18628
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629
(exit $ac_status); } && {
18630
test -z "$ac_c_werror_flag" ||
18631
test ! -s conftest.err
18632
} && test -s conftest.$ac_objext; then
18635
$as_echo "$as_me: failed program was:" >&5
18636
sed 's/^/| /' conftest.$ac_ext >&5
18641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18644
$as_echo "$gt_cv_c_wint_t" >&6; }
18645
if test $gt_cv_c_wint_t = yes; then
18647
cat >>confdefs.h <<\_ACEOF
18648
#define HAVE_WINT_T 1
18659
GL_COND_LIBTOOL_TRUE=
18660
GL_COND_LIBTOOL_FALSE='#'
18662
GL_COND_LIBTOOL_TRUE='#'
18663
GL_COND_LIBTOOL_FALSE=
18666
gl_cond_libtool=false
18678
gl_source_base='lib'
18684
if test $ac_cv_func_alloca_works = no; then
18688
# Define an additional variable used in the Makefile substitution.
18689
if test $ac_cv_working_alloca_h = yes; then
18690
{ $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18691
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18692
if test "${gl_cv_rpl_alloca+set}" = set; then
18693
$as_echo_n "(cached) " >&6
18696
cat >conftest.$ac_ext <<_ACEOF
18699
cat confdefs.h >>conftest.$ac_ext
18700
cat >>conftest.$ac_ext <<_ACEOF
18701
/* end confdefs.h. */
18703
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
18708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18709
$EGREP "Need own alloca" >/dev/null 2>&1; then
18710
gl_cv_rpl_alloca=yes
18712
gl_cv_rpl_alloca=no
18718
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18719
$as_echo "$gl_cv_rpl_alloca" >&6; }
18720
if test $gl_cv_rpl_alloca = yes; then
18722
cat >>confdefs.h <<\_ACEOF
18723
#define HAVE_ALLOCA 1
18749
{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18750
$as_echo_n "checking for error_at_line... " >&6; }
18751
if test "${ac_cv_lib_error_at_line+set}" = set; then
18752
$as_echo_n "(cached) " >&6
18754
cat >conftest.$ac_ext <<_ACEOF
18757
cat confdefs.h >>conftest.$ac_ext
18758
cat >>conftest.$ac_ext <<_ACEOF
18759
/* end confdefs.h. */
18764
error_at_line (0, 0, "", 0, "an error occurred");
18769
rm -f conftest.$ac_objext conftest$ac_exeext
18770
if { (ac_try="$ac_link"
18771
case "(($ac_try" in
18772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773
*) ac_try_echo=$ac_try;;
18775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776
$as_echo "$ac_try_echo") >&5
18777
(eval "$ac_link") 2>conftest.er1
18779
grep -v '^ *+' conftest.er1 >conftest.err
18781
cat conftest.err >&5
18782
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783
(exit $ac_status); } && {
18784
test -z "$ac_c_werror_flag" ||
18785
test ! -s conftest.err
18786
} && test -s conftest$ac_exeext && {
18787
test "$cross_compiling" = yes ||
18788
$as_test_x conftest$ac_exeext
18790
ac_cv_lib_error_at_line=yes
18792
$as_echo "$as_me: failed program was:" >&5
18793
sed 's/^/| /' conftest.$ac_ext >&5
18795
ac_cv_lib_error_at_line=no
18798
rm -rf conftest.dSYM
18799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800
conftest$ac_exeext conftest.$ac_ext
18802
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18803
$as_echo "$ac_cv_lib_error_at_line" >&6; }
18804
if test $ac_cv_lib_error_at_line = no; then
18813
gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18824
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18828
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18839
gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18851
{ $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18852
$as_echo_n "checking for fseeko... " >&6; }
18853
if test "${gl_cv_func_fseeko+set}" = set; then
18854
$as_echo_n "(cached) " >&6
18857
cat >conftest.$ac_ext <<_ACEOF
18860
cat confdefs.h >>conftest.$ac_ext
18861
cat >>conftest.$ac_ext <<_ACEOF
18862
/* end confdefs.h. */
18867
fseeko (stdin, 0, 0);
18872
rm -f conftest.$ac_objext conftest$ac_exeext
18873
if { (ac_try="$ac_link"
18874
case "(($ac_try" in
18875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876
*) ac_try_echo=$ac_try;;
18878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18879
$as_echo "$ac_try_echo") >&5
18880
(eval "$ac_link") 2>conftest.er1
18882
grep -v '^ *+' conftest.er1 >conftest.err
18884
cat conftest.err >&5
18885
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886
(exit $ac_status); } && {
18887
test -z "$ac_c_werror_flag" ||
18888
test ! -s conftest.err
18889
} && test -s conftest$ac_exeext && {
18890
test "$cross_compiling" = yes ||
18891
$as_test_x conftest$ac_exeext
18893
gl_cv_func_fseeko=yes
18895
$as_echo "$as_me: failed program was:" >&5
18896
sed 's/^/| /' conftest.$ac_ext >&5
18898
gl_cv_func_fseeko=no
18901
rm -rf conftest.dSYM
18902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903
conftest$ac_exeext conftest.$ac_ext
18906
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18907
$as_echo "$gl_cv_func_fseeko" >&6; }
18908
if test $gl_cv_func_fseeko = no; then
18919
gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18924
elif test $gl_cv_var_stdin_large_offset = no; then
18934
gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18959
for ac_func in getdelim
18961
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18962
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18963
$as_echo_n "checking for $ac_func... " >&6; }
18964
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18965
$as_echo_n "(cached) " >&6
18967
cat >conftest.$ac_ext <<_ACEOF
18970
cat confdefs.h >>conftest.$ac_ext
18971
cat >>conftest.$ac_ext <<_ACEOF
18972
/* end confdefs.h. */
18973
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18974
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18975
#define $ac_func innocuous_$ac_func
18977
/* System header to define __stub macros and hopefully few prototypes,
18978
which can conflict with char $ac_func (); below.
18979
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980
<limits.h> exists even on freestanding compilers. */
18983
# include <limits.h>
18985
# include <assert.h>
18990
/* Override any GCC internal prototype to avoid an error.
18991
Use char because int might match the return type of a GCC
18992
builtin and then its argument prototype would still apply. */
18997
/* The GNU C library defines this for functions which it implements
18998
to always fail with ENOSYS. Some functions are actually named
18999
something starting with __ and the normal name is an alias. */
19000
#if defined __stub_$ac_func || defined __stub___$ac_func
19007
return $ac_func ();
19012
rm -f conftest.$ac_objext conftest$ac_exeext
19013
if { (ac_try="$ac_link"
19014
case "(($ac_try" in
19015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016
*) ac_try_echo=$ac_try;;
19018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019
$as_echo "$ac_try_echo") >&5
19020
(eval "$ac_link") 2>conftest.er1
19022
grep -v '^ *+' conftest.er1 >conftest.err
19024
cat conftest.err >&5
19025
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026
(exit $ac_status); } && {
19027
test -z "$ac_c_werror_flag" ||
19028
test ! -s conftest.err
19029
} && test -s conftest$ac_exeext && {
19030
test "$cross_compiling" = yes ||
19031
$as_test_x conftest$ac_exeext
19033
eval "$as_ac_var=yes"
19035
$as_echo "$as_me: failed program was:" >&5
19036
sed 's/^/| /' conftest.$ac_ext >&5
19038
eval "$as_ac_var=no"
19041
rm -rf conftest.dSYM
19042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043
conftest$ac_exeext conftest.$ac_ext
19045
ac_res=`eval 'as_val=${'$as_ac_var'}
19046
$as_echo "$as_val"'`
19047
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19048
$as_echo "$ac_res" >&6; }
19049
as_val=`eval 'as_val=${'$as_ac_var'}
19050
$as_echo "$as_val"'`
19051
if test "x$as_val" = x""yes; then
19052
cat >>confdefs.h <<_ACEOF
19053
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19069
if test $ac_cv_func_getdelim = no; then
19073
for ac_func in flockfile funlockfile
19075
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19076
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19077
$as_echo_n "checking for $ac_func... " >&6; }
19078
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19079
$as_echo_n "(cached) " >&6
19081
cat >conftest.$ac_ext <<_ACEOF
19084
cat confdefs.h >>conftest.$ac_ext
19085
cat >>conftest.$ac_ext <<_ACEOF
19086
/* end confdefs.h. */
19087
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19088
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19089
#define $ac_func innocuous_$ac_func
19091
/* System header to define __stub macros and hopefully few prototypes,
19092
which can conflict with char $ac_func (); below.
19093
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19094
<limits.h> exists even on freestanding compilers. */
19097
# include <limits.h>
19099
# include <assert.h>
19104
/* Override any GCC internal prototype to avoid an error.
19105
Use char because int might match the return type of a GCC
19106
builtin and then its argument prototype would still apply. */
19111
/* The GNU C library defines this for functions which it implements
19112
to always fail with ENOSYS. Some functions are actually named
19113
something starting with __ and the normal name is an alias. */
19114
#if defined __stub_$ac_func || defined __stub___$ac_func
19121
return $ac_func ();
19126
rm -f conftest.$ac_objext conftest$ac_exeext
19127
if { (ac_try="$ac_link"
19128
case "(($ac_try" in
19129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130
*) ac_try_echo=$ac_try;;
19132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19133
$as_echo "$ac_try_echo") >&5
19134
(eval "$ac_link") 2>conftest.er1
19136
grep -v '^ *+' conftest.er1 >conftest.err
19138
cat conftest.err >&5
19139
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140
(exit $ac_status); } && {
19141
test -z "$ac_c_werror_flag" ||
19142
test ! -s conftest.err
19143
} && test -s conftest$ac_exeext && {
19144
test "$cross_compiling" = yes ||
19145
$as_test_x conftest$ac_exeext
19147
eval "$as_ac_var=yes"
19149
$as_echo "$as_me: failed program was:" >&5
19150
sed 's/^/| /' conftest.$ac_ext >&5
19152
eval "$as_ac_var=no"
19155
rm -rf conftest.dSYM
19156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19157
conftest$ac_exeext conftest.$ac_ext
19159
ac_res=`eval 'as_val=${'$as_ac_var'}
19160
$as_echo "$as_val"'`
19161
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19162
$as_echo "$ac_res" >&6; }
19163
as_val=`eval 'as_val=${'$as_ac_var'}
19164
$as_echo "$as_val"'`
19165
if test "x$as_val" = x""yes; then
19166
cat >>confdefs.h <<_ACEOF
19167
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19173
{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19174
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19175
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19176
$as_echo_n "(cached) " >&6
19178
cat >conftest.$ac_ext <<_ACEOF
19181
cat confdefs.h >>conftest.$ac_ext
19182
cat >>conftest.$ac_ext <<_ACEOF
19183
/* end confdefs.h. */
19184
$ac_includes_default
19188
#ifndef getc_unlocked
19189
(void) getc_unlocked;
19196
rm -f conftest.$ac_objext
19197
if { (ac_try="$ac_compile"
19198
case "(($ac_try" in
19199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200
*) ac_try_echo=$ac_try;;
19202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19203
$as_echo "$ac_try_echo") >&5
19204
(eval "$ac_compile") 2>conftest.er1
19206
grep -v '^ *+' conftest.er1 >conftest.err
19208
cat conftest.err >&5
19209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210
(exit $ac_status); } && {
19211
test -z "$ac_c_werror_flag" ||
19212
test ! -s conftest.err
19213
} && test -s conftest.$ac_objext; then
19214
ac_cv_have_decl_getc_unlocked=yes
19216
$as_echo "$as_me: failed program was:" >&5
19217
sed 's/^/| /' conftest.$ac_ext >&5
19219
ac_cv_have_decl_getc_unlocked=no
19222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19225
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19226
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19228
cat >>confdefs.h <<_ACEOF
19229
#define HAVE_DECL_GETC_UNLOCKED 1
19234
cat >>confdefs.h <<_ACEOF
19235
#define HAVE_DECL_GETC_UNLOCKED 0
19245
if test $ac_cv_have_decl_getdelim = no; then
19246
HAVE_DECL_GETDELIM=0
19263
gl_getline_needs_run_time_check=no
19264
{ $as_echo "$as_me:$LINENO: checking for getline" >&5
19265
$as_echo_n "checking for getline... " >&6; }
19266
if test "${ac_cv_func_getline+set}" = set; then
19267
$as_echo_n "(cached) " >&6
19269
cat >conftest.$ac_ext <<_ACEOF
19272
cat confdefs.h >>conftest.$ac_ext
19273
cat >>conftest.$ac_ext <<_ACEOF
19274
/* end confdefs.h. */
19275
/* Define getline to an innocuous variant, in case <limits.h> declares getline.
19276
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19277
#define getline innocuous_getline
19279
/* System header to define __stub macros and hopefully few prototypes,
19280
which can conflict with char getline (); below.
19281
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19282
<limits.h> exists even on freestanding compilers. */
19285
# include <limits.h>
19287
# include <assert.h>
19292
/* Override any GCC internal prototype to avoid an error.
19293
Use char because int might match the return type of a GCC
19294
builtin and then its argument prototype would still apply. */
19299
/* The GNU C library defines this for functions which it implements
19300
to always fail with ENOSYS. Some functions are actually named
19301
something starting with __ and the normal name is an alias. */
19302
#if defined __stub_getline || defined __stub___getline
19314
rm -f conftest.$ac_objext conftest$ac_exeext
19315
if { (ac_try="$ac_link"
19316
case "(($ac_try" in
19317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318
*) ac_try_echo=$ac_try;;
19320
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321
$as_echo "$ac_try_echo") >&5
19322
(eval "$ac_link") 2>conftest.er1
19324
grep -v '^ *+' conftest.er1 >conftest.err
19326
cat conftest.err >&5
19327
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328
(exit $ac_status); } && {
19329
test -z "$ac_c_werror_flag" ||
19330
test ! -s conftest.err
19331
} && test -s conftest$ac_exeext && {
19332
test "$cross_compiling" = yes ||
19333
$as_test_x conftest$ac_exeext
19335
ac_cv_func_getline=yes
19337
$as_echo "$as_me: failed program was:" >&5
19338
sed 's/^/| /' conftest.$ac_ext >&5
19340
ac_cv_func_getline=no
19343
rm -rf conftest.dSYM
19344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345
conftest$ac_exeext conftest.$ac_ext
19347
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
19348
$as_echo "$ac_cv_func_getline" >&6; }
19349
if test "x$ac_cv_func_getline" = x""yes; then
19350
gl_getline_needs_run_time_check=yes
19352
am_cv_func_working_getline=no
19355
if test $gl_getline_needs_run_time_check = yes; then
19356
{ $as_echo "$as_me:$LINENO: checking for working getline function" >&5
19357
$as_echo_n "checking for working getline function... " >&6; }
19358
if test "${am_cv_func_working_getline+set}" = set; then
19359
$as_echo_n "(cached) " >&6
19361
echo fooN |tr -d '\012'|tr N '\012' > conftest.data
19362
if test "$cross_compiling" = yes; then
19363
cat >conftest.$ac_ext <<_ACEOF
19366
cat confdefs.h >>conftest.$ac_ext
19367
cat >>conftest.$ac_ext <<_ACEOF
19368
/* end confdefs.h. */
19370
#include <features.h>
19371
#ifdef __GNU_LIBRARY__
19372
#if (__GLIBC__ >= 2)
19378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
19380
am_cv_func_working_getline=yes
19382
am_cv_func_working_getline=no
19388
cat >conftest.$ac_ext <<_ACEOF
19391
cat confdefs.h >>conftest.$ac_ext
19392
cat >>conftest.$ac_ext <<_ACEOF
19393
/* end confdefs.h. */
19395
# include <stdio.h>
19396
# include <stdlib.h>
19397
# include <string.h>
19399
{ /* Based on a test program from Karl Heuer. */
19403
FILE *in = fopen ("./conftest.data", "r");
19406
len = getline (&line, &siz, in);
19407
exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
19411
rm -f conftest$ac_exeext
19412
if { (ac_try="$ac_link"
19413
case "(($ac_try" in
19414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415
*) ac_try_echo=$ac_try;;
19417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418
$as_echo "$ac_try_echo") >&5
19419
(eval "$ac_link") 2>&5
19421
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423
{ (case "(($ac_try" in
19424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425
*) ac_try_echo=$ac_try;;
19427
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428
$as_echo "$ac_try_echo") >&5
19429
(eval "$ac_try") 2>&5
19431
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432
(exit $ac_status); }; }; then
19433
am_cv_func_working_getline=yes
19435
$as_echo "$as_me: program exited with status $ac_status" >&5
19436
$as_echo "$as_me: failed program was:" >&5
19437
sed 's/^/| /' conftest.$ac_ext >&5
19439
( exit $ac_status )
19440
am_cv_func_working_getline=no
19442
rm -rf conftest.dSYM
19443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19448
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
19449
$as_echo "$am_cv_func_working_getline" >&6; }
19452
if test $ac_cv_have_decl_getline = no; then
19453
HAVE_DECL_GETLINE=0
19456
if test $am_cv_func_working_getline = no; then
19466
gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
19484
for ac_func in getdelim
19486
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488
$as_echo_n "checking for $ac_func... " >&6; }
19489
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490
$as_echo_n "(cached) " >&6
19492
cat >conftest.$ac_ext <<_ACEOF
19495
cat confdefs.h >>conftest.$ac_ext
19496
cat >>conftest.$ac_ext <<_ACEOF
19497
/* end confdefs.h. */
19498
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19500
#define $ac_func innocuous_$ac_func
19502
/* System header to define __stub macros and hopefully few prototypes,
19503
which can conflict with char $ac_func (); below.
19504
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505
<limits.h> exists even on freestanding compilers. */
19508
# include <limits.h>
19510
# include <assert.h>
19515
/* Override any GCC internal prototype to avoid an error.
19516
Use char because int might match the return type of a GCC
19517
builtin and then its argument prototype would still apply. */
19522
/* The GNU C library defines this for functions which it implements
19523
to always fail with ENOSYS. Some functions are actually named
19524
something starting with __ and the normal name is an alias. */
19525
#if defined __stub_$ac_func || defined __stub___$ac_func
19532
return $ac_func ();
19537
rm -f conftest.$ac_objext conftest$ac_exeext
19538
if { (ac_try="$ac_link"
19539
case "(($ac_try" in
19540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541
*) ac_try_echo=$ac_try;;
19543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544
$as_echo "$ac_try_echo") >&5
19545
(eval "$ac_link") 2>conftest.er1
19547
grep -v '^ *+' conftest.er1 >conftest.err
19549
cat conftest.err >&5
19550
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551
(exit $ac_status); } && {
19552
test -z "$ac_c_werror_flag" ||
19553
test ! -s conftest.err
19554
} && test -s conftest$ac_exeext && {
19555
test "$cross_compiling" = yes ||
19556
$as_test_x conftest$ac_exeext
19558
eval "$as_ac_var=yes"
19560
$as_echo "$as_me: failed program was:" >&5
19561
sed 's/^/| /' conftest.$ac_ext >&5
19563
eval "$as_ac_var=no"
19566
rm -rf conftest.dSYM
19567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568
conftest$ac_exeext conftest.$ac_ext
19570
ac_res=`eval 'as_val=${'$as_ac_var'}
19571
$as_echo "$as_val"'`
19572
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573
$as_echo "$ac_res" >&6; }
19574
as_val=`eval 'as_val=${'$as_ac_var'}
19575
$as_echo "$as_val"'`
19576
if test "x$as_val" = x""yes; then
19577
cat >>confdefs.h <<_ACEOF
19578
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19583
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19594
if test $ac_cv_func_getdelim = no; then
19598
for ac_func in flockfile funlockfile
19600
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19602
$as_echo_n "checking for $ac_func... " >&6; }
19603
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604
$as_echo_n "(cached) " >&6
19606
cat >conftest.$ac_ext <<_ACEOF
19609
cat confdefs.h >>conftest.$ac_ext
19610
cat >>conftest.$ac_ext <<_ACEOF
19611
/* end confdefs.h. */
19612
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614
#define $ac_func innocuous_$ac_func
19616
/* System header to define __stub macros and hopefully few prototypes,
19617
which can conflict with char $ac_func (); below.
19618
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619
<limits.h> exists even on freestanding compilers. */
19622
# include <limits.h>
19624
# include <assert.h>
19629
/* Override any GCC internal prototype to avoid an error.
19630
Use char because int might match the return type of a GCC
19631
builtin and then its argument prototype would still apply. */
19636
/* The GNU C library defines this for functions which it implements
19637
to always fail with ENOSYS. Some functions are actually named
19638
something starting with __ and the normal name is an alias. */
19639
#if defined __stub_$ac_func || defined __stub___$ac_func
19646
return $ac_func ();
19651
rm -f conftest.$ac_objext conftest$ac_exeext
19652
if { (ac_try="$ac_link"
19653
case "(($ac_try" in
19654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655
*) ac_try_echo=$ac_try;;
19657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658
$as_echo "$ac_try_echo") >&5
19659
(eval "$ac_link") 2>conftest.er1
19661
grep -v '^ *+' conftest.er1 >conftest.err
19663
cat conftest.err >&5
19664
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665
(exit $ac_status); } && {
19666
test -z "$ac_c_werror_flag" ||
19667
test ! -s conftest.err
19668
} && test -s conftest$ac_exeext && {
19669
test "$cross_compiling" = yes ||
19670
$as_test_x conftest$ac_exeext
19672
eval "$as_ac_var=yes"
19674
$as_echo "$as_me: failed program was:" >&5
19675
sed 's/^/| /' conftest.$ac_ext >&5
19677
eval "$as_ac_var=no"
19680
rm -rf conftest.dSYM
19681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682
conftest$ac_exeext conftest.$ac_ext
19684
ac_res=`eval 'as_val=${'$as_ac_var'}
19685
$as_echo "$as_val"'`
19686
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19687
$as_echo "$ac_res" >&6; }
19688
as_val=`eval 'as_val=${'$as_ac_var'}
19689
$as_echo "$as_val"'`
19690
if test "x$as_val" = x""yes; then
19691
cat >>confdefs.h <<_ACEOF
19692
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19698
{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19699
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19700
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19701
$as_echo_n "(cached) " >&6
19703
cat >conftest.$ac_ext <<_ACEOF
19706
cat confdefs.h >>conftest.$ac_ext
19707
cat >>conftest.$ac_ext <<_ACEOF
19708
/* end confdefs.h. */
19709
$ac_includes_default
19713
#ifndef getc_unlocked
19714
(void) getc_unlocked;
19721
rm -f conftest.$ac_objext
19722
if { (ac_try="$ac_compile"
19723
case "(($ac_try" in
19724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725
*) ac_try_echo=$ac_try;;
19727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728
$as_echo "$ac_try_echo") >&5
19729
(eval "$ac_compile") 2>conftest.er1
19731
grep -v '^ *+' conftest.er1 >conftest.err
19733
cat conftest.err >&5
19734
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735
(exit $ac_status); } && {
19736
test -z "$ac_c_werror_flag" ||
19737
test ! -s conftest.err
19738
} && test -s conftest.$ac_objext; then
19739
ac_cv_have_decl_getc_unlocked=yes
19741
$as_echo "$as_me: failed program was:" >&5
19742
sed 's/^/| /' conftest.$ac_ext >&5
19744
ac_cv_have_decl_getc_unlocked=no
19747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19750
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19751
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19753
cat >>confdefs.h <<_ACEOF
19754
#define HAVE_DECL_GETC_UNLOCKED 1
19759
cat >>confdefs.h <<_ACEOF
19760
#define HAVE_DECL_GETC_UNLOCKED 0
19770
if test $ac_cv_have_decl_getdelim = no; then
19771
HAVE_DECL_GETDELIM=0
19788
cat >>confdefs.h <<\_ACEOF
19789
#define GNULIB_GETOPT_GNU 1
19798
if test -n "$gl_replace_getopt"; then
19804
cat >>confdefs.h <<\_ACEOF
19805
#define __GETOPT_PREFIX rpl_
19810
GNULIB_UNISTD_H_GETOPT=1
19819
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19829
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19847
for ac_func in getpagesize
19849
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19850
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19851
$as_echo_n "checking for $ac_func... " >&6; }
19852
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19853
$as_echo_n "(cached) " >&6
19855
cat >conftest.$ac_ext <<_ACEOF
19858
cat confdefs.h >>conftest.$ac_ext
19859
cat >>conftest.$ac_ext <<_ACEOF
19860
/* end confdefs.h. */
19861
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19862
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863
#define $ac_func innocuous_$ac_func
19865
/* System header to define __stub macros and hopefully few prototypes,
19866
which can conflict with char $ac_func (); below.
19867
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868
<limits.h> exists even on freestanding compilers. */
19871
# include <limits.h>
19873
# include <assert.h>
19878
/* Override any GCC internal prototype to avoid an error.
19879
Use char because int might match the return type of a GCC
19880
builtin and then its argument prototype would still apply. */
19885
/* The GNU C library defines this for functions which it implements
19886
to always fail with ENOSYS. Some functions are actually named
19887
something starting with __ and the normal name is an alias. */
19888
#if defined __stub_$ac_func || defined __stub___$ac_func
19895
return $ac_func ();
19900
rm -f conftest.$ac_objext conftest$ac_exeext
19901
if { (ac_try="$ac_link"
19902
case "(($ac_try" in
19903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904
*) ac_try_echo=$ac_try;;
19906
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19907
$as_echo "$ac_try_echo") >&5
19908
(eval "$ac_link") 2>conftest.er1
19910
grep -v '^ *+' conftest.er1 >conftest.err
19912
cat conftest.err >&5
19913
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914
(exit $ac_status); } && {
19915
test -z "$ac_c_werror_flag" ||
19916
test ! -s conftest.err
19917
} && test -s conftest$ac_exeext && {
19918
test "$cross_compiling" = yes ||
19919
$as_test_x conftest$ac_exeext
19921
eval "$as_ac_var=yes"
19923
$as_echo "$as_me: failed program was:" >&5
19924
sed 's/^/| /' conftest.$ac_ext >&5
19926
eval "$as_ac_var=no"
19929
rm -rf conftest.dSYM
19930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931
conftest$ac_exeext conftest.$ac_ext
19933
ac_res=`eval 'as_val=${'$as_ac_var'}
19934
$as_echo "$as_val"'`
19935
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19936
$as_echo "$ac_res" >&6; }
19937
as_val=`eval 'as_val=${'$as_ac_var'}
19938
$as_echo "$as_val"'`
19939
if test "x$as_val" = x""yes; then
19940
cat >>confdefs.h <<_ACEOF
19941
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19947
if test $ac_cv_func_getpagesize = no; then
19950
for ac_header in OS.h
19952
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19955
$as_echo_n "checking for $ac_header... " >&6; }
19956
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957
$as_echo_n "(cached) " >&6
19959
ac_res=`eval 'as_val=${'$as_ac_Header'}
19960
$as_echo "$as_val"'`
19961
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19962
$as_echo "$ac_res" >&6; }
19964
# Is the header compilable?
19965
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966
$as_echo_n "checking $ac_header usability... " >&6; }
19967
cat >conftest.$ac_ext <<_ACEOF
19970
cat confdefs.h >>conftest.$ac_ext
19971
cat >>conftest.$ac_ext <<_ACEOF
19972
/* end confdefs.h. */
19973
$ac_includes_default
19974
#include <$ac_header>
19976
rm -f conftest.$ac_objext
19977
if { (ac_try="$ac_compile"
19978
case "(($ac_try" in
19979
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980
*) ac_try_echo=$ac_try;;
19982
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983
$as_echo "$ac_try_echo") >&5
19984
(eval "$ac_compile") 2>conftest.er1
19986
grep -v '^ *+' conftest.er1 >conftest.err
19988
cat conftest.err >&5
19989
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990
(exit $ac_status); } && {
19991
test -z "$ac_c_werror_flag" ||
19992
test ! -s conftest.err
19993
} && test -s conftest.$ac_objext; then
19994
ac_header_compiler=yes
19996
$as_echo "$as_me: failed program was:" >&5
19997
sed 's/^/| /' conftest.$ac_ext >&5
19999
ac_header_compiler=no
20002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004
$as_echo "$ac_header_compiler" >&6; }
20006
# Is the header present?
20007
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008
$as_echo_n "checking $ac_header presence... " >&6; }
20009
cat >conftest.$ac_ext <<_ACEOF
20012
cat confdefs.h >>conftest.$ac_ext
20013
cat >>conftest.$ac_ext <<_ACEOF
20014
/* end confdefs.h. */
20015
#include <$ac_header>
20017
if { (ac_try="$ac_cpp conftest.$ac_ext"
20018
case "(($ac_try" in
20019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020
*) ac_try_echo=$ac_try;;
20022
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023
$as_echo "$ac_try_echo") >&5
20024
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026
grep -v '^ *+' conftest.er1 >conftest.err
20028
cat conftest.err >&5
20029
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030
(exit $ac_status); } >/dev/null && {
20031
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032
test ! -s conftest.err
20034
ac_header_preproc=yes
20036
$as_echo "$as_me: failed program was:" >&5
20037
sed 's/^/| /' conftest.$ac_ext >&5
20039
ac_header_preproc=no
20042
rm -f conftest.err conftest.$ac_ext
20043
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044
$as_echo "$ac_header_preproc" >&6; }
20046
# So? What about this header?
20047
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053
ac_header_preproc=yes
20056
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20059
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20060
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20063
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20064
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069
## ------------------------------- ##
20070
## Report this to bug-wget@gnu.org ##
20071
## ------------------------------- ##
20073
) | sed "s/^/$as_me: WARNING: /" >&2
20076
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20077
$as_echo_n "checking for $ac_header... " >&6; }
20078
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079
$as_echo_n "(cached) " >&6
20081
eval "$as_ac_Header=\$ac_header_preproc"
20083
ac_res=`eval 'as_val=${'$as_ac_Header'}
20084
$as_echo "$as_val"'`
20085
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20086
$as_echo "$ac_res" >&6; }
20089
as_val=`eval 'as_val=${'$as_ac_Header'}
20090
$as_echo "$as_val"'`
20091
if test "x$as_val" = x""yes; then
20092
cat >>confdefs.h <<_ACEOF
20093
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20100
if test $ac_cv_header_OS_h = yes; then
20104
for ac_header in sys/param.h
20106
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20108
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20109
$as_echo_n "checking for $ac_header... " >&6; }
20110
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111
$as_echo_n "(cached) " >&6
20113
ac_res=`eval 'as_val=${'$as_ac_Header'}
20114
$as_echo "$as_val"'`
20115
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20116
$as_echo "$ac_res" >&6; }
20118
# Is the header compilable?
20119
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120
$as_echo_n "checking $ac_header usability... " >&6; }
20121
cat >conftest.$ac_ext <<_ACEOF
20124
cat confdefs.h >>conftest.$ac_ext
20125
cat >>conftest.$ac_ext <<_ACEOF
20126
/* end confdefs.h. */
20127
$ac_includes_default
20128
#include <$ac_header>
20130
rm -f conftest.$ac_objext
20131
if { (ac_try="$ac_compile"
20132
case "(($ac_try" in
20133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134
*) ac_try_echo=$ac_try;;
20136
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137
$as_echo "$ac_try_echo") >&5
20138
(eval "$ac_compile") 2>conftest.er1
20140
grep -v '^ *+' conftest.er1 >conftest.err
20142
cat conftest.err >&5
20143
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144
(exit $ac_status); } && {
20145
test -z "$ac_c_werror_flag" ||
20146
test ! -s conftest.err
20147
} && test -s conftest.$ac_objext; then
20148
ac_header_compiler=yes
20150
$as_echo "$as_me: failed program was:" >&5
20151
sed 's/^/| /' conftest.$ac_ext >&5
20153
ac_header_compiler=no
20156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158
$as_echo "$ac_header_compiler" >&6; }
20160
# Is the header present?
20161
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162
$as_echo_n "checking $ac_header presence... " >&6; }
20163
cat >conftest.$ac_ext <<_ACEOF
20166
cat confdefs.h >>conftest.$ac_ext
20167
cat >>conftest.$ac_ext <<_ACEOF
20168
/* end confdefs.h. */
20169
#include <$ac_header>
20171
if { (ac_try="$ac_cpp conftest.$ac_ext"
20172
case "(($ac_try" in
20173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174
*) ac_try_echo=$ac_try;;
20176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177
$as_echo "$ac_try_echo") >&5
20178
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20180
grep -v '^ *+' conftest.er1 >conftest.err
20182
cat conftest.err >&5
20183
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184
(exit $ac_status); } >/dev/null && {
20185
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186
test ! -s conftest.err
20188
ac_header_preproc=yes
20190
$as_echo "$as_me: failed program was:" >&5
20191
sed 's/^/| /' conftest.$ac_ext >&5
20193
ac_header_preproc=no
20196
rm -f conftest.err conftest.$ac_ext
20197
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198
$as_echo "$ac_header_preproc" >&6; }
20200
# So? What about this header?
20201
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207
ac_header_preproc=yes
20210
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20213
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20214
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20217
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20218
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20223
## ------------------------------- ##
20224
## Report this to bug-wget@gnu.org ##
20225
## ------------------------------- ##
20227
) | sed "s/^/$as_me: WARNING: /" >&2
20230
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20231
$as_echo_n "checking for $ac_header... " >&6; }
20232
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233
$as_echo_n "(cached) " >&6
20235
eval "$as_ac_Header=\$ac_header_preproc"
20237
ac_res=`eval 'as_val=${'$as_ac_Header'}
20238
$as_echo "$as_val"'`
20239
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20240
$as_echo "$ac_res" >&6; }
20243
as_val=`eval 'as_val=${'$as_ac_Header'}
20244
$as_echo "$as_val"'`
20245
if test "x$as_val" = x""yes; then
20246
cat >>confdefs.h <<_ACEOF
20247
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254
if test $ac_cv_header_sys_param_h = yes; then
20260
REPLACE_GETPAGESIZE=1
20269
gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
20276
GNULIB_GETPAGESIZE=1
20291
gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
20312
{ $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
20313
$as_echo_n "checking whether __fsetlocking is declared... " >&6; }
20314
if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
20315
$as_echo_n "(cached) " >&6
20317
cat >conftest.$ac_ext <<_ACEOF
20320
cat confdefs.h >>conftest.$ac_ext
20321
cat >>conftest.$ac_ext <<_ACEOF
20322
/* end confdefs.h. */
20324
#if HAVE_STDIO_EXT_H
20325
#include <stdio_ext.h>
20331
#ifndef __fsetlocking
20332
(void) __fsetlocking;
20339
rm -f conftest.$ac_objext
20340
if { (ac_try="$ac_compile"
20341
case "(($ac_try" in
20342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343
*) ac_try_echo=$ac_try;;
20345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20346
$as_echo "$ac_try_echo") >&5
20347
(eval "$ac_compile") 2>conftest.er1
20349
grep -v '^ *+' conftest.er1 >conftest.err
20351
cat conftest.err >&5
20352
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353
(exit $ac_status); } && {
20354
test -z "$ac_c_werror_flag" ||
20355
test ! -s conftest.err
20356
} && test -s conftest.$ac_objext; then
20357
ac_cv_have_decl___fsetlocking=yes
20359
$as_echo "$as_me: failed program was:" >&5
20360
sed 's/^/| /' conftest.$ac_ext >&5
20362
ac_cv_have_decl___fsetlocking=no
20365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
20368
$as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
20369
if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then
20371
cat >>confdefs.h <<_ACEOF
20372
#define HAVE_DECL___FSETLOCKING 1
20377
cat >>confdefs.h <<_ACEOF
20378
#define HAVE_DECL___FSETLOCKING 0
20408
cat >>confdefs.h <<\_ACEOF
20409
#define getpass gnu_getpass
20415
# Autoconf 2.61a.99 and earlier don't support linking a file only
20416
# in VPATH builds. But since GNUmakefile is for maintainer use
20417
# only, it does not matter if we skip the link with older autoconf.
20418
# Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
20419
# builds, so use a shell variable to bypass this.
20420
GNUmakefile=GNUmakefile
20421
ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
20425
{ $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
20426
$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20427
if test "${gl_cv_c_inline_effective+set}" = set; then
20428
$as_echo_n "(cached) " >&6
20430
if test $ac_cv_c_inline = no; then
20431
gl_cv_c_inline_effective=no
20433
cat >conftest.$ac_ext <<_ACEOF
20436
cat confdefs.h >>conftest.$ac_ext
20437
cat >>conftest.$ac_ext <<_ACEOF
20438
/* end confdefs.h. */
20443
#ifdef __NO_INLINE__
20444
#error "inline is not effective"
20450
rm -f conftest.$ac_objext
20451
if { (ac_try="$ac_compile"
20452
case "(($ac_try" in
20453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454
*) ac_try_echo=$ac_try;;
20456
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20457
$as_echo "$ac_try_echo") >&5
20458
(eval "$ac_compile") 2>conftest.er1
20460
grep -v '^ *+' conftest.er1 >conftest.err
20462
cat conftest.err >&5
20463
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464
(exit $ac_status); } && {
20465
test -z "$ac_c_werror_flag" ||
20466
test ! -s conftest.err
20467
} && test -s conftest.$ac_objext; then
20468
gl_cv_c_inline_effective=yes
20470
$as_echo "$as_me: failed program was:" >&5
20471
sed 's/^/| /' conftest.$ac_ext >&5
20473
gl_cv_c_inline_effective=no
20476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480
{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
20481
$as_echo "$gl_cv_c_inline_effective" >&6; }
20482
if test $gl_cv_c_inline_effective = yes; then
20484
cat >>confdefs.h <<\_ACEOF
20485
#define HAVE_INLINE 1
20500
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
20505
{ $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
20506
$as_echo_n "checking whether lseek detects pipes... " >&6; }
20507
if test "${gl_cv_func_lseek_pipe+set}" = set; then
20508
$as_echo_n "(cached) " >&6
20510
if test $cross_compiling = no; then
20511
cat >conftest.$ac_ext <<_ACEOF
20513
#include <sys/types.h> /* for off_t */
20514
#include <stdio.h> /* for SEEK_CUR */
20515
#include <unistd.h>
20518
/* Exit with success only if stdin is seekable. */
20519
return lseek (0, (off_t)0, SEEK_CUR) < 0;
20522
rm -f conftest.$ac_objext conftest$ac_exeext
20523
if { (ac_try="$ac_link"
20524
case "(($ac_try" in
20525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526
*) ac_try_echo=$ac_try;;
20528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529
$as_echo "$ac_try_echo") >&5
20530
(eval "$ac_link") 2>conftest.er1
20532
grep -v '^ *+' conftest.er1 >conftest.err
20534
cat conftest.err >&5
20535
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
(exit $ac_status); } && {
20537
test -z "$ac_c_werror_flag" ||
20538
test ! -s conftest.err
20539
} && test -s conftest$ac_exeext && {
20540
test "$cross_compiling" = yes ||
20541
$as_test_x conftest$ac_exeext
20543
if test -s conftest$ac_exeext \
20544
&& ./conftest$ac_exeext < conftest.$ac_ext \
20545
&& { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
20546
gl_cv_func_lseek_pipe=yes
20548
gl_cv_func_lseek_pipe=no
20551
$as_echo "$as_me: failed program was:" >&5
20552
sed 's/^/| /' conftest.$ac_ext >&5
20554
gl_cv_func_lseek_pipe=no
20557
rm -rf conftest.dSYM
20558
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559
conftest$ac_exeext conftest.$ac_ext
20561
cat >conftest.$ac_ext <<_ACEOF
20563
#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
20564
/* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
20568
rm -f conftest.$ac_objext
20569
if { (ac_try="$ac_compile"
20570
case "(($ac_try" in
20571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572
*) ac_try_echo=$ac_try;;
20574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575
$as_echo "$ac_try_echo") >&5
20576
(eval "$ac_compile") 2>conftest.er1
20578
grep -v '^ *+' conftest.er1 >conftest.err
20580
cat conftest.err >&5
20581
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582
(exit $ac_status); } && {
20583
test -z "$ac_c_werror_flag" ||
20584
test ! -s conftest.err
20585
} && test -s conftest.$ac_objext; then
20586
gl_cv_func_lseek_pipe=yes
20588
$as_echo "$as_me: failed program was:" >&5
20589
sed 's/^/| /' conftest.$ac_ext >&5
20591
gl_cv_func_lseek_pipe=no
20594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
20598
$as_echo "$gl_cv_func_lseek_pipe" >&6; }
20599
if test $gl_cv_func_lseek_pipe = no; then
20609
gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
20614
cat >>confdefs.h <<\_ACEOF
20615
#define LSEEK_PIPE_BROKEN 1
20645
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20649
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
20650
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20651
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
20652
$as_echo_n "(cached) " >&6
20656
# Guess no on AIX and OSF/1.
20657
osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20658
# Guess yes otherwise.
20659
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20661
if test $LOCALE_JA != none; then
20662
if test "$cross_compiling" = yes; then
20665
cat >conftest.$ac_ext <<_ACEOF
20668
cat confdefs.h >>conftest.$ac_ext
20669
cat >>conftest.$ac_ext <<_ACEOF
20670
/* end confdefs.h. */
20672
#include <locale.h>
20673
#include <string.h>
20677
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20679
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20683
memset (&state, '\0', sizeof (mbstate_t));
20684
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20685
if (mbsinit (&state))
20691
rm -f conftest$ac_exeext
20692
if { (ac_try="$ac_link"
20693
case "(($ac_try" in
20694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695
*) ac_try_echo=$ac_try;;
20697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698
$as_echo "$ac_try_echo") >&5
20699
(eval "$ac_link") 2>&5
20701
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703
{ (case "(($ac_try" in
20704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705
*) ac_try_echo=$ac_try;;
20707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20708
$as_echo "$ac_try_echo") >&5
20709
(eval "$ac_try") 2>&5
20711
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712
(exit $ac_status); }; }; then
20713
gl_cv_func_mbrtowc_incomplete_state=yes
20715
$as_echo "$as_me: program exited with status $ac_status" >&5
20716
$as_echo "$as_me: failed program was:" >&5
20717
sed 's/^/| /' conftest.$ac_ext >&5
20719
( exit $ac_status )
20720
gl_cv_func_mbrtowc_incomplete_state=no
20722
rm -rf conftest.dSYM
20723
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20730
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20731
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20736
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
20737
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20738
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
20739
$as_echo_n "(cached) " >&6
20743
# Guess no on Solaris 8.
20744
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20745
# Guess yes otherwise.
20746
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20748
if test $LOCALE_ZH_CN != none; then
20749
if test "$cross_compiling" = yes; then
20752
cat >conftest.$ac_ext <<_ACEOF
20755
cat confdefs.h >>conftest.$ac_ext
20756
cat >>conftest.$ac_ext <<_ACEOF
20757
/* end confdefs.h. */
20759
#include <locale.h>
20760
#include <stdlib.h>
20761
#include <string.h>
20765
/* This fails on Solaris 8:
20766
mbrtowc returns 2, and sets wc to 0x00F0.
20767
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20768
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20770
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20774
memset (&state, '\0', sizeof (mbstate_t));
20775
if (mbrtowc (&wc, input + 3, 6, &state) != 4
20776
&& mbtowc (&wc, input + 3, 6) == 4)
20782
rm -f conftest$ac_exeext
20783
if { (ac_try="$ac_link"
20784
case "(($ac_try" in
20785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786
*) ac_try_echo=$ac_try;;
20788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789
$as_echo "$ac_try_echo") >&5
20790
(eval "$ac_link") 2>&5
20792
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20794
{ (case "(($ac_try" in
20795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796
*) ac_try_echo=$ac_try;;
20798
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799
$as_echo "$ac_try_echo") >&5
20800
(eval "$ac_try") 2>&5
20802
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803
(exit $ac_status); }; }; then
20804
gl_cv_func_mbrtowc_sanitycheck=yes
20806
$as_echo "$as_me: program exited with status $ac_status" >&5
20807
$as_echo "$as_me: failed program was:" >&5
20808
sed 's/^/| /' conftest.$ac_ext >&5
20810
( exit $ac_status )
20811
gl_cv_func_mbrtowc_sanitycheck=no
20813
rm -rf conftest.dSYM
20814
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20822
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20824
REPLACE_MBSTATE_T=0
20825
case "$gl_cv_func_mbrtowc_incomplete_state" in
20827
*) REPLACE_MBSTATE_T=1 ;;
20829
case "$gl_cv_func_mbrtowc_sanitycheck" in
20831
*) REPLACE_MBSTATE_T=1 ;;
20834
REPLACE_MBSTATE_T=1
20836
if test $REPLACE_MBSTATE_T = 1; then
20843
if test $REPLACE_MBSTATE_T = 1; then
20852
if test $ac_cv_func_mbrtowc = no; then
20855
if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
20859
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
20860
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20861
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
20862
$as_echo_n "(cached) " >&6
20866
# Guess no on OSF/1.
20867
osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
20868
# Guess yes otherwise.
20869
*) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
20871
if test $LOCALE_FR_UTF8 != none; then
20872
if test "$cross_compiling" = yes; then
20875
cat >conftest.$ac_ext <<_ACEOF
20878
cat confdefs.h >>conftest.$ac_ext
20879
cat >>conftest.$ac_ext <<_ACEOF
20880
/* end confdefs.h. */
20882
#include <locale.h>
20883
#include <string.h>
20887
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20893
memset (&state, '\0', sizeof (mbstate_t));
20894
wc = (wchar_t) 0xBADFACE;
20895
mbrtowc (&wc, NULL, 5, &state);
20896
/* Check that wc was not modified. */
20897
if (wc != (wchar_t) 0xBADFACE)
20903
rm -f conftest$ac_exeext
20904
if { (ac_try="$ac_link"
20905
case "(($ac_try" in
20906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907
*) ac_try_echo=$ac_try;;
20909
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20910
$as_echo "$ac_try_echo") >&5
20911
(eval "$ac_link") 2>&5
20913
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20915
{ (case "(($ac_try" in
20916
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917
*) ac_try_echo=$ac_try;;
20919
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920
$as_echo "$ac_try_echo") >&5
20921
(eval "$ac_try") 2>&5
20923
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924
(exit $ac_status); }; }; then
20925
gl_cv_func_mbrtowc_null_arg=yes
20927
$as_echo "$as_me: program exited with status $ac_status" >&5
20928
$as_echo "$as_me: failed program was:" >&5
20929
sed 's/^/| /' conftest.$ac_ext >&5
20931
( exit $ac_status )
20932
gl_cv_func_mbrtowc_null_arg=no
20934
rm -rf conftest.dSYM
20935
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20942
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
20943
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
20949
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
20950
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20951
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
20952
$as_echo_n "(cached) " >&6
20956
# Guess no on HP-UX and Solaris.
20957
hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20958
# Guess yes otherwise.
20959
*) gl_cv_func_mbrtowc_retval="guessing yes" ;;
20961
if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
20962
if test "$cross_compiling" = yes; then
20965
cat >conftest.$ac_ext <<_ACEOF
20968
cat confdefs.h >>conftest.$ac_ext
20969
cat >>conftest.$ac_ext <<_ACEOF
20970
/* end confdefs.h. */
20972
#include <locale.h>
20973
#include <string.h>
20977
/* This fails on Solaris. */
20978
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20980
char input[] = "B\303\274\303\237er"; /* "Büßer" */
20984
memset (&state, '\0', sizeof (mbstate_t));
20985
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20988
if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20992
/* This fails on HP-UX 11.11. */
20993
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20995
char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20999
memset (&state, '\0', sizeof (mbstate_t));
21000
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21003
if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21010
rm -f conftest$ac_exeext
21011
if { (ac_try="$ac_link"
21012
case "(($ac_try" in
21013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014
*) ac_try_echo=$ac_try;;
21016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017
$as_echo "$ac_try_echo") >&5
21018
(eval "$ac_link") 2>&5
21020
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022
{ (case "(($ac_try" in
21023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024
*) ac_try_echo=$ac_try;;
21026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027
$as_echo "$ac_try_echo") >&5
21028
(eval "$ac_try") 2>&5
21030
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031
(exit $ac_status); }; }; then
21032
gl_cv_func_mbrtowc_retval=yes
21034
$as_echo "$as_me: program exited with status $ac_status" >&5
21035
$as_echo "$as_me: failed program was:" >&5
21036
sed 's/^/| /' conftest.$ac_ext >&5
21038
( exit $ac_status )
21039
gl_cv_func_mbrtowc_retval=no
21041
rm -rf conftest.dSYM
21042
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21049
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
21050
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
21055
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
21056
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
21057
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
21058
$as_echo_n "(cached) " >&6
21062
# Guess no on Solaris 8 and 9.
21063
solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
21064
# Guess yes otherwise.
21065
*) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
21067
if test $LOCALE_ZH_CN != none; then
21068
if test "$cross_compiling" = yes; then
21071
cat >conftest.$ac_ext <<_ACEOF
21074
cat confdefs.h >>conftest.$ac_ext
21075
cat >>conftest.$ac_ext <<_ACEOF
21076
/* end confdefs.h. */
21078
#include <locale.h>
21079
#include <string.h>
21083
/* This fails on Solaris 8 and 9. */
21084
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21089
memset (&state, '\0', sizeof (mbstate_t));
21090
if (mbrtowc (&wc, "", 1, &state) != 0)
21096
rm -f conftest$ac_exeext
21097
if { (ac_try="$ac_link"
21098
case "(($ac_try" in
21099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100
*) ac_try_echo=$ac_try;;
21102
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103
$as_echo "$ac_try_echo") >&5
21104
(eval "$ac_link") 2>&5
21106
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108
{ (case "(($ac_try" in
21109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110
*) ac_try_echo=$ac_try;;
21112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113
$as_echo "$ac_try_echo") >&5
21114
(eval "$ac_try") 2>&5
21116
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); }; }; then
21118
gl_cv_func_mbrtowc_nul_retval=yes
21120
$as_echo "$as_me: program exited with status $ac_status" >&5
21121
$as_echo "$as_me: failed program was:" >&5
21122
sed 's/^/| /' conftest.$ac_ext >&5
21124
( exit $ac_status )
21125
gl_cv_func_mbrtowc_nul_retval=no
21127
rm -rf conftest.dSYM
21128
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21135
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
21136
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
21138
case "$gl_cv_func_mbrtowc_null_arg" in
21141
cat >>confdefs.h <<\_ACEOF
21142
#define MBRTOWC_NULL_ARG_BUG 1
21148
case "$gl_cv_func_mbrtowc_retval" in
21151
cat >>confdefs.h <<\_ACEOF
21152
#define MBRTOWC_RETVAL_BUG 1
21158
case "$gl_cv_func_mbrtowc_nul_retval" in
21161
cat >>confdefs.h <<\_ACEOF
21162
#define MBRTOWC_NUL_RETVAL_BUG 1
21169
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
21182
gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
21213
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21217
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
21218
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21219
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
21220
$as_echo_n "(cached) " >&6
21224
# Guess no on AIX and OSF/1.
21225
osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21226
# Guess yes otherwise.
21227
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21229
if test $LOCALE_JA != none; then
21230
if test "$cross_compiling" = yes; then
21233
cat >conftest.$ac_ext <<_ACEOF
21236
cat confdefs.h >>conftest.$ac_ext
21237
cat >>conftest.$ac_ext <<_ACEOF
21238
/* end confdefs.h. */
21240
#include <locale.h>
21241
#include <string.h>
21245
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21247
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21251
memset (&state, '\0', sizeof (mbstate_t));
21252
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21253
if (mbsinit (&state))
21259
rm -f conftest$ac_exeext
21260
if { (ac_try="$ac_link"
21261
case "(($ac_try" in
21262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263
*) ac_try_echo=$ac_try;;
21265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21266
$as_echo "$ac_try_echo") >&5
21267
(eval "$ac_link") 2>&5
21269
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271
{ (case "(($ac_try" in
21272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273
*) ac_try_echo=$ac_try;;
21275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276
$as_echo "$ac_try_echo") >&5
21277
(eval "$ac_try") 2>&5
21279
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280
(exit $ac_status); }; }; then
21281
gl_cv_func_mbrtowc_incomplete_state=yes
21283
$as_echo "$as_me: program exited with status $ac_status" >&5
21284
$as_echo "$as_me: failed program was:" >&5
21285
sed 's/^/| /' conftest.$ac_ext >&5
21287
( exit $ac_status )
21288
gl_cv_func_mbrtowc_incomplete_state=no
21290
rm -rf conftest.dSYM
21291
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21298
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21299
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21304
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
21305
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21306
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
21307
$as_echo_n "(cached) " >&6
21311
# Guess no on Solaris 8.
21312
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21313
# Guess yes otherwise.
21314
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21316
if test $LOCALE_ZH_CN != none; then
21317
if test "$cross_compiling" = yes; then
21320
cat >conftest.$ac_ext <<_ACEOF
21323
cat confdefs.h >>conftest.$ac_ext
21324
cat >>conftest.$ac_ext <<_ACEOF
21325
/* end confdefs.h. */
21327
#include <locale.h>
21328
#include <stdlib.h>
21329
#include <string.h>
21333
/* This fails on Solaris 8:
21334
mbrtowc returns 2, and sets wc to 0x00F0.
21335
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21336
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21338
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21342
memset (&state, '\0', sizeof (mbstate_t));
21343
if (mbrtowc (&wc, input + 3, 6, &state) != 4
21344
&& mbtowc (&wc, input + 3, 6) == 4)
21350
rm -f conftest$ac_exeext
21351
if { (ac_try="$ac_link"
21352
case "(($ac_try" in
21353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354
*) ac_try_echo=$ac_try;;
21356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21357
$as_echo "$ac_try_echo") >&5
21358
(eval "$ac_link") 2>&5
21360
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362
{ (case "(($ac_try" in
21363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364
*) ac_try_echo=$ac_try;;
21366
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21367
$as_echo "$ac_try_echo") >&5
21368
(eval "$ac_try") 2>&5
21370
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371
(exit $ac_status); }; }; then
21372
gl_cv_func_mbrtowc_sanitycheck=yes
21374
$as_echo "$as_me: program exited with status $ac_status" >&5
21375
$as_echo "$as_me: failed program was:" >&5
21376
sed 's/^/| /' conftest.$ac_ext >&5
21378
( exit $ac_status )
21379
gl_cv_func_mbrtowc_sanitycheck=no
21381
rm -rf conftest.dSYM
21382
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21389
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21390
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21392
REPLACE_MBSTATE_T=0
21393
case "$gl_cv_func_mbrtowc_incomplete_state" in
21395
*) REPLACE_MBSTATE_T=1 ;;
21397
case "$gl_cv_func_mbrtowc_sanitycheck" in
21399
*) REPLACE_MBSTATE_T=1 ;;
21402
REPLACE_MBSTATE_T=1
21404
if test $REPLACE_MBSTATE_T = 1; then
21411
if test $REPLACE_MBSTATE_T = 1; then
21420
if test $ac_cv_func_mbsinit = no; then
21423
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
21436
gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
21462
gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
21475
gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
21480
if test $gl_cv_func_malloc_posix = yes; then
21481
HAVE_REALLOC_POSIX=1
21483
cat >>confdefs.h <<\_ACEOF
21484
#define HAVE_REALLOC_POSIX 1
21496
gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
21498
HAVE_REALLOC_POSIX=0
21504
GNULIB_REALLOC_POSIX=1
21509
# Define two additional variables used in the Makefile substitution.
21511
if test "$ac_cv_header_stdbool_h" = yes; then
21514
STDBOOL_H='stdbool.h'
21518
if test "$ac_cv_type__Bool" = yes; then
21528
if test $gt_cv_c_wchar_t = no; then
21532
{ $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
21533
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21534
if test "${gl_cv_decl_null_works+set}" = set; then
21535
$as_echo_n "(cached) " >&6
21537
cat >conftest.$ac_ext <<_ACEOF
21540
cat confdefs.h >>conftest.$ac_ext
21541
cat >>conftest.$ac_ext <<_ACEOF
21542
/* end confdefs.h. */
21543
#include <stddef.h>
21544
int test[2 * (sizeof NULL == sizeof (void *)) -1];
21554
rm -f conftest.$ac_objext
21555
if { (ac_try="$ac_compile"
21556
case "(($ac_try" in
21557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558
*) ac_try_echo=$ac_try;;
21560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561
$as_echo "$ac_try_echo") >&5
21562
(eval "$ac_compile") 2>conftest.er1
21564
grep -v '^ *+' conftest.er1 >conftest.err
21566
cat conftest.err >&5
21567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568
(exit $ac_status); } && {
21569
test -z "$ac_c_werror_flag" ||
21570
test ! -s conftest.err
21571
} && test -s conftest.$ac_objext; then
21572
gl_cv_decl_null_works=yes
21574
$as_echo "$as_me: failed program was:" >&5
21575
sed 's/^/| /' conftest.$ac_ext >&5
21577
gl_cv_decl_null_works=no
21580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582
{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
21583
$as_echo "$gl_cv_decl_null_works" >&6; }
21584
if test $gl_cv_decl_null_works = no; then
21588
if test -n "$STDDEF_H"; then
21600
if test $gl_cv_have_include_next = yes; then
21601
gl_cv_next_stddef_h='<'stddef.h'>'
21603
{ $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
21604
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21605
if test "${gl_cv_next_stddef_h+set}" = set; then
21606
$as_echo_n "(cached) " >&6
21609
if test $ac_cv_header_stddef_h = yes; then
21610
cat >conftest.$ac_ext <<_ACEOF
21613
cat confdefs.h >>conftest.$ac_ext
21614
cat >>conftest.$ac_ext <<_ACEOF
21615
/* end confdefs.h. */
21616
#include <stddef.h>
21620
aix*) gl_absname_cpp="$ac_cpp -C" ;;
21621
*) gl_absname_cpp="$ac_cpp" ;;
21623
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21624
sed -n '\#/stddef.h#{
21625
s#.*"\(.*/stddef.h\)".*#\1#
21631
gl_cv_next_stddef_h='<'stddef.h'>'
21635
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
21636
$as_echo "$gl_cv_next_stddef_h" >&6; }
21638
NEXT_STDDEF_H=$gl_cv_next_stddef_h
21640
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21641
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21642
gl_next_as_first_directive='<'stddef.h'>'
21644
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21645
gl_next_as_first_directive=$gl_cv_next_stddef_h
21647
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21656
if test $ac_cv_type_long_long_int = yes; then
21657
HAVE_LONG_LONG_INT=1
21659
HAVE_LONG_LONG_INT=0
21663
if test $ac_cv_type_unsigned_long_long_int = yes; then
21664
HAVE_UNSIGNED_LONG_LONG_INT=1
21666
HAVE_UNSIGNED_LONG_LONG_INT=0
21670
if test $ac_cv_header_inttypes_h = yes; then
21677
if test $ac_cv_header_sys_types_h = yes; then
21695
if test $gl_cv_have_include_next = yes; then
21696
gl_cv_next_stdint_h='<'stdint.h'>'
21698
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
21699
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21700
if test "${gl_cv_next_stdint_h+set}" = set; then
21701
$as_echo_n "(cached) " >&6
21704
if test $ac_cv_header_stdint_h = yes; then
21705
cat >conftest.$ac_ext <<_ACEOF
21708
cat confdefs.h >>conftest.$ac_ext
21709
cat >>conftest.$ac_ext <<_ACEOF
21710
/* end confdefs.h. */
21711
#include <stdint.h>
21715
aix*) gl_absname_cpp="$ac_cpp -C" ;;
21716
*) gl_absname_cpp="$ac_cpp" ;;
21718
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21719
sed -n '\#/stdint.h#{
21720
s#.*"\(.*/stdint.h\)".*#\1#
21726
gl_cv_next_stdint_h='<'stdint.h'>'
21730
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
21731
$as_echo "$gl_cv_next_stdint_h" >&6; }
21733
NEXT_STDINT_H=$gl_cv_next_stdint_h
21735
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21736
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21737
gl_next_as_first_directive='<'stdint.h'>'
21739
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21740
gl_next_as_first_directive=$gl_cv_next_stdint_h
21742
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21746
if test $ac_cv_header_stdint_h = yes; then
21753
if test $ac_cv_header_stdint_h = yes; then
21754
{ $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
21755
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21756
if test "${gl_cv_header_working_stdint_h+set}" = set; then
21757
$as_echo_n "(cached) " >&6
21759
gl_cv_header_working_stdint_h=no
21760
cat >conftest.$ac_ext <<_ACEOF
21764
cat confdefs.h >>conftest.$ac_ext
21765
cat >>conftest.$ac_ext <<_ACEOF
21766
/* end confdefs.h. */
21768
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21769
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21770
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21771
#include <stdint.h>
21772
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21773
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
21774
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21778
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21779
included before <wchar.h>. */
21780
#include <stddef.h>
21781
#include <signal.h>
21783
# include <stdio.h>
21785
# include <wchar.h>
21790
int8_t a1 = INT8_MAX;
21791
int8_t a1min = INT8_MIN;
21794
int16_t a2 = INT16_MAX;
21795
int16_t a2min = INT16_MIN;
21798
int32_t a3 = INT32_MAX;
21799
int32_t a3min = INT32_MIN;
21802
int64_t a4 = INT64_MAX;
21803
int64_t a4min = INT64_MIN;
21806
uint8_t b1 = UINT8_MAX;
21808
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21811
uint16_t b2 = UINT16_MAX;
21814
uint32_t b3 = UINT32_MAX;
21817
uint64_t b4 = UINT64_MAX;
21819
int_least8_t c1 = INT8_C (0x7f);
21820
int_least8_t c1max = INT_LEAST8_MAX;
21821
int_least8_t c1min = INT_LEAST8_MIN;
21822
int_least16_t c2 = INT16_C (0x7fff);
21823
int_least16_t c2max = INT_LEAST16_MAX;
21824
int_least16_t c2min = INT_LEAST16_MIN;
21825
int_least32_t c3 = INT32_C (0x7fffffff);
21826
int_least32_t c3max = INT_LEAST32_MAX;
21827
int_least32_t c3min = INT_LEAST32_MIN;
21828
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21829
int_least64_t c4max = INT_LEAST64_MAX;
21830
int_least64_t c4min = INT_LEAST64_MIN;
21831
uint_least8_t d1 = UINT8_C (0xff);
21832
uint_least8_t d1max = UINT_LEAST8_MAX;
21833
uint_least16_t d2 = UINT16_C (0xffff);
21834
uint_least16_t d2max = UINT_LEAST16_MAX;
21835
uint_least32_t d3 = UINT32_C (0xffffffff);
21836
uint_least32_t d3max = UINT_LEAST32_MAX;
21837
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21838
uint_least64_t d4max = UINT_LEAST64_MAX;
21839
int_fast8_t e1 = INT_FAST8_MAX;
21840
int_fast8_t e1min = INT_FAST8_MIN;
21841
int_fast16_t e2 = INT_FAST16_MAX;
21842
int_fast16_t e2min = INT_FAST16_MIN;
21843
int_fast32_t e3 = INT_FAST32_MAX;
21844
int_fast32_t e3min = INT_FAST32_MIN;
21845
int_fast64_t e4 = INT_FAST64_MAX;
21846
int_fast64_t e4min = INT_FAST64_MIN;
21847
uint_fast8_t f1 = UINT_FAST8_MAX;
21848
uint_fast16_t f2 = UINT_FAST16_MAX;
21849
uint_fast32_t f3 = UINT_FAST32_MAX;
21850
uint_fast64_t f4 = UINT_FAST64_MAX;
21852
intptr_t g = INTPTR_MAX;
21853
intptr_t gmin = INTPTR_MIN;
21856
uintptr_t h = UINTPTR_MAX;
21858
intmax_t i = INTMAX_MAX;
21859
uintmax_t j = UINTMAX_MAX;
21861
#include <limits.h> /* for CHAR_BIT */
21862
#define TYPE_MINIMUM(t) \
21863
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21864
#define TYPE_MAXIMUM(t) \
21865
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21868
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21869
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21871
/* Detect bug in FreeBSD 6.0 / ia64. */
21872
int check_SIG_ATOMIC:
21873
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21874
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21876
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21878
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21879
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21881
/* Detect bug in mingw. */
21883
WINT_MIN == TYPE_MINIMUM (wint_t)
21884
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
21887
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21889
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21890
int check_UINT16_C:
21891
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21893
/* Detect bugs in OpenBSD 3.9 stdint.h. */
21895
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21898
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21901
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21904
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21906
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21907
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21908
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21909
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21910
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21911
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21912
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21913
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21914
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21915
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21916
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21927
rm -f conftest.$ac_objext
21928
if { (ac_try="$ac_compile"
21929
case "(($ac_try" in
21930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931
*) ac_try_echo=$ac_try;;
21933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934
$as_echo "$ac_try_echo") >&5
21935
(eval "$ac_compile") 2>conftest.er1
21937
grep -v '^ *+' conftest.er1 >conftest.err
21939
cat conftest.err >&5
21940
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941
(exit $ac_status); } && {
21942
test -z "$ac_c_werror_flag" ||
21943
test ! -s conftest.err
21944
} && test -s conftest.$ac_objext; then
21945
if test "$cross_compiling" = yes; then
21946
gl_cv_header_working_stdint_h=yes
21949
cat >conftest.$ac_ext <<_ACEOF
21953
cat confdefs.h >>conftest.$ac_ext
21954
cat >>conftest.$ac_ext <<_ACEOF
21955
/* end confdefs.h. */
21957
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21958
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21959
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21960
#include <stdint.h>
21963
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21964
included before <wchar.h>. */
21965
#include <stddef.h>
21966
#include <signal.h>
21968
# include <stdio.h>
21970
# include <wchar.h>
21975
#include <string.h>
21976
#define MVAL(macro) MVAL1(macro)
21977
#define MVAL1(expression) #expression
21978
static const char *macro_values[] =
22012
for (mv = macro_values; *mv != NULL; mv++)
22014
const char *value = *mv;
22015
/* Test whether it looks like a cast expression. */
22016
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
22017
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
22018
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
22019
|| strncmp (value, "((int)"/*)*/, 6) == 0
22020
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
22021
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
22030
rm -f conftest$ac_exeext
22031
if { (ac_try="$ac_link"
22032
case "(($ac_try" in
22033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034
*) ac_try_echo=$ac_try;;
22036
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037
$as_echo "$ac_try_echo") >&5
22038
(eval "$ac_link") 2>&5
22040
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22042
{ (case "(($ac_try" in
22043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044
*) ac_try_echo=$ac_try;;
22046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047
$as_echo "$ac_try_echo") >&5
22048
(eval "$ac_try") 2>&5
22050
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051
(exit $ac_status); }; }; then
22052
gl_cv_header_working_stdint_h=yes
22054
$as_echo "$as_me: program exited with status $ac_status" >&5
22055
$as_echo "$as_me: failed program was:" >&5
22056
sed 's/^/| /' conftest.$ac_ext >&5
22059
rm -rf conftest.dSYM
22060
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22066
$as_echo "$as_me: failed program was:" >&5
22067
sed 's/^/| /' conftest.$ac_ext >&5
22072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
22076
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
22078
if test "$gl_cv_header_working_stdint_h" = yes; then
22083
for ac_header in sys/inttypes.h sys/bitypes.h
22085
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22088
$as_echo_n "checking for $ac_header... " >&6; }
22089
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090
$as_echo_n "(cached) " >&6
22092
ac_res=`eval 'as_val=${'$as_ac_Header'}
22093
$as_echo "$as_val"'`
22094
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22095
$as_echo "$ac_res" >&6; }
22097
# Is the header compilable?
22098
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22099
$as_echo_n "checking $ac_header usability... " >&6; }
22100
cat >conftest.$ac_ext <<_ACEOF
22103
cat confdefs.h >>conftest.$ac_ext
22104
cat >>conftest.$ac_ext <<_ACEOF
22105
/* end confdefs.h. */
22106
$ac_includes_default
22107
#include <$ac_header>
22109
rm -f conftest.$ac_objext
22110
if { (ac_try="$ac_compile"
22111
case "(($ac_try" in
22112
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113
*) ac_try_echo=$ac_try;;
22115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22116
$as_echo "$ac_try_echo") >&5
22117
(eval "$ac_compile") 2>conftest.er1
22119
grep -v '^ *+' conftest.er1 >conftest.err
22121
cat conftest.err >&5
22122
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123
(exit $ac_status); } && {
22124
test -z "$ac_c_werror_flag" ||
22125
test ! -s conftest.err
22126
} && test -s conftest.$ac_objext; then
22127
ac_header_compiler=yes
22129
$as_echo "$as_me: failed program was:" >&5
22130
sed 's/^/| /' conftest.$ac_ext >&5
22132
ac_header_compiler=no
22135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137
$as_echo "$ac_header_compiler" >&6; }
22139
# Is the header present?
22140
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22141
$as_echo_n "checking $ac_header presence... " >&6; }
22142
cat >conftest.$ac_ext <<_ACEOF
22145
cat confdefs.h >>conftest.$ac_ext
22146
cat >>conftest.$ac_ext <<_ACEOF
22147
/* end confdefs.h. */
22148
#include <$ac_header>
22150
if { (ac_try="$ac_cpp conftest.$ac_ext"
22151
case "(($ac_try" in
22152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153
*) ac_try_echo=$ac_try;;
22155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156
$as_echo "$ac_try_echo") >&5
22157
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22159
grep -v '^ *+' conftest.er1 >conftest.err
22161
cat conftest.err >&5
22162
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163
(exit $ac_status); } >/dev/null && {
22164
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165
test ! -s conftest.err
22167
ac_header_preproc=yes
22169
$as_echo "$as_me: failed program was:" >&5
22170
sed 's/^/| /' conftest.$ac_ext >&5
22172
ac_header_preproc=no
22175
rm -f conftest.err conftest.$ac_ext
22176
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177
$as_echo "$ac_header_preproc" >&6; }
22179
# So? What about this header?
22180
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22182
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186
ac_header_preproc=yes
22189
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22192
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22193
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22196
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22197
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22202
## ------------------------------- ##
22203
## Report this to bug-wget@gnu.org ##
22204
## ------------------------------- ##
22206
) | sed "s/^/$as_me: WARNING: /" >&2
22209
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22210
$as_echo_n "checking for $ac_header... " >&6; }
22211
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212
$as_echo_n "(cached) " >&6
22214
eval "$as_ac_Header=\$ac_header_preproc"
22216
ac_res=`eval 'as_val=${'$as_ac_Header'}
22217
$as_echo "$as_val"'`
22218
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22219
$as_echo "$ac_res" >&6; }
22222
as_val=`eval 'as_val=${'$as_ac_Header'}
22223
$as_echo "$as_val"'`
22224
if test "x$as_val" = x""yes; then
22225
cat >>confdefs.h <<_ACEOF
22226
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233
if test $ac_cv_header_sys_inttypes_h = yes; then
22234
HAVE_SYS_INTTYPES_H=1
22236
HAVE_SYS_INTTYPES_H=0
22239
if test $ac_cv_header_sys_bitypes_h = yes; then
22240
HAVE_SYS_BITYPES_H=1
22242
HAVE_SYS_BITYPES_H=0
22255
if test $APPLE_UNIVERSAL_BUILD = 0; then
22260
for gltype in ptrdiff_t size_t ; do
22261
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22262
$as_echo_n "checking for bit size of $gltype... " >&6; }
22263
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22264
$as_echo_n "(cached) " >&6
22266
if test "$cross_compiling" = yes; then
22267
# Depending upon the size, compute the lo and hi bounds.
22268
cat >conftest.$ac_ext <<_ACEOF
22271
cat confdefs.h >>conftest.$ac_ext
22272
cat >>conftest.$ac_ext <<_ACEOF
22273
/* end confdefs.h. */
22275
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22276
included before <wchar.h>. */
22277
#include <stddef.h>
22278
#include <signal.h>
22280
# include <stdio.h>
22282
# include <wchar.h>
22285
#include <limits.h>
22289
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22296
rm -f conftest.$ac_objext
22297
if { (ac_try="$ac_compile"
22298
case "(($ac_try" in
22299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300
*) ac_try_echo=$ac_try;;
22302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303
$as_echo "$ac_try_echo") >&5
22304
(eval "$ac_compile") 2>conftest.er1
22306
grep -v '^ *+' conftest.er1 >conftest.err
22308
cat conftest.err >&5
22309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310
(exit $ac_status); } && {
22311
test -z "$ac_c_werror_flag" ||
22312
test ! -s conftest.err
22313
} && test -s conftest.$ac_objext; then
22316
cat >conftest.$ac_ext <<_ACEOF
22319
cat confdefs.h >>conftest.$ac_ext
22320
cat >>conftest.$ac_ext <<_ACEOF
22321
/* end confdefs.h. */
22323
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22324
included before <wchar.h>. */
22325
#include <stddef.h>
22326
#include <signal.h>
22328
# include <stdio.h>
22330
# include <wchar.h>
22333
#include <limits.h>
22337
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22344
rm -f conftest.$ac_objext
22345
if { (ac_try="$ac_compile"
22346
case "(($ac_try" in
22347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348
*) ac_try_echo=$ac_try;;
22350
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351
$as_echo "$ac_try_echo") >&5
22352
(eval "$ac_compile") 2>conftest.er1
22354
grep -v '^ *+' conftest.er1 >conftest.err
22356
cat conftest.err >&5
22357
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358
(exit $ac_status); } && {
22359
test -z "$ac_c_werror_flag" ||
22360
test ! -s conftest.err
22361
} && test -s conftest.$ac_objext; then
22362
ac_hi=$ac_mid; break
22364
$as_echo "$as_me: failed program was:" >&5
22365
sed 's/^/| /' conftest.$ac_ext >&5
22367
ac_lo=`expr $ac_mid + 1`
22368
if test $ac_lo -le $ac_mid; then
22372
ac_mid=`expr 2 '*' $ac_mid + 1`
22375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378
$as_echo "$as_me: failed program was:" >&5
22379
sed 's/^/| /' conftest.$ac_ext >&5
22381
cat >conftest.$ac_ext <<_ACEOF
22384
cat confdefs.h >>conftest.$ac_ext
22385
cat >>conftest.$ac_ext <<_ACEOF
22386
/* end confdefs.h. */
22388
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22389
included before <wchar.h>. */
22390
#include <stddef.h>
22391
#include <signal.h>
22393
# include <stdio.h>
22395
# include <wchar.h>
22398
#include <limits.h>
22402
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22409
rm -f conftest.$ac_objext
22410
if { (ac_try="$ac_compile"
22411
case "(($ac_try" in
22412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413
*) ac_try_echo=$ac_try;;
22415
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22416
$as_echo "$ac_try_echo") >&5
22417
(eval "$ac_compile") 2>conftest.er1
22419
grep -v '^ *+' conftest.er1 >conftest.err
22421
cat conftest.err >&5
22422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423
(exit $ac_status); } && {
22424
test -z "$ac_c_werror_flag" ||
22425
test ! -s conftest.err
22426
} && test -s conftest.$ac_objext; then
22429
cat >conftest.$ac_ext <<_ACEOF
22432
cat confdefs.h >>conftest.$ac_ext
22433
cat >>conftest.$ac_ext <<_ACEOF
22434
/* end confdefs.h. */
22436
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22437
included before <wchar.h>. */
22438
#include <stddef.h>
22439
#include <signal.h>
22441
# include <stdio.h>
22443
# include <wchar.h>
22446
#include <limits.h>
22450
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22457
rm -f conftest.$ac_objext
22458
if { (ac_try="$ac_compile"
22459
case "(($ac_try" in
22460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461
*) ac_try_echo=$ac_try;;
22463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22464
$as_echo "$ac_try_echo") >&5
22465
(eval "$ac_compile") 2>conftest.er1
22467
grep -v '^ *+' conftest.er1 >conftest.err
22469
cat conftest.err >&5
22470
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471
(exit $ac_status); } && {
22472
test -z "$ac_c_werror_flag" ||
22473
test ! -s conftest.err
22474
} && test -s conftest.$ac_objext; then
22475
ac_lo=$ac_mid; break
22477
$as_echo "$as_me: failed program was:" >&5
22478
sed 's/^/| /' conftest.$ac_ext >&5
22480
ac_hi=`expr '(' $ac_mid ')' - 1`
22481
if test $ac_mid -le $ac_hi; then
22485
ac_mid=`expr 2 '*' $ac_mid`
22488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491
$as_echo "$as_me: failed program was:" >&5
22492
sed 's/^/| /' conftest.$ac_ext >&5
22497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501
# Binary search between lo and hi bounds.
22502
while test "x$ac_lo" != "x$ac_hi"; do
22503
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22504
cat >conftest.$ac_ext <<_ACEOF
22507
cat confdefs.h >>conftest.$ac_ext
22508
cat >>conftest.$ac_ext <<_ACEOF
22509
/* end confdefs.h. */
22511
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22512
included before <wchar.h>. */
22513
#include <stddef.h>
22514
#include <signal.h>
22516
# include <stdio.h>
22518
# include <wchar.h>
22521
#include <limits.h>
22525
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22532
rm -f conftest.$ac_objext
22533
if { (ac_try="$ac_compile"
22534
case "(($ac_try" in
22535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536
*) ac_try_echo=$ac_try;;
22538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539
$as_echo "$ac_try_echo") >&5
22540
(eval "$ac_compile") 2>conftest.er1
22542
grep -v '^ *+' conftest.er1 >conftest.err
22544
cat conftest.err >&5
22545
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546
(exit $ac_status); } && {
22547
test -z "$ac_c_werror_flag" ||
22548
test ! -s conftest.err
22549
} && test -s conftest.$ac_objext; then
22552
$as_echo "$as_me: failed program was:" >&5
22553
sed 's/^/| /' conftest.$ac_ext >&5
22555
ac_lo=`expr '(' $ac_mid ')' + 1`
22558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561
?*) result=$ac_lo;;
22562
'') result=unknown ;;
22565
cat >conftest.$ac_ext <<_ACEOF
22568
cat confdefs.h >>conftest.$ac_ext
22569
cat >>conftest.$ac_ext <<_ACEOF
22570
/* end confdefs.h. */
22572
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22573
included before <wchar.h>. */
22574
#include <stddef.h>
22575
#include <signal.h>
22577
# include <stdio.h>
22579
# include <wchar.h>
22582
#include <limits.h>
22583
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
22584
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
22586
#include <stdlib.h>
22591
FILE *f = fopen ("conftest.val", "w");
22594
if ((sizeof ($gltype) * CHAR_BIT) < 0)
22596
long int i = longval ();
22597
if (i != (sizeof ($gltype) * CHAR_BIT))
22599
fprintf (f, "%ld", i);
22603
unsigned long int i = ulongval ();
22604
if (i != (sizeof ($gltype) * CHAR_BIT))
22606
fprintf (f, "%lu", i);
22608
/* Do not output a trailing newline, as this causes \r\n confusion
22609
on some platforms. */
22610
return ferror (f) || fclose (f) != 0;
22616
rm -f conftest$ac_exeext
22617
if { (ac_try="$ac_link"
22618
case "(($ac_try" in
22619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620
*) ac_try_echo=$ac_try;;
22622
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22623
$as_echo "$ac_try_echo") >&5
22624
(eval "$ac_link") 2>&5
22626
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22628
{ (case "(($ac_try" in
22629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630
*) ac_try_echo=$ac_try;;
22632
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22633
$as_echo "$ac_try_echo") >&5
22634
(eval "$ac_try") 2>&5
22636
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637
(exit $ac_status); }; }; then
22638
result=`cat conftest.val`
22640
$as_echo "$as_me: program exited with status $ac_status" >&5
22641
$as_echo "$as_me: failed program was:" >&5
22642
sed 's/^/| /' conftest.$ac_ext >&5
22644
( exit $ac_status )
22647
rm -rf conftest.dSYM
22648
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22651
eval gl_cv_bitsizeof_${gltype}=\$result
22654
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
22655
$as_echo "$as_val"'`
22656
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657
$as_echo "$ac_res" >&6; }
22658
eval result=\$gl_cv_bitsizeof_${gltype}
22659
if test $result = unknown; then
22662
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22663
cat >>confdefs.h <<_ACEOF
22664
#define BITSIZEOF_${GLTYPE} $result
22667
eval BITSIZEOF_${GLTYPE}=\$result
22677
for gltype in sig_atomic_t wchar_t wint_t ; do
22678
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22679
$as_echo_n "checking for bit size of $gltype... " >&6; }
22680
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22681
$as_echo_n "(cached) " >&6
22683
if test "$cross_compiling" = yes; then
22684
# Depending upon the size, compute the lo and hi bounds.
22685
cat >conftest.$ac_ext <<_ACEOF
22688
cat confdefs.h >>conftest.$ac_ext
22689
cat >>conftest.$ac_ext <<_ACEOF
22690
/* end confdefs.h. */
22692
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22693
included before <wchar.h>. */
22694
#include <stddef.h>
22695
#include <signal.h>
22697
# include <stdio.h>
22699
# include <wchar.h>
22702
#include <limits.h>
22706
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22713
rm -f conftest.$ac_objext
22714
if { (ac_try="$ac_compile"
22715
case "(($ac_try" in
22716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717
*) ac_try_echo=$ac_try;;
22719
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22720
$as_echo "$ac_try_echo") >&5
22721
(eval "$ac_compile") 2>conftest.er1
22723
grep -v '^ *+' conftest.er1 >conftest.err
22725
cat conftest.err >&5
22726
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727
(exit $ac_status); } && {
22728
test -z "$ac_c_werror_flag" ||
22729
test ! -s conftest.err
22730
} && test -s conftest.$ac_objext; then
22733
cat >conftest.$ac_ext <<_ACEOF
22736
cat confdefs.h >>conftest.$ac_ext
22737
cat >>conftest.$ac_ext <<_ACEOF
22738
/* end confdefs.h. */
22740
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22741
included before <wchar.h>. */
22742
#include <stddef.h>
22743
#include <signal.h>
22745
# include <stdio.h>
22747
# include <wchar.h>
22750
#include <limits.h>
22754
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22761
rm -f conftest.$ac_objext
22762
if { (ac_try="$ac_compile"
22763
case "(($ac_try" in
22764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765
*) ac_try_echo=$ac_try;;
22767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22768
$as_echo "$ac_try_echo") >&5
22769
(eval "$ac_compile") 2>conftest.er1
22771
grep -v '^ *+' conftest.er1 >conftest.err
22773
cat conftest.err >&5
22774
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775
(exit $ac_status); } && {
22776
test -z "$ac_c_werror_flag" ||
22777
test ! -s conftest.err
22778
} && test -s conftest.$ac_objext; then
22779
ac_hi=$ac_mid; break
22781
$as_echo "$as_me: failed program was:" >&5
22782
sed 's/^/| /' conftest.$ac_ext >&5
22784
ac_lo=`expr $ac_mid + 1`
22785
if test $ac_lo -le $ac_mid; then
22789
ac_mid=`expr 2 '*' $ac_mid + 1`
22792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795
$as_echo "$as_me: failed program was:" >&5
22796
sed 's/^/| /' conftest.$ac_ext >&5
22798
cat >conftest.$ac_ext <<_ACEOF
22801
cat confdefs.h >>conftest.$ac_ext
22802
cat >>conftest.$ac_ext <<_ACEOF
22803
/* end confdefs.h. */
22805
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22806
included before <wchar.h>. */
22807
#include <stddef.h>
22808
#include <signal.h>
22810
# include <stdio.h>
22812
# include <wchar.h>
22815
#include <limits.h>
22819
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22826
rm -f conftest.$ac_objext
22827
if { (ac_try="$ac_compile"
22828
case "(($ac_try" in
22829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830
*) ac_try_echo=$ac_try;;
22832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833
$as_echo "$ac_try_echo") >&5
22834
(eval "$ac_compile") 2>conftest.er1
22836
grep -v '^ *+' conftest.er1 >conftest.err
22838
cat conftest.err >&5
22839
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840
(exit $ac_status); } && {
22841
test -z "$ac_c_werror_flag" ||
22842
test ! -s conftest.err
22843
} && test -s conftest.$ac_objext; then
22846
cat >conftest.$ac_ext <<_ACEOF
22849
cat confdefs.h >>conftest.$ac_ext
22850
cat >>conftest.$ac_ext <<_ACEOF
22851
/* end confdefs.h. */
22853
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854
included before <wchar.h>. */
22855
#include <stddef.h>
22856
#include <signal.h>
22858
# include <stdio.h>
22860
# include <wchar.h>
22863
#include <limits.h>
22867
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22874
rm -f conftest.$ac_objext
22875
if { (ac_try="$ac_compile"
22876
case "(($ac_try" in
22877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878
*) ac_try_echo=$ac_try;;
22880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881
$as_echo "$ac_try_echo") >&5
22882
(eval "$ac_compile") 2>conftest.er1
22884
grep -v '^ *+' conftest.er1 >conftest.err
22886
cat conftest.err >&5
22887
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888
(exit $ac_status); } && {
22889
test -z "$ac_c_werror_flag" ||
22890
test ! -s conftest.err
22891
} && test -s conftest.$ac_objext; then
22892
ac_lo=$ac_mid; break
22894
$as_echo "$as_me: failed program was:" >&5
22895
sed 's/^/| /' conftest.$ac_ext >&5
22897
ac_hi=`expr '(' $ac_mid ')' - 1`
22898
if test $ac_mid -le $ac_hi; then
22902
ac_mid=`expr 2 '*' $ac_mid`
22905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908
$as_echo "$as_me: failed program was:" >&5
22909
sed 's/^/| /' conftest.$ac_ext >&5
22914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918
# Binary search between lo and hi bounds.
22919
while test "x$ac_lo" != "x$ac_hi"; do
22920
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22921
cat >conftest.$ac_ext <<_ACEOF
22924
cat confdefs.h >>conftest.$ac_ext
22925
cat >>conftest.$ac_ext <<_ACEOF
22926
/* end confdefs.h. */
22928
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929
included before <wchar.h>. */
22930
#include <stddef.h>
22931
#include <signal.h>
22933
# include <stdio.h>
22935
# include <wchar.h>
22938
#include <limits.h>
22942
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22949
rm -f conftest.$ac_objext
22950
if { (ac_try="$ac_compile"
22951
case "(($ac_try" in
22952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953
*) ac_try_echo=$ac_try;;
22955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956
$as_echo "$ac_try_echo") >&5
22957
(eval "$ac_compile") 2>conftest.er1
22959
grep -v '^ *+' conftest.er1 >conftest.err
22961
cat conftest.err >&5
22962
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963
(exit $ac_status); } && {
22964
test -z "$ac_c_werror_flag" ||
22965
test ! -s conftest.err
22966
} && test -s conftest.$ac_objext; then
22969
$as_echo "$as_me: failed program was:" >&5
22970
sed 's/^/| /' conftest.$ac_ext >&5
22972
ac_lo=`expr '(' $ac_mid ')' + 1`
22975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978
?*) result=$ac_lo;;
22979
'') result=unknown ;;
22982
cat >conftest.$ac_ext <<_ACEOF
22985
cat confdefs.h >>conftest.$ac_ext
22986
cat >>conftest.$ac_ext <<_ACEOF
22987
/* end confdefs.h. */
22989
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22990
included before <wchar.h>. */
22991
#include <stddef.h>
22992
#include <signal.h>
22994
# include <stdio.h>
22996
# include <wchar.h>
22999
#include <limits.h>
23000
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
23001
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
23003
#include <stdlib.h>
23008
FILE *f = fopen ("conftest.val", "w");
23011
if ((sizeof ($gltype) * CHAR_BIT) < 0)
23013
long int i = longval ();
23014
if (i != (sizeof ($gltype) * CHAR_BIT))
23016
fprintf (f, "%ld", i);
23020
unsigned long int i = ulongval ();
23021
if (i != (sizeof ($gltype) * CHAR_BIT))
23023
fprintf (f, "%lu", i);
23025
/* Do not output a trailing newline, as this causes \r\n confusion
23026
on some platforms. */
23027
return ferror (f) || fclose (f) != 0;
23033
rm -f conftest$ac_exeext
23034
if { (ac_try="$ac_link"
23035
case "(($ac_try" in
23036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037
*) ac_try_echo=$ac_try;;
23039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040
$as_echo "$ac_try_echo") >&5
23041
(eval "$ac_link") 2>&5
23043
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23045
{ (case "(($ac_try" in
23046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047
*) ac_try_echo=$ac_try;;
23049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23050
$as_echo "$ac_try_echo") >&5
23051
(eval "$ac_try") 2>&5
23053
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054
(exit $ac_status); }; }; then
23055
result=`cat conftest.val`
23057
$as_echo "$as_me: program exited with status $ac_status" >&5
23058
$as_echo "$as_me: failed program was:" >&5
23059
sed 's/^/| /' conftest.$ac_ext >&5
23061
( exit $ac_status )
23064
rm -rf conftest.dSYM
23065
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23068
eval gl_cv_bitsizeof_${gltype}=\$result
23071
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
23072
$as_echo "$as_val"'`
23073
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23074
$as_echo "$ac_res" >&6; }
23075
eval result=\$gl_cv_bitsizeof_${gltype}
23076
if test $result = unknown; then
23079
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23080
cat >>confdefs.h <<_ACEOF
23081
#define BITSIZEOF_${GLTYPE} $result
23084
eval BITSIZEOF_${GLTYPE}=\$result
23093
for gltype in sig_atomic_t wchar_t wint_t ; do
23094
{ $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
23095
$as_echo_n "checking whether $gltype is signed... " >&6; }
23096
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
23097
$as_echo_n "(cached) " >&6
23099
cat >conftest.$ac_ext <<_ACEOF
23102
cat confdefs.h >>conftest.$ac_ext
23103
cat >>conftest.$ac_ext <<_ACEOF
23104
/* end confdefs.h. */
23106
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23107
included before <wchar.h>. */
23108
#include <stddef.h>
23109
#include <signal.h>
23111
# include <stdio.h>
23113
# include <wchar.h>
23116
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
23125
rm -f conftest.$ac_objext
23126
if { (ac_try="$ac_compile"
23127
case "(($ac_try" in
23128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129
*) ac_try_echo=$ac_try;;
23131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23132
$as_echo "$ac_try_echo") >&5
23133
(eval "$ac_compile") 2>conftest.er1
23135
grep -v '^ *+' conftest.er1 >conftest.err
23137
cat conftest.err >&5
23138
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139
(exit $ac_status); } && {
23140
test -z "$ac_c_werror_flag" ||
23141
test ! -s conftest.err
23142
} && test -s conftest.$ac_objext; then
23145
$as_echo "$as_me: failed program was:" >&5
23146
sed 's/^/| /' conftest.$ac_ext >&5
23151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152
eval gl_cv_type_${gltype}_signed=\$result
23155
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
23156
$as_echo "$as_val"'`
23157
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23158
$as_echo "$ac_res" >&6; }
23159
eval result=\$gl_cv_type_${gltype}_signed
23160
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23161
if test "$result" = yes; then
23162
cat >>confdefs.h <<_ACEOF
23163
#define HAVE_SIGNED_${GLTYPE} 1
23166
eval HAVE_SIGNED_${GLTYPE}=1
23168
eval HAVE_SIGNED_${GLTYPE}=0
23173
gl_cv_type_ptrdiff_t_signed=yes
23174
gl_cv_type_size_t_signed=no
23175
if test $APPLE_UNIVERSAL_BUILD = 0; then
23180
for gltype in ptrdiff_t size_t ; do
23181
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23182
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23183
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23184
$as_echo_n "(cached) " >&6
23186
eval gl_cv_type_${gltype}_suffix=no
23187
eval result=\$gl_cv_type_${gltype}_signed
23188
if test "$result" = yes; then
23193
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23195
'') gltype1='int';;
23196
l) gltype1='long int';;
23197
ll) gltype1='long long int';;
23198
i64) gltype1='__int64';;
23199
u) gltype1='unsigned int';;
23200
ul) gltype1='unsigned long int';;
23201
ull) gltype1='unsigned long long int';;
23202
ui64)gltype1='unsigned __int64';;
23204
cat >conftest.$ac_ext <<_ACEOF
23207
cat confdefs.h >>conftest.$ac_ext
23208
cat >>conftest.$ac_ext <<_ACEOF
23209
/* end confdefs.h. */
23211
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23212
included before <wchar.h>. */
23213
#include <stddef.h>
23214
#include <signal.h>
23216
# include <stdio.h>
23218
# include <wchar.h>
23221
extern $gltype foo;
23222
extern $gltype1 foo;
23231
rm -f conftest.$ac_objext
23232
if { (ac_try="$ac_compile"
23233
case "(($ac_try" in
23234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235
*) ac_try_echo=$ac_try;;
23237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238
$as_echo "$ac_try_echo") >&5
23239
(eval "$ac_compile") 2>conftest.er1
23241
grep -v '^ *+' conftest.er1 >conftest.err
23243
cat conftest.err >&5
23244
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245
(exit $ac_status); } && {
23246
test -z "$ac_c_werror_flag" ||
23247
test ! -s conftest.err
23248
} && test -s conftest.$ac_objext; then
23249
eval gl_cv_type_${gltype}_suffix=\$glsuf
23251
$as_echo "$as_me: failed program was:" >&5
23252
sed 's/^/| /' conftest.$ac_ext >&5
23257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258
eval result=\$gl_cv_type_${gltype}_suffix
23259
test "$result" != no && break
23262
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23263
$as_echo "$as_val"'`
23264
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23265
$as_echo "$ac_res" >&6; }
23266
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23267
eval result=\$gl_cv_type_${gltype}_suffix
23268
test "$result" = no && result=
23269
eval ${GLTYPE}_SUFFIX=\$result
23270
cat >>confdefs.h <<_ACEOF
23271
#define ${GLTYPE}_SUFFIX $result
23283
for gltype in sig_atomic_t wchar_t wint_t ; do
23284
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23285
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23286
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23287
$as_echo_n "(cached) " >&6
23289
eval gl_cv_type_${gltype}_suffix=no
23290
eval result=\$gl_cv_type_${gltype}_signed
23291
if test "$result" = yes; then
23296
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23298
'') gltype1='int';;
23299
l) gltype1='long int';;
23300
ll) gltype1='long long int';;
23301
i64) gltype1='__int64';;
23302
u) gltype1='unsigned int';;
23303
ul) gltype1='unsigned long int';;
23304
ull) gltype1='unsigned long long int';;
23305
ui64)gltype1='unsigned __int64';;
23307
cat >conftest.$ac_ext <<_ACEOF
23310
cat confdefs.h >>conftest.$ac_ext
23311
cat >>conftest.$ac_ext <<_ACEOF
23312
/* end confdefs.h. */
23314
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23315
included before <wchar.h>. */
23316
#include <stddef.h>
23317
#include <signal.h>
23319
# include <stdio.h>
23321
# include <wchar.h>
23324
extern $gltype foo;
23325
extern $gltype1 foo;
23334
rm -f conftest.$ac_objext
23335
if { (ac_try="$ac_compile"
23336
case "(($ac_try" in
23337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338
*) ac_try_echo=$ac_try;;
23340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23341
$as_echo "$ac_try_echo") >&5
23342
(eval "$ac_compile") 2>conftest.er1
23344
grep -v '^ *+' conftest.er1 >conftest.err
23346
cat conftest.err >&5
23347
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348
(exit $ac_status); } && {
23349
test -z "$ac_c_werror_flag" ||
23350
test ! -s conftest.err
23351
} && test -s conftest.$ac_objext; then
23352
eval gl_cv_type_${gltype}_suffix=\$glsuf
23354
$as_echo "$as_me: failed program was:" >&5
23355
sed 's/^/| /' conftest.$ac_ext >&5
23360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361
eval result=\$gl_cv_type_${gltype}_suffix
23362
test "$result" != no && break
23365
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23366
$as_echo "$as_val"'`
23367
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368
$as_echo "$ac_res" >&6; }
23369
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23370
eval result=\$gl_cv_type_${gltype}_suffix
23371
test "$result" = no && result=
23372
eval ${GLTYPE}_SUFFIX=\$result
23373
cat >>confdefs.h <<_ACEOF
23374
#define ${GLTYPE}_SUFFIX $result
23398
if test $gl_cv_have_include_next = yes; then
23399
gl_cv_next_stdio_h='<'stdio.h'>'
23401
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
23402
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23403
if test "${gl_cv_next_stdio_h+set}" = set; then
23404
$as_echo_n "(cached) " >&6
23407
if test $ac_cv_header_stdio_h = yes; then
23408
cat >conftest.$ac_ext <<_ACEOF
23411
cat confdefs.h >>conftest.$ac_ext
23412
cat >>conftest.$ac_ext <<_ACEOF
23413
/* end confdefs.h. */
23418
aix*) gl_absname_cpp="$ac_cpp -C" ;;
23419
*) gl_absname_cpp="$ac_cpp" ;;
23421
gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23422
sed -n '\#/stdio.h#{
23423
s#.*"\(.*/stdio.h\)".*#\1#
23429
gl_cv_next_stdio_h='<'stdio.h'>'
23433
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
23434
$as_echo "$gl_cv_next_stdio_h" >&6; }
23436
NEXT_STDIO_H=$gl_cv_next_stdio_h
23438
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23439
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23440
gl_next_as_first_directive='<'stdio.h'>'
23442
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23443
gl_next_as_first_directive=$gl_cv_next_stdio_h
23445
NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23474
if test $gl_cv_have_include_next = yes; then
23475
gl_cv_next_stdlib_h='<'stdlib.h'>'
23477
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
23478
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23479
if test "${gl_cv_next_stdlib_h+set}" = set; then
23480
$as_echo_n "(cached) " >&6
23483
if test $ac_cv_header_stdlib_h = yes; then
23484
cat >conftest.$ac_ext <<_ACEOF
23487
cat confdefs.h >>conftest.$ac_ext
23488
cat >>conftest.$ac_ext <<_ACEOF
23489
/* end confdefs.h. */
23490
#include <stdlib.h>
23494
aix*) gl_absname_cpp="$ac_cpp -C" ;;
23495
*) gl_absname_cpp="$ac_cpp" ;;
23497
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23498
sed -n '\#/stdlib.h#{
23499
s#.*"\(.*/stdlib.h\)".*#\1#
23505
gl_cv_next_stdlib_h='<'stdlib.h'>'
23509
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
23510
$as_echo "$gl_cv_next_stdlib_h" >&6; }
23512
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23514
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23515
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23516
gl_next_as_first_directive='<'stdlib.h'>'
23518
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23519
gl_next_as_first_directive=$gl_cv_next_stdlib_h
23521
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23526
for ac_header in random.h
23528
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23529
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23530
$as_echo_n "checking for $ac_header... " >&6; }
23531
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23532
$as_echo_n "(cached) " >&6
23534
cat >conftest.$ac_ext <<_ACEOF
23537
cat confdefs.h >>conftest.$ac_ext
23538
cat >>conftest.$ac_ext <<_ACEOF
23539
/* end confdefs.h. */
23540
$ac_includes_default
23542
#include <$ac_header>
23544
rm -f conftest.$ac_objext
23545
if { (ac_try="$ac_compile"
23546
case "(($ac_try" in
23547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548
*) ac_try_echo=$ac_try;;
23550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551
$as_echo "$ac_try_echo") >&5
23552
(eval "$ac_compile") 2>conftest.er1
23554
grep -v '^ *+' conftest.er1 >conftest.err
23556
cat conftest.err >&5
23557
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558
(exit $ac_status); } && {
23559
test -z "$ac_c_werror_flag" ||
23560
test ! -s conftest.err
23561
} && test -s conftest.$ac_objext; then
23562
eval "$as_ac_Header=yes"
23564
$as_echo "$as_me: failed program was:" >&5
23565
sed 's/^/| /' conftest.$ac_ext >&5
23567
eval "$as_ac_Header=no"
23570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572
ac_res=`eval 'as_val=${'$as_ac_Header'}
23573
$as_echo "$as_val"'`
23574
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23575
$as_echo "$ac_res" >&6; }
23576
as_val=`eval 'as_val=${'$as_ac_Header'}
23577
$as_echo "$as_val"'`
23578
if test "x$as_val" = x""yes; then
23579
cat >>confdefs.h <<_ACEOF
23580
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23587
if test $ac_cv_header_random_h = yes; then
23593
{ $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
23594
$as_echo_n "checking for struct random_data... " >&6; }
23595
if test "${ac_cv_type_struct_random_data+set}" = set; then
23596
$as_echo_n "(cached) " >&6
23598
ac_cv_type_struct_random_data=no
23599
cat >conftest.$ac_ext <<_ACEOF
23602
cat confdefs.h >>conftest.$ac_ext
23603
cat >>conftest.$ac_ext <<_ACEOF
23604
/* end confdefs.h. */
23605
#include <stdlib.h>
23607
# include <random.h>
23614
if (sizeof (struct random_data))
23620
rm -f conftest.$ac_objext
23621
if { (ac_try="$ac_compile"
23622
case "(($ac_try" in
23623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624
*) ac_try_echo=$ac_try;;
23626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627
$as_echo "$ac_try_echo") >&5
23628
(eval "$ac_compile") 2>conftest.er1
23630
grep -v '^ *+' conftest.er1 >conftest.err
23632
cat conftest.err >&5
23633
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634
(exit $ac_status); } && {
23635
test -z "$ac_c_werror_flag" ||
23636
test ! -s conftest.err
23637
} && test -s conftest.$ac_objext; then
23638
cat >conftest.$ac_ext <<_ACEOF
23641
cat confdefs.h >>conftest.$ac_ext
23642
cat >>conftest.$ac_ext <<_ACEOF
23643
/* end confdefs.h. */
23644
#include <stdlib.h>
23646
# include <random.h>
23653
if (sizeof ((struct random_data)))
23659
rm -f conftest.$ac_objext
23660
if { (ac_try="$ac_compile"
23661
case "(($ac_try" in
23662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663
*) ac_try_echo=$ac_try;;
23665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666
$as_echo "$ac_try_echo") >&5
23667
(eval "$ac_compile") 2>conftest.er1
23669
grep -v '^ *+' conftest.er1 >conftest.err
23671
cat conftest.err >&5
23672
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673
(exit $ac_status); } && {
23674
test -z "$ac_c_werror_flag" ||
23675
test ! -s conftest.err
23676
} && test -s conftest.$ac_objext; then
23679
$as_echo "$as_me: failed program was:" >&5
23680
sed 's/^/| /' conftest.$ac_ext >&5
23682
ac_cv_type_struct_random_data=yes
23685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687
$as_echo "$as_me: failed program was:" >&5
23688
sed 's/^/| /' conftest.$ac_ext >&5
23693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
23696
$as_echo "$ac_cv_type_struct_random_data" >&6; }
23697
if test "x$ac_cv_type_struct_random_data" = x""yes; then
23699
cat >>confdefs.h <<_ACEOF
23700
#define HAVE_STRUCT_RANDOM_DATA 1
23705
HAVE_STRUCT_RANDOM_DATA=0
23721
for ac_func in strcasecmp
23723
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23724
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23725
$as_echo_n "checking for $ac_func... " >&6; }
23726
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23727
$as_echo_n "(cached) " >&6
23729
cat >conftest.$ac_ext <<_ACEOF
23732
cat confdefs.h >>conftest.$ac_ext
23733
cat >>conftest.$ac_ext <<_ACEOF
23734
/* end confdefs.h. */
23735
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23736
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23737
#define $ac_func innocuous_$ac_func
23739
/* System header to define __stub macros and hopefully few prototypes,
23740
which can conflict with char $ac_func (); below.
23741
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23742
<limits.h> exists even on freestanding compilers. */
23745
# include <limits.h>
23747
# include <assert.h>
23752
/* Override any GCC internal prototype to avoid an error.
23753
Use char because int might match the return type of a GCC
23754
builtin and then its argument prototype would still apply. */
23759
/* The GNU C library defines this for functions which it implements
23760
to always fail with ENOSYS. Some functions are actually named
23761
something starting with __ and the normal name is an alias. */
23762
#if defined __stub_$ac_func || defined __stub___$ac_func
23769
return $ac_func ();
23774
rm -f conftest.$ac_objext conftest$ac_exeext
23775
if { (ac_try="$ac_link"
23776
case "(($ac_try" in
23777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778
*) ac_try_echo=$ac_try;;
23780
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23781
$as_echo "$ac_try_echo") >&5
23782
(eval "$ac_link") 2>conftest.er1
23784
grep -v '^ *+' conftest.er1 >conftest.err
23786
cat conftest.err >&5
23787
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788
(exit $ac_status); } && {
23789
test -z "$ac_c_werror_flag" ||
23790
test ! -s conftest.err
23791
} && test -s conftest$ac_exeext && {
23792
test "$cross_compiling" = yes ||
23793
$as_test_x conftest$ac_exeext
23795
eval "$as_ac_var=yes"
23797
$as_echo "$as_me: failed program was:" >&5
23798
sed 's/^/| /' conftest.$ac_ext >&5
23800
eval "$as_ac_var=no"
23803
rm -rf conftest.dSYM
23804
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805
conftest$ac_exeext conftest.$ac_ext
23807
ac_res=`eval 'as_val=${'$as_ac_var'}
23808
$as_echo "$as_val"'`
23809
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23810
$as_echo "$ac_res" >&6; }
23811
as_val=`eval 'as_val=${'$as_ac_var'}
23812
$as_echo "$as_val"'`
23813
if test "x$as_val" = x""yes; then
23814
cat >>confdefs.h <<_ACEOF
23815
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23820
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23826
if test $ac_cv_func_strcasecmp = no; then
23844
for ac_func in strncasecmp
23846
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23847
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23848
$as_echo_n "checking for $ac_func... " >&6; }
23849
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23850
$as_echo_n "(cached) " >&6
23852
cat >conftest.$ac_ext <<_ACEOF
23855
cat confdefs.h >>conftest.$ac_ext
23856
cat >>conftest.$ac_ext <<_ACEOF
23857
/* end confdefs.h. */
23858
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23859
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23860
#define $ac_func innocuous_$ac_func
23862
/* System header to define __stub macros and hopefully few prototypes,
23863
which can conflict with char $ac_func (); below.
23864
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23865
<limits.h> exists even on freestanding compilers. */
23868
# include <limits.h>
23870
# include <assert.h>
23875
/* Override any GCC internal prototype to avoid an error.
23876
Use char because int might match the return type of a GCC
23877
builtin and then its argument prototype would still apply. */
23882
/* The GNU C library defines this for functions which it implements
23883
to always fail with ENOSYS. Some functions are actually named
23884
something starting with __ and the normal name is an alias. */
23885
#if defined __stub_$ac_func || defined __stub___$ac_func
23892
return $ac_func ();
23897
rm -f conftest.$ac_objext conftest$ac_exeext
23898
if { (ac_try="$ac_link"
23899
case "(($ac_try" in
23900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901
*) ac_try_echo=$ac_try;;
23903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904
$as_echo "$ac_try_echo") >&5
23905
(eval "$ac_link") 2>conftest.er1
23907
grep -v '^ *+' conftest.er1 >conftest.err
23909
cat conftest.err >&5
23910
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911
(exit $ac_status); } && {
23912
test -z "$ac_c_werror_flag" ||
23913
test ! -s conftest.err
23914
} && test -s conftest$ac_exeext && {
23915
test "$cross_compiling" = yes ||
23916
$as_test_x conftest$ac_exeext
23918
eval "$as_ac_var=yes"
23920
$as_echo "$as_me: failed program was:" >&5
23921
sed 's/^/| /' conftest.$ac_ext >&5
23923
eval "$as_ac_var=no"
23926
rm -rf conftest.dSYM
23927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928
conftest$ac_exeext conftest.$ac_ext
23930
ac_res=`eval 'as_val=${'$as_ac_var'}
23931
$as_echo "$as_val"'`
23932
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23933
$as_echo "$ac_res" >&6; }
23934
as_val=`eval 'as_val=${'$as_ac_var'}
23935
$as_echo "$as_val"'`
23936
if test "x$as_val" = x""yes; then
23937
cat >>confdefs.h <<_ACEOF
23938
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23943
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23949
if test $ac_cv_func_strncasecmp = no; then
23954
{ $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
23955
$as_echo_n "checking whether strncasecmp is declared... " >&6; }
23956
if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
23957
$as_echo_n "(cached) " >&6
23959
cat >conftest.$ac_ext <<_ACEOF
23962
cat confdefs.h >>conftest.$ac_ext
23963
cat >>conftest.$ac_ext <<_ACEOF
23964
/* end confdefs.h. */
23965
$ac_includes_default
23969
#ifndef strncasecmp
23970
(void) strncasecmp;
23977
rm -f conftest.$ac_objext
23978
if { (ac_try="$ac_compile"
23979
case "(($ac_try" in
23980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981
*) ac_try_echo=$ac_try;;
23983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23984
$as_echo "$ac_try_echo") >&5
23985
(eval "$ac_compile") 2>conftest.er1
23987
grep -v '^ *+' conftest.er1 >conftest.err
23989
cat conftest.err >&5
23990
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991
(exit $ac_status); } && {
23992
test -z "$ac_c_werror_flag" ||
23993
test ! -s conftest.err
23994
} && test -s conftest.$ac_objext; then
23995
ac_cv_have_decl_strncasecmp=yes
23997
$as_echo "$as_me: failed program was:" >&5
23998
sed 's/^/| /' conftest.$ac_ext >&5
24000
ac_cv_have_decl_strncasecmp=no
24003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
24006
$as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
24007
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
24009
cat >>confdefs.h <<_ACEOF
24010
#define HAVE_DECL_STRNCASECMP 1
24015
cat >>confdefs.h <<_ACEOF
24016
#define HAVE_DECL_STRNCASECMP 0
24023
if test $ac_cv_have_decl_strncasecmp = no; then
24024
HAVE_DECL_STRNCASECMP=0
24030
if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
24031
{ $as_echo "$as_me:$LINENO: checking whether strcasestr works in linear time" >&5
24032
$as_echo_n "checking whether strcasestr works in linear time... " >&6; }
24033
if test "${gl_cv_func_strcasestr_linear+set}" = set; then
24034
$as_echo_n "(cached) " >&6
24036
if test "$cross_compiling" = yes; then
24037
cat >conftest.$ac_ext <<_ACEOF
24040
cat confdefs.h >>conftest.$ac_ext
24041
cat >>conftest.$ac_ext <<_ACEOF
24042
/* end confdefs.h. */
24044
#include <features.h>
24045
#ifdef __GNU_LIBRARY__
24046
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
24051
#include <cygwin/version.h>
24052
#if CYGWIN_VERSION_DLL_MAJOR >= 1007
24058
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24059
$EGREP "Lucky user" >/dev/null 2>&1; then
24060
gl_cv_func_strcasestr_linear=yes
24062
gl_cv_func_strcasestr_linear="guessing no"
24068
cat >conftest.$ac_ext <<_ACEOF
24071
cat confdefs.h >>conftest.$ac_ext
24072
cat >>conftest.$ac_ext <<_ACEOF
24073
/* end confdefs.h. */
24075
#include <signal.h> /* for signal */
24076
#include <string.h> /* for memmem */
24077
#include <stdlib.h> /* for malloc */
24078
#include <unistd.h> /* for alarm */
24083
size_t m = 1000000;
24084
char *haystack = (char *) malloc (2 * m + 2);
24085
char *needle = (char *) malloc (m + 2);
24087
/* Failure to compile this test due to missing alarm is okay,
24088
since all such platforms (mingw) also lack strcasestr. */
24089
signal (SIGALRM, SIG_DFL);
24091
/* Check for quadratic performance. */
24092
if (haystack && needle)
24094
memset (haystack, 'A', 2 * m);
24095
haystack[2 * m] = 'B';
24096
haystack[2 * m + 1] = 0;
24097
memset (needle, 'A', m);
24100
result = strcasestr (haystack, needle);
24107
rm -f conftest$ac_exeext
24108
if { (ac_try="$ac_link"
24109
case "(($ac_try" in
24110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111
*) ac_try_echo=$ac_try;;
24113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114
$as_echo "$ac_try_echo") >&5
24115
(eval "$ac_link") 2>&5
24117
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24119
{ (case "(($ac_try" in
24120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121
*) ac_try_echo=$ac_try;;
24123
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24124
$as_echo "$ac_try_echo") >&5
24125
(eval "$ac_try") 2>&5
24127
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128
(exit $ac_status); }; }; then
24129
gl_cv_func_strcasestr_linear=yes
24131
$as_echo "$as_me: program exited with status $ac_status" >&5
24132
$as_echo "$as_me: failed program was:" >&5
24133
sed 's/^/| /' conftest.$ac_ext >&5
24135
( exit $ac_status )
24136
gl_cv_func_strcasestr_linear=no
24138
rm -rf conftest.dSYM
24139
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24145
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strcasestr_linear" >&5
24146
$as_echo "$gl_cv_func_strcasestr_linear" >&6; }
24147
if test "$gl_cv_func_strcasestr_linear" != yes; then
24148
REPLACE_STRCASESTR=1
24157
gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24172
for ac_func in strcasestr
24174
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24176
$as_echo_n "checking for $ac_func... " >&6; }
24177
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24178
$as_echo_n "(cached) " >&6
24180
cat >conftest.$ac_ext <<_ACEOF
24183
cat confdefs.h >>conftest.$ac_ext
24184
cat >>conftest.$ac_ext <<_ACEOF
24185
/* end confdefs.h. */
24186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24188
#define $ac_func innocuous_$ac_func
24190
/* System header to define __stub macros and hopefully few prototypes,
24191
which can conflict with char $ac_func (); below.
24192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193
<limits.h> exists even on freestanding compilers. */
24196
# include <limits.h>
24198
# include <assert.h>
24203
/* Override any GCC internal prototype to avoid an error.
24204
Use char because int might match the return type of a GCC
24205
builtin and then its argument prototype would still apply. */
24210
/* The GNU C library defines this for functions which it implements
24211
to always fail with ENOSYS. Some functions are actually named
24212
something starting with __ and the normal name is an alias. */
24213
#if defined __stub_$ac_func || defined __stub___$ac_func
24220
return $ac_func ();
24225
rm -f conftest.$ac_objext conftest$ac_exeext
24226
if { (ac_try="$ac_link"
24227
case "(($ac_try" in
24228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229
*) ac_try_echo=$ac_try;;
24231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24232
$as_echo "$ac_try_echo") >&5
24233
(eval "$ac_link") 2>conftest.er1
24235
grep -v '^ *+' conftest.er1 >conftest.err
24237
cat conftest.err >&5
24238
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239
(exit $ac_status); } && {
24240
test -z "$ac_c_werror_flag" ||
24241
test ! -s conftest.err
24242
} && test -s conftest$ac_exeext && {
24243
test "$cross_compiling" = yes ||
24244
$as_test_x conftest$ac_exeext
24246
eval "$as_ac_var=yes"
24248
$as_echo "$as_me: failed program was:" >&5
24249
sed 's/^/| /' conftest.$ac_ext >&5
24251
eval "$as_ac_var=no"
24254
rm -rf conftest.dSYM
24255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256
conftest$ac_exeext conftest.$ac_ext
24258
ac_res=`eval 'as_val=${'$as_ac_var'}
24259
$as_echo "$as_val"'`
24260
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261
$as_echo "$ac_res" >&6; }
24262
as_val=`eval 'as_val=${'$as_ac_var'}
24263
$as_echo "$as_val"'`
24264
if test "x$as_val" = x""yes; then
24265
cat >>confdefs.h <<_ACEOF
24266
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24272
if test $ac_cv_func_strcasestr = no; then
24275
if test "$gl_cv_func_memchr_works" != yes; then
24276
REPLACE_STRCASESTR=1
24279
if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
24288
gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24297
GNULIB_STRCASESTR=1
24301
if test $REPLACE_STRERROR = 1; then
24310
gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24313
cat >>confdefs.h <<_ACEOF
24314
#define REPLACE_STRERROR $REPLACE_STRERROR
24343
if test $gl_cv_have_include_next = yes; then
24344
gl_cv_next_unistd_h='<'unistd.h'>'
24346
{ $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
24347
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24348
if test "${gl_cv_next_unistd_h+set}" = set; then
24349
$as_echo_n "(cached) " >&6
24352
if test $ac_cv_header_unistd_h = yes; then
24353
cat >conftest.$ac_ext <<_ACEOF
24356
cat confdefs.h >>conftest.$ac_ext
24357
cat >>conftest.$ac_ext <<_ACEOF
24358
/* end confdefs.h. */
24359
#include <unistd.h>
24363
aix*) gl_absname_cpp="$ac_cpp -C" ;;
24364
*) gl_absname_cpp="$ac_cpp" ;;
24366
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24367
sed -n '\#/unistd.h#{
24368
s#.*"\(.*/unistd.h\)".*#\1#
24374
gl_cv_next_unistd_h='<'unistd.h'>'
24378
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
24379
$as_echo "$gl_cv_next_unistd_h" >&6; }
24381
NEXT_UNISTD_H=$gl_cv_next_unistd_h
24383
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24384
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24385
gl_next_as_first_directive='<'unistd.h'>'
24387
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24388
gl_next_as_first_directive=$gl_cv_next_unistd_h
24390
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24401
if test $ac_cv_header_unistd_h = yes; then
24410
{ $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
24411
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
24412
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
24413
$as_echo_n "(cached) " >&6
24415
cat >conftest.$ac_ext <<_ACEOF
24419
rm -f conftest.$ac_objext
24420
if { (ac_try="$ac_compile"
24421
case "(($ac_try" in
24422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423
*) ac_try_echo=$ac_try;;
24425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24426
$as_echo "$ac_try_echo") >&5
24427
(eval "$ac_compile") 2>conftest.er1
24429
grep -v '^ *+' conftest.er1 >conftest.err
24431
cat conftest.err >&5
24432
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433
(exit $ac_status); } && {
24434
test -z "$ac_c_werror_flag" ||
24435
test ! -s conftest.err
24436
} && test -s conftest.$ac_objext; then
24437
gl_cv_header_wchar_h_standalone=yes
24439
$as_echo "$as_me: failed program was:" >&5
24440
sed 's/^/| /' conftest.$ac_ext >&5
24442
gl_cv_header_wchar_h_standalone=no
24445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
24448
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
24451
if test $gt_cv_c_wint_t = yes; then
24460
if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
24470
if test $ac_cv_header_wchar_h = yes; then
24487
if test $gl_cv_have_include_next = yes; then
24488
gl_cv_next_wchar_h='<'wchar.h'>'
24490
{ $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
24491
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24492
if test "${gl_cv_next_wchar_h+set}" = set; then
24493
$as_echo_n "(cached) " >&6
24496
if test $ac_cv_header_wchar_h = yes; then
24497
cat >conftest.$ac_ext <<_ACEOF
24500
cat confdefs.h >>conftest.$ac_ext
24501
cat >>conftest.$ac_ext <<_ACEOF
24502
/* end confdefs.h. */
24507
aix*) gl_absname_cpp="$ac_cpp -C" ;;
24508
*) gl_absname_cpp="$ac_cpp" ;;
24510
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24511
sed -n '\#/wchar.h#{
24512
s#.*"\(.*/wchar.h\)".*#\1#
24518
gl_cv_next_wchar_h='<'wchar.h'>'
24522
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
24523
$as_echo "$gl_cv_next_wchar_h" >&6; }
24525
NEXT_WCHAR_H=$gl_cv_next_wchar_h
24527
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24528
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24529
gl_next_as_first_directive='<'wchar.h'>'
24531
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24532
gl_next_as_first_directive=$gl_cv_next_wchar_h
24534
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24547
if test $ac_cv_func_iswcntrl = yes; then
24562
if test $gt_cv_c_wint_t = yes; then
24570
if test $ac_cv_header_wctype_h = yes; then
24571
if test $ac_cv_func_iswcntrl = yes; then
24572
{ $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
24573
$as_echo_n "checking whether iswcntrl works... " >&6; }
24574
if test "${gl_cv_func_iswcntrl_works+set}" = set; then
24575
$as_echo_n "(cached) " >&6
24578
if test "$cross_compiling" = yes; then
24579
cat >conftest.$ac_ext <<_ACEOF
24582
cat confdefs.h >>conftest.$ac_ext
24583
cat >>conftest.$ac_ext <<_ACEOF
24584
/* end confdefs.h. */
24585
#include <stdlib.h>
24586
#if __GNU_LIBRARY__ == 1
24587
Linux libc5 i18n is broken.
24597
rm -f conftest.$ac_objext
24598
if { (ac_try="$ac_compile"
24599
case "(($ac_try" in
24600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601
*) ac_try_echo=$ac_try;;
24603
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604
$as_echo "$ac_try_echo") >&5
24605
(eval "$ac_compile") 2>conftest.er1
24607
grep -v '^ *+' conftest.er1 >conftest.err
24609
cat conftest.err >&5
24610
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611
(exit $ac_status); } && {
24612
test -z "$ac_c_werror_flag" ||
24613
test ! -s conftest.err
24614
} && test -s conftest.$ac_objext; then
24615
gl_cv_func_iswcntrl_works=yes
24617
$as_echo "$as_me: failed program was:" >&5
24618
sed 's/^/| /' conftest.$ac_ext >&5
24620
gl_cv_func_iswcntrl_works=no
24623
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24626
cat >conftest.$ac_ext <<_ACEOF
24629
cat confdefs.h >>conftest.$ac_ext
24630
cat >>conftest.$ac_ext <<_ACEOF
24631
/* end confdefs.h. */
24632
#include <stddef.h>
24636
#include <wctype.h>
24637
int main () { return iswprint ('x') == 0; }
24639
rm -f conftest$ac_exeext
24640
if { (ac_try="$ac_link"
24641
case "(($ac_try" in
24642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643
*) ac_try_echo=$ac_try;;
24645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646
$as_echo "$ac_try_echo") >&5
24647
(eval "$ac_link") 2>&5
24649
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24651
{ (case "(($ac_try" in
24652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653
*) ac_try_echo=$ac_try;;
24655
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656
$as_echo "$ac_try_echo") >&5
24657
(eval "$ac_try") 2>&5
24659
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660
(exit $ac_status); }; }; then
24661
gl_cv_func_iswcntrl_works=yes
24663
$as_echo "$as_me: program exited with status $ac_status" >&5
24664
$as_echo "$as_me: failed program was:" >&5
24665
sed 's/^/| /' conftest.$ac_ext >&5
24667
( exit $ac_status )
24668
gl_cv_func_iswcntrl_works=no
24670
rm -rf conftest.dSYM
24671
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24677
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
24678
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24679
if test $gl_cv_func_iswcntrl_works = yes; then
24694
if test $gl_cv_have_include_next = yes; then
24695
gl_cv_next_wctype_h='<'wctype.h'>'
24697
{ $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
24698
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24699
if test "${gl_cv_next_wctype_h+set}" = set; then
24700
$as_echo_n "(cached) " >&6
24703
if test $ac_cv_header_wctype_h = yes; then
24704
cat >conftest.$ac_ext <<_ACEOF
24707
cat confdefs.h >>conftest.$ac_ext
24708
cat >>conftest.$ac_ext <<_ACEOF
24709
/* end confdefs.h. */
24710
#include <wctype.h>
24714
aix*) gl_absname_cpp="$ac_cpp -C" ;;
24715
*) gl_absname_cpp="$ac_cpp" ;;
24717
gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24718
sed -n '\#/wctype.h#{
24719
s#.*"\(.*/wctype.h\)".*#\1#
24725
gl_cv_next_wctype_h='<'wctype.h'>'
24729
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
24730
$as_echo "$gl_cv_next_wctype_h" >&6; }
24732
NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24734
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24735
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24736
gl_next_as_first_directive='<'wctype.h'>'
24738
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24739
gl_next_as_first_directive=$gl_cv_next_wctype_h
24741
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24752
if test "$gl_cv_func_iswcntrl_works" = no; then
24768
gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
24799
gl_source_base='tests'
24807
LIBGNU_LIBDEPS="$gl_libdeps"
24809
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8172
24815
for ac_header in stdlib.h unistd.h
8174
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8177
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8178
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179
echo $ECHO_N "(cached) $ECHO_C" >&6
24817
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24819
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24820
$as_echo_n "checking for $ac_header... " >&6; }
24821
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822
$as_echo_n "(cached) " >&6
8181
ac_res=`eval echo '${'$as_ac_Header'}'`
8182
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8183
echo "${ECHO_T}$ac_res" >&6; }
24824
ac_res=`eval 'as_val=${'$as_ac_Header'}
24825
$as_echo "$as_val"'`
24826
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24827
$as_echo "$ac_res" >&6; }
8185
24829
# Is the header compilable?
8186
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8187
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24830
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24831
$as_echo_n "checking $ac_header usability... " >&6; }
8188
24832
cat >conftest.$ac_ext <<_ACEOF
8189
24833
/* confdefs.h. */
11496
28197
#define HAVE_BUILTIN_MD5 1
11499
MD5_OBJ="$MD5_OBJ gnu-md5.o"
11500
28200
found_md5=yes
11501
{ echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
11502
echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
11503
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11504
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11505
if test "${ac_cv_c_bigendian+set}" = set; then
11506
echo $ECHO_N "(cached) $ECHO_C" >&6
11508
# See if sys/param.h defines the BYTE_ORDER macro.
11509
cat >conftest.$ac_ext <<_ACEOF
11512
cat confdefs.h >>conftest.$ac_ext
11513
cat >>conftest.$ac_ext <<_ACEOF
11514
/* end confdefs.h. */
11515
#include <sys/types.h>
11516
#include <sys/param.h>
11521
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11522
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11523
bogus endian macros
11530
rm -f conftest.$ac_objext
11531
if { (ac_try="$ac_compile"
11532
case "(($ac_try" in
11533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534
*) ac_try_echo=$ac_try;;
11536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537
(eval "$ac_compile") 2>conftest.er1
11539
grep -v '^ *+' conftest.er1 >conftest.err
11541
cat conftest.err >&5
11542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543
(exit $ac_status); } && {
11544
test -z "$ac_c_werror_flag" ||
11545
test ! -s conftest.err
11546
} && test -s conftest.$ac_objext; then
11547
# It does; now see whether it defined to BIG_ENDIAN or not.
11548
cat >conftest.$ac_ext <<_ACEOF
11551
cat confdefs.h >>conftest.$ac_ext
11552
cat >>conftest.$ac_ext <<_ACEOF
11553
/* end confdefs.h. */
11554
#include <sys/types.h>
11555
#include <sys/param.h>
11560
#if BYTE_ORDER != BIG_ENDIAN
11568
rm -f conftest.$ac_objext
11569
if { (ac_try="$ac_compile"
11570
case "(($ac_try" in
11571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572
*) ac_try_echo=$ac_try;;
11574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575
(eval "$ac_compile") 2>conftest.er1
11577
grep -v '^ *+' conftest.er1 >conftest.err
11579
cat conftest.err >&5
11580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581
(exit $ac_status); } && {
11582
test -z "$ac_c_werror_flag" ||
11583
test ! -s conftest.err
11584
} && test -s conftest.$ac_objext; then
11585
ac_cv_c_bigendian=yes
11587
echo "$as_me: failed program was:" >&5
11588
sed 's/^/| /' conftest.$ac_ext >&5
11590
ac_cv_c_bigendian=no
11593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595
echo "$as_me: failed program was:" >&5
11596
sed 's/^/| /' conftest.$ac_ext >&5
11598
# It does not; compile a test program.
11599
if test "$cross_compiling" = yes; then
11600
# try to guess the endianness by grepping values into an object file
11601
ac_cv_c_bigendian=unknown
11602
cat >conftest.$ac_ext <<_ACEOF
11605
cat confdefs.h >>conftest.$ac_ext
11606
cat >>conftest.$ac_ext <<_ACEOF
11607
/* end confdefs.h. */
11608
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11609
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11610
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11611
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11612
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11613
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11617
_ascii (); _ebcdic ();
11622
rm -f conftest.$ac_objext
11623
if { (ac_try="$ac_compile"
11624
case "(($ac_try" in
11625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626
*) ac_try_echo=$ac_try;;
11628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629
(eval "$ac_compile") 2>conftest.er1
11631
grep -v '^ *+' conftest.er1 >conftest.err
11633
cat conftest.err >&5
11634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635
(exit $ac_status); } && {
11636
test -z "$ac_c_werror_flag" ||
11637
test ! -s conftest.err
11638
} && test -s conftest.$ac_objext; then
11639
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11640
ac_cv_c_bigendian=yes
11642
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11643
if test "$ac_cv_c_bigendian" = unknown; then
11644
ac_cv_c_bigendian=no
11646
# finding both strings is unlikely to happen, but who knows?
11647
ac_cv_c_bigendian=unknown
11651
echo "$as_me: failed program was:" >&5
11652
sed 's/^/| /' conftest.$ac_ext >&5
11657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659
cat >conftest.$ac_ext <<_ACEOF
11662
cat confdefs.h >>conftest.$ac_ext
11663
cat >>conftest.$ac_ext <<_ACEOF
11664
/* end confdefs.h. */
11665
$ac_includes_default
11670
/* Are we little or big endian? From Harbison&Steele. */
28201
{ $as_echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
28202
$as_echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
28204
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28205
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28206
if test "${ac_cv_c_bigendian+set}" = set; then
28207
$as_echo_n "(cached) " >&6
28209
ac_cv_c_bigendian=unknown
28210
# See if we're dealing with a universal compiler.
28211
cat >conftest.$ac_ext <<_ACEOF
28214
cat confdefs.h >>conftest.$ac_ext
28215
cat >>conftest.$ac_ext <<_ACEOF
28216
/* end confdefs.h. */
28217
#ifndef __APPLE_CC__
28218
not a universal capable compiler
28223
rm -f conftest.$ac_objext
28224
if { (ac_try="$ac_compile"
28225
case "(($ac_try" in
28226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227
*) ac_try_echo=$ac_try;;
28229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28230
$as_echo "$ac_try_echo") >&5
28231
(eval "$ac_compile") 2>conftest.er1
28233
grep -v '^ *+' conftest.er1 >conftest.err
28235
cat conftest.err >&5
28236
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237
(exit $ac_status); } && {
28238
test -z "$ac_c_werror_flag" ||
28239
test ! -s conftest.err
28240
} && test -s conftest.$ac_objext; then
28242
# Check for potential -arch flags. It is not universal unless
28243
# there are some -arch flags. Note that *ppc* also matches
28244
# ppc64. This check is also rather less than ideal.
28245
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
28246
*-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28249
$as_echo "$as_me: failed program was:" >&5
28250
sed 's/^/| /' conftest.$ac_ext >&5
28255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256
if test $ac_cv_c_bigendian = unknown; then
28257
# See if sys/param.h defines the BYTE_ORDER macro.
28258
cat >conftest.$ac_ext <<_ACEOF
28261
cat confdefs.h >>conftest.$ac_ext
28262
cat >>conftest.$ac_ext <<_ACEOF
28263
/* end confdefs.h. */
28264
#include <sys/types.h>
28265
#include <sys/param.h>
28270
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28271
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28273
bogus endian macros
28280
rm -f conftest.$ac_objext
28281
if { (ac_try="$ac_compile"
28282
case "(($ac_try" in
28283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284
*) ac_try_echo=$ac_try;;
28286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28287
$as_echo "$ac_try_echo") >&5
28288
(eval "$ac_compile") 2>conftest.er1
28290
grep -v '^ *+' conftest.er1 >conftest.err
28292
cat conftest.err >&5
28293
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294
(exit $ac_status); } && {
28295
test -z "$ac_c_werror_flag" ||
28296
test ! -s conftest.err
28297
} && test -s conftest.$ac_objext; then
28298
# It does; now see whether it defined to BIG_ENDIAN or not.
28299
cat >conftest.$ac_ext <<_ACEOF
28302
cat confdefs.h >>conftest.$ac_ext
28303
cat >>conftest.$ac_ext <<_ACEOF
28304
/* end confdefs.h. */
28305
#include <sys/types.h>
28306
#include <sys/param.h>
28311
#if BYTE_ORDER != BIG_ENDIAN
28319
rm -f conftest.$ac_objext
28320
if { (ac_try="$ac_compile"
28321
case "(($ac_try" in
28322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323
*) ac_try_echo=$ac_try;;
28325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28326
$as_echo "$ac_try_echo") >&5
28327
(eval "$ac_compile") 2>conftest.er1
28329
grep -v '^ *+' conftest.er1 >conftest.err
28331
cat conftest.err >&5
28332
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333
(exit $ac_status); } && {
28334
test -z "$ac_c_werror_flag" ||
28335
test ! -s conftest.err
28336
} && test -s conftest.$ac_objext; then
28337
ac_cv_c_bigendian=yes
28339
$as_echo "$as_me: failed program was:" >&5
28340
sed 's/^/| /' conftest.$ac_ext >&5
28342
ac_cv_c_bigendian=no
28345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347
$as_echo "$as_me: failed program was:" >&5
28348
sed 's/^/| /' conftest.$ac_ext >&5
28353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28355
if test $ac_cv_c_bigendian = unknown; then
28356
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28357
cat >conftest.$ac_ext <<_ACEOF
28360
cat confdefs.h >>conftest.$ac_ext
28361
cat >>conftest.$ac_ext <<_ACEOF
28362
/* end confdefs.h. */
28363
#include <limits.h>
28368
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28369
bogus endian macros
28376
rm -f conftest.$ac_objext
28377
if { (ac_try="$ac_compile"
28378
case "(($ac_try" in
28379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380
*) ac_try_echo=$ac_try;;
28382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383
$as_echo "$ac_try_echo") >&5
28384
(eval "$ac_compile") 2>conftest.er1
28386
grep -v '^ *+' conftest.er1 >conftest.err
28388
cat conftest.err >&5
28389
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390
(exit $ac_status); } && {
28391
test -z "$ac_c_werror_flag" ||
28392
test ! -s conftest.err
28393
} && test -s conftest.$ac_objext; then
28394
# It does; now see whether it defined to _BIG_ENDIAN or not.
28395
cat >conftest.$ac_ext <<_ACEOF
28398
cat confdefs.h >>conftest.$ac_ext
28399
cat >>conftest.$ac_ext <<_ACEOF
28400
/* end confdefs.h. */
28401
#include <limits.h>
28406
#ifndef _BIG_ENDIAN
28414
rm -f conftest.$ac_objext
28415
if { (ac_try="$ac_compile"
28416
case "(($ac_try" in
28417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418
*) ac_try_echo=$ac_try;;
28420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28421
$as_echo "$ac_try_echo") >&5
28422
(eval "$ac_compile") 2>conftest.er1
28424
grep -v '^ *+' conftest.er1 >conftest.err
28426
cat conftest.err >&5
28427
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428
(exit $ac_status); } && {
28429
test -z "$ac_c_werror_flag" ||
28430
test ! -s conftest.err
28431
} && test -s conftest.$ac_objext; then
28432
ac_cv_c_bigendian=yes
28434
$as_echo "$as_me: failed program was:" >&5
28435
sed 's/^/| /' conftest.$ac_ext >&5
28437
ac_cv_c_bigendian=no
28440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442
$as_echo "$as_me: failed program was:" >&5
28443
sed 's/^/| /' conftest.$ac_ext >&5
28448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450
if test $ac_cv_c_bigendian = unknown; then
28451
# Compile a test program.
28452
if test "$cross_compiling" = yes; then
28453
# Try to guess by grepping values from an object file.
28454
cat >conftest.$ac_ext <<_ACEOF
28457
cat confdefs.h >>conftest.$ac_ext
28458
cat >>conftest.$ac_ext <<_ACEOF
28459
/* end confdefs.h. */
28460
short int ascii_mm[] =
28461
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28462
short int ascii_ii[] =
28463
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28464
int use_ascii (int i) {
28465
return ascii_mm[i] + ascii_ii[i];
28467
short int ebcdic_ii[] =
28468
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28469
short int ebcdic_mm[] =
28470
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28471
int use_ebcdic (int i) {
28472
return ebcdic_mm[i] + ebcdic_ii[i];
28479
return use_ascii (foo) == use_ebcdic (foo);
28484
rm -f conftest.$ac_objext
28485
if { (ac_try="$ac_compile"
28486
case "(($ac_try" in
28487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488
*) ac_try_echo=$ac_try;;
28490
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491
$as_echo "$ac_try_echo") >&5
28492
(eval "$ac_compile") 2>conftest.er1
28494
grep -v '^ *+' conftest.er1 >conftest.err
28496
cat conftest.err >&5
28497
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498
(exit $ac_status); } && {
28499
test -z "$ac_c_werror_flag" ||
28500
test ! -s conftest.err
28501
} && test -s conftest.$ac_objext; then
28502
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28503
ac_cv_c_bigendian=yes
28505
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28506
if test "$ac_cv_c_bigendian" = unknown; then
28507
ac_cv_c_bigendian=no
28509
# finding both strings is unlikely to happen, but who knows?
28510
ac_cv_c_bigendian=unknown
28514
$as_echo "$as_me: failed program was:" >&5
28515
sed 's/^/| /' conftest.$ac_ext >&5
28520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522
cat >conftest.$ac_ext <<_ACEOF
28525
cat confdefs.h >>conftest.$ac_ext
28526
cat >>conftest.$ac_ext <<_ACEOF
28527
/* end confdefs.h. */
28528
$ac_includes_default
28533
/* Are we little or big endian? From Harbison&Steele. */
28537
char c[sizeof (long int)];
28540
return u.c[sizeof (long int) - 1] == 1;
28546
rm -f conftest$ac_exeext
28547
if { (ac_try="$ac_link"
28548
case "(($ac_try" in
28549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550
*) ac_try_echo=$ac_try;;
28552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553
$as_echo "$ac_try_echo") >&5
28554
(eval "$ac_link") 2>&5
28556
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558
{ (case "(($ac_try" in
28559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560
*) ac_try_echo=$ac_try;;
28562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563
$as_echo "$ac_try_echo") >&5
28564
(eval "$ac_try") 2>&5
28566
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567
(exit $ac_status); }; }; then
28568
ac_cv_c_bigendian=no
28570
$as_echo "$as_me: program exited with status $ac_status" >&5
28571
$as_echo "$as_me: failed program was:" >&5
28572
sed 's/^/| /' conftest.$ac_ext >&5
28574
( exit $ac_status )
28575
ac_cv_c_bigendian=yes
28577
rm -rf conftest.dSYM
28578
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28585
$as_echo "$ac_cv_c_bigendian" >&6; }
28586
case $ac_cv_c_bigendian in #(
28588
cat >>confdefs.h <<\_ACEOF
28589
#define WORDS_BIGENDIAN 1
28596
cat >>confdefs.h <<\_ACEOF
28597
#define AC_APPLE_UNIVERSAL_BUILD 1
28602
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
28603
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28604
$as_echo "$as_me: error: unknown endianness
28605
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28606
{ (exit 1); exit 1; }; } ;;
28610
MD5_CPPFLAGS='-I $(top_srcdir)/md5'
28612
MD5_LDADD='../md5/libmd5.a'
28618
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28619
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28620
if test "${ac_cv_c_bigendian+set}" = set; then
28621
$as_echo_n "(cached) " >&6
28623
ac_cv_c_bigendian=unknown
28624
# See if we're dealing with a universal compiler.
28625
cat >conftest.$ac_ext <<_ACEOF
28628
cat confdefs.h >>conftest.$ac_ext
28629
cat >>conftest.$ac_ext <<_ACEOF
28630
/* end confdefs.h. */
28631
#ifndef __APPLE_CC__
28632
not a universal capable compiler
28637
rm -f conftest.$ac_objext
28638
if { (ac_try="$ac_compile"
28639
case "(($ac_try" in
28640
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641
*) ac_try_echo=$ac_try;;
28643
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28644
$as_echo "$ac_try_echo") >&5
28645
(eval "$ac_compile") 2>conftest.er1
28647
grep -v '^ *+' conftest.er1 >conftest.err
28649
cat conftest.err >&5
28650
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651
(exit $ac_status); } && {
28652
test -z "$ac_c_werror_flag" ||
28653
test ! -s conftest.err
28654
} && test -s conftest.$ac_objext; then
28656
# Check for potential -arch flags. It is not universal unless
28657
# there are some -arch flags. Note that *ppc* also matches
28658
# ppc64. This check is also rather less than ideal.
28659
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
28660
*-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28663
$as_echo "$as_me: failed program was:" >&5
28664
sed 's/^/| /' conftest.$ac_ext >&5
28669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670
if test $ac_cv_c_bigendian = unknown; then
28671
# See if sys/param.h defines the BYTE_ORDER macro.
28672
cat >conftest.$ac_ext <<_ACEOF
28675
cat confdefs.h >>conftest.$ac_ext
28676
cat >>conftest.$ac_ext <<_ACEOF
28677
/* end confdefs.h. */
28678
#include <sys/types.h>
28679
#include <sys/param.h>
28684
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28685
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28687
bogus endian macros
28694
rm -f conftest.$ac_objext
28695
if { (ac_try="$ac_compile"
28696
case "(($ac_try" in
28697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698
*) ac_try_echo=$ac_try;;
28700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28701
$as_echo "$ac_try_echo") >&5
28702
(eval "$ac_compile") 2>conftest.er1
28704
grep -v '^ *+' conftest.er1 >conftest.err
28706
cat conftest.err >&5
28707
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708
(exit $ac_status); } && {
28709
test -z "$ac_c_werror_flag" ||
28710
test ! -s conftest.err
28711
} && test -s conftest.$ac_objext; then
28712
# It does; now see whether it defined to BIG_ENDIAN or not.
28713
cat >conftest.$ac_ext <<_ACEOF
28716
cat confdefs.h >>conftest.$ac_ext
28717
cat >>conftest.$ac_ext <<_ACEOF
28718
/* end confdefs.h. */
28719
#include <sys/types.h>
28720
#include <sys/param.h>
28725
#if BYTE_ORDER != BIG_ENDIAN
28733
rm -f conftest.$ac_objext
28734
if { (ac_try="$ac_compile"
28735
case "(($ac_try" in
28736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737
*) ac_try_echo=$ac_try;;
28739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28740
$as_echo "$ac_try_echo") >&5
28741
(eval "$ac_compile") 2>conftest.er1
28743
grep -v '^ *+' conftest.er1 >conftest.err
28745
cat conftest.err >&5
28746
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747
(exit $ac_status); } && {
28748
test -z "$ac_c_werror_flag" ||
28749
test ! -s conftest.err
28750
} && test -s conftest.$ac_objext; then
28751
ac_cv_c_bigendian=yes
28753
$as_echo "$as_me: failed program was:" >&5
28754
sed 's/^/| /' conftest.$ac_ext >&5
28756
ac_cv_c_bigendian=no
28759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761
$as_echo "$as_me: failed program was:" >&5
28762
sed 's/^/| /' conftest.$ac_ext >&5
28767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769
if test $ac_cv_c_bigendian = unknown; then
28770
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28771
cat >conftest.$ac_ext <<_ACEOF
28774
cat confdefs.h >>conftest.$ac_ext
28775
cat >>conftest.$ac_ext <<_ACEOF
28776
/* end confdefs.h. */
28777
#include <limits.h>
28782
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28783
bogus endian macros
28790
rm -f conftest.$ac_objext
28791
if { (ac_try="$ac_compile"
28792
case "(($ac_try" in
28793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794
*) ac_try_echo=$ac_try;;
28796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797
$as_echo "$ac_try_echo") >&5
28798
(eval "$ac_compile") 2>conftest.er1
28800
grep -v '^ *+' conftest.er1 >conftest.err
28802
cat conftest.err >&5
28803
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804
(exit $ac_status); } && {
28805
test -z "$ac_c_werror_flag" ||
28806
test ! -s conftest.err
28807
} && test -s conftest.$ac_objext; then
28808
# It does; now see whether it defined to _BIG_ENDIAN or not.
28809
cat >conftest.$ac_ext <<_ACEOF
28812
cat confdefs.h >>conftest.$ac_ext
28813
cat >>conftest.$ac_ext <<_ACEOF
28814
/* end confdefs.h. */
28815
#include <limits.h>
28820
#ifndef _BIG_ENDIAN
28828
rm -f conftest.$ac_objext
28829
if { (ac_try="$ac_compile"
28830
case "(($ac_try" in
28831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832
*) ac_try_echo=$ac_try;;
28834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28835
$as_echo "$ac_try_echo") >&5
28836
(eval "$ac_compile") 2>conftest.er1
28838
grep -v '^ *+' conftest.er1 >conftest.err
28840
cat conftest.err >&5
28841
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842
(exit $ac_status); } && {
28843
test -z "$ac_c_werror_flag" ||
28844
test ! -s conftest.err
28845
} && test -s conftest.$ac_objext; then
28846
ac_cv_c_bigendian=yes
28848
$as_echo "$as_me: failed program was:" >&5
28849
sed 's/^/| /' conftest.$ac_ext >&5
28851
ac_cv_c_bigendian=no
28854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28856
$as_echo "$as_me: failed program was:" >&5
28857
sed 's/^/| /' conftest.$ac_ext >&5
28862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864
if test $ac_cv_c_bigendian = unknown; then
28865
# Compile a test program.
28866
if test "$cross_compiling" = yes; then
28867
# Try to guess by grepping values from an object file.
28868
cat >conftest.$ac_ext <<_ACEOF
28871
cat confdefs.h >>conftest.$ac_ext
28872
cat >>conftest.$ac_ext <<_ACEOF
28873
/* end confdefs.h. */
28874
short int ascii_mm[] =
28875
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28876
short int ascii_ii[] =
28877
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28878
int use_ascii (int i) {
28879
return ascii_mm[i] + ascii_ii[i];
28881
short int ebcdic_ii[] =
28882
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28883
short int ebcdic_mm[] =
28884
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28885
int use_ebcdic (int i) {
28886
return ebcdic_mm[i] + ebcdic_ii[i];
28893
return use_ascii (foo) == use_ebcdic (foo);
28898
rm -f conftest.$ac_objext
28899
if { (ac_try="$ac_compile"
28900
case "(($ac_try" in
28901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902
*) ac_try_echo=$ac_try;;
28904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28905
$as_echo "$ac_try_echo") >&5
28906
(eval "$ac_compile") 2>conftest.er1
28908
grep -v '^ *+' conftest.er1 >conftest.err
28910
cat conftest.err >&5
28911
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912
(exit $ac_status); } && {
28913
test -z "$ac_c_werror_flag" ||
28914
test ! -s conftest.err
28915
} && test -s conftest.$ac_objext; then
28916
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28917
ac_cv_c_bigendian=yes
28919
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28920
if test "$ac_cv_c_bigendian" = unknown; then
28921
ac_cv_c_bigendian=no
28923
# finding both strings is unlikely to happen, but who knows?
28924
ac_cv_c_bigendian=unknown
28928
$as_echo "$as_me: failed program was:" >&5
28929
sed 's/^/| /' conftest.$ac_ext >&5
28934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936
cat >conftest.$ac_ext <<_ACEOF
28939
cat confdefs.h >>conftest.$ac_ext
28940
cat >>conftest.$ac_ext <<_ACEOF
28941
/* end confdefs.h. */
28942
$ac_includes_default
28947
/* Are we little or big endian? From Harbison&Steele. */
28951
char c[sizeof (long int)];
28954
return u.c[sizeof (long int) - 1] == 1;
28960
rm -f conftest$ac_exeext
28961
if { (ac_try="$ac_link"
28962
case "(($ac_try" in
28963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964
*) ac_try_echo=$ac_try;;
28966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28967
$as_echo "$ac_try_echo") >&5
28968
(eval "$ac_link") 2>&5
28970
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972
{ (case "(($ac_try" in
28973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974
*) ac_try_echo=$ac_try;;
28976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28977
$as_echo "$ac_try_echo") >&5
28978
(eval "$ac_try") 2>&5
28980
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981
(exit $ac_status); }; }; then
28982
ac_cv_c_bigendian=no
28984
$as_echo "$as_me: program exited with status $ac_status" >&5
28985
$as_echo "$as_me: failed program was:" >&5
28986
sed 's/^/| /' conftest.$ac_ext >&5
28988
( exit $ac_status )
28989
ac_cv_c_bigendian=yes
28991
rm -rf conftest.dSYM
28992
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28999
$as_echo "$ac_cv_c_bigendian" >&6; }
29000
case $ac_cv_c_bigendian in #(
29002
cat >>confdefs.h <<\_ACEOF
29003
#define WORDS_BIGENDIAN 1
29010
cat >>confdefs.h <<\_ACEOF
29011
#define AC_APPLE_UNIVERSAL_BUILD 1
29016
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
29017
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29018
$as_echo "$as_me: error: unknown endianness
29019
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29020
{ (exit 1); exit 1; }; } ;;
29026
GL_COND_LIBTOOL_TRUE=
29027
GL_COND_LIBTOOL_FALSE='#'
29029
GL_COND_LIBTOOL_TRUE='#'
29030
GL_COND_LIBTOOL_FALSE=
29033
gl_cond_libtool=false
29045
gl_source_base='md5'
29055
md5_LIBOBJS="$md5_LIBOBJS md5.$ac_objext"
29066
if test $gt_cv_c_wchar_t = no; then
29070
{ $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
29071
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29072
if test "${gl_cv_decl_null_works+set}" = set; then
29073
$as_echo_n "(cached) " >&6
29075
cat >conftest.$ac_ext <<_ACEOF
29078
cat confdefs.h >>conftest.$ac_ext
29079
cat >>conftest.$ac_ext <<_ACEOF
29080
/* end confdefs.h. */
29081
#include <stddef.h>
29082
int test[2 * (sizeof NULL == sizeof (void *)) -1];
29092
rm -f conftest.$ac_objext
29093
if { (ac_try="$ac_compile"
29094
case "(($ac_try" in
29095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096
*) ac_try_echo=$ac_try;;
29098
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29099
$as_echo "$ac_try_echo") >&5
29100
(eval "$ac_compile") 2>conftest.er1
29102
grep -v '^ *+' conftest.er1 >conftest.err
29104
cat conftest.err >&5
29105
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106
(exit $ac_status); } && {
29107
test -z "$ac_c_werror_flag" ||
29108
test ! -s conftest.err
29109
} && test -s conftest.$ac_objext; then
29110
gl_cv_decl_null_works=yes
29112
$as_echo "$as_me: failed program was:" >&5
29113
sed 's/^/| /' conftest.$ac_ext >&5
29115
gl_cv_decl_null_works=no
29118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120
{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
29121
$as_echo "$gl_cv_decl_null_works" >&6; }
29122
if test $gl_cv_decl_null_works = no; then
29126
if test -n "$STDDEF_H"; then
29138
if test $gl_cv_have_include_next = yes; then
29139
gl_cv_next_stddef_h='<'stddef.h'>'
29141
{ $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
29142
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29143
if test "${gl_cv_next_stddef_h+set}" = set; then
29144
$as_echo_n "(cached) " >&6
29147
if test $ac_cv_header_stddef_h = yes; then
29148
cat >conftest.$ac_ext <<_ACEOF
29151
cat confdefs.h >>conftest.$ac_ext
29152
cat >>conftest.$ac_ext <<_ACEOF
29153
/* end confdefs.h. */
29154
#include <stddef.h>
29158
aix*) gl_absname_cpp="$ac_cpp -C" ;;
29159
*) gl_absname_cpp="$ac_cpp" ;;
29161
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29162
sed -n '\#/stddef.h#{
29163
s#.*"\(.*/stddef.h\)".*#\1#
29169
gl_cv_next_stddef_h='<'stddef.h'>'
29173
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
29174
$as_echo "$gl_cv_next_stddef_h" >&6; }
29176
NEXT_STDDEF_H=$gl_cv_next_stddef_h
29178
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29179
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29180
gl_next_as_first_directive='<'stddef.h'>'
29182
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29183
gl_next_as_first_directive=$gl_cv_next_stddef_h
29185
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
29194
if test $ac_cv_type_long_long_int = yes; then
29195
HAVE_LONG_LONG_INT=1
29197
HAVE_LONG_LONG_INT=0
29201
if test $ac_cv_type_unsigned_long_long_int = yes; then
29202
HAVE_UNSIGNED_LONG_LONG_INT=1
29204
HAVE_UNSIGNED_LONG_LONG_INT=0
29208
if test $ac_cv_header_inttypes_h = yes; then
29215
if test $ac_cv_header_sys_types_h = yes; then
29233
if test $gl_cv_have_include_next = yes; then
29234
gl_cv_next_stdint_h='<'stdint.h'>'
29236
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29237
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
29238
if test "${gl_cv_next_stdint_h+set}" = set; then
29239
$as_echo_n "(cached) " >&6
29242
if test $ac_cv_header_stdint_h = yes; then
29243
cat >conftest.$ac_ext <<_ACEOF
29246
cat confdefs.h >>conftest.$ac_ext
29247
cat >>conftest.$ac_ext <<_ACEOF
29248
/* end confdefs.h. */
29249
#include <stdint.h>
29253
aix*) gl_absname_cpp="$ac_cpp -C" ;;
29254
*) gl_absname_cpp="$ac_cpp" ;;
29256
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29257
sed -n '\#/stdint.h#{
29258
s#.*"\(.*/stdint.h\)".*#\1#
29264
gl_cv_next_stdint_h='<'stdint.h'>'
29268
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29269
$as_echo "$gl_cv_next_stdint_h" >&6; }
29271
NEXT_STDINT_H=$gl_cv_next_stdint_h
29273
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29274
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29275
gl_next_as_first_directive='<'stdint.h'>'
29277
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29278
gl_next_as_first_directive=$gl_cv_next_stdint_h
29280
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
29284
if test $ac_cv_header_stdint_h = yes; then
29291
if test $ac_cv_header_stdint_h = yes; then
29292
{ $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
29293
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
29294
if test "${gl_cv_header_working_stdint_h+set}" = set; then
29295
$as_echo_n "(cached) " >&6
29297
gl_cv_header_working_stdint_h=no
29298
cat >conftest.$ac_ext <<_ACEOF
29302
cat confdefs.h >>conftest.$ac_ext
29303
cat >>conftest.$ac_ext <<_ACEOF
29304
/* end confdefs.h. */
29306
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29307
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29308
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29309
#include <stdint.h>
29310
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
29311
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
29312
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
29316
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29317
included before <wchar.h>. */
29318
#include <stddef.h>
29319
#include <signal.h>
29321
# include <stdio.h>
29323
# include <wchar.h>
29328
int8_t a1 = INT8_MAX;
29329
int8_t a1min = INT8_MIN;
29332
int16_t a2 = INT16_MAX;
29333
int16_t a2min = INT16_MIN;
29336
int32_t a3 = INT32_MAX;
29337
int32_t a3min = INT32_MIN;
29340
int64_t a4 = INT64_MAX;
29341
int64_t a4min = INT64_MIN;
29344
uint8_t b1 = UINT8_MAX;
29346
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
29349
uint16_t b2 = UINT16_MAX;
29352
uint32_t b3 = UINT32_MAX;
29355
uint64_t b4 = UINT64_MAX;
29357
int_least8_t c1 = INT8_C (0x7f);
29358
int_least8_t c1max = INT_LEAST8_MAX;
29359
int_least8_t c1min = INT_LEAST8_MIN;
29360
int_least16_t c2 = INT16_C (0x7fff);
29361
int_least16_t c2max = INT_LEAST16_MAX;
29362
int_least16_t c2min = INT_LEAST16_MIN;
29363
int_least32_t c3 = INT32_C (0x7fffffff);
29364
int_least32_t c3max = INT_LEAST32_MAX;
29365
int_least32_t c3min = INT_LEAST32_MIN;
29366
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
29367
int_least64_t c4max = INT_LEAST64_MAX;
29368
int_least64_t c4min = INT_LEAST64_MIN;
29369
uint_least8_t d1 = UINT8_C (0xff);
29370
uint_least8_t d1max = UINT_LEAST8_MAX;
29371
uint_least16_t d2 = UINT16_C (0xffff);
29372
uint_least16_t d2max = UINT_LEAST16_MAX;
29373
uint_least32_t d3 = UINT32_C (0xffffffff);
29374
uint_least32_t d3max = UINT_LEAST32_MAX;
29375
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
29376
uint_least64_t d4max = UINT_LEAST64_MAX;
29377
int_fast8_t e1 = INT_FAST8_MAX;
29378
int_fast8_t e1min = INT_FAST8_MIN;
29379
int_fast16_t e2 = INT_FAST16_MAX;
29380
int_fast16_t e2min = INT_FAST16_MIN;
29381
int_fast32_t e3 = INT_FAST32_MAX;
29382
int_fast32_t e3min = INT_FAST32_MIN;
29383
int_fast64_t e4 = INT_FAST64_MAX;
29384
int_fast64_t e4min = INT_FAST64_MIN;
29385
uint_fast8_t f1 = UINT_FAST8_MAX;
29386
uint_fast16_t f2 = UINT_FAST16_MAX;
29387
uint_fast32_t f3 = UINT_FAST32_MAX;
29388
uint_fast64_t f4 = UINT_FAST64_MAX;
29390
intptr_t g = INTPTR_MAX;
29391
intptr_t gmin = INTPTR_MIN;
29394
uintptr_t h = UINTPTR_MAX;
29396
intmax_t i = INTMAX_MAX;
29397
uintmax_t j = UINTMAX_MAX;
29399
#include <limits.h> /* for CHAR_BIT */
29400
#define TYPE_MINIMUM(t) \
29401
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
29402
#define TYPE_MAXIMUM(t) \
29403
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
29406
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29407
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29409
/* Detect bug in FreeBSD 6.0 / ia64. */
29410
int check_SIG_ATOMIC:
29411
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29412
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29414
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29416
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29417
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29419
/* Detect bug in mingw. */
29421
WINT_MIN == TYPE_MINIMUM (wint_t)
29422
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
29425
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
29427
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29428
int check_UINT16_C:
29429
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29431
/* Detect bugs in OpenBSD 3.9 stdint.h. */
29433
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29436
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29439
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29442
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29444
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29445
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29446
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29447
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29448
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29449
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29450
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29451
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29452
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29453
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29454
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29465
rm -f conftest.$ac_objext
29466
if { (ac_try="$ac_compile"
29467
case "(($ac_try" in
29468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469
*) ac_try_echo=$ac_try;;
29471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472
$as_echo "$ac_try_echo") >&5
29473
(eval "$ac_compile") 2>conftest.er1
29475
grep -v '^ *+' conftest.er1 >conftest.err
29477
cat conftest.err >&5
29478
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479
(exit $ac_status); } && {
29480
test -z "$ac_c_werror_flag" ||
29481
test ! -s conftest.err
29482
} && test -s conftest.$ac_objext; then
29483
if test "$cross_compiling" = yes; then
29484
gl_cv_header_working_stdint_h=yes
29487
cat >conftest.$ac_ext <<_ACEOF
29491
cat confdefs.h >>conftest.$ac_ext
29492
cat >>conftest.$ac_ext <<_ACEOF
29493
/* end confdefs.h. */
29495
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29496
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29497
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29498
#include <stdint.h>
29501
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29502
included before <wchar.h>. */
29503
#include <stddef.h>
29504
#include <signal.h>
29506
# include <stdio.h>
29508
# include <wchar.h>
29513
#include <string.h>
29514
#define MVAL(macro) MVAL1(macro)
29515
#define MVAL1(expression) #expression
29516
static const char *macro_values[] =
11674
char c[sizeof (long int)];
11677
return u.c[sizeof (long int) - 1] == 1;
11683
rm -f conftest$ac_exeext
11684
if { (ac_try="$ac_link"
11685
case "(($ac_try" in
11686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687
*) ac_try_echo=$ac_try;;
11689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690
(eval "$ac_link") 2>&5
11692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11694
{ (case "(($ac_try" in
11695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696
*) ac_try_echo=$ac_try;;
11698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699
(eval "$ac_try") 2>&5
11701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702
(exit $ac_status); }; }; then
11703
ac_cv_c_bigendian=no
11705
echo "$as_me: program exited with status $ac_status" >&5
11706
echo "$as_me: failed program was:" >&5
11707
sed 's/^/| /' conftest.$ac_ext >&5
11709
( exit $ac_status )
11710
ac_cv_c_bigendian=yes
11712
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11721
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11722
case $ac_cv_c_bigendian in
11725
cat >>confdefs.h <<\_ACEOF
11726
#define WORDS_BIGENDIAN 1
11732
{ { echo "$as_me:$LINENO: error: unknown endianness
11733
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11734
echo "$as_me: error: unknown endianness
11735
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11736
{ (exit 1); exit 1; }; } ;;
29550
for (mv = macro_values; *mv != NULL; mv++)
29552
const char *value = *mv;
29553
/* Test whether it looks like a cast expression. */
29554
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
29555
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
29556
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
29557
|| strncmp (value, "((int)"/*)*/, 6) == 0
29558
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
29559
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
29568
rm -f conftest$ac_exeext
29569
if { (ac_try="$ac_link"
29570
case "(($ac_try" in
29571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572
*) ac_try_echo=$ac_try;;
29574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29575
$as_echo "$ac_try_echo") >&5
29576
(eval "$ac_link") 2>&5
29578
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29580
{ (case "(($ac_try" in
29581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582
*) ac_try_echo=$ac_try;;
29584
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585
$as_echo "$ac_try_echo") >&5
29586
(eval "$ac_try") 2>&5
29588
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589
(exit $ac_status); }; }; then
29590
gl_cv_header_working_stdint_h=yes
29592
$as_echo "$as_me: program exited with status $ac_status" >&5
29593
$as_echo "$as_me: failed program was:" >&5
29594
sed 's/^/| /' conftest.$ac_ext >&5
29597
rm -rf conftest.dSYM
29598
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29604
$as_echo "$as_me: failed program was:" >&5
29605
sed 's/^/| /' conftest.$ac_ext >&5
29610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29613
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
29614
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
29616
if test "$gl_cv_header_working_stdint_h" = yes; then
29621
for ac_header in sys/inttypes.h sys/bitypes.h
29623
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29626
$as_echo_n "checking for $ac_header... " >&6; }
29627
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628
$as_echo_n "(cached) " >&6
29630
ac_res=`eval 'as_val=${'$as_ac_Header'}
29631
$as_echo "$as_val"'`
29632
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29633
$as_echo "$ac_res" >&6; }
29635
# Is the header compilable?
29636
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29637
$as_echo_n "checking $ac_header usability... " >&6; }
29638
cat >conftest.$ac_ext <<_ACEOF
29641
cat confdefs.h >>conftest.$ac_ext
29642
cat >>conftest.$ac_ext <<_ACEOF
29643
/* end confdefs.h. */
29644
$ac_includes_default
29645
#include <$ac_header>
29647
rm -f conftest.$ac_objext
29648
if { (ac_try="$ac_compile"
29649
case "(($ac_try" in
29650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651
*) ac_try_echo=$ac_try;;
29653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29654
$as_echo "$ac_try_echo") >&5
29655
(eval "$ac_compile") 2>conftest.er1
29657
grep -v '^ *+' conftest.er1 >conftest.err
29659
cat conftest.err >&5
29660
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661
(exit $ac_status); } && {
29662
test -z "$ac_c_werror_flag" ||
29663
test ! -s conftest.err
29664
} && test -s conftest.$ac_objext; then
29665
ac_header_compiler=yes
29667
$as_echo "$as_me: failed program was:" >&5
29668
sed 's/^/| /' conftest.$ac_ext >&5
29670
ac_header_compiler=no
29673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29675
$as_echo "$ac_header_compiler" >&6; }
29677
# Is the header present?
29678
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29679
$as_echo_n "checking $ac_header presence... " >&6; }
29680
cat >conftest.$ac_ext <<_ACEOF
29683
cat confdefs.h >>conftest.$ac_ext
29684
cat >>conftest.$ac_ext <<_ACEOF
29685
/* end confdefs.h. */
29686
#include <$ac_header>
29688
if { (ac_try="$ac_cpp conftest.$ac_ext"
29689
case "(($ac_try" in
29690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691
*) ac_try_echo=$ac_try;;
29693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29694
$as_echo "$ac_try_echo") >&5
29695
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29697
grep -v '^ *+' conftest.er1 >conftest.err
29699
cat conftest.err >&5
29700
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701
(exit $ac_status); } >/dev/null && {
29702
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29703
test ! -s conftest.err
29705
ac_header_preproc=yes
29707
$as_echo "$as_me: failed program was:" >&5
29708
sed 's/^/| /' conftest.$ac_ext >&5
29710
ac_header_preproc=no
29713
rm -f conftest.err conftest.$ac_ext
29714
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29715
$as_echo "$ac_header_preproc" >&6; }
29717
# So? What about this header?
29718
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29721
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29722
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29723
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29724
ac_header_preproc=yes
29727
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29728
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29729
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29730
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29731
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29732
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29733
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29734
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29735
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29736
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29737
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29738
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29740
## ------------------------------- ##
29741
## Report this to bug-wget@gnu.org ##
29742
## ------------------------------- ##
29744
) | sed "s/^/$as_me: WARNING: /" >&2
29747
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29748
$as_echo_n "checking for $ac_header... " >&6; }
29749
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29750
$as_echo_n "(cached) " >&6
29752
eval "$as_ac_Header=\$ac_header_preproc"
29754
ac_res=`eval 'as_val=${'$as_ac_Header'}
29755
$as_echo "$as_val"'`
29756
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29757
$as_echo "$ac_res" >&6; }
29760
as_val=`eval 'as_val=${'$as_ac_Header'}
29761
$as_echo "$as_val"'`
29762
if test "x$as_val" = x""yes; then
29763
cat >>confdefs.h <<_ACEOF
29764
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29771
if test $ac_cv_header_sys_inttypes_h = yes; then
29772
HAVE_SYS_INTTYPES_H=1
29774
HAVE_SYS_INTTYPES_H=0
29777
if test $ac_cv_header_sys_bitypes_h = yes; then
29778
HAVE_SYS_BITYPES_H=1
29780
HAVE_SYS_BITYPES_H=0
29793
if test $APPLE_UNIVERSAL_BUILD = 0; then
29798
for gltype in ptrdiff_t size_t ; do
29799
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29800
$as_echo_n "checking for bit size of $gltype... " >&6; }
29801
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29802
$as_echo_n "(cached) " >&6
29804
if test "$cross_compiling" = yes; then
29805
# Depending upon the size, compute the lo and hi bounds.
29806
cat >conftest.$ac_ext <<_ACEOF
29809
cat confdefs.h >>conftest.$ac_ext
29810
cat >>conftest.$ac_ext <<_ACEOF
29811
/* end confdefs.h. */
29813
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29814
included before <wchar.h>. */
29815
#include <stddef.h>
29816
#include <signal.h>
29818
# include <stdio.h>
29820
# include <wchar.h>
29823
#include <limits.h>
29827
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29834
rm -f conftest.$ac_objext
29835
if { (ac_try="$ac_compile"
29836
case "(($ac_try" in
29837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838
*) ac_try_echo=$ac_try;;
29840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29841
$as_echo "$ac_try_echo") >&5
29842
(eval "$ac_compile") 2>conftest.er1
29844
grep -v '^ *+' conftest.er1 >conftest.err
29846
cat conftest.err >&5
29847
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848
(exit $ac_status); } && {
29849
test -z "$ac_c_werror_flag" ||
29850
test ! -s conftest.err
29851
} && test -s conftest.$ac_objext; then
29854
cat >conftest.$ac_ext <<_ACEOF
29857
cat confdefs.h >>conftest.$ac_ext
29858
cat >>conftest.$ac_ext <<_ACEOF
29859
/* end confdefs.h. */
29861
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29862
included before <wchar.h>. */
29863
#include <stddef.h>
29864
#include <signal.h>
29866
# include <stdio.h>
29868
# include <wchar.h>
29871
#include <limits.h>
29875
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29882
rm -f conftest.$ac_objext
29883
if { (ac_try="$ac_compile"
29884
case "(($ac_try" in
29885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886
*) ac_try_echo=$ac_try;;
29888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889
$as_echo "$ac_try_echo") >&5
29890
(eval "$ac_compile") 2>conftest.er1
29892
grep -v '^ *+' conftest.er1 >conftest.err
29894
cat conftest.err >&5
29895
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896
(exit $ac_status); } && {
29897
test -z "$ac_c_werror_flag" ||
29898
test ! -s conftest.err
29899
} && test -s conftest.$ac_objext; then
29900
ac_hi=$ac_mid; break
29902
$as_echo "$as_me: failed program was:" >&5
29903
sed 's/^/| /' conftest.$ac_ext >&5
29905
ac_lo=`expr $ac_mid + 1`
29906
if test $ac_lo -le $ac_mid; then
29910
ac_mid=`expr 2 '*' $ac_mid + 1`
29913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29916
$as_echo "$as_me: failed program was:" >&5
29917
sed 's/^/| /' conftest.$ac_ext >&5
29919
cat >conftest.$ac_ext <<_ACEOF
29922
cat confdefs.h >>conftest.$ac_ext
29923
cat >>conftest.$ac_ext <<_ACEOF
29924
/* end confdefs.h. */
29926
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29927
included before <wchar.h>. */
29928
#include <stddef.h>
29929
#include <signal.h>
29931
# include <stdio.h>
29933
# include <wchar.h>
29936
#include <limits.h>
29940
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29947
rm -f conftest.$ac_objext
29948
if { (ac_try="$ac_compile"
29949
case "(($ac_try" in
29950
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951
*) ac_try_echo=$ac_try;;
29953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954
$as_echo "$ac_try_echo") >&5
29955
(eval "$ac_compile") 2>conftest.er1
29957
grep -v '^ *+' conftest.er1 >conftest.err
29959
cat conftest.err >&5
29960
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961
(exit $ac_status); } && {
29962
test -z "$ac_c_werror_flag" ||
29963
test ! -s conftest.err
29964
} && test -s conftest.$ac_objext; then
29967
cat >conftest.$ac_ext <<_ACEOF
29970
cat confdefs.h >>conftest.$ac_ext
29971
cat >>conftest.$ac_ext <<_ACEOF
29972
/* end confdefs.h. */
29974
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29975
included before <wchar.h>. */
29976
#include <stddef.h>
29977
#include <signal.h>
29979
# include <stdio.h>
29981
# include <wchar.h>
29984
#include <limits.h>
29988
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29995
rm -f conftest.$ac_objext
29996
if { (ac_try="$ac_compile"
29997
case "(($ac_try" in
29998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999
*) ac_try_echo=$ac_try;;
30001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30002
$as_echo "$ac_try_echo") >&5
30003
(eval "$ac_compile") 2>conftest.er1
30005
grep -v '^ *+' conftest.er1 >conftest.err
30007
cat conftest.err >&5
30008
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009
(exit $ac_status); } && {
30010
test -z "$ac_c_werror_flag" ||
30011
test ! -s conftest.err
30012
} && test -s conftest.$ac_objext; then
30013
ac_lo=$ac_mid; break
30015
$as_echo "$as_me: failed program was:" >&5
30016
sed 's/^/| /' conftest.$ac_ext >&5
30018
ac_hi=`expr '(' $ac_mid ')' - 1`
30019
if test $ac_mid -le $ac_hi; then
30023
ac_mid=`expr 2 '*' $ac_mid`
30026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029
$as_echo "$as_me: failed program was:" >&5
30030
sed 's/^/| /' conftest.$ac_ext >&5
30035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039
# Binary search between lo and hi bounds.
30040
while test "x$ac_lo" != "x$ac_hi"; do
30041
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30042
cat >conftest.$ac_ext <<_ACEOF
30045
cat confdefs.h >>conftest.$ac_ext
30046
cat >>conftest.$ac_ext <<_ACEOF
30047
/* end confdefs.h. */
30049
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30050
included before <wchar.h>. */
30051
#include <stddef.h>
30052
#include <signal.h>
30054
# include <stdio.h>
30056
# include <wchar.h>
30059
#include <limits.h>
30063
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30070
rm -f conftest.$ac_objext
30071
if { (ac_try="$ac_compile"
30072
case "(($ac_try" in
30073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074
*) ac_try_echo=$ac_try;;
30076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30077
$as_echo "$ac_try_echo") >&5
30078
(eval "$ac_compile") 2>conftest.er1
30080
grep -v '^ *+' conftest.er1 >conftest.err
30082
cat conftest.err >&5
30083
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084
(exit $ac_status); } && {
30085
test -z "$ac_c_werror_flag" ||
30086
test ! -s conftest.err
30087
} && test -s conftest.$ac_objext; then
30090
$as_echo "$as_me: failed program was:" >&5
30091
sed 's/^/| /' conftest.$ac_ext >&5
30093
ac_lo=`expr '(' $ac_mid ')' + 1`
30096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099
?*) result=$ac_lo;;
30100
'') result=unknown ;;
30103
cat >conftest.$ac_ext <<_ACEOF
30106
cat confdefs.h >>conftest.$ac_ext
30107
cat >>conftest.$ac_ext <<_ACEOF
30108
/* end confdefs.h. */
30110
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30111
included before <wchar.h>. */
30112
#include <stddef.h>
30113
#include <signal.h>
30115
# include <stdio.h>
30117
# include <wchar.h>
30120
#include <limits.h>
30121
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30122
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30124
#include <stdlib.h>
30129
FILE *f = fopen ("conftest.val", "w");
30132
if ((sizeof ($gltype) * CHAR_BIT) < 0)
30134
long int i = longval ();
30135
if (i != (sizeof ($gltype) * CHAR_BIT))
30137
fprintf (f, "%ld", i);
30141
unsigned long int i = ulongval ();
30142
if (i != (sizeof ($gltype) * CHAR_BIT))
30144
fprintf (f, "%lu", i);
30146
/* Do not output a trailing newline, as this causes \r\n confusion
30147
on some platforms. */
30148
return ferror (f) || fclose (f) != 0;
30154
rm -f conftest$ac_exeext
30155
if { (ac_try="$ac_link"
30156
case "(($ac_try" in
30157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158
*) ac_try_echo=$ac_try;;
30160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30161
$as_echo "$ac_try_echo") >&5
30162
(eval "$ac_link") 2>&5
30164
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30166
{ (case "(($ac_try" in
30167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168
*) ac_try_echo=$ac_try;;
30170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30171
$as_echo "$ac_try_echo") >&5
30172
(eval "$ac_try") 2>&5
30174
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175
(exit $ac_status); }; }; then
30176
result=`cat conftest.val`
30178
$as_echo "$as_me: program exited with status $ac_status" >&5
30179
$as_echo "$as_me: failed program was:" >&5
30180
sed 's/^/| /' conftest.$ac_ext >&5
30182
( exit $ac_status )
30185
rm -rf conftest.dSYM
30186
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30189
eval gl_cv_bitsizeof_${gltype}=\$result
30192
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30193
$as_echo "$as_val"'`
30194
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30195
$as_echo "$ac_res" >&6; }
30196
eval result=\$gl_cv_bitsizeof_${gltype}
30197
if test $result = unknown; then
30200
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30201
cat >>confdefs.h <<_ACEOF
30202
#define BITSIZEOF_${GLTYPE} $result
30205
eval BITSIZEOF_${GLTYPE}=\$result
30215
for gltype in sig_atomic_t wchar_t wint_t ; do
30216
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30217
$as_echo_n "checking for bit size of $gltype... " >&6; }
30218
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30219
$as_echo_n "(cached) " >&6
30221
if test "$cross_compiling" = yes; then
30222
# Depending upon the size, compute the lo and hi bounds.
30223
cat >conftest.$ac_ext <<_ACEOF
30226
cat confdefs.h >>conftest.$ac_ext
30227
cat >>conftest.$ac_ext <<_ACEOF
30228
/* end confdefs.h. */
30230
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30231
included before <wchar.h>. */
30232
#include <stddef.h>
30233
#include <signal.h>
30235
# include <stdio.h>
30237
# include <wchar.h>
30240
#include <limits.h>
30244
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30251
rm -f conftest.$ac_objext
30252
if { (ac_try="$ac_compile"
30253
case "(($ac_try" in
30254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255
*) ac_try_echo=$ac_try;;
30257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30258
$as_echo "$ac_try_echo") >&5
30259
(eval "$ac_compile") 2>conftest.er1
30261
grep -v '^ *+' conftest.er1 >conftest.err
30263
cat conftest.err >&5
30264
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265
(exit $ac_status); } && {
30266
test -z "$ac_c_werror_flag" ||
30267
test ! -s conftest.err
30268
} && test -s conftest.$ac_objext; then
30271
cat >conftest.$ac_ext <<_ACEOF
30274
cat confdefs.h >>conftest.$ac_ext
30275
cat >>conftest.$ac_ext <<_ACEOF
30276
/* end confdefs.h. */
30278
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30279
included before <wchar.h>. */
30280
#include <stddef.h>
30281
#include <signal.h>
30283
# include <stdio.h>
30285
# include <wchar.h>
30288
#include <limits.h>
30292
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30299
rm -f conftest.$ac_objext
30300
if { (ac_try="$ac_compile"
30301
case "(($ac_try" in
30302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303
*) ac_try_echo=$ac_try;;
30305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30306
$as_echo "$ac_try_echo") >&5
30307
(eval "$ac_compile") 2>conftest.er1
30309
grep -v '^ *+' conftest.er1 >conftest.err
30311
cat conftest.err >&5
30312
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313
(exit $ac_status); } && {
30314
test -z "$ac_c_werror_flag" ||
30315
test ! -s conftest.err
30316
} && test -s conftest.$ac_objext; then
30317
ac_hi=$ac_mid; break
30319
$as_echo "$as_me: failed program was:" >&5
30320
sed 's/^/| /' conftest.$ac_ext >&5
30322
ac_lo=`expr $ac_mid + 1`
30323
if test $ac_lo -le $ac_mid; then
30327
ac_mid=`expr 2 '*' $ac_mid + 1`
30330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30333
$as_echo "$as_me: failed program was:" >&5
30334
sed 's/^/| /' conftest.$ac_ext >&5
30336
cat >conftest.$ac_ext <<_ACEOF
30339
cat confdefs.h >>conftest.$ac_ext
30340
cat >>conftest.$ac_ext <<_ACEOF
30341
/* end confdefs.h. */
30343
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30344
included before <wchar.h>. */
30345
#include <stddef.h>
30346
#include <signal.h>
30348
# include <stdio.h>
30350
# include <wchar.h>
30353
#include <limits.h>
30357
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30364
rm -f conftest.$ac_objext
30365
if { (ac_try="$ac_compile"
30366
case "(($ac_try" in
30367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368
*) ac_try_echo=$ac_try;;
30370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371
$as_echo "$ac_try_echo") >&5
30372
(eval "$ac_compile") 2>conftest.er1
30374
grep -v '^ *+' conftest.er1 >conftest.err
30376
cat conftest.err >&5
30377
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378
(exit $ac_status); } && {
30379
test -z "$ac_c_werror_flag" ||
30380
test ! -s conftest.err
30381
} && test -s conftest.$ac_objext; then
30384
cat >conftest.$ac_ext <<_ACEOF
30387
cat confdefs.h >>conftest.$ac_ext
30388
cat >>conftest.$ac_ext <<_ACEOF
30389
/* end confdefs.h. */
30391
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30392
included before <wchar.h>. */
30393
#include <stddef.h>
30394
#include <signal.h>
30396
# include <stdio.h>
30398
# include <wchar.h>
30401
#include <limits.h>
30405
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30412
rm -f conftest.$ac_objext
30413
if { (ac_try="$ac_compile"
30414
case "(($ac_try" in
30415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416
*) ac_try_echo=$ac_try;;
30418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30419
$as_echo "$ac_try_echo") >&5
30420
(eval "$ac_compile") 2>conftest.er1
30422
grep -v '^ *+' conftest.er1 >conftest.err
30424
cat conftest.err >&5
30425
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426
(exit $ac_status); } && {
30427
test -z "$ac_c_werror_flag" ||
30428
test ! -s conftest.err
30429
} && test -s conftest.$ac_objext; then
30430
ac_lo=$ac_mid; break
30432
$as_echo "$as_me: failed program was:" >&5
30433
sed 's/^/| /' conftest.$ac_ext >&5
30435
ac_hi=`expr '(' $ac_mid ')' - 1`
30436
if test $ac_mid -le $ac_hi; then
30440
ac_mid=`expr 2 '*' $ac_mid`
30443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30446
$as_echo "$as_me: failed program was:" >&5
30447
sed 's/^/| /' conftest.$ac_ext >&5
30452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456
# Binary search between lo and hi bounds.
30457
while test "x$ac_lo" != "x$ac_hi"; do
30458
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30459
cat >conftest.$ac_ext <<_ACEOF
30462
cat confdefs.h >>conftest.$ac_ext
30463
cat >>conftest.$ac_ext <<_ACEOF
30464
/* end confdefs.h. */
30466
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30467
included before <wchar.h>. */
30468
#include <stddef.h>
30469
#include <signal.h>
30471
# include <stdio.h>
30473
# include <wchar.h>
30476
#include <limits.h>
30480
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30487
rm -f conftest.$ac_objext
30488
if { (ac_try="$ac_compile"
30489
case "(($ac_try" in
30490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491
*) ac_try_echo=$ac_try;;
30493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30494
$as_echo "$ac_try_echo") >&5
30495
(eval "$ac_compile") 2>conftest.er1
30497
grep -v '^ *+' conftest.er1 >conftest.err
30499
cat conftest.err >&5
30500
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501
(exit $ac_status); } && {
30502
test -z "$ac_c_werror_flag" ||
30503
test ! -s conftest.err
30504
} && test -s conftest.$ac_objext; then
30507
$as_echo "$as_me: failed program was:" >&5
30508
sed 's/^/| /' conftest.$ac_ext >&5
30510
ac_lo=`expr '(' $ac_mid ')' + 1`
30513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30516
?*) result=$ac_lo;;
30517
'') result=unknown ;;
30520
cat >conftest.$ac_ext <<_ACEOF
30523
cat confdefs.h >>conftest.$ac_ext
30524
cat >>conftest.$ac_ext <<_ACEOF
30525
/* end confdefs.h. */
30527
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30528
included before <wchar.h>. */
30529
#include <stddef.h>
30530
#include <signal.h>
30532
# include <stdio.h>
30534
# include <wchar.h>
30537
#include <limits.h>
30538
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30539
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30541
#include <stdlib.h>
30546
FILE *f = fopen ("conftest.val", "w");
30549
if ((sizeof ($gltype) * CHAR_BIT) < 0)
30551
long int i = longval ();
30552
if (i != (sizeof ($gltype) * CHAR_BIT))
30554
fprintf (f, "%ld", i);
30558
unsigned long int i = ulongval ();
30559
if (i != (sizeof ($gltype) * CHAR_BIT))
30561
fprintf (f, "%lu", i);
30563
/* Do not output a trailing newline, as this causes \r\n confusion
30564
on some platforms. */
30565
return ferror (f) || fclose (f) != 0;
30571
rm -f conftest$ac_exeext
30572
if { (ac_try="$ac_link"
30573
case "(($ac_try" in
30574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575
*) ac_try_echo=$ac_try;;
30577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30578
$as_echo "$ac_try_echo") >&5
30579
(eval "$ac_link") 2>&5
30581
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30583
{ (case "(($ac_try" in
30584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585
*) ac_try_echo=$ac_try;;
30587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588
$as_echo "$ac_try_echo") >&5
30589
(eval "$ac_try") 2>&5
30591
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592
(exit $ac_status); }; }; then
30593
result=`cat conftest.val`
30595
$as_echo "$as_me: program exited with status $ac_status" >&5
30596
$as_echo "$as_me: failed program was:" >&5
30597
sed 's/^/| /' conftest.$ac_ext >&5
30599
( exit $ac_status )
30602
rm -rf conftest.dSYM
30603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30606
eval gl_cv_bitsizeof_${gltype}=\$result
30609
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30610
$as_echo "$as_val"'`
30611
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30612
$as_echo "$ac_res" >&6; }
30613
eval result=\$gl_cv_bitsizeof_${gltype}
30614
if test $result = unknown; then
30617
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30618
cat >>confdefs.h <<_ACEOF
30619
#define BITSIZEOF_${GLTYPE} $result
30622
eval BITSIZEOF_${GLTYPE}=\$result
30631
for gltype in sig_atomic_t wchar_t wint_t ; do
30632
{ $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30633
$as_echo_n "checking whether $gltype is signed... " >&6; }
30634
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30635
$as_echo_n "(cached) " >&6
30637
cat >conftest.$ac_ext <<_ACEOF
30640
cat confdefs.h >>conftest.$ac_ext
30641
cat >>conftest.$ac_ext <<_ACEOF
30642
/* end confdefs.h. */
30644
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30645
included before <wchar.h>. */
30646
#include <stddef.h>
30647
#include <signal.h>
30649
# include <stdio.h>
30651
# include <wchar.h>
30654
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30663
rm -f conftest.$ac_objext
30664
if { (ac_try="$ac_compile"
30665
case "(($ac_try" in
30666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667
*) ac_try_echo=$ac_try;;
30669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30670
$as_echo "$ac_try_echo") >&5
30671
(eval "$ac_compile") 2>conftest.er1
30673
grep -v '^ *+' conftest.er1 >conftest.err
30675
cat conftest.err >&5
30676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677
(exit $ac_status); } && {
30678
test -z "$ac_c_werror_flag" ||
30679
test ! -s conftest.err
30680
} && test -s conftest.$ac_objext; then
30683
$as_echo "$as_me: failed program was:" >&5
30684
sed 's/^/| /' conftest.$ac_ext >&5
30689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690
eval gl_cv_type_${gltype}_signed=\$result
30693
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
30694
$as_echo "$as_val"'`
30695
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30696
$as_echo "$ac_res" >&6; }
30697
eval result=\$gl_cv_type_${gltype}_signed
30698
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30699
if test "$result" = yes; then
30700
cat >>confdefs.h <<_ACEOF
30701
#define HAVE_SIGNED_${GLTYPE} 1
30704
eval HAVE_SIGNED_${GLTYPE}=1
30706
eval HAVE_SIGNED_${GLTYPE}=0
30711
gl_cv_type_ptrdiff_t_signed=yes
30712
gl_cv_type_size_t_signed=no
30713
if test $APPLE_UNIVERSAL_BUILD = 0; then
30718
for gltype in ptrdiff_t size_t ; do
30719
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30720
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30721
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30722
$as_echo_n "(cached) " >&6
30724
eval gl_cv_type_${gltype}_suffix=no
30725
eval result=\$gl_cv_type_${gltype}_signed
30726
if test "$result" = yes; then
30731
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30733
'') gltype1='int';;
30734
l) gltype1='long int';;
30735
ll) gltype1='long long int';;
30736
i64) gltype1='__int64';;
30737
u) gltype1='unsigned int';;
30738
ul) gltype1='unsigned long int';;
30739
ull) gltype1='unsigned long long int';;
30740
ui64)gltype1='unsigned __int64';;
30742
cat >conftest.$ac_ext <<_ACEOF
30745
cat confdefs.h >>conftest.$ac_ext
30746
cat >>conftest.$ac_ext <<_ACEOF
30747
/* end confdefs.h. */
30749
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30750
included before <wchar.h>. */
30751
#include <stddef.h>
30752
#include <signal.h>
30754
# include <stdio.h>
30756
# include <wchar.h>
30759
extern $gltype foo;
30760
extern $gltype1 foo;
30769
rm -f conftest.$ac_objext
30770
if { (ac_try="$ac_compile"
30771
case "(($ac_try" in
30772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773
*) ac_try_echo=$ac_try;;
30775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30776
$as_echo "$ac_try_echo") >&5
30777
(eval "$ac_compile") 2>conftest.er1
30779
grep -v '^ *+' conftest.er1 >conftest.err
30781
cat conftest.err >&5
30782
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783
(exit $ac_status); } && {
30784
test -z "$ac_c_werror_flag" ||
30785
test ! -s conftest.err
30786
} && test -s conftest.$ac_objext; then
30787
eval gl_cv_type_${gltype}_suffix=\$glsuf
30789
$as_echo "$as_me: failed program was:" >&5
30790
sed 's/^/| /' conftest.$ac_ext >&5
30795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30796
eval result=\$gl_cv_type_${gltype}_suffix
30797
test "$result" != no && break
30800
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30801
$as_echo "$as_val"'`
30802
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30803
$as_echo "$ac_res" >&6; }
30804
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30805
eval result=\$gl_cv_type_${gltype}_suffix
30806
test "$result" = no && result=
30807
eval ${GLTYPE}_SUFFIX=\$result
30808
cat >>confdefs.h <<_ACEOF
30809
#define ${GLTYPE}_SUFFIX $result
30821
for gltype in sig_atomic_t wchar_t wint_t ; do
30822
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30823
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30824
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30825
$as_echo_n "(cached) " >&6
30827
eval gl_cv_type_${gltype}_suffix=no
30828
eval result=\$gl_cv_type_${gltype}_signed
30829
if test "$result" = yes; then
30834
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30836
'') gltype1='int';;
30837
l) gltype1='long int';;
30838
ll) gltype1='long long int';;
30839
i64) gltype1='__int64';;
30840
u) gltype1='unsigned int';;
30841
ul) gltype1='unsigned long int';;
30842
ull) gltype1='unsigned long long int';;
30843
ui64)gltype1='unsigned __int64';;
30845
cat >conftest.$ac_ext <<_ACEOF
30848
cat confdefs.h >>conftest.$ac_ext
30849
cat >>conftest.$ac_ext <<_ACEOF
30850
/* end confdefs.h. */
30852
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30853
included before <wchar.h>. */
30854
#include <stddef.h>
30855
#include <signal.h>
30857
# include <stdio.h>
30859
# include <wchar.h>
30862
extern $gltype foo;
30863
extern $gltype1 foo;
30872
rm -f conftest.$ac_objext
30873
if { (ac_try="$ac_compile"
30874
case "(($ac_try" in
30875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876
*) ac_try_echo=$ac_try;;
30878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30879
$as_echo "$ac_try_echo") >&5
30880
(eval "$ac_compile") 2>conftest.er1
30882
grep -v '^ *+' conftest.er1 >conftest.err
30884
cat conftest.err >&5
30885
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886
(exit $ac_status); } && {
30887
test -z "$ac_c_werror_flag" ||
30888
test ! -s conftest.err
30889
} && test -s conftest.$ac_objext; then
30890
eval gl_cv_type_${gltype}_suffix=\$glsuf
30892
$as_echo "$as_me: failed program was:" >&5
30893
sed 's/^/| /' conftest.$ac_ext >&5
30898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30899
eval result=\$gl_cv_type_${gltype}_suffix
30900
test "$result" != no && break
30903
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30904
$as_echo "$as_val"'`
30905
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30906
$as_echo "$ac_res" >&6; }
30907
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30908
eval result=\$gl_cv_type_${gltype}_suffix
30909
test "$result" = no && result=
30910
eval ${GLTYPE}_SUFFIX=\$result
30911
cat >>confdefs.h <<_ACEOF
30912
#define ${GLTYPE}_SUFFIX $result
30925
{ $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
30926
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
30927
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
30928
$as_echo_n "(cached) " >&6
30930
cat >conftest.$ac_ext <<_ACEOF
30934
rm -f conftest.$ac_objext
30935
if { (ac_try="$ac_compile"
30936
case "(($ac_try" in
30937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938
*) ac_try_echo=$ac_try;;
30940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30941
$as_echo "$ac_try_echo") >&5
30942
(eval "$ac_compile") 2>conftest.er1
30944
grep -v '^ *+' conftest.er1 >conftest.err
30946
cat conftest.err >&5
30947
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948
(exit $ac_status); } && {
30949
test -z "$ac_c_werror_flag" ||
30950
test ! -s conftest.err
30951
} && test -s conftest.$ac_objext; then
30952
gl_cv_header_wchar_h_standalone=yes
30954
$as_echo "$as_me: failed program was:" >&5
30955
sed 's/^/| /' conftest.$ac_ext >&5
30957
gl_cv_header_wchar_h_standalone=no
30960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30962
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
30963
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
30966
if test $gt_cv_c_wint_t = yes; then
30975
if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
30985
if test $ac_cv_header_wchar_h = yes; then
31002
if test $gl_cv_have_include_next = yes; then
31003
gl_cv_next_wchar_h='<'wchar.h'>'
31005
{ $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
31006
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31007
if test "${gl_cv_next_wchar_h+set}" = set; then
31008
$as_echo_n "(cached) " >&6
31011
if test $ac_cv_header_wchar_h = yes; then
31012
cat >conftest.$ac_ext <<_ACEOF
31015
cat confdefs.h >>conftest.$ac_ext
31016
cat >>conftest.$ac_ext <<_ACEOF
31017
/* end confdefs.h. */
31022
aix*) gl_absname_cpp="$ac_cpp -C" ;;
31023
*) gl_absname_cpp="$ac_cpp" ;;
31025
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31026
sed -n '\#/wchar.h#{
31027
s#.*"\(.*/wchar.h\)".*#\1#
31033
gl_cv_next_wchar_h='<'wchar.h'>'
31037
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
31038
$as_echo "$gl_cv_next_wchar_h" >&6; }
31040
NEXT_WCHAR_H=$gl_cv_next_wchar_h
31042
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31043
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31044
gl_next_as_first_directive='<'wchar.h'>'
31046
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31047
gl_next_as_first_directive=$gl_cv_next_wchar_h
31049
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31074
gl_source_base='tests'
31082
LIBMD5_LIBDEPS="$gl_libdeps"
31084
LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
11742
31089
cat >>confdefs.h <<\_ACEOF
11743
31090
#define HAVE_MD5 1