3869
ac_cpp='$CPP $CPPFLAGS'
3870
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3875
# On Suns, sometimes $CPP names a directory.
3876
if test -n "$CPP" && test -d "$CPP"; then
3879
if test -z "$CPP"; then
3880
if test "${ac_cv_prog_CPP+set}" = set; then
3881
echo $ECHO_N "(cached) $ECHO_C" >&6
3883
# Double quotes because CPP needs to be expanded
3884
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887
for ac_c_preproc_warn_flag in '' yes
3889
# Use a header file that comes with gcc, so configuring glibc
3890
# with a fresh cross-compiler works.
3891
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892
# <limits.h> exists even on freestanding compilers.
3893
# On the NeXT, cc -E runs the code through the compiler's parser,
3894
# not just through cpp. "Syntax error" is here to catch this case.
3895
cat >conftest.$ac_ext <<_ACEOF
3898
cat confdefs.h >>conftest.$ac_ext
3899
cat >>conftest.$ac_ext <<_ACEOF
3900
/* end confdefs.h. */
3902
# include <limits.h>
3904
# include <assert.h>
3908
if { (ac_try="$ac_cpp conftest.$ac_ext"
3910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911
*) ac_try_echo=$ac_try;;
3913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916
grep -v '^ *+' conftest.er1 >conftest.err
3918
cat conftest.err >&5
3919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920
(exit $ac_status); } >/dev/null && {
3921
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922
test ! -s conftest.err
3926
echo "$as_me: failed program was:" >&5
3927
sed 's/^/| /' conftest.$ac_ext >&5
3929
# Broken: fails on valid input.
3933
rm -f conftest.err conftest.$ac_ext
3935
# OK, works on sane cases. Now check whether nonexistent headers
3936
# can be detected and how.
3937
cat >conftest.$ac_ext <<_ACEOF
3940
cat confdefs.h >>conftest.$ac_ext
3941
cat >>conftest.$ac_ext <<_ACEOF
3942
/* end confdefs.h. */
3943
#include <ac_nonexistent.h>
3945
if { (ac_try="$ac_cpp conftest.$ac_ext"
3947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948
*) ac_try_echo=$ac_try;;
3950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953
grep -v '^ *+' conftest.er1 >conftest.err
3955
cat conftest.err >&5
3956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957
(exit $ac_status); } >/dev/null && {
3958
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959
test ! -s conftest.err
3961
# Broken: success on invalid input.
3964
echo "$as_me: failed program was:" >&5
3965
sed 's/^/| /' conftest.$ac_ext >&5
3967
# Passes both tests.
3972
rm -f conftest.err conftest.$ac_ext
3975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976
rm -f conftest.err conftest.$ac_ext
3977
if $ac_preproc_ok; then
3989
{ echo "$as_me:$LINENO: result: $CPP" >&5
3990
echo "${ECHO_T}$CPP" >&6; }
3992
for ac_c_preproc_warn_flag in '' yes
3994
# Use a header file that comes with gcc, so configuring glibc
3995
# with a fresh cross-compiler works.
3996
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997
# <limits.h> exists even on freestanding compilers.
3998
# On the NeXT, cc -E runs the code through the compiler's parser,
3999
# not just through cpp. "Syntax error" is here to catch this case.
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4007
# include <limits.h>
4009
# include <assert.h>
4013
if { (ac_try="$ac_cpp conftest.$ac_ext"
4015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016
*) ac_try_echo=$ac_try;;
4018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4021
grep -v '^ *+' conftest.er1 >conftest.err
4023
cat conftest.err >&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); } >/dev/null && {
4026
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4027
test ! -s conftest.err
4031
echo "$as_me: failed program was:" >&5
4032
sed 's/^/| /' conftest.$ac_ext >&5
4034
# Broken: fails on valid input.
4038
rm -f conftest.err conftest.$ac_ext
4040
# OK, works on sane cases. Now check whether nonexistent headers
4041
# can be detected and how.
4042
cat >conftest.$ac_ext <<_ACEOF
4045
cat confdefs.h >>conftest.$ac_ext
4046
cat >>conftest.$ac_ext <<_ACEOF
4047
/* end confdefs.h. */
4048
#include <ac_nonexistent.h>
4050
if { (ac_try="$ac_cpp conftest.$ac_ext"
4052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053
*) ac_try_echo=$ac_try;;
4055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4058
grep -v '^ *+' conftest.er1 >conftest.err
4060
cat conftest.err >&5
4061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
(exit $ac_status); } >/dev/null && {
4063
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064
test ! -s conftest.err
4066
# Broken: success on invalid input.
4069
echo "$as_me: failed program was:" >&5
4070
sed 's/^/| /' conftest.$ac_ext >&5
4072
# Passes both tests.
4077
rm -f conftest.err conftest.$ac_ext
4080
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081
rm -f conftest.err conftest.$ac_ext
4082
if $ac_preproc_ok; then
4085
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086
See \`config.log' for more details." >&5
4087
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088
See \`config.log' for more details." >&2;}
4089
{ (exit 1); exit 1; }; }
4093
ac_cpp='$CPP $CPPFLAGS'
4094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4100
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4101
if test "${ac_cv_path_GREP+set}" = set; then
4102
echo $ECHO_N "(cached) $ECHO_C" >&6
4104
# Extract the first word of "grep ggrep" to use in msg output
4105
if test -z "$GREP"; then
4106
set dummy grep ggrep; ac_prog_name=$2
4107
if test "${ac_cv_path_GREP+set}" = set; then
4108
echo $ECHO_N "(cached) $ECHO_C" >&6
4110
ac_path_GREP_found=false
4111
# Loop through the user's path and test for each of PROGNAME-LIST
4112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116
test -z "$as_dir" && as_dir=.
4117
for ac_prog in grep ggrep; do
4118
for ac_exec_ext in '' $ac_executable_extensions; do
4119
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4121
# Check for GNU ac_path_GREP and select it if it is found.
4122
# Check for GNU $ac_path_GREP
4123
case `"$ac_path_GREP" --version 2>&1` in
4125
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4128
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4131
cat "conftest.in" "conftest.in" >"conftest.tmp"
4132
mv "conftest.tmp" "conftest.in"
4133
cp "conftest.in" "conftest.nl"
4134
echo 'GREP' >> "conftest.nl"
4135
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137
ac_count=`expr $ac_count + 1`
4138
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139
# Best one so far, save it but keep looking for a better one
4140
ac_cv_path_GREP="$ac_path_GREP"
4141
ac_path_GREP_max=$ac_count
4143
# 10*(2^10) chars as input seems more than enough
4144
test $ac_count -gt 10 && break
4146
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150
$ac_path_GREP_found && break 3
4160
GREP="$ac_cv_path_GREP"
4161
if test -z "$GREP"; then
4162
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4163
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4164
{ (exit 1); exit 1; }; }
4168
ac_cv_path_GREP=$GREP
4173
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4174
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4175
GREP="$ac_cv_path_GREP"
4178
{ echo "$as_me:$LINENO: checking for egrep" >&5
4179
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4180
if test "${ac_cv_path_EGREP+set}" = set; then
4181
echo $ECHO_N "(cached) $ECHO_C" >&6
4183
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184
then ac_cv_path_EGREP="$GREP -E"
4186
# Extract the first word of "egrep" to use in msg output
4187
if test -z "$EGREP"; then
4188
set dummy egrep; ac_prog_name=$2
4189
if test "${ac_cv_path_EGREP+set}" = set; then
4190
echo $ECHO_N "(cached) $ECHO_C" >&6
4192
ac_path_EGREP_found=false
4193
# Loop through the user's path and test for each of PROGNAME-LIST
4194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198
test -z "$as_dir" && as_dir=.
4199
for ac_prog in egrep; do
4200
for ac_exec_ext in '' $ac_executable_extensions; do
4201
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4202
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4203
# Check for GNU ac_path_EGREP and select it if it is found.
4204
# Check for GNU $ac_path_EGREP
4205
case `"$ac_path_EGREP" --version 2>&1` in
4207
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4213
cat "conftest.in" "conftest.in" >"conftest.tmp"
4214
mv "conftest.tmp" "conftest.in"
4215
cp "conftest.in" "conftest.nl"
4216
echo 'EGREP' >> "conftest.nl"
4217
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219
ac_count=`expr $ac_count + 1`
4220
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221
# Best one so far, save it but keep looking for a better one
4222
ac_cv_path_EGREP="$ac_path_EGREP"
4223
ac_path_EGREP_max=$ac_count
4225
# 10*(2^10) chars as input seems more than enough
4226
test $ac_count -gt 10 && break
4228
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232
$ac_path_EGREP_found && break 3
4242
EGREP="$ac_cv_path_EGREP"
4243
if test -z "$EGREP"; then
4244
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4245
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4246
{ (exit 1); exit 1; }; }
4250
ac_cv_path_EGREP=$EGREP
4256
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4257
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4258
EGREP="$ac_cv_path_EGREP"
4262
{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4263
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4264
if test "${ac_cv_gnu_library_2+set}" = set; then
4265
echo $ECHO_N "(cached) $ECHO_C" >&6
4267
cat >conftest.$ac_ext <<_ACEOF
4270
cat confdefs.h >>conftest.$ac_ext
4271
cat >>conftest.$ac_ext <<_ACEOF
4272
/* end confdefs.h. */
4274
#include <features.h>
4275
#ifdef __GNU_LIBRARY__
4276
#if (__GLIBC__ >= 2)
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
4284
ac_cv_gnu_library_2=yes
4286
ac_cv_gnu_library_2=no
4293
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4294
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4296
GLIBC2="$ac_cv_gnu_library_2"
4299
if test -n "$ac_tool_prefix"; then
4300
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4301
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4304
if test "${ac_cv_prog_RANLIB+set}" = set; then
4305
echo $ECHO_N "(cached) $ECHO_C" >&6
4307
if test -n "$RANLIB"; then
4308
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314
test -z "$as_dir" && as_dir=.
4315
for ac_exec_ext in '' $ac_executable_extensions; do
4316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4318
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327
RANLIB=$ac_cv_prog_RANLIB
4328
if test -n "$RANLIB"; then
4329
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4330
echo "${ECHO_T}$RANLIB" >&6; }
4332
{ echo "$as_me:$LINENO: result: no" >&5
4333
echo "${ECHO_T}no" >&6; }
4338
if test -z "$ac_cv_prog_RANLIB"; then
4339
ac_ct_RANLIB=$RANLIB
4340
# Extract the first word of "ranlib", so it can be a program name with args.
4341
set dummy ranlib; ac_word=$2
4342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4345
echo $ECHO_N "(cached) $ECHO_C" >&6
4347
if test -n "$ac_ct_RANLIB"; then
4348
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354
test -z "$as_dir" && as_dir=.
4355
for ac_exec_ext in '' $ac_executable_extensions; do
4356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357
ac_cv_prog_ac_ct_RANLIB="ranlib"
4358
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4368
if test -n "$ac_ct_RANLIB"; then
4369
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4370
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4372
{ echo "$as_me:$LINENO: result: no" >&5
4373
echo "${ECHO_T}no" >&6; }
4376
if test "x$ac_ct_RANLIB" = x; then
4379
case $cross_compiling:$ac_tool_warned in
4381
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4382
whose name does not start with the host triplet. If you think this
4383
configuration is useful to you, please write to autoconf@gnu.org." >&5
4384
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4385
whose name does not start with the host triplet. If you think this
4386
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4387
ac_tool_warned=yes ;;
4389
RANLIB=$ac_ct_RANLIB
4392
RANLIB="$ac_cv_prog_RANLIB"
4399
if test -n "$GCC"; then
4400
{ echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
4401
echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
4402
if test "${gl_cv_cc_visibility+set}" = set; then
4403
echo $ECHO_N "(cached) $ECHO_C" >&6
4406
gl_save_CFLAGS="$CFLAGS"
4407
CFLAGS="$CFLAGS -fvisibility=hidden"
4408
cat >conftest.$ac_ext <<_ACEOF
4411
cat confdefs.h >>conftest.$ac_ext
4412
cat >>conftest.$ac_ext <<_ACEOF
4413
/* end confdefs.h. */
4414
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4415
extern __attribute__((__visibility__("default"))) int exportedvar;
4416
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4417
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4426
rm -f conftest.$ac_objext
4427
if { (ac_try="$ac_compile"
4429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430
*) ac_try_echo=$ac_try;;
4432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433
(eval "$ac_compile") 2>conftest.er1
4435
grep -v '^ *+' conftest.er1 >conftest.err
4437
cat conftest.err >&5
4438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
(exit $ac_status); } && {
4440
test -z "$ac_c_werror_flag" ||
4441
test ! -s conftest.err
4442
} && test -s conftest.$ac_objext; then
4443
gl_cv_cc_visibility=yes
4445
echo "$as_me: failed program was:" >&5
4446
sed 's/^/| /' conftest.$ac_ext >&5
4448
gl_cv_cc_visibility=no
4451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452
CFLAGS="$gl_save_CFLAGS"
4455
{ echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
4456
echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
4457
if test $gl_cv_cc_visibility = yes; then
4458
CFLAG_VISIBILITY="-fvisibility=hidden"
4465
cat >>confdefs.h <<_ACEOF
4466
#define HAVE_VISIBILITY $HAVE_VISIBILITY
4470
{ echo "$as_me:$LINENO: checking for inline" >&5
4471
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4472
if test "${ac_cv_c_inline+set}" = set; then
4473
echo $ECHO_N "(cached) $ECHO_C" >&6
4476
for ac_kw in inline __inline__ __inline; do
4477
cat >conftest.$ac_ext <<_ACEOF
4480
cat confdefs.h >>conftest.$ac_ext
4481
cat >>conftest.$ac_ext <<_ACEOF
4482
/* end confdefs.h. */
4485
static $ac_kw foo_t static_foo () {return 0; }
4486
$ac_kw foo_t foo () {return 0; }
4490
rm -f conftest.$ac_objext
4491
if { (ac_try="$ac_compile"
4493
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494
*) ac_try_echo=$ac_try;;
4496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497
(eval "$ac_compile") 2>conftest.er1
4499
grep -v '^ *+' conftest.er1 >conftest.err
4501
cat conftest.err >&5
4502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503
(exit $ac_status); } && {
4504
test -z "$ac_c_werror_flag" ||
4505
test ! -s conftest.err
4506
} && test -s conftest.$ac_objext; then
4507
ac_cv_c_inline=$ac_kw
4509
echo "$as_me: failed program was:" >&5
4510
sed 's/^/| /' conftest.$ac_ext >&5
4515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516
test "$ac_cv_c_inline" != no && break
4520
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4521
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4524
case $ac_cv_c_inline in
4527
case $ac_cv_c_inline in
4529
*) ac_val=$ac_cv_c_inline;;
4531
cat >>confdefs.h <<_ACEOF
4533
#define inline $ac_val
4539
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4541
if test "${ac_cv_header_stdc+set}" = set; then
4542
echo $ECHO_N "(cached) $ECHO_C" >&6
4544
cat >conftest.$ac_ext <<_ACEOF
4547
cat confdefs.h >>conftest.$ac_ext
4548
cat >>conftest.$ac_ext <<_ACEOF
4549
/* end confdefs.h. */
4563
rm -f conftest.$ac_objext
4564
if { (ac_try="$ac_compile"
4566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567
*) ac_try_echo=$ac_try;;
4569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570
(eval "$ac_compile") 2>conftest.er1
4572
grep -v '^ *+' conftest.er1 >conftest.err
4574
cat conftest.err >&5
4575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576
(exit $ac_status); } && {
4577
test -z "$ac_c_werror_flag" ||
4578
test ! -s conftest.err
4579
} && test -s conftest.$ac_objext; then
4580
ac_cv_header_stdc=yes
4582
echo "$as_me: failed program was:" >&5
4583
sed 's/^/| /' conftest.$ac_ext >&5
4585
ac_cv_header_stdc=no
4588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590
if test $ac_cv_header_stdc = yes; then
4591
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4592
cat >conftest.$ac_ext <<_ACEOF
4595
cat confdefs.h >>conftest.$ac_ext
4596
cat >>conftest.$ac_ext <<_ACEOF
4597
/* end confdefs.h. */
4601
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602
$EGREP "memchr" >/dev/null 2>&1; then
4605
ac_cv_header_stdc=no
4611
if test $ac_cv_header_stdc = yes; then
4612
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613
cat >conftest.$ac_ext <<_ACEOF
4616
cat confdefs.h >>conftest.$ac_ext
4617
cat >>conftest.$ac_ext <<_ACEOF
4618
/* end confdefs.h. */
4622
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623
$EGREP "free" >/dev/null 2>&1; then
4626
ac_cv_header_stdc=no
4632
if test $ac_cv_header_stdc = yes; then
4633
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634
if test "$cross_compiling" = yes; then
4637
cat >conftest.$ac_ext <<_ACEOF
4640
cat confdefs.h >>conftest.$ac_ext
4641
cat >>conftest.$ac_ext <<_ACEOF
4642
/* end confdefs.h. */
4645
#if ((' ' & 0x0FF) == 0x020)
4646
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4647
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649
# define ISLOWER(c) \
4650
(('a' <= (c) && (c) <= 'i') \
4651
|| ('j' <= (c) && (c) <= 'r') \
4652
|| ('s' <= (c) && (c) <= 'z'))
4653
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661
for (i = 0; i < 256; i++)
4662
if (XOR (islower (i), ISLOWER (i))
4663
|| toupper (i) != TOUPPER (i))
4668
rm -f conftest$ac_exeext
4669
if { (ac_try="$ac_link"
4671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672
*) ac_try_echo=$ac_try;;
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675
(eval "$ac_link") 2>&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4679
{ (case "(($ac_try" in
4680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681
*) ac_try_echo=$ac_try;;
4683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684
(eval "$ac_try") 2>&5
4686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
(exit $ac_status); }; }; then
4690
echo "$as_me: program exited with status $ac_status" >&5
4691
echo "$as_me: failed program was:" >&5
4692
sed 's/^/| /' conftest.$ac_ext >&5
4695
ac_cv_header_stdc=no
4697
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4704
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4705
if test $ac_cv_header_stdc = yes; then
4707
cat >>confdefs.h <<\_ACEOF
4708
#define STDC_HEADERS 1
4713
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724
inttypes.h stdint.h unistd.h
4726
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4728
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4729
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4730
echo $ECHO_N "(cached) $ECHO_C" >&6
4732
cat >conftest.$ac_ext <<_ACEOF
4735
cat confdefs.h >>conftest.$ac_ext
4736
cat >>conftest.$ac_ext <<_ACEOF
4737
/* end confdefs.h. */
4738
$ac_includes_default
4740
#include <$ac_header>
4742
rm -f conftest.$ac_objext
4743
if { (ac_try="$ac_compile"
4745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746
*) ac_try_echo=$ac_try;;
4748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749
(eval "$ac_compile") 2>conftest.er1
4751
grep -v '^ *+' conftest.er1 >conftest.err
4753
cat conftest.err >&5
4754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755
(exit $ac_status); } && {
4756
test -z "$ac_c_werror_flag" ||
4757
test ! -s conftest.err
4758
} && test -s conftest.$ac_objext; then
4759
eval "$as_ac_Header=yes"
4761
echo "$as_me: failed program was:" >&5
4762
sed 's/^/| /' conftest.$ac_ext >&5
4764
eval "$as_ac_Header=no"
4767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769
ac_res=`eval echo '${'$as_ac_Header'}'`
4770
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4771
echo "${ECHO_T}$ac_res" >&6; }
4772
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4773
cat >>confdefs.h <<_ACEOF
4774
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782
{ echo "$as_me:$LINENO: checking for size_t" >&5
4783
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4784
if test "${ac_cv_type_size_t+set}" = set; then
4785
echo $ECHO_N "(cached) $ECHO_C" >&6
4787
cat >conftest.$ac_ext <<_ACEOF
4790
cat confdefs.h >>conftest.$ac_ext
4791
cat >>conftest.$ac_ext <<_ACEOF
4792
/* end confdefs.h. */
4793
$ac_includes_default
4794
typedef size_t ac__type_new_;
4798
if ((ac__type_new_ *) 0)
4800
if (sizeof (ac__type_new_))
4806
rm -f conftest.$ac_objext
4807
if { (ac_try="$ac_compile"
4809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810
*) ac_try_echo=$ac_try;;
4812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813
(eval "$ac_compile") 2>conftest.er1
4815
grep -v '^ *+' conftest.er1 >conftest.err
4817
cat conftest.err >&5
4818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
(exit $ac_status); } && {
4820
test -z "$ac_c_werror_flag" ||
4821
test ! -s conftest.err
4822
} && test -s conftest.$ac_objext; then
4823
ac_cv_type_size_t=yes
4825
echo "$as_me: failed program was:" >&5
4826
sed 's/^/| /' conftest.$ac_ext >&5
4828
ac_cv_type_size_t=no
4831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4834
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4835
if test $ac_cv_type_size_t = yes; then
4839
cat >>confdefs.h <<_ACEOF
4840
#define size_t unsigned int
4846
{ echo "$as_me:$LINENO: checking for stdint.h" >&5
4847
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
4848
if test "${gl_cv_header_stdint_h+set}" = set; then
4849
echo $ECHO_N "(cached) $ECHO_C" >&6
4851
cat >conftest.$ac_ext <<_ACEOF
4854
cat confdefs.h >>conftest.$ac_ext
4855
cat >>conftest.$ac_ext <<_ACEOF
4856
/* end confdefs.h. */
4857
#include <sys/types.h>
4862
uintmax_t i = (uintmax_t) -1; return !i;
4867
rm -f conftest.$ac_objext
4868
if { (ac_try="$ac_compile"
4870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871
*) ac_try_echo=$ac_try;;
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874
(eval "$ac_compile") 2>conftest.er1
4876
grep -v '^ *+' conftest.er1 >conftest.err
4878
cat conftest.err >&5
4879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880
(exit $ac_status); } && {
4881
test -z "$ac_c_werror_flag" ||
4882
test ! -s conftest.err
4883
} && test -s conftest.$ac_objext; then
4884
gl_cv_header_stdint_h=yes
4886
echo "$as_me: failed program was:" >&5
4887
sed 's/^/| /' conftest.$ac_ext >&5
4889
gl_cv_header_stdint_h=no
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4895
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
4896
if test $gl_cv_header_stdint_h = yes; then
4898
cat >>confdefs.h <<_ACEOF
4899
#define HAVE_STDINT_H_WITH_UINTMAX 1
4904
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4905
# for constant arguments. Useless!
4906
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4907
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4908
if test "${ac_cv_working_alloca_h+set}" = set; then
4909
echo $ECHO_N "(cached) $ECHO_C" >&6
4911
cat >conftest.$ac_ext <<_ACEOF
4914
cat confdefs.h >>conftest.$ac_ext
4915
cat >>conftest.$ac_ext <<_ACEOF
4916
/* end confdefs.h. */
4921
char *p = (char *) alloca (2 * sizeof (int));
4927
rm -f conftest.$ac_objext conftest$ac_exeext
4928
if { (ac_try="$ac_link"
4930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931
*) ac_try_echo=$ac_try;;
4933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934
(eval "$ac_link") 2>conftest.er1
4936
grep -v '^ *+' conftest.er1 >conftest.err
4938
cat conftest.err >&5
4939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940
(exit $ac_status); } && {
4941
test -z "$ac_c_werror_flag" ||
4942
test ! -s conftest.err
4943
} && test -s conftest$ac_exeext &&
4944
$as_test_x conftest$ac_exeext; then
4945
ac_cv_working_alloca_h=yes
4947
echo "$as_me: failed program was:" >&5
4948
sed 's/^/| /' conftest.$ac_ext >&5
4950
ac_cv_working_alloca_h=no
4953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4954
conftest$ac_exeext conftest.$ac_ext
4956
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4957
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4958
if test $ac_cv_working_alloca_h = yes; then
4960
cat >>confdefs.h <<\_ACEOF
4961
#define HAVE_ALLOCA_H 1
4966
{ echo "$as_me:$LINENO: checking for alloca" >&5
4967
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4968
if test "${ac_cv_func_alloca_works+set}" = set; then
4969
echo $ECHO_N "(cached) $ECHO_C" >&6
4971
cat >conftest.$ac_ext <<_ACEOF
4974
cat confdefs.h >>conftest.$ac_ext
4975
cat >>conftest.$ac_ext <<_ACEOF
4976
/* end confdefs.h. */
4978
# define alloca __builtin_alloca
4981
# include <malloc.h>
4982
# define alloca _alloca
4984
# ifdef HAVE_ALLOCA_H
4985
# include <alloca.h>
4990
# ifndef alloca /* predefined by HP cc +Olibcalls */
5001
char *p = (char *) alloca (1);
5007
rm -f conftest.$ac_objext conftest$ac_exeext
5008
if { (ac_try="$ac_link"
5010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011
*) ac_try_echo=$ac_try;;
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014
(eval "$ac_link") 2>conftest.er1
5016
grep -v '^ *+' conftest.er1 >conftest.err
5018
cat conftest.err >&5
5019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
(exit $ac_status); } && {
5021
test -z "$ac_c_werror_flag" ||
5022
test ! -s conftest.err
5023
} && test -s conftest$ac_exeext &&
5024
$as_test_x conftest$ac_exeext; then
5025
ac_cv_func_alloca_works=yes
5027
echo "$as_me: failed program was:" >&5
5028
sed 's/^/| /' conftest.$ac_ext >&5
5030
ac_cv_func_alloca_works=no
5033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5034
conftest$ac_exeext conftest.$ac_ext
5036
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5037
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5039
if test $ac_cv_func_alloca_works = yes; then
5041
cat >>confdefs.h <<\_ACEOF
5042
#define HAVE_ALLOCA 1
5046
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
5047
# that cause trouble. Some versions do not even contain alloca or
5048
# contain a buggy version. If you still want to use their alloca,
5049
# use ar to extract alloca.o from them instead of compiling alloca.c.
5051
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5053
cat >>confdefs.h <<\_ACEOF
5058
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5059
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5060
if test "${ac_cv_os_cray+set}" = set; then
5061
echo $ECHO_N "(cached) $ECHO_C" >&6
5063
cat >conftest.$ac_ext <<_ACEOF
5066
cat confdefs.h >>conftest.$ac_ext
5067
cat >>conftest.$ac_ext <<_ACEOF
5068
/* end confdefs.h. */
5069
#if defined CRAY && ! defined CRAY2
5076
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5077
$EGREP "webecray" >/dev/null 2>&1; then
5085
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5086
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5087
if test $ac_cv_os_cray = yes; then
5088
for ac_func in _getb67 GETB67 getb67; do
5089
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5090
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5091
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5092
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5093
echo $ECHO_N "(cached) $ECHO_C" >&6
5095
cat >conftest.$ac_ext <<_ACEOF
5098
cat confdefs.h >>conftest.$ac_ext
5099
cat >>conftest.$ac_ext <<_ACEOF
5100
/* end confdefs.h. */
5101
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5102
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5103
#define $ac_func innocuous_$ac_func
5105
/* System header to define __stub macros and hopefully few prototypes,
5106
which can conflict with char $ac_func (); below.
5107
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108
<limits.h> exists even on freestanding compilers. */
5111
# include <limits.h>
5113
# include <assert.h>
5118
/* Override any GCC internal prototype to avoid an error.
5119
Use char because int might match the return type of a GCC
5120
builtin and then its argument prototype would still apply. */
5125
/* The GNU C library defines this for functions which it implements
5126
to always fail with ENOSYS. Some functions are actually named
5127
something starting with __ and the normal name is an alias. */
5128
#if defined __stub_$ac_func || defined __stub___$ac_func
5140
rm -f conftest.$ac_objext conftest$ac_exeext
5141
if { (ac_try="$ac_link"
5143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144
*) ac_try_echo=$ac_try;;
5146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147
(eval "$ac_link") 2>conftest.er1
5149
grep -v '^ *+' conftest.er1 >conftest.err
5151
cat conftest.err >&5
5152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153
(exit $ac_status); } && {
5154
test -z "$ac_c_werror_flag" ||
5155
test ! -s conftest.err
5156
} && test -s conftest$ac_exeext &&
5157
$as_test_x conftest$ac_exeext; then
5158
eval "$as_ac_var=yes"
5160
echo "$as_me: failed program was:" >&5
5161
sed 's/^/| /' conftest.$ac_ext >&5
5163
eval "$as_ac_var=no"
5166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5167
conftest$ac_exeext conftest.$ac_ext
5169
ac_res=`eval echo '${'$as_ac_var'}'`
5170
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5171
echo "${ECHO_T}$ac_res" >&6; }
5172
if test `eval echo '${'$as_ac_var'}'` = yes; then
5174
cat >>confdefs.h <<_ACEOF
5175
#define CRAY_STACKSEG_END $ac_func
5184
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5185
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5186
if test "${ac_cv_c_stack_direction+set}" = set; then
5187
echo $ECHO_N "(cached) $ECHO_C" >&6
5189
if test "$cross_compiling" = yes; then
5190
ac_cv_c_stack_direction=0
5192
cat >conftest.$ac_ext <<_ACEOF
5195
cat confdefs.h >>conftest.$ac_ext
5196
cat >>conftest.$ac_ext <<_ACEOF
5197
/* end confdefs.h. */
5198
$ac_includes_default
5200
find_stack_direction ()
5202
static char *addr = 0;
5207
return find_stack_direction ();
5210
return (&dummy > addr) ? 1 : -1;
5216
return find_stack_direction () < 0;
5219
rm -f conftest$ac_exeext
5220
if { (ac_try="$ac_link"
5222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223
*) ac_try_echo=$ac_try;;
5225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226
(eval "$ac_link") 2>&5
5228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5230
{ (case "(($ac_try" in
5231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232
*) ac_try_echo=$ac_try;;
5234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235
(eval "$ac_try") 2>&5
5237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
(exit $ac_status); }; }; then
5239
ac_cv_c_stack_direction=1
5241
echo "$as_me: program exited with status $ac_status" >&5
5242
echo "$as_me: failed program was:" >&5
5243
sed 's/^/| /' conftest.$ac_ext >&5
5246
ac_cv_c_stack_direction=-1
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5253
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5254
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5256
cat >>confdefs.h <<_ACEOF
5257
#define STACK_DIRECTION $ac_cv_c_stack_direction
5265
for ac_header in stdlib.h unistd.h
5267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5268
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5272
echo $ECHO_N "(cached) $ECHO_C" >&6
5274
ac_res=`eval echo '${'$as_ac_Header'}'`
5275
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5276
echo "${ECHO_T}$ac_res" >&6; }
5278
# Is the header compilable?
5279
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5281
cat >conftest.$ac_ext <<_ACEOF
5284
cat confdefs.h >>conftest.$ac_ext
5285
cat >>conftest.$ac_ext <<_ACEOF
5286
/* end confdefs.h. */
5287
$ac_includes_default
5288
#include <$ac_header>
5290
rm -f conftest.$ac_objext
5291
if { (ac_try="$ac_compile"
5293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294
*) ac_try_echo=$ac_try;;
5296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297
(eval "$ac_compile") 2>conftest.er1
5299
grep -v '^ *+' conftest.er1 >conftest.err
5301
cat conftest.err >&5
5302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
(exit $ac_status); } && {
5304
test -z "$ac_c_werror_flag" ||
5305
test ! -s conftest.err
5306
} && test -s conftest.$ac_objext; then
5307
ac_header_compiler=yes
5309
echo "$as_me: failed program was:" >&5
5310
sed 's/^/| /' conftest.$ac_ext >&5
5312
ac_header_compiler=no
5315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5317
echo "${ECHO_T}$ac_header_compiler" >&6; }
5319
# Is the header present?
5320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5322
cat >conftest.$ac_ext <<_ACEOF
5325
cat confdefs.h >>conftest.$ac_ext
5326
cat >>conftest.$ac_ext <<_ACEOF
5327
/* end confdefs.h. */
5328
#include <$ac_header>
5330
if { (ac_try="$ac_cpp conftest.$ac_ext"
5332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333
*) ac_try_echo=$ac_try;;
5335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5338
grep -v '^ *+' conftest.er1 >conftest.err
5340
cat conftest.err >&5
5341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342
(exit $ac_status); } >/dev/null && {
5343
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5344
test ! -s conftest.err
5346
ac_header_preproc=yes
5348
echo "$as_me: failed program was:" >&5
5349
sed 's/^/| /' conftest.$ac_ext >&5
5351
ac_header_preproc=no
5354
rm -f conftest.err conftest.$ac_ext
5355
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356
echo "${ECHO_T}$ac_header_preproc" >&6; }
5358
# So? What about this header?
5359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5361
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5364
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5365
ac_header_preproc=yes
5368
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5369
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5370
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5371
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5372
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5373
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5374
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5375
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5376
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5378
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5379
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5381
## ----------------------------------------------------------- ##
5382
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
5383
## ----------------------------------------------------------- ##
5385
) | sed "s/^/$as_me: WARNING: /" >&2
5388
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5391
echo $ECHO_N "(cached) $ECHO_C" >&6
5393
eval "$as_ac_Header=\$ac_header_preproc"
5395
ac_res=`eval echo '${'$as_ac_Header'}'`
5396
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5397
echo "${ECHO_T}$ac_res" >&6; }
5400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5401
cat >>confdefs.h <<_ACEOF
5402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410
for ac_func in getpagesize
5412
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5413
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5414
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5415
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5416
echo $ECHO_N "(cached) $ECHO_C" >&6
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5424
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5425
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5426
#define $ac_func innocuous_$ac_func
5428
/* System header to define __stub macros and hopefully few prototypes,
5429
which can conflict with char $ac_func (); below.
5430
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431
<limits.h> exists even on freestanding compilers. */
5434
# include <limits.h>
5436
# include <assert.h>
5441
/* Override any GCC internal prototype to avoid an error.
5442
Use char because int might match the return type of a GCC
5443
builtin and then its argument prototype would still apply. */
5448
/* The GNU C library defines this for functions which it implements
5449
to always fail with ENOSYS. Some functions are actually named
5450
something starting with __ and the normal name is an alias. */
5451
#if defined __stub_$ac_func || defined __stub___$ac_func
5463
rm -f conftest.$ac_objext conftest$ac_exeext
5464
if { (ac_try="$ac_link"
5466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
*) ac_try_echo=$ac_try;;
5469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470
(eval "$ac_link") 2>conftest.er1
5472
grep -v '^ *+' conftest.er1 >conftest.err
5474
cat conftest.err >&5
5475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
(exit $ac_status); } && {
5477
test -z "$ac_c_werror_flag" ||
5478
test ! -s conftest.err
5479
} && test -s conftest$ac_exeext &&
5480
$as_test_x conftest$ac_exeext; then
5481
eval "$as_ac_var=yes"
5483
echo "$as_me: failed program was:" >&5
5484
sed 's/^/| /' conftest.$ac_ext >&5
5486
eval "$as_ac_var=no"
5489
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5490
conftest$ac_exeext conftest.$ac_ext
5492
ac_res=`eval echo '${'$as_ac_var'}'`
5493
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5494
echo "${ECHO_T}$ac_res" >&6; }
5495
if test `eval echo '${'$as_ac_var'}'` = yes; then
5496
cat >>confdefs.h <<_ACEOF
5497
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5503
{ echo "$as_me:$LINENO: checking for working mmap" >&5
5504
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5505
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5506
echo $ECHO_N "(cached) $ECHO_C" >&6
5508
if test "$cross_compiling" = yes; then
5509
ac_cv_func_mmap_fixed_mapped=no
5511
cat >conftest.$ac_ext <<_ACEOF
5514
cat confdefs.h >>conftest.$ac_ext
5515
cat >>conftest.$ac_ext <<_ACEOF
5516
/* end confdefs.h. */
5517
$ac_includes_default
5518
/* malloc might have been renamed as rpl_malloc. */
5521
/* Thanks to Mike Haertel and Jim Avera for this test.
5522
Here is a matrix of mmap possibilities:
5523
mmap private not fixed
5524
mmap private fixed at somewhere currently unmapped
5525
mmap private fixed at somewhere already mapped
5526
mmap shared not fixed
5527
mmap shared fixed at somewhere currently unmapped
5528
mmap shared fixed at somewhere already mapped
5529
For private mappings, we should verify that changes cannot be read()
5530
back from the file, nor mmap's back from the file at a different
5531
address. (There have been systems where private was not correctly
5532
implemented like the infamous i386 svr4.0, and systems where the
5533
VM page cache was not coherent with the file system buffer cache
5534
like early versions of FreeBSD and possibly contemporary NetBSD.)
5535
For shared mappings, we should conversely verify that changes get
5536
propagated back to all the places they're supposed to be.
5538
Grep wants private fixed already mapped.
5539
The main things grep needs to know about mmap are:
5540
* does it exist and is it safe to write into the mmap'd area
5541
* how to use it (BSD variants) */
5544
#include <sys/mman.h>
5546
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5550
/* This mess was copied from the GNU getpagesize.h. */
5551
#ifndef HAVE_GETPAGESIZE
5552
/* Assume that all systems that can run configure have sys/param.h. */
5553
# ifndef HAVE_SYS_PARAM_H
5554
# define HAVE_SYS_PARAM_H 1
5557
# ifdef _SC_PAGESIZE
5558
# define getpagesize() sysconf(_SC_PAGESIZE)
5559
# else /* no _SC_PAGESIZE */
5560
# ifdef HAVE_SYS_PARAM_H
5561
# include <sys/param.h>
5562
# ifdef EXEC_PAGESIZE
5563
# define getpagesize() EXEC_PAGESIZE
5564
# else /* no EXEC_PAGESIZE */
5566
# define getpagesize() NBPG * CLSIZE
5569
# endif /* no CLSIZE */
5570
# else /* no NBPG */
5572
# define getpagesize() NBPC
5573
# else /* no NBPC */
5575
# define getpagesize() PAGESIZE
5576
# endif /* PAGESIZE */
5577
# endif /* no NBPC */
5578
# endif /* no NBPG */
5579
# endif /* no EXEC_PAGESIZE */
5580
# else /* no HAVE_SYS_PARAM_H */
5581
# define getpagesize() 8192 /* punt totally */
5582
# endif /* no HAVE_SYS_PARAM_H */
5583
# endif /* no _SC_PAGESIZE */
5585
#endif /* no HAVE_GETPAGESIZE */
5590
char *data, *data2, *data3;
5594
pagesize = getpagesize ();
5596
/* First, make a file with some known garbage in it. */
5597
data = (char *) malloc (pagesize);
5600
for (i = 0; i < pagesize; ++i)
5601
*(data + i) = rand ();
5603
fd = creat ("conftest.mmap", 0600);
5606
if (write (fd, data, pagesize) != pagesize)
5610
/* Next, try to mmap the file at a fixed address which already has
5611
something else allocated at it. If we can, also make sure that
5612
we see the same garbage. */
5613
fd = open ("conftest.mmap", O_RDWR);
5616
data2 = (char *) malloc (2 * pagesize);
5619
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5620
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5621
MAP_PRIVATE | MAP_FIXED, fd, 0L))
5623
for (i = 0; i < pagesize; ++i)
5624
if (*(data + i) != *(data2 + i))
5627
/* Finally, make sure that changes to the mapped area do not
5628
percolate back to the file as seen by read(). (This is a bug on
5629
some variants of i386 svr4.0.) */
5630
for (i = 0; i < pagesize; ++i)
5631
*(data2 + i) = *(data2 + i) + 1;
5632
data3 = (char *) malloc (pagesize);
5635
if (read (fd, data3, pagesize) != pagesize)
5637
for (i = 0; i < pagesize; ++i)
5638
if (*(data + i) != *(data3 + i))
5644
rm -f conftest$ac_exeext
5645
if { (ac_try="$ac_link"
5647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648
*) ac_try_echo=$ac_try;;
5650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651
(eval "$ac_link") 2>&5
5653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5655
{ (case "(($ac_try" in
5656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657
*) ac_try_echo=$ac_try;;
5659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660
(eval "$ac_try") 2>&5
5662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
(exit $ac_status); }; }; then
5664
ac_cv_func_mmap_fixed_mapped=yes
5666
echo "$as_me: program exited with status $ac_status" >&5
5667
echo "$as_me: failed program was:" >&5
5668
sed 's/^/| /' conftest.$ac_ext >&5
5671
ac_cv_func_mmap_fixed_mapped=no
5673
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5678
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5679
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5680
if test $ac_cv_func_mmap_fixed_mapped = yes; then
5682
cat >>confdefs.h <<\_ACEOF
5691
{ echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5692
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5693
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5694
echo $ECHO_N "(cached) $ECHO_C" >&6
5697
gt_cv_int_divbyzero_sigfpe=
5699
macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5700
# On MacOS X 10.2 or newer, just assume the same as when cross-
5701
# compiling. If we were to perform the real test, 1 Crash Report
5702
# dialog window would pop up.
5704
i[34567]86 | x86_64)
5705
gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5709
if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5710
if test "$cross_compiling" = yes; then
5712
# Guess based on the CPU.
5714
alpha* | i[34567]86 | x86_64 | m68k | s390*)
5715
gt_cv_int_divbyzero_sigfpe="guessing yes";;
5717
gt_cv_int_divbyzero_sigfpe="guessing no";;
5721
cat >conftest.$ac_ext <<_ACEOF
5724
cat confdefs.h >>conftest.$ac_ext
5725
cat >>conftest.$ac_ext <<_ACEOF
5726
/* end confdefs.h. */
5732
sigfpe_handler (int sig)
5734
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5735
exit (sig != SIGFPE);
5745
signal (SIGFPE, sigfpe_handler);
5746
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5747
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5748
signal (SIGTRAP, sigfpe_handler);
5750
/* Linux/SPARC yields signal SIGILL. */
5751
#if defined (__sparc__) && defined (__linux__)
5752
signal (SIGILL, sigfpe_handler);
5761
rm -f conftest$ac_exeext
5762
if { (ac_try="$ac_link"
5764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765
*) ac_try_echo=$ac_try;;
5767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768
(eval "$ac_link") 2>&5
5770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772
{ (case "(($ac_try" in
5773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774
*) ac_try_echo=$ac_try;;
5776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777
(eval "$ac_try") 2>&5
5779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780
(exit $ac_status); }; }; then
5781
gt_cv_int_divbyzero_sigfpe=yes
5783
echo "$as_me: program exited with status $ac_status" >&5
5784
echo "$as_me: failed program was:" >&5
5785
sed 's/^/| /' conftest.$ac_ext >&5
5788
gt_cv_int_divbyzero_sigfpe=no
5790
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5797
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5798
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5799
case "$gt_cv_int_divbyzero_sigfpe" in
5804
cat >>confdefs.h <<_ACEOF
5805
#define INTDIV0_RAISES_SIGFPE $value
5810
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
5811
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5812
if test "${gl_cv_header_inttypes_h+set}" = set; then
5813
echo $ECHO_N "(cached) $ECHO_C" >&6
5815
cat >conftest.$ac_ext <<_ACEOF
5818
cat confdefs.h >>conftest.$ac_ext
5819
cat >>conftest.$ac_ext <<_ACEOF
5820
/* end confdefs.h. */
5821
#include <sys/types.h>
5822
#include <inttypes.h>
5826
uintmax_t i = (uintmax_t) -1; return !i;
5831
rm -f conftest.$ac_objext
5832
if { (ac_try="$ac_compile"
5834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835
*) ac_try_echo=$ac_try;;
5837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838
(eval "$ac_compile") 2>conftest.er1
5840
grep -v '^ *+' conftest.er1 >conftest.err
5842
cat conftest.err >&5
5843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844
(exit $ac_status); } && {
5845
test -z "$ac_c_werror_flag" ||
5846
test ! -s conftest.err
5847
} && test -s conftest.$ac_objext; then
5848
gl_cv_header_inttypes_h=yes
5850
echo "$as_me: failed program was:" >&5
5851
sed 's/^/| /' conftest.$ac_ext >&5
5853
gl_cv_header_inttypes_h=no
5856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858
{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5859
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5860
if test $gl_cv_header_inttypes_h = yes; then
5862
cat >>confdefs.h <<_ACEOF
5863
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5869
{ echo "$as_me:$LINENO: checking for unsigned long long int" >&5
5870
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
5871
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
5872
echo $ECHO_N "(cached) $ECHO_C" >&6
5874
cat >conftest.$ac_ext <<_ACEOF
5877
cat confdefs.h >>conftest.$ac_ext
5878
cat >>conftest.$ac_ext <<_ACEOF
5879
/* end confdefs.h. */
5880
unsigned long long int ull = 18446744073709551615ULL;
5881
typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
5887
unsigned long long int ullmax = 18446744073709551615ull;
5888
return (ull << 63 | ull >> 63 | ull << i | ull >> i
5889
| ullmax / ull | ullmax % ull);
5894
rm -f conftest.$ac_objext conftest$ac_exeext
5895
if { (ac_try="$ac_link"
5897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898
*) ac_try_echo=$ac_try;;
5900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901
(eval "$ac_link") 2>conftest.er1
5903
grep -v '^ *+' conftest.er1 >conftest.err
5905
cat conftest.err >&5
5906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907
(exit $ac_status); } && {
5908
test -z "$ac_c_werror_flag" ||
5909
test ! -s conftest.err
5910
} && test -s conftest$ac_exeext &&
5911
$as_test_x conftest$ac_exeext; then
5912
ac_cv_type_unsigned_long_long_int=yes
5914
echo "$as_me: failed program was:" >&5
5915
sed 's/^/| /' conftest.$ac_ext >&5
5917
ac_cv_type_unsigned_long_long_int=no
5920
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5921
conftest$ac_exeext conftest.$ac_ext
5923
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
5924
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
5925
if test $ac_cv_type_unsigned_long_long_int = yes; then
5927
cat >>confdefs.h <<\_ACEOF
5928
#define HAVE_UNSIGNED_LONG_LONG_INT 1
5936
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5938
test $ac_cv_type_unsigned_long_long_int = yes \
5939
&& ac_type='unsigned long long' \
5940
|| ac_type='unsigned long'
5942
cat >>confdefs.h <<_ACEOF
5943
#define uintmax_t $ac_type
5948
cat >>confdefs.h <<\_ACEOF
5949
#define HAVE_UINTMAX_T 1
5956
for ac_header in inttypes.h
5958
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5959
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5960
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5962
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5963
echo $ECHO_N "(cached) $ECHO_C" >&6
5965
ac_res=`eval echo '${'$as_ac_Header'}'`
5966
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5967
echo "${ECHO_T}$ac_res" >&6; }
5969
# Is the header compilable?
5970
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5971
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5972
cat >conftest.$ac_ext <<_ACEOF
5975
cat confdefs.h >>conftest.$ac_ext
5976
cat >>conftest.$ac_ext <<_ACEOF
5977
/* end confdefs.h. */
5978
$ac_includes_default
5979
#include <$ac_header>
5981
rm -f conftest.$ac_objext
5982
if { (ac_try="$ac_compile"
5984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985
*) ac_try_echo=$ac_try;;
5987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988
(eval "$ac_compile") 2>conftest.er1
5990
grep -v '^ *+' conftest.er1 >conftest.err
5992
cat conftest.err >&5
5993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994
(exit $ac_status); } && {
5995
test -z "$ac_c_werror_flag" ||
5996
test ! -s conftest.err
5997
} && test -s conftest.$ac_objext; then
5998
ac_header_compiler=yes
6000
echo "$as_me: failed program was:" >&5
6001
sed 's/^/| /' conftest.$ac_ext >&5
6003
ac_header_compiler=no
6006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6008
echo "${ECHO_T}$ac_header_compiler" >&6; }
6010
# Is the header present?
6011
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6012
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6013
cat >conftest.$ac_ext <<_ACEOF
6016
cat confdefs.h >>conftest.$ac_ext
6017
cat >>conftest.$ac_ext <<_ACEOF
6018
/* end confdefs.h. */
6019
#include <$ac_header>
6021
if { (ac_try="$ac_cpp conftest.$ac_ext"
6023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024
*) ac_try_echo=$ac_try;;
6026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6029
grep -v '^ *+' conftest.er1 >conftest.err
6031
cat conftest.err >&5
6032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033
(exit $ac_status); } >/dev/null && {
6034
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6035
test ! -s conftest.err
6037
ac_header_preproc=yes
6039
echo "$as_me: failed program was:" >&5
6040
sed 's/^/| /' conftest.$ac_ext >&5
6042
ac_header_preproc=no
6045
rm -f conftest.err conftest.$ac_ext
6046
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6047
echo "${ECHO_T}$ac_header_preproc" >&6; }
6049
# So? What about this header?
6050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6052
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6053
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6054
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6055
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6056
ac_header_preproc=yes
6059
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6060
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6061
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6062
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6063
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6064
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6065
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6066
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6067
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6068
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6069
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6070
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6072
## ----------------------------------------------------------- ##
6073
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
6074
## ----------------------------------------------------------- ##
6076
) | sed "s/^/$as_me: WARNING: /" >&2
6079
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6080
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6081
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6082
echo $ECHO_N "(cached) $ECHO_C" >&6
6084
eval "$as_ac_Header=\$ac_header_preproc"
6086
ac_res=`eval echo '${'$as_ac_Header'}'`
6087
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6088
echo "${ECHO_T}$ac_res" >&6; }
6091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6092
cat >>confdefs.h <<_ACEOF
6093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100
if test $ac_cv_header_inttypes_h = yes; then
6101
{ echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6102
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6103
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6104
echo $ECHO_N "(cached) $ECHO_C" >&6
6107
cat >conftest.$ac_ext <<_ACEOF
6110
cat confdefs.h >>conftest.$ac_ext
6111
cat >>conftest.$ac_ext <<_ACEOF
6112
/* end confdefs.h. */
6113
#include <inttypes.h>
6126
rm -f conftest.$ac_objext
6127
if { (ac_try="$ac_compile"
6129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130
*) ac_try_echo=$ac_try;;
6132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133
(eval "$ac_compile") 2>conftest.er1
6135
grep -v '^ *+' conftest.er1 >conftest.err
6137
cat conftest.err >&5
6138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139
(exit $ac_status); } && {
6140
test -z "$ac_c_werror_flag" ||
6141
test ! -s conftest.err
6142
} && test -s conftest.$ac_objext; then
6143
gt_cv_inttypes_pri_broken=no
6145
echo "$as_me: failed program was:" >&5
6146
sed 's/^/| /' conftest.$ac_ext >&5
6148
gt_cv_inttypes_pri_broken=yes
6151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154
{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6155
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6157
if test "$gt_cv_inttypes_pri_broken" = yes; then
6159
cat >>confdefs.h <<_ACEOF
6160
#define PRI_MACROS_BROKEN 1
6170
{ echo "$as_me:$LINENO: checking for AIX" >&5
6171
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
6172
cat >conftest.$ac_ext <<_ACEOF
6175
cat confdefs.h >>conftest.$ac_ext
6176
cat >>conftest.$ac_ext <<_ACEOF
6177
/* end confdefs.h. */
6183
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184
$EGREP "yes" >/dev/null 2>&1; then
6185
{ echo "$as_me:$LINENO: result: yes" >&5
6186
echo "${ECHO_T}yes" >&6; }
6187
cat >>confdefs.h <<\_ACEOF
6188
#define _ALL_SOURCE 1
6192
{ echo "$as_me:$LINENO: result: no" >&5
6193
echo "${ECHO_T}no" >&6; }
6198
if test "${ac_cv_header_minix_config_h+set}" = set; then
6199
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
6200
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
6201
if test "${ac_cv_header_minix_config_h+set}" = set; then
6202
echo $ECHO_N "(cached) $ECHO_C" >&6
6204
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6205
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
6207
# Is the header compilable?
6208
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6209
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
6210
cat >conftest.$ac_ext <<_ACEOF
6213
cat confdefs.h >>conftest.$ac_ext
6214
cat >>conftest.$ac_ext <<_ACEOF
6215
/* end confdefs.h. */
6216
$ac_includes_default
6217
#include <minix/config.h>
6219
rm -f conftest.$ac_objext
6220
if { (ac_try="$ac_compile"
6222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223
*) ac_try_echo=$ac_try;;
6225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226
(eval "$ac_compile") 2>conftest.er1
6228
grep -v '^ *+' conftest.er1 >conftest.err
6230
cat conftest.err >&5
6231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232
(exit $ac_status); } && {
6233
test -z "$ac_c_werror_flag" ||
6234
test ! -s conftest.err
6235
} && test -s conftest.$ac_objext; then
6236
ac_header_compiler=yes
6238
echo "$as_me: failed program was:" >&5
6239
sed 's/^/| /' conftest.$ac_ext >&5
6241
ac_header_compiler=no
6244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6246
echo "${ECHO_T}$ac_header_compiler" >&6; }
6248
# Is the header present?
6249
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6250
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
6251
cat >conftest.$ac_ext <<_ACEOF
6254
cat confdefs.h >>conftest.$ac_ext
6255
cat >>conftest.$ac_ext <<_ACEOF
6256
/* end confdefs.h. */
6257
#include <minix/config.h>
6259
if { (ac_try="$ac_cpp conftest.$ac_ext"
6261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262
*) ac_try_echo=$ac_try;;
6264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6267
grep -v '^ *+' conftest.er1 >conftest.err
6269
cat conftest.err >&5
6270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271
(exit $ac_status); } >/dev/null && {
6272
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6273
test ! -s conftest.err
6275
ac_header_preproc=yes
6277
echo "$as_me: failed program was:" >&5
6278
sed 's/^/| /' conftest.$ac_ext >&5
6280
ac_header_preproc=no
6283
rm -f conftest.err conftest.$ac_ext
6284
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285
echo "${ECHO_T}$ac_header_preproc" >&6; }
6287
# So? What about this header?
6288
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6290
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6291
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6293
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6294
ac_header_preproc=yes
6297
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6298
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6299
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6300
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6301
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6302
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6303
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6304
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6305
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6306
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6307
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6308
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6310
## ----------------------------------------------------------- ##
6311
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
6312
## ----------------------------------------------------------- ##
6314
) | sed "s/^/$as_me: WARNING: /" >&2
6317
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
6318
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
6319
if test "${ac_cv_header_minix_config_h+set}" = set; then
6320
echo $ECHO_N "(cached) $ECHO_C" >&6
6322
ac_cv_header_minix_config_h=$ac_header_preproc
6324
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6325
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
6328
if test $ac_cv_header_minix_config_h = yes; then
6335
if test "$MINIX" = yes; then
6337
cat >>confdefs.h <<\_ACEOF
6338
#define _POSIX_SOURCE 1
6342
cat >>confdefs.h <<\_ACEOF
6343
#define _POSIX_1_SOURCE 2
6347
cat >>confdefs.h <<\_ACEOF
6363
{ echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6364
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
6365
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6366
echo $ECHO_N "(cached) $ECHO_C" >&6
6368
cat >conftest.$ac_ext <<_ACEOF
6371
cat confdefs.h >>conftest.$ac_ext
6372
cat >>conftest.$ac_ext <<_ACEOF
6373
/* end confdefs.h. */
6375
# define __EXTENSIONS__ 1
6376
$ac_includes_default
6385
rm -f conftest.$ac_objext
6386
if { (ac_try="$ac_compile"
6388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389
*) ac_try_echo=$ac_try;;
6391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392
(eval "$ac_compile") 2>conftest.er1
6394
grep -v '^ *+' conftest.er1 >conftest.err
6396
cat conftest.err >&5
6397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398
(exit $ac_status); } && {
6399
test -z "$ac_c_werror_flag" ||
6400
test ! -s conftest.err
6401
} && test -s conftest.$ac_objext; then
6402
ac_cv_safe_to_define___extensions__=yes
6404
echo "$as_me: failed program was:" >&5
6405
sed 's/^/| /' conftest.$ac_ext >&5
6407
ac_cv_safe_to_define___extensions__=no
6410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6413
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
6414
test $ac_cv_safe_to_define___extensions__ = yes &&
6415
cat >>confdefs.h <<\_ACEOF
6416
#define __EXTENSIONS__ 1
6419
cat >>confdefs.h <<\_ACEOF
6420
#define _POSIX_PTHREAD_SEMANTICS 1
6423
cat >>confdefs.h <<\_ACEOF
6424
#define _TANDEM_SOURCE 1
6432
# Check whether --enable-threads was given.
6433
if test "${enable_threads+set}" = set; then
6434
enableval=$enable_threads; gl_use_threads=$enableval
6437
osf*) gl_use_threads=no ;;
6438
*) gl_use_threads=yes ;;
6443
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6444
# For using <pthread.h>:
6447
# On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6448
# groks <pthread.h>. cc also understands the flag -pthread, but
6449
# we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6450
# 2. putting a flag into CPPFLAGS that has an effect on the linker
6451
# causes the AC_TRY_LINK test below to succeed unexpectedly,
6452
# leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6453
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6456
# Some systems optimize for single-threaded programs by default, and
6457
# need special flags to disable these optimizations. For example, the
6458
# definition of 'errno' in <errno.h>.
6460
aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6461
solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6469
if test "X$prefix" = "XNONE"; then
6470
acl_final_prefix="$ac_default_prefix"
6472
acl_final_prefix="$prefix"
6474
if test "X$exec_prefix" = "XNONE"; then
6475
acl_final_exec_prefix='${prefix}'
6477
acl_final_exec_prefix="$exec_prefix"
6479
acl_save_prefix="$prefix"
6480
prefix="$acl_final_prefix"
6481
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6482
prefix="$acl_save_prefix"
3810
6485
# Check whether --with-gnu-ld was given.
3811
6486
if test "${with_gnu_ld+set}" = set; then
3812
6487
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6659
if test "$gl_use_threads" != no; then
6660
{ echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6661
echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6663
cat >conftest.$ac_ext <<_ACEOF
6666
cat confdefs.h >>conftest.$ac_ext
6667
cat >>conftest.$ac_ext <<_ACEOF
6668
/* end confdefs.h. */
6669
extern void xyzzy ();
6679
rm -f conftest.$ac_objext conftest$ac_exeext
6680
if { (ac_try="$ac_link"
6682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683
*) ac_try_echo=$ac_try;;
6685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686
(eval "$ac_link") 2>conftest.er1
6688
grep -v '^ *+' conftest.er1 >conftest.err
6690
cat conftest.err >&5
6691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
(exit $ac_status); } && {
6693
test -z "$ac_c_werror_flag" ||
6694
test ! -s conftest.err
6695
} && test -s conftest$ac_exeext &&
6696
$as_test_x conftest$ac_exeext; then
6699
echo "$as_me: failed program was:" >&5
6700
sed 's/^/| /' conftest.$ac_ext >&5
6705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6706
conftest$ac_exeext conftest.$ac_ext
6707
{ echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6708
echo "${ECHO_T}$gl_have_weak" >&6; }
6709
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6710
# On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6711
# it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
6712
if test "${ac_cv_header_pthread_h+set}" = set; then
6713
{ echo "$as_me:$LINENO: checking for pthread.h" >&5
6714
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6715
if test "${ac_cv_header_pthread_h+set}" = set; then
6716
echo $ECHO_N "(cached) $ECHO_C" >&6
6718
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6719
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6721
# Is the header compilable?
6722
{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
6723
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6724
cat >conftest.$ac_ext <<_ACEOF
6727
cat confdefs.h >>conftest.$ac_ext
6728
cat >>conftest.$ac_ext <<_ACEOF
6729
/* end confdefs.h. */
6730
$ac_includes_default
6731
#include <pthread.h>
6733
rm -f conftest.$ac_objext
6734
if { (ac_try="$ac_compile"
6736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737
*) ac_try_echo=$ac_try;;
6739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740
(eval "$ac_compile") 2>conftest.er1
6742
grep -v '^ *+' conftest.er1 >conftest.err
6744
cat conftest.err >&5
6745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746
(exit $ac_status); } && {
6747
test -z "$ac_c_werror_flag" ||
6748
test ! -s conftest.err
6749
} && test -s conftest.$ac_objext; then
6750
ac_header_compiler=yes
6752
echo "$as_me: failed program was:" >&5
6753
sed 's/^/| /' conftest.$ac_ext >&5
6755
ac_header_compiler=no
6758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760
echo "${ECHO_T}$ac_header_compiler" >&6; }
6762
# Is the header present?
6763
{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
6764
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6765
cat >conftest.$ac_ext <<_ACEOF
6768
cat confdefs.h >>conftest.$ac_ext
6769
cat >>conftest.$ac_ext <<_ACEOF
6770
/* end confdefs.h. */
6771
#include <pthread.h>
6773
if { (ac_try="$ac_cpp conftest.$ac_ext"
6775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776
*) ac_try_echo=$ac_try;;
6778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6781
grep -v '^ *+' conftest.er1 >conftest.err
6783
cat conftest.err >&5
6784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785
(exit $ac_status); } >/dev/null && {
6786
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6787
test ! -s conftest.err
6789
ac_header_preproc=yes
6791
echo "$as_me: failed program was:" >&5
6792
sed 's/^/| /' conftest.$ac_ext >&5
6794
ac_header_preproc=no
6797
rm -f conftest.err conftest.$ac_ext
6798
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799
echo "${ECHO_T}$ac_header_preproc" >&6; }
6801
# So? What about this header?
6802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804
{ echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6805
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6807
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6808
ac_header_preproc=yes
6811
{ echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6812
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6813
{ echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
6814
echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
6815
{ echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6816
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6817
{ echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
6818
echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6819
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6820
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6821
{ echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6822
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6824
## ----------------------------------------------------------- ##
6825
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
6826
## ----------------------------------------------------------- ##
6828
) | sed "s/^/$as_me: WARNING: /" >&2
6831
{ echo "$as_me:$LINENO: checking for pthread.h" >&5
6832
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6833
if test "${ac_cv_header_pthread_h+set}" = set; then
6834
echo $ECHO_N "(cached) $ECHO_C" >&6
6836
ac_cv_header_pthread_h=$ac_header_preproc
6838
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6839
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6842
if test $ac_cv_header_pthread_h = yes; then
6843
gl_have_pthread_h=yes
6845
gl_have_pthread_h=no
6849
if test "$gl_have_pthread_h" = yes; then
6850
# Other possible tests:
6851
# -lpthreads (FSU threads, PCthreads)
6854
# Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6855
# in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6856
# the second one only in libpthread, and lock.c needs it.
6857
cat >conftest.$ac_ext <<_ACEOF
6860
cat confdefs.h >>conftest.$ac_ext
6861
cat >>conftest.$ac_ext <<_ACEOF
6862
/* end confdefs.h. */
6863
#include <pthread.h>
6867
pthread_mutex_lock((pthread_mutex_t*)0);
6868
pthread_mutexattr_init((pthread_mutexattr_t*)0);
6873
rm -f conftest.$ac_objext conftest$ac_exeext
6874
if { (ac_try="$ac_link"
6876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877
*) ac_try_echo=$ac_try;;
6879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880
(eval "$ac_link") 2>conftest.er1
6882
grep -v '^ *+' conftest.er1 >conftest.err
6884
cat conftest.err >&5
6885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886
(exit $ac_status); } && {
6887
test -z "$ac_c_werror_flag" ||
6888
test ! -s conftest.err
6889
} && test -s conftest$ac_exeext &&
6890
$as_test_x conftest$ac_exeext; then
6893
echo "$as_me: failed program was:" >&5
6894
sed 's/^/| /' conftest.$ac_ext >&5
6899
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6900
conftest$ac_exeext conftest.$ac_ext
6901
# Test for libpthread by looking for pthread_kill. (Not pthread_self,
6902
# since it is defined as a macro on OSF/1.)
6903
if test -n "$gl_have_pthread"; then
6904
# The program links fine without libpthread. But it may actually
6905
# need to link with libpthread in order to create multiple threads.
6906
{ echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6907
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6908
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6909
echo $ECHO_N "(cached) $ECHO_C" >&6
6911
ac_check_lib_save_LIBS=$LIBS
6912
LIBS="-lpthread $LIBS"
6913
cat >conftest.$ac_ext <<_ACEOF
6916
cat confdefs.h >>conftest.$ac_ext
6917
cat >>conftest.$ac_ext <<_ACEOF
6918
/* end confdefs.h. */
6920
/* Override any GCC internal prototype to avoid an error.
6921
Use char because int might match the return type of a GCC
6922
builtin and then its argument prototype would still apply. */
6926
char pthread_kill ();
6930
return pthread_kill ();
6935
rm -f conftest.$ac_objext conftest$ac_exeext
6936
if { (ac_try="$ac_link"
6938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939
*) ac_try_echo=$ac_try;;
6941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6942
(eval "$ac_link") 2>conftest.er1
6944
grep -v '^ *+' conftest.er1 >conftest.err
6946
cat conftest.err >&5
6947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
(exit $ac_status); } && {
6949
test -z "$ac_c_werror_flag" ||
6950
test ! -s conftest.err
6951
} && test -s conftest$ac_exeext &&
6952
$as_test_x conftest$ac_exeext; then
6953
ac_cv_lib_pthread_pthread_kill=yes
6955
echo "$as_me: failed program was:" >&5
6956
sed 's/^/| /' conftest.$ac_ext >&5
6958
ac_cv_lib_pthread_pthread_kill=no
6961
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6962
conftest$ac_exeext conftest.$ac_ext
6963
LIBS=$ac_check_lib_save_LIBS
6965
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6966
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6967
if test $ac_cv_lib_pthread_pthread_kill = yes; then
6968
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6969
# On Solaris and HP-UX, most pthread functions exist also in libc.
6970
# Therefore pthread_in_use() needs to actually try to create a
6971
# thread: pthread_create from libc will fail, whereas
6972
# pthread_create will actually create a thread.
6976
cat >>confdefs.h <<\_ACEOF
6977
#define PTHREAD_IN_USE_DETECTION_HARD 1
6985
# Some library is needed. Try libpthread and libc_r.
6986
{ echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6987
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6988
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6989
echo $ECHO_N "(cached) $ECHO_C" >&6
6991
ac_check_lib_save_LIBS=$LIBS
6992
LIBS="-lpthread $LIBS"
6993
cat >conftest.$ac_ext <<_ACEOF
6996
cat confdefs.h >>conftest.$ac_ext
6997
cat >>conftest.$ac_ext <<_ACEOF
6998
/* end confdefs.h. */
7000
/* Override any GCC internal prototype to avoid an error.
7001
Use char because int might match the return type of a GCC
7002
builtin and then its argument prototype would still apply. */
7006
char pthread_kill ();
7010
return pthread_kill ();
7015
rm -f conftest.$ac_objext conftest$ac_exeext
7016
if { (ac_try="$ac_link"
7018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019
*) ac_try_echo=$ac_try;;
7021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022
(eval "$ac_link") 2>conftest.er1
7024
grep -v '^ *+' conftest.er1 >conftest.err
7026
cat conftest.err >&5
7027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028
(exit $ac_status); } && {
7029
test -z "$ac_c_werror_flag" ||
7030
test ! -s conftest.err
7031
} && test -s conftest$ac_exeext &&
7032
$as_test_x conftest$ac_exeext; then
7033
ac_cv_lib_pthread_pthread_kill=yes
7035
echo "$as_me: failed program was:" >&5
7036
sed 's/^/| /' conftest.$ac_ext >&5
7038
ac_cv_lib_pthread_pthread_kill=no
7041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042
conftest$ac_exeext conftest.$ac_ext
7043
LIBS=$ac_check_lib_save_LIBS
7045
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
7046
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
7047
if test $ac_cv_lib_pthread_pthread_kill = yes; then
7049
LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7050
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7053
if test -z "$gl_have_pthread"; then
7055
{ echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
7056
echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
7057
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
7058
echo $ECHO_N "(cached) $ECHO_C" >&6
7060
ac_check_lib_save_LIBS=$LIBS
7062
cat >conftest.$ac_ext <<_ACEOF
7065
cat confdefs.h >>conftest.$ac_ext
7066
cat >>conftest.$ac_ext <<_ACEOF
7067
/* end confdefs.h. */
7069
/* Override any GCC internal prototype to avoid an error.
7070
Use char because int might match the return type of a GCC
7071
builtin and then its argument prototype would still apply. */
7075
char pthread_kill ();
7079
return pthread_kill ();
7084
rm -f conftest.$ac_objext conftest$ac_exeext
7085
if { (ac_try="$ac_link"
7087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088
*) ac_try_echo=$ac_try;;
7090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091
(eval "$ac_link") 2>conftest.er1
7093
grep -v '^ *+' conftest.er1 >conftest.err
7095
cat conftest.err >&5
7096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097
(exit $ac_status); } && {
7098
test -z "$ac_c_werror_flag" ||
7099
test ! -s conftest.err
7100
} && test -s conftest$ac_exeext &&
7101
$as_test_x conftest$ac_exeext; then
7102
ac_cv_lib_c_r_pthread_kill=yes
7104
echo "$as_me: failed program was:" >&5
7105
sed 's/^/| /' conftest.$ac_ext >&5
7107
ac_cv_lib_c_r_pthread_kill=no
7110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7111
conftest$ac_exeext conftest.$ac_ext
7112
LIBS=$ac_check_lib_save_LIBS
7114
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
7115
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
7116
if test $ac_cv_lib_c_r_pthread_kill = yes; then
7118
LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7119
LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7124
if test -n "$gl_have_pthread"; then
7125
gl_threads_api=posix
7127
cat >>confdefs.h <<\_ACEOF
7128
#define USE_POSIX_THREADS 1
7131
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7132
if test $gl_have_weak = yes; then
7134
cat >>confdefs.h <<\_ACEOF
7135
#define USE_POSIX_THREADS_WEAK 1
7142
# OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
7143
# pthread_rwlock_* functions.
7144
{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
7145
echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
7146
if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
7147
echo $ECHO_N "(cached) $ECHO_C" >&6
7149
cat >conftest.$ac_ext <<_ACEOF
7152
cat confdefs.h >>conftest.$ac_ext
7153
cat >>conftest.$ac_ext <<_ACEOF
7154
/* end confdefs.h. */
7155
#include <pthread.h>
7157
typedef pthread_rwlock_t ac__type_new_;
7161
if ((ac__type_new_ *) 0)
7163
if (sizeof (ac__type_new_))
7169
rm -f conftest.$ac_objext
7170
if { (ac_try="$ac_compile"
7172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173
*) ac_try_echo=$ac_try;;
7175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176
(eval "$ac_compile") 2>conftest.er1
7178
grep -v '^ *+' conftest.er1 >conftest.err
7180
cat conftest.err >&5
7181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182
(exit $ac_status); } && {
7183
test -z "$ac_c_werror_flag" ||
7184
test ! -s conftest.err
7185
} && test -s conftest.$ac_objext; then
7186
ac_cv_type_pthread_rwlock_t=yes
7188
echo "$as_me: failed program was:" >&5
7189
sed 's/^/| /' conftest.$ac_ext >&5
7191
ac_cv_type_pthread_rwlock_t=no
7194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196
{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
7197
echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
7198
if test $ac_cv_type_pthread_rwlock_t = yes; then
7200
cat >>confdefs.h <<\_ACEOF
7201
#define HAVE_PTHREAD_RWLOCK 1
7206
# glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7207
cat >conftest.$ac_ext <<_ACEOF
7210
cat confdefs.h >>conftest.$ac_ext
7211
cat >>conftest.$ac_ext <<_ACEOF
7212
/* end confdefs.h. */
7213
#include <pthread.h>
7217
#if __FreeBSD__ == 4
7218
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7220
int x = (int)PTHREAD_MUTEX_RECURSIVE;
7227
rm -f conftest.$ac_objext
7228
if { (ac_try="$ac_compile"
7230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231
*) ac_try_echo=$ac_try;;
7233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234
(eval "$ac_compile") 2>conftest.er1
7236
grep -v '^ *+' conftest.er1 >conftest.err
7238
cat conftest.err >&5
7239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240
(exit $ac_status); } && {
7241
test -z "$ac_c_werror_flag" ||
7242
test ! -s conftest.err
7243
} && test -s conftest.$ac_objext; then
7245
cat >>confdefs.h <<\_ACEOF
7246
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7250
echo "$as_me: failed program was:" >&5
7251
sed 's/^/| /' conftest.$ac_ext >&5
7256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260
if test -z "$gl_have_pthread"; then
7261
if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7262
gl_have_solaristhread=
7263
gl_save_LIBS="$LIBS"
7264
LIBS="$LIBS -lthread"
7265
cat >conftest.$ac_ext <<_ACEOF
7268
cat confdefs.h >>conftest.$ac_ext
7269
cat >>conftest.$ac_ext <<_ACEOF
7270
/* end confdefs.h. */
7281
rm -f conftest.$ac_objext conftest$ac_exeext
7282
if { (ac_try="$ac_link"
7284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285
*) ac_try_echo=$ac_try;;
7287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288
(eval "$ac_link") 2>conftest.er1
7290
grep -v '^ *+' conftest.er1 >conftest.err
7292
cat conftest.err >&5
7293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
(exit $ac_status); } && {
7295
test -z "$ac_c_werror_flag" ||
7296
test ! -s conftest.err
7297
} && test -s conftest$ac_exeext &&
7298
$as_test_x conftest$ac_exeext; then
7299
gl_have_solaristhread=yes
7301
echo "$as_me: failed program was:" >&5
7302
sed 's/^/| /' conftest.$ac_ext >&5
7307
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308
conftest$ac_exeext conftest.$ac_ext
7309
LIBS="$gl_save_LIBS"
7310
if test -n "$gl_have_solaristhread"; then
7311
gl_threads_api=solaris
7313
LTLIBTHREAD=-lthread
7314
LIBMULTITHREAD="$LIBTHREAD"
7315
LTLIBMULTITHREAD="$LTLIBTHREAD"
7317
cat >>confdefs.h <<\_ACEOF
7318
#define USE_SOLARIS_THREADS 1
7321
if test $gl_have_weak = yes; then
7323
cat >>confdefs.h <<\_ACEOF
7324
#define USE_SOLARIS_THREADS_WEAK 1
7333
if test "$gl_use_threads" = pth; then
7334
gl_save_CPPFLAGS="$CPPFLAGS"
7340
{ echo "$as_me:$LINENO: checking how to link with libpth" >&5
7341
echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7342
if test "${ac_cv_libpth_libs+set}" = set; then
7343
echo $ECHO_N "(cached) $ECHO_C" >&6
7352
acl_save_prefix="$prefix"
7353
prefix="$acl_final_prefix"
7354
acl_save_exec_prefix="$exec_prefix"
7355
exec_prefix="$acl_final_exec_prefix"
7357
eval additional_includedir=\"$includedir\"
7358
eval additional_libdir=\"$libdir\"
7360
exec_prefix="$acl_save_exec_prefix"
7361
prefix="$acl_save_prefix"
7364
# Check whether --with-libpth-prefix was given.
7365
if test "${with_libpth_prefix+set}" = set; then
7366
withval=$with_libpth_prefix;
7367
if test "X$withval" = "Xno"; then
7370
if test "X$withval" = "X"; then
7372
acl_save_prefix="$prefix"
7373
prefix="$acl_final_prefix"
7374
acl_save_exec_prefix="$exec_prefix"
7375
exec_prefix="$acl_final_exec_prefix"
7377
eval additional_includedir=\"$includedir\"
7378
eval additional_libdir=\"$libdir\"
7380
exec_prefix="$acl_save_exec_prefix"
7381
prefix="$acl_save_prefix"
7384
additional_includedir="$withval/include"
7385
additional_libdir="$withval/$acl_libdirstem"
7397
names_already_handled=
7398
names_next_round='pth '
7399
while test -n "$names_next_round"; do
7400
names_this_round="$names_next_round"
7402
for name in $names_this_round; do
7404
for n in $names_already_handled; do
7405
if test "$n" = "$name"; then
7410
if test -z "$already_handled"; then
7411
names_already_handled="$names_already_handled $name"
7412
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7413
eval value=\"\$HAVE_LIB$uppername\"
7414
if test -n "$value"; then
7415
if test "$value" = yes; then
7416
eval value=\"\$LIB$uppername\"
7417
test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7418
eval value=\"\$LTLIB$uppername\"
7419
test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7428
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7429
if test -n "$acl_shlibext"; then
7430
shrext=".$acl_shlibext" # typically: shrext=.so
7434
if test $use_additional = yes; then
7435
dir="$additional_libdir"
7436
if test -n "$acl_shlibext"; then
7437
if test -f "$dir/$libname$shrext"; then
7439
found_so="$dir/$libname$shrext"
7441
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7442
ver=`(cd "$dir" && \
7443
for f in "$libname$shrext".*; do echo "$f"; done \
7444
| sed -e "s,^$libname$shrext\\\\.,," \
7445
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7446
| sed 1q ) 2>/dev/null`
7447
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7449
found_so="$dir/$libname$shrext.$ver"
7452
eval library_names=\"$acl_library_names_spec\"
7453
for f in $library_names; do
7454
if test -f "$dir/$f"; then
7463
if test "X$found_dir" = "X"; then
7464
if test -f "$dir/$libname.$acl_libext"; then
7466
found_a="$dir/$libname.$acl_libext"
7469
if test "X$found_dir" != "X"; then
7470
if test -f "$dir/$libname.la"; then
7471
found_la="$dir/$libname.la"
7475
if test "X$found_dir" = "X"; then
7476
for x in $LDFLAGS $LTLIBPTH; do
7478
acl_save_prefix="$prefix"
7479
prefix="$acl_final_prefix"
7480
acl_save_exec_prefix="$exec_prefix"
7481
exec_prefix="$acl_final_exec_prefix"
7483
exec_prefix="$acl_save_exec_prefix"
7484
prefix="$acl_save_prefix"
7488
dir=`echo "X$x" | sed -e 's/^X-L//'`
7489
if test -n "$acl_shlibext"; then
7490
if test -f "$dir/$libname$shrext"; then
7492
found_so="$dir/$libname$shrext"
7494
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7495
ver=`(cd "$dir" && \
7496
for f in "$libname$shrext".*; do echo "$f"; done \
7497
| sed -e "s,^$libname$shrext\\\\.,," \
7498
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7499
| sed 1q ) 2>/dev/null`
7500
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7502
found_so="$dir/$libname$shrext.$ver"
7505
eval library_names=\"$acl_library_names_spec\"
7506
for f in $library_names; do
7507
if test -f "$dir/$f"; then
7516
if test "X$found_dir" = "X"; then
7517
if test -f "$dir/$libname.$acl_libext"; then
7519
found_a="$dir/$libname.$acl_libext"
7522
if test "X$found_dir" != "X"; then
7523
if test -f "$dir/$libname.la"; then
7524
found_la="$dir/$libname.la"
7529
if test "X$found_dir" != "X"; then
7534
if test "X$found_dir" != "X"; then
7535
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7536
if test "X$found_so" != "X"; then
7537
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7538
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7541
for x in $ltrpathdirs; do
7542
if test "X$x" = "X$found_dir"; then
7547
if test -z "$haveit"; then
7548
ltrpathdirs="$ltrpathdirs $found_dir"
7550
if test "$acl_hardcode_direct" = yes; then
7551
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7553
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7554
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7556
for x in $rpathdirs; do
7557
if test "X$x" = "X$found_dir"; then
7562
if test -z "$haveit"; then
7563
rpathdirs="$rpathdirs $found_dir"
7567
for x in $LDFLAGS $LIBPTH; do
7569
acl_save_prefix="$prefix"
7570
prefix="$acl_final_prefix"
7571
acl_save_exec_prefix="$exec_prefix"
7572
exec_prefix="$acl_final_exec_prefix"
7574
exec_prefix="$acl_save_exec_prefix"
7575
prefix="$acl_save_prefix"
7577
if test "X$x" = "X-L$found_dir"; then
7582
if test -z "$haveit"; then
7583
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7585
if test "$acl_hardcode_minus_L" != no; then
7586
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7588
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7594
if test "X$found_a" != "X"; then
7595
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7597
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7600
additional_includedir=
7601
case "$found_dir" in
7602
*/$acl_libdirstem | */$acl_libdirstem/)
7603
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7604
LIBPTH_PREFIX="$basedir"
7605
additional_includedir="$basedir/include"
7608
if test "X$additional_includedir" != "X"; then
7609
if test "X$additional_includedir" != "X/usr/include"; then
7611
if test "X$additional_includedir" = "X/usr/local/include"; then
7612
if test -n "$GCC"; then
7614
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7618
if test -z "$haveit"; then
7619
for x in $CPPFLAGS $INCPTH; do
7621
acl_save_prefix="$prefix"
7622
prefix="$acl_final_prefix"
7623
acl_save_exec_prefix="$exec_prefix"
7624
exec_prefix="$acl_final_exec_prefix"
7626
exec_prefix="$acl_save_exec_prefix"
7627
prefix="$acl_save_prefix"
7629
if test "X$x" = "X-I$additional_includedir"; then
7634
if test -z "$haveit"; then
7635
if test -d "$additional_includedir"; then
7636
INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7642
if test -n "$found_la"; then
7643
save_libdir="$libdir"
7645
*/* | *\\*) . "$found_la" ;;
7646
*) . "./$found_la" ;;
7648
libdir="$save_libdir"
7649
for dep in $dependency_libs; do
7652
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7653
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7655
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7656
if test -n "$GCC"; then
7658
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7662
if test -z "$haveit"; then
7664
for x in $LDFLAGS $LIBPTH; do
7666
acl_save_prefix="$prefix"
7667
prefix="$acl_final_prefix"
7668
acl_save_exec_prefix="$exec_prefix"
7669
exec_prefix="$acl_final_exec_prefix"
7671
exec_prefix="$acl_save_exec_prefix"
7672
prefix="$acl_save_prefix"
7674
if test "X$x" = "X-L$additional_libdir"; then
7679
if test -z "$haveit"; then
7680
if test -d "$additional_libdir"; then
7681
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7685
for x in $LDFLAGS $LTLIBPTH; do
7687
acl_save_prefix="$prefix"
7688
prefix="$acl_final_prefix"
7689
acl_save_exec_prefix="$exec_prefix"
7690
exec_prefix="$acl_final_exec_prefix"
7692
exec_prefix="$acl_save_exec_prefix"
7693
prefix="$acl_save_prefix"
7695
if test "X$x" = "X-L$additional_libdir"; then
7700
if test -z "$haveit"; then
7701
if test -d "$additional_libdir"; then
7702
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7709
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7710
if test "$enable_rpath" != no; then
7712
for x in $rpathdirs; do
7713
if test "X$x" = "X$dir"; then
7718
if test -z "$haveit"; then
7719
rpathdirs="$rpathdirs $dir"
7722
for x in $ltrpathdirs; do
7723
if test "X$x" = "X$dir"; then
7728
if test -z "$haveit"; then
7729
ltrpathdirs="$ltrpathdirs $dir"
7734
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7737
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7740
LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7741
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7747
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7748
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7754
if test "X$rpathdirs" != "X"; then
7755
if test -n "$acl_hardcode_libdir_separator"; then
7757
for found_dir in $rpathdirs; do
7758
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7760
acl_save_libdir="$libdir"
7762
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7763
libdir="$acl_save_libdir"
7764
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7766
for found_dir in $rpathdirs; do
7767
acl_save_libdir="$libdir"
7769
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7770
libdir="$acl_save_libdir"
7771
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7775
if test "X$ltrpathdirs" != "X"; then
7776
for found_dir in $ltrpathdirs; do
7777
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7781
ac_cv_libpth_libs="$LIBPTH"
7782
ac_cv_libpth_ltlibs="$LTLIBPTH"
7783
ac_cv_libpth_cppflags="$INCPTH"
7784
ac_cv_libpth_prefix="$LIBPTH_PREFIX"
7787
{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7788
echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7789
LIBPTH="$ac_cv_libpth_libs"
7790
LTLIBPTH="$ac_cv_libpth_ltlibs"
7791
INCPTH="$ac_cv_libpth_cppflags"
7792
LIBPTH_PREFIX="$ac_cv_libpth_prefix"
7794
for element in $INCPTH; do
7796
for x in $CPPFLAGS; do
7798
acl_save_prefix="$prefix"
7799
prefix="$acl_final_prefix"
7800
acl_save_exec_prefix="$exec_prefix"
7801
exec_prefix="$acl_final_exec_prefix"
7803
exec_prefix="$acl_save_exec_prefix"
7804
prefix="$acl_save_prefix"
7806
if test "X$x" = "X$element"; then
7811
if test -z "$haveit"; then
7812
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7824
gl_save_LIBS="$LIBS"
7826
cat >conftest.$ac_ext <<_ACEOF
7829
cat confdefs.h >>conftest.$ac_ext
7830
cat >>conftest.$ac_ext <<_ACEOF
7831
/* end confdefs.h. */
7841
rm -f conftest.$ac_objext conftest$ac_exeext
7842
if { (ac_try="$ac_link"
7844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845
*) ac_try_echo=$ac_try;;
7847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848
(eval "$ac_link") 2>conftest.er1
7850
grep -v '^ *+' conftest.er1 >conftest.err
7852
cat conftest.err >&5
7853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854
(exit $ac_status); } && {
7855
test -z "$ac_c_werror_flag" ||
7856
test ! -s conftest.err
7857
} && test -s conftest$ac_exeext &&
7858
$as_test_x conftest$ac_exeext; then
7861
echo "$as_me: failed program was:" >&5
7862
sed 's/^/| /' conftest.$ac_ext >&5
7867
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7868
conftest$ac_exeext conftest.$ac_ext
7869
LIBS="$gl_save_LIBS"
7870
if test -n "$gl_have_pth"; then
7873
LTLIBTHREAD="$LTLIBPTH"
7874
LIBMULTITHREAD="$LIBTHREAD"
7875
LTLIBMULTITHREAD="$LTLIBTHREAD"
7877
cat >>confdefs.h <<\_ACEOF
7878
#define USE_PTH_THREADS 1
7881
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7882
if test $gl_have_weak = yes; then
7884
cat >>confdefs.h <<\_ACEOF
7885
#define USE_PTH_THREADS_WEAK 1
7893
CPPFLAGS="$gl_save_CPPFLAGS"
7896
if test -z "$gl_have_pthread"; then
7897
if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
7898
if { case "$host_os" in
7903
gl_threads_api=win32
7905
cat >>confdefs.h <<\_ACEOF
7906
#define USE_WIN32_THREADS 1
7913
{ echo "$as_me:$LINENO: checking for multithread API to use" >&5
7914
echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
7915
{ echo "$as_me:$LINENO: result: $gl_threads_api" >&5
7916
echo "${ECHO_T}$gl_threads_api" >&6; }
4397
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4398
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
4399
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4400
echo $ECHO_N "(cached) $ECHO_C" >&6
4402
gt_save_LIBS="$LIBS"
4403
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4404
cat >conftest.$ac_ext <<_ACEOF
4407
cat confdefs.h >>conftest.$ac_ext
4408
cat >>conftest.$ac_ext <<_ACEOF
4409
/* end confdefs.h. */
4410
#include <CoreFoundation/CFPreferences.h>
4414
CFPreferencesCopyAppValue(NULL, NULL)
4419
rm -f conftest.$ac_objext conftest$ac_exeext
4420
if { (ac_try="$ac_link"
4422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423
*) ac_try_echo=$ac_try;;
4425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426
(eval "$ac_link") 2>conftest.er1
4428
grep -v '^ *+' conftest.er1 >conftest.err
4430
cat conftest.err >&5
4431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
(exit $ac_status); } && {
4433
test -z "$ac_c_werror_flag" ||
4434
test ! -s conftest.err
4435
} && test -s conftest$ac_exeext &&
4436
$as_test_x conftest$ac_exeext; then
4437
gt_cv_func_CFPreferencesCopyAppValue=yes
4439
echo "$as_me: failed program was:" >&5
4440
sed 's/^/| /' conftest.$ac_ext >&5
4442
gt_cv_func_CFPreferencesCopyAppValue=no
4445
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446
conftest$ac_exeext conftest.$ac_ext
4447
LIBS="$gt_save_LIBS"
4449
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4450
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4451
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4453
cat >>confdefs.h <<\_ACEOF
4454
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4458
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4459
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
4460
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4461
echo $ECHO_N "(cached) $ECHO_C" >&6
4463
gt_save_LIBS="$LIBS"
4464
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4465
cat >conftest.$ac_ext <<_ACEOF
4468
cat confdefs.h >>conftest.$ac_ext
4469
cat >>conftest.$ac_ext <<_ACEOF
4470
/* end confdefs.h. */
4471
#include <CoreFoundation/CFLocale.h>
4475
CFLocaleCopyCurrent();
4480
rm -f conftest.$ac_objext conftest$ac_exeext
4481
if { (ac_try="$ac_link"
4483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484
*) ac_try_echo=$ac_try;;
4486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487
(eval "$ac_link") 2>conftest.er1
4489
grep -v '^ *+' conftest.er1 >conftest.err
4491
cat conftest.err >&5
4492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
(exit $ac_status); } && {
4494
test -z "$ac_c_werror_flag" ||
4495
test ! -s conftest.err
4496
} && test -s conftest$ac_exeext &&
4497
$as_test_x conftest$ac_exeext; then
4498
gt_cv_func_CFLocaleCopyCurrent=yes
4500
echo "$as_me: failed program was:" >&5
4501
sed 's/^/| /' conftest.$ac_ext >&5
4503
gt_cv_func_CFLocaleCopyCurrent=no
4506
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507
conftest$ac_exeext conftest.$ac_ext
4508
LIBS="$gt_save_LIBS"
4510
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4511
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4512
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4514
cat >>confdefs.h <<\_ACEOF
4515
#define HAVE_CFLOCALECOPYCURRENT 1
4520
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4521
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4533
case " $gt_needs " in
4534
*" need-formatstring-macros "*) gt_api_version=3 ;;
4535
*" need-ngettext "*) gt_api_version=2 ;;
4536
*) gt_api_version=1 ;;
4538
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
4539
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
4541
if test "$USE_NLS" = "yes"; then
4542
gt_use_preinstalled_gnugettext=no
4545
if test $gt_api_version -ge 3; then
4546
gt_revision_test_code='[
4547
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
4548
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
4550
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
4553
gt_revision_test_code=
4555
if test $gt_api_version -ge 2; then
4556
gt_expression_test_code=' + * ngettext ("", "", 0)'
4558
gt_expression_test_code=
4561
{ echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4562
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4563
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
4564
echo $ECHO_N "(cached) $ECHO_C" >&6
4566
cat >conftest.$ac_ext <<_ACEOF
4569
cat confdefs.h >>conftest.$ac_ext
4570
cat >>conftest.$ac_ext <<_ACEOF
4571
/* end confdefs.h. */
4572
#include <libintl.h>
4573
$gt_revision_test_code
4574
extern int _nl_msg_cat_cntr;
4575
extern int *_nl_domain_bindings;
4579
bindtextdomain ("", "");
4580
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
4585
rm -f conftest.$ac_objext conftest$ac_exeext
4586
if { (ac_try="$ac_link"
4588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589
*) ac_try_echo=$ac_try;;
4591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592
(eval "$ac_link") 2>conftest.er1
4594
grep -v '^ *+' conftest.er1 >conftest.err
4596
cat conftest.err >&5
4597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598
(exit $ac_status); } && {
4599
test -z "$ac_c_werror_flag" ||
4600
test ! -s conftest.err
4601
} && test -s conftest$ac_exeext &&
4602
$as_test_x conftest$ac_exeext; then
4603
eval "$gt_func_gnugettext_libc=yes"
4605
echo "$as_me: failed program was:" >&5
4606
sed 's/^/| /' conftest.$ac_ext >&5
4608
eval "$gt_func_gnugettext_libc=no"
4611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4612
conftest$ac_exeext conftest.$ac_ext
4614
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
4615
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4616
echo "${ECHO_T}$ac_res" >&6; }
4618
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8372
cat >conftest.$ac_ext <<_ACEOF
8375
cat confdefs.h >>conftest.$ac_ext
8376
cat >>conftest.$ac_ext <<_ACEOF
8377
/* end confdefs.h. */
8378
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
8387
rm -f conftest.$ac_objext conftest$ac_exeext
8388
if { (ac_try="$ac_link"
8390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391
*) ac_try_echo=$ac_try;;
8393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394
(eval "$ac_link") 2>conftest.er1
8396
grep -v '^ *+' conftest.er1 >conftest.err
8398
cat conftest.err >&5
8399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400
(exit $ac_status); } && {
8401
test -z "$ac_c_werror_flag" ||
8402
test ! -s conftest.err
8403
} && test -s conftest$ac_exeext &&
8404
$as_test_x conftest$ac_exeext; then
8406
cat >>confdefs.h <<\_ACEOF
8407
#define HAVE_BUILTIN_EXPECT 1
8411
echo "$as_me: failed program was:" >&5
8412
sed 's/^/| /' conftest.$ac_ext >&5
8417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418
conftest$ac_exeext conftest.$ac_ext
8425
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
8427
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8428
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8429
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8430
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8431
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8432
echo $ECHO_N "(cached) $ECHO_C" >&6
8434
ac_res=`eval echo '${'$as_ac_Header'}'`
8435
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8436
echo "${ECHO_T}$ac_res" >&6; }
8438
# Is the header compilable?
8439
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8440
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8441
cat >conftest.$ac_ext <<_ACEOF
8444
cat confdefs.h >>conftest.$ac_ext
8445
cat >>conftest.$ac_ext <<_ACEOF
8446
/* end confdefs.h. */
8447
$ac_includes_default
8448
#include <$ac_header>
8450
rm -f conftest.$ac_objext
8451
if { (ac_try="$ac_compile"
8453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454
*) ac_try_echo=$ac_try;;
8456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457
(eval "$ac_compile") 2>conftest.er1
8459
grep -v '^ *+' conftest.er1 >conftest.err
8461
cat conftest.err >&5
8462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463
(exit $ac_status); } && {
8464
test -z "$ac_c_werror_flag" ||
8465
test ! -s conftest.err
8466
} && test -s conftest.$ac_objext; then
8467
ac_header_compiler=yes
8469
echo "$as_me: failed program was:" >&5
8470
sed 's/^/| /' conftest.$ac_ext >&5
8472
ac_header_compiler=no
8475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8477
echo "${ECHO_T}$ac_header_compiler" >&6; }
8479
# Is the header present?
8480
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8481
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8482
cat >conftest.$ac_ext <<_ACEOF
8485
cat confdefs.h >>conftest.$ac_ext
8486
cat >>conftest.$ac_ext <<_ACEOF
8487
/* end confdefs.h. */
8488
#include <$ac_header>
8490
if { (ac_try="$ac_cpp conftest.$ac_ext"
8492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493
*) ac_try_echo=$ac_try;;
8495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8498
grep -v '^ *+' conftest.er1 >conftest.err
8500
cat conftest.err >&5
8501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502
(exit $ac_status); } >/dev/null && {
8503
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8504
test ! -s conftest.err
8506
ac_header_preproc=yes
8508
echo "$as_me: failed program was:" >&5
8509
sed 's/^/| /' conftest.$ac_ext >&5
8511
ac_header_preproc=no
8514
rm -f conftest.err conftest.$ac_ext
8515
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516
echo "${ECHO_T}$ac_header_preproc" >&6; }
8518
# So? What about this header?
8519
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8521
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525
ac_header_preproc=yes
8528
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8531
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8532
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8535
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8536
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8541
## ----------------------------------------------------------- ##
8542
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
8543
## ----------------------------------------------------------- ##
8545
) | sed "s/^/$as_me: WARNING: /" >&2
8548
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8550
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551
echo $ECHO_N "(cached) $ECHO_C" >&6
8553
eval "$as_ac_Header=\$ac_header_preproc"
8555
ac_res=`eval echo '${'$as_ac_Header'}'`
8556
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8557
echo "${ECHO_T}$ac_res" >&6; }
8560
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561
cat >>confdefs.h <<_ACEOF
8562
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
8586
stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
8587
argz_next __fsetlocking
8589
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8590
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8591
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8592
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8593
echo $ECHO_N "(cached) $ECHO_C" >&6
8595
cat >conftest.$ac_ext <<_ACEOF
8598
cat confdefs.h >>conftest.$ac_ext
8599
cat >>conftest.$ac_ext <<_ACEOF
8600
/* end confdefs.h. */
8601
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8602
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8603
#define $ac_func innocuous_$ac_func
8605
/* System header to define __stub macros and hopefully few prototypes,
8606
which can conflict with char $ac_func (); below.
8607
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8608
<limits.h> exists even on freestanding compilers. */
8611
# include <limits.h>
8613
# include <assert.h>
8618
/* Override any GCC internal prototype to avoid an error.
8619
Use char because int might match the return type of a GCC
8620
builtin and then its argument prototype would still apply. */
8625
/* The GNU C library defines this for functions which it implements
8626
to always fail with ENOSYS. Some functions are actually named
8627
something starting with __ and the normal name is an alias. */
8628
#if defined __stub_$ac_func || defined __stub___$ac_func
8640
rm -f conftest.$ac_objext conftest$ac_exeext
8641
if { (ac_try="$ac_link"
8643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644
*) ac_try_echo=$ac_try;;
8646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647
(eval "$ac_link") 2>conftest.er1
8649
grep -v '^ *+' conftest.er1 >conftest.err
8651
cat conftest.err >&5
8652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653
(exit $ac_status); } && {
8654
test -z "$ac_c_werror_flag" ||
8655
test ! -s conftest.err
8656
} && test -s conftest$ac_exeext &&
8657
$as_test_x conftest$ac_exeext; then
8658
eval "$as_ac_var=yes"
8660
echo "$as_me: failed program was:" >&5
8661
sed 's/^/| /' conftest.$ac_ext >&5
8663
eval "$as_ac_var=no"
8666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667
conftest$ac_exeext conftest.$ac_ext
8669
ac_res=`eval echo '${'$as_ac_var'}'`
8670
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8671
echo "${ECHO_T}$ac_res" >&6; }
8672
if test `eval echo '${'$as_ac_var'}'` = yes; then
8673
cat >>confdefs.h <<_ACEOF
8674
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8682
{ echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8683
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8684
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8685
echo $ECHO_N "(cached) $ECHO_C" >&6
8687
cat >conftest.$ac_ext <<_ACEOF
8690
cat confdefs.h >>conftest.$ac_ext
8691
cat >>conftest.$ac_ext <<_ACEOF
8692
/* end confdefs.h. */
8698
#ifndef feof_unlocked
8699
char *p = (char *) feof_unlocked;
8706
rm -f conftest.$ac_objext
8707
if { (ac_try="$ac_compile"
8709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710
*) ac_try_echo=$ac_try;;
8712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713
(eval "$ac_compile") 2>conftest.er1
8715
grep -v '^ *+' conftest.er1 >conftest.err
8717
cat conftest.err >&5
8718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
(exit $ac_status); } && {
8720
test -z "$ac_c_werror_flag" ||
8721
test ! -s conftest.err
8722
} && test -s conftest.$ac_objext; then
8723
ac_cv_have_decl_feof_unlocked=yes
8725
echo "$as_me: failed program was:" >&5
8726
sed 's/^/| /' conftest.$ac_ext >&5
8728
ac_cv_have_decl_feof_unlocked=no
8731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8734
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8735
if test $ac_cv_have_decl_feof_unlocked = yes; then
8741
cat >>confdefs.h <<_ACEOF
8742
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8747
{ echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8748
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8749
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8750
echo $ECHO_N "(cached) $ECHO_C" >&6
8752
cat >conftest.$ac_ext <<_ACEOF
8755
cat confdefs.h >>conftest.$ac_ext
8756
cat >>conftest.$ac_ext <<_ACEOF
8757
/* end confdefs.h. */
8763
#ifndef fgets_unlocked
8764
char *p = (char *) fgets_unlocked;
8771
rm -f conftest.$ac_objext
8772
if { (ac_try="$ac_compile"
8774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775
*) ac_try_echo=$ac_try;;
8777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778
(eval "$ac_compile") 2>conftest.er1
8780
grep -v '^ *+' conftest.er1 >conftest.err
8782
cat conftest.err >&5
8783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784
(exit $ac_status); } && {
8785
test -z "$ac_c_werror_flag" ||
8786
test ! -s conftest.err
8787
} && test -s conftest.$ac_objext; then
8788
ac_cv_have_decl_fgets_unlocked=yes
8790
echo "$as_me: failed program was:" >&5
8791
sed 's/^/| /' conftest.$ac_ext >&5
8793
ac_cv_have_decl_fgets_unlocked=no
8796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8799
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8800
if test $ac_cv_have_decl_fgets_unlocked = yes; then
8806
cat >>confdefs.h <<_ACEOF
8807
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9098
if test "$am_cv_func_iconv" = yes; then
9099
{ echo "$as_me:$LINENO: checking for iconv declaration" >&5
9100
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9101
if test "${am_cv_proto_iconv+set}" = set; then
9102
echo $ECHO_N "(cached) $ECHO_C" >&6
9105
cat >conftest.$ac_ext <<_ACEOF
9108
cat confdefs.h >>conftest.$ac_ext
9109
cat >>conftest.$ac_ext <<_ACEOF
9110
/* end confdefs.h. */
9118
#if defined(__STDC__) || defined(__cplusplus)
9119
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9132
rm -f conftest.$ac_objext
9133
if { (ac_try="$ac_compile"
9135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136
*) ac_try_echo=$ac_try;;
9138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139
(eval "$ac_compile") 2>conftest.er1
9141
grep -v '^ *+' conftest.er1 >conftest.err
9143
cat conftest.err >&5
9144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145
(exit $ac_status); } && {
9146
test -z "$ac_c_werror_flag" ||
9147
test ! -s conftest.err
9148
} && test -s conftest.$ac_objext; then
9149
am_cv_proto_iconv_arg1=""
9151
echo "$as_me: failed program was:" >&5
9152
sed 's/^/| /' conftest.$ac_ext >&5
9154
am_cv_proto_iconv_arg1="const"
9157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9161
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9162
{ echo "$as_me:$LINENO: result: ${ac_t:-
9163
}$am_cv_proto_iconv" >&5
9164
echo "${ECHO_T}${ac_t:-
9165
}$am_cv_proto_iconv" >&6; }
9167
cat >>confdefs.h <<_ACEOF
9168
#define ICONV_CONST $am_cv_proto_iconv_arg1
9174
{ echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
9175
echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
9176
if test "${gt_cv_nl_locale_name+set}" = set; then
9177
echo $ECHO_N "(cached) $ECHO_C" >&6
9179
cat >conftest.$ac_ext <<_ACEOF
9182
cat confdefs.h >>conftest.$ac_ext
9183
cat >>conftest.$ac_ext <<_ACEOF
9184
/* end confdefs.h. */
9185
#include <langinfo.h>
9190
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
9197
rm -f conftest.$ac_objext conftest$ac_exeext
9198
if { (ac_try="$ac_link"
9200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201
*) ac_try_echo=$ac_try;;
9203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204
(eval "$ac_link") 2>conftest.er1
9206
grep -v '^ *+' conftest.er1 >conftest.err
9208
cat conftest.err >&5
9209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
(exit $ac_status); } && {
9211
test -z "$ac_c_werror_flag" ||
9212
test ! -s conftest.err
9213
} && test -s conftest$ac_exeext &&
9214
$as_test_x conftest$ac_exeext; then
9215
gt_cv_nl_locale_name=yes
9217
echo "$as_me: failed program was:" >&5
9218
sed 's/^/| /' conftest.$ac_ext >&5
9220
gt_cv_nl_locale_name=no
9223
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224
conftest$ac_exeext conftest.$ac_ext
9227
{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
9228
echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
9229
if test $gt_cv_nl_locale_name = yes; then
9231
cat >>confdefs.h <<\_ACEOF
9232
#define HAVE_NL_LOCALE_NAME 1
9237
for ac_prog in bison
9239
# Extract the first word of "$ac_prog", so it can be a program name with args.
9240
set dummy $ac_prog; ac_word=$2
9241
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9242
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9243
if test "${ac_cv_prog_INTLBISON+set}" = set; then
9244
echo $ECHO_N "(cached) $ECHO_C" >&6
9246
if test -n "$INTLBISON"; then
9247
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253
test -z "$as_dir" && as_dir=.
9254
for ac_exec_ext in '' $ac_executable_extensions; do
9255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256
ac_cv_prog_INTLBISON="$ac_prog"
9257
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266
INTLBISON=$ac_cv_prog_INTLBISON
9267
if test -n "$INTLBISON"; then
9268
{ echo "$as_me:$LINENO: result: $INTLBISON" >&5
9269
echo "${ECHO_T}$INTLBISON" >&6; }
9271
{ echo "$as_me:$LINENO: result: no" >&5
9272
echo "${ECHO_T}no" >&6; }
9276
test -n "$INTLBISON" && break
9279
if test -z "$INTLBISON"; then
9282
{ echo "$as_me:$LINENO: checking version of bison" >&5
9283
echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9284
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9285
case $ac_prog_version in
9286
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9287
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9288
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9289
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9291
{ echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9292
echo "${ECHO_T}$ac_prog_version" >&6; }
9294
if test $ac_verc_fail = yes; then
9299
{ echo "$as_me:$LINENO: checking for long long int" >&5
9300
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
9301
if test "${ac_cv_type_long_long_int+set}" = set; then
9302
echo $ECHO_N "(cached) $ECHO_C" >&6
9304
cat >conftest.$ac_ext <<_ACEOF
9308
cat confdefs.h >>conftest.$ac_ext
9309
cat >>conftest.$ac_ext <<_ACEOF
9310
/* end confdefs.h. */
9311
/* Test preprocessor. */
9312
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9313
error in preprocessor;
9315
#if ! (18446744073709551615ULL <= -1ull)
9316
error in preprocessor;
9318
/* Test literals. */
9319
long long int ll = 9223372036854775807ll;
9320
long long int nll = -9223372036854775807LL;
9321
unsigned long long int ull = 18446744073709551615ULL;
9322
/* Test constant expressions. */
9323
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9325
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9331
/* Test availability of runtime routines for shift and division. */
9332
long long int llmax = 9223372036854775807ll;
9333
unsigned long long int ullmax = 18446744073709551615ull;
9334
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9335
| (llmax / ll) | (llmax % ll)
9336
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9337
| (ullmax / ull) | (ullmax % ull));
9343
rm -f conftest.$ac_objext conftest$ac_exeext
9344
if { (ac_try="$ac_link"
9346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347
*) ac_try_echo=$ac_try;;
9349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350
(eval "$ac_link") 2>conftest.er1
9352
grep -v '^ *+' conftest.er1 >conftest.err
9354
cat conftest.err >&5
9355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356
(exit $ac_status); } && {
9357
test -z "$ac_c_werror_flag" ||
9358
test ! -s conftest.err
9359
} && test -s conftest$ac_exeext &&
9360
$as_test_x conftest$ac_exeext; then
9361
if test "$cross_compiling" = yes; then
9362
ac_cv_type_long_long_int=yes
9364
cat >conftest.$ac_ext <<_ACEOF
9367
cat confdefs.h >>conftest.$ac_ext
9368
cat >>conftest.$ac_ext <<_ACEOF
9369
/* end confdefs.h. */
9373
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
9374
# define LLONG_MAX (HALF - 1 + HALF)
9379
long long int n = 1;
9383
long long int m = n << i;
9386
if (LLONG_MAX / 2 < m)
9394
rm -f conftest$ac_exeext
9395
if { (ac_try="$ac_link"
9397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398
*) ac_try_echo=$ac_try;;
9400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401
(eval "$ac_link") 2>&5
9403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9405
{ (case "(($ac_try" in
9406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407
*) ac_try_echo=$ac_try;;
9409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410
(eval "$ac_try") 2>&5
9412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413
(exit $ac_status); }; }; then
9414
ac_cv_type_long_long_int=yes
9416
echo "$as_me: program exited with status $ac_status" >&5
9417
echo "$as_me: failed program was:" >&5
9418
sed 's/^/| /' conftest.$ac_ext >&5
9421
ac_cv_type_long_long_int=no
9423
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9428
echo "$as_me: failed program was:" >&5
9429
sed 's/^/| /' conftest.$ac_ext >&5
9431
ac_cv_type_long_long_int=no
9434
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435
conftest$ac_exeext conftest.$ac_ext
9437
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9438
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
9439
if test $ac_cv_type_long_long_int = yes; then
9441
cat >>confdefs.h <<\_ACEOF
9442
#define HAVE_LONG_LONG_INT 1
9448
{ echo "$as_me:$LINENO: checking for wchar_t" >&5
9449
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
9450
if test "${gt_cv_c_wchar_t+set}" = set; then
9451
echo $ECHO_N "(cached) $ECHO_C" >&6
9453
cat >conftest.$ac_ext <<_ACEOF
9456
cat confdefs.h >>conftest.$ac_ext
9457
cat >>conftest.$ac_ext <<_ACEOF
9458
/* end confdefs.h. */
9460
wchar_t foo = (wchar_t)'\0';
9469
rm -f conftest.$ac_objext
9470
if { (ac_try="$ac_compile"
9472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473
*) ac_try_echo=$ac_try;;
9475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476
(eval "$ac_compile") 2>conftest.er1
9478
grep -v '^ *+' conftest.er1 >conftest.err
9480
cat conftest.err >&5
9481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482
(exit $ac_status); } && {
9483
test -z "$ac_c_werror_flag" ||
9484
test ! -s conftest.err
9485
} && test -s conftest.$ac_objext; then
9488
echo "$as_me: failed program was:" >&5
9489
sed 's/^/| /' conftest.$ac_ext >&5
9494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
9497
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
9498
if test $gt_cv_c_wchar_t = yes; then
9500
cat >>confdefs.h <<\_ACEOF
9501
#define HAVE_WCHAR_T 1
9507
{ echo "$as_me:$LINENO: checking for wint_t" >&5
9508
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
9509
if test "${gt_cv_c_wint_t+set}" = set; then
9510
echo $ECHO_N "(cached) $ECHO_C" >&6
9512
cat >conftest.$ac_ext <<_ACEOF
9515
cat confdefs.h >>conftest.$ac_ext
9516
cat >>conftest.$ac_ext <<_ACEOF
9517
/* end confdefs.h. */
9519
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9521
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9522
before <wchar.h>. */
9527
wint_t foo = (wchar_t)'\0';
9536
rm -f conftest.$ac_objext
9537
if { (ac_try="$ac_compile"
9539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540
*) ac_try_echo=$ac_try;;
9542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543
(eval "$ac_compile") 2>conftest.er1
9545
grep -v '^ *+' conftest.er1 >conftest.err
9547
cat conftest.err >&5
9548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549
(exit $ac_status); } && {
9550
test -z "$ac_c_werror_flag" ||
9551
test ! -s conftest.err
9552
} && test -s conftest.$ac_objext; then
9555
echo "$as_me: failed program was:" >&5
9556
sed 's/^/| /' conftest.$ac_ext >&5
9561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9564
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9565
if test $gt_cv_c_wint_t = yes; then
9567
cat >>confdefs.h <<\_ACEOF
9568
#define HAVE_WINT_T 1
9576
{ echo "$as_me:$LINENO: checking for intmax_t" >&5
9577
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9578
if test "${gt_cv_c_intmax_t+set}" = set; then
9579
echo $ECHO_N "(cached) $ECHO_C" >&6
9581
cat >conftest.$ac_ext <<_ACEOF
9584
cat confdefs.h >>conftest.$ac_ext
9585
cat >>conftest.$ac_ext <<_ACEOF
9586
/* end confdefs.h. */
9590
#if HAVE_STDINT_H_WITH_UINTMAX
9593
#if HAVE_INTTYPES_H_WITH_UINTMAX
9594
#include <inttypes.h>
9606
rm -f conftest.$ac_objext
9607
if { (ac_try="$ac_compile"
9609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610
*) ac_try_echo=$ac_try;;
9612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613
(eval "$ac_compile") 2>conftest.er1
9615
grep -v '^ *+' conftest.er1 >conftest.err
9617
cat conftest.err >&5
9618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619
(exit $ac_status); } && {
9620
test -z "$ac_c_werror_flag" ||
9621
test ! -s conftest.err
9622
} && test -s conftest.$ac_objext; then
9623
gt_cv_c_intmax_t=yes
9625
echo "$as_me: failed program was:" >&5
9626
sed 's/^/| /' conftest.$ac_ext >&5
9631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633
{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9634
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9635
if test $gt_cv_c_intmax_t = yes; then
9637
cat >>confdefs.h <<\_ACEOF
9638
#define HAVE_INTMAX_T 1
9645
{ echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9646
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9647
if test "${gt_cv_func_printf_posix+set}" = set; then
9648
echo $ECHO_N "(cached) $ECHO_C" >&6
9651
if test "$cross_compiling" = yes; then
9653
cat >conftest.$ac_ext <<_ACEOF
9656
cat confdefs.h >>conftest.$ac_ext
9657
cat >>conftest.$ac_ext <<_ACEOF
9658
/* end confdefs.h. */
9660
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9665
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9666
$EGREP "notposix" >/dev/null 2>&1; then
9667
gt_cv_func_printf_posix="guessing no"
9669
gt_cv_func_printf_posix="guessing yes"
9675
cat >conftest.$ac_ext <<_ACEOF
9678
cat confdefs.h >>conftest.$ac_ext
9679
cat >>conftest.$ac_ext <<_ACEOF
9680
/* end confdefs.h. */
9684
/* The string "%2$d %1$d", with dollar characters protected from the shell's
9685
dollar expansion (possibly an autoconf bug). */
9686
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9687
static char buf[100];
9690
sprintf (buf, format, 33, 55);
9691
return (strcmp (buf, "55 33") != 0);
9694
rm -f conftest$ac_exeext
9695
if { (ac_try="$ac_link"
9697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698
*) ac_try_echo=$ac_try;;
9700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701
(eval "$ac_link") 2>&5
9703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9705
{ (case "(($ac_try" in
9706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707
*) ac_try_echo=$ac_try;;
9709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710
(eval "$ac_try") 2>&5
9712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713
(exit $ac_status); }; }; then
9714
gt_cv_func_printf_posix=yes
9716
echo "$as_me: program exited with status $ac_status" >&5
9717
echo "$as_me: failed program was:" >&5
9718
sed 's/^/| /' conftest.$ac_ext >&5
9721
gt_cv_func_printf_posix=no
9723
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9729
{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9730
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9731
case $gt_cv_func_printf_posix in
9734
cat >>confdefs.h <<\_ACEOF
9735
#define HAVE_POSIX_PRINTF 1
9742
{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9743
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9744
if test "${ac_cv_gnu_library_2_1+set}" = set; then
9745
echo $ECHO_N "(cached) $ECHO_C" >&6
9747
cat >conftest.$ac_ext <<_ACEOF
9750
cat confdefs.h >>conftest.$ac_ext
9751
cat >>conftest.$ac_ext <<_ACEOF
9752
/* end confdefs.h. */
9754
#include <features.h>
9755
#ifdef __GNU_LIBRARY__
9756
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9762
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9763
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
9764
ac_cv_gnu_library_2_1=yes
9766
ac_cv_gnu_library_2_1=no
9773
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9774
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9776
GLIBC21="$ac_cv_gnu_library_2_1"
9781
for ac_header in stdint.h
9783
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9786
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9787
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788
echo $ECHO_N "(cached) $ECHO_C" >&6
9790
ac_res=`eval echo '${'$as_ac_Header'}'`
9791
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9792
echo "${ECHO_T}$ac_res" >&6; }
9794
# Is the header compilable?
9795
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9796
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9797
cat >conftest.$ac_ext <<_ACEOF
9800
cat confdefs.h >>conftest.$ac_ext
9801
cat >>conftest.$ac_ext <<_ACEOF
9802
/* end confdefs.h. */
9803
$ac_includes_default
9804
#include <$ac_header>
9806
rm -f conftest.$ac_objext
9807
if { (ac_try="$ac_compile"
9809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810
*) ac_try_echo=$ac_try;;
9812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813
(eval "$ac_compile") 2>conftest.er1
9815
grep -v '^ *+' conftest.er1 >conftest.err
9817
cat conftest.err >&5
9818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819
(exit $ac_status); } && {
9820
test -z "$ac_c_werror_flag" ||
9821
test ! -s conftest.err
9822
} && test -s conftest.$ac_objext; then
9823
ac_header_compiler=yes
9825
echo "$as_me: failed program was:" >&5
9826
sed 's/^/| /' conftest.$ac_ext >&5
9828
ac_header_compiler=no
9831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9833
echo "${ECHO_T}$ac_header_compiler" >&6; }
9835
# Is the header present?
9836
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9837
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9838
cat >conftest.$ac_ext <<_ACEOF
9841
cat confdefs.h >>conftest.$ac_ext
9842
cat >>conftest.$ac_ext <<_ACEOF
9843
/* end confdefs.h. */
9844
#include <$ac_header>
9846
if { (ac_try="$ac_cpp conftest.$ac_ext"
9848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849
*) ac_try_echo=$ac_try;;
9851
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9854
grep -v '^ *+' conftest.er1 >conftest.err
9856
cat conftest.err >&5
9857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
(exit $ac_status); } >/dev/null && {
9859
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9860
test ! -s conftest.err
9862
ac_header_preproc=yes
9864
echo "$as_me: failed program was:" >&5
9865
sed 's/^/| /' conftest.$ac_ext >&5
9867
ac_header_preproc=no
9870
rm -f conftest.err conftest.$ac_ext
9871
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872
echo "${ECHO_T}$ac_header_preproc" >&6; }
9874
# So? What about this header?
9875
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9877
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9878
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9880
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9881
ac_header_preproc=yes
9884
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9885
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9886
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9887
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9888
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9889
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9890
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9891
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9892
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9893
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9894
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9895
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9897
## ----------------------------------------------------------- ##
9898
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
9899
## ----------------------------------------------------------- ##
9901
) | sed "s/^/$as_me: WARNING: /" >&2
9904
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9905
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9906
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907
echo $ECHO_N "(cached) $ECHO_C" >&6
9909
eval "$as_ac_Header=\$ac_header_preproc"
9911
ac_res=`eval echo '${'$as_ac_Header'}'`
9912
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9913
echo "${ECHO_T}$ac_res" >&6; }
9916
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9917
cat >>confdefs.h <<_ACEOF
9918
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9925
{ echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9926
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9927
if test "${gl_cv_size_max+set}" = set; then
9928
echo $ECHO_N "(cached) $ECHO_C" >&6
9932
cat >conftest.$ac_ext <<_ACEOF
9935
cat confdefs.h >>conftest.$ac_ext
9936
cat >>conftest.$ac_ext <<_ACEOF
9937
/* end confdefs.h. */
9948
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9949
$EGREP "Found it" >/dev/null 2>&1; then
9954
if test -z "$gl_cv_size_max"; then
9955
if test "$cross_compiling" = yes; then
9956
# Depending upon the size, compute the lo and hi bounds.
9957
cat >conftest.$ac_ext <<_ACEOF
9960
cat confdefs.h >>conftest.$ac_ext
9961
cat >>conftest.$ac_ext <<_ACEOF
9962
/* end confdefs.h. */
9968
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
9975
rm -f conftest.$ac_objext
9976
if { (ac_try="$ac_compile"
9978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979
*) ac_try_echo=$ac_try;;
9981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982
(eval "$ac_compile") 2>conftest.er1
9984
grep -v '^ *+' conftest.er1 >conftest.err
9986
cat conftest.err >&5
9987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988
(exit $ac_status); } && {
9989
test -z "$ac_c_werror_flag" ||
9990
test ! -s conftest.err
9991
} && test -s conftest.$ac_objext; then
9994
cat >conftest.$ac_ext <<_ACEOF
9997
cat confdefs.h >>conftest.$ac_ext
9998
cat >>conftest.$ac_ext <<_ACEOF
9999
/* end confdefs.h. */
10000
#include <stddef.h>
10001
#include <limits.h>
10005
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
10012
rm -f conftest.$ac_objext
10013
if { (ac_try="$ac_compile"
10014
case "(($ac_try" in
10015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016
*) ac_try_echo=$ac_try;;
10018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019
(eval "$ac_compile") 2>conftest.er1
10021
grep -v '^ *+' conftest.er1 >conftest.err
10023
cat conftest.err >&5
10024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025
(exit $ac_status); } && {
10026
test -z "$ac_c_werror_flag" ||
10027
test ! -s conftest.err
10028
} && test -s conftest.$ac_objext; then
10029
ac_hi=$ac_mid; break
10031
echo "$as_me: failed program was:" >&5
10032
sed 's/^/| /' conftest.$ac_ext >&5
10034
ac_lo=`expr $ac_mid + 1`
10035
if test $ac_lo -le $ac_mid; then
10039
ac_mid=`expr 2 '*' $ac_mid + 1`
10042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045
echo "$as_me: failed program was:" >&5
10046
sed 's/^/| /' conftest.$ac_ext >&5
10048
cat >conftest.$ac_ext <<_ACEOF
10051
cat confdefs.h >>conftest.$ac_ext
10052
cat >>conftest.$ac_ext <<_ACEOF
10053
/* end confdefs.h. */
10054
#include <stddef.h>
10055
#include <limits.h>
10059
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
10066
rm -f conftest.$ac_objext
10067
if { (ac_try="$ac_compile"
10068
case "(($ac_try" in
10069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070
*) ac_try_echo=$ac_try;;
10072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073
(eval "$ac_compile") 2>conftest.er1
10075
grep -v '^ *+' conftest.er1 >conftest.err
10077
cat conftest.err >&5
10078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079
(exit $ac_status); } && {
10080
test -z "$ac_c_werror_flag" ||
10081
test ! -s conftest.err
10082
} && test -s conftest.$ac_objext; then
10085
cat >conftest.$ac_ext <<_ACEOF
10088
cat confdefs.h >>conftest.$ac_ext
10089
cat >>conftest.$ac_ext <<_ACEOF
10090
/* end confdefs.h. */
10091
#include <stddef.h>
10092
#include <limits.h>
10096
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
10103
rm -f conftest.$ac_objext
10104
if { (ac_try="$ac_compile"
10105
case "(($ac_try" in
10106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107
*) ac_try_echo=$ac_try;;
10109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110
(eval "$ac_compile") 2>conftest.er1
10112
grep -v '^ *+' conftest.er1 >conftest.err
10114
cat conftest.err >&5
10115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116
(exit $ac_status); } && {
10117
test -z "$ac_c_werror_flag" ||
10118
test ! -s conftest.err
10119
} && test -s conftest.$ac_objext; then
10120
ac_lo=$ac_mid; break
10122
echo "$as_me: failed program was:" >&5
10123
sed 's/^/| /' conftest.$ac_ext >&5
10125
ac_hi=`expr '(' $ac_mid ')' - 1`
10126
if test $ac_mid -le $ac_hi; then
10130
ac_mid=`expr 2 '*' $ac_mid`
10133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136
echo "$as_me: failed program was:" >&5
10137
sed 's/^/| /' conftest.$ac_ext >&5
10142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146
# Binary search between lo and hi bounds.
10147
while test "x$ac_lo" != "x$ac_hi"; do
10148
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10149
cat >conftest.$ac_ext <<_ACEOF
10152
cat confdefs.h >>conftest.$ac_ext
10153
cat >>conftest.$ac_ext <<_ACEOF
10154
/* end confdefs.h. */
10155
#include <stddef.h>
10156
#include <limits.h>
10160
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
10167
rm -f conftest.$ac_objext
10168
if { (ac_try="$ac_compile"
10169
case "(($ac_try" in
10170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171
*) ac_try_echo=$ac_try;;
10173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174
(eval "$ac_compile") 2>conftest.er1
10176
grep -v '^ *+' conftest.er1 >conftest.err
10178
cat conftest.err >&5
10179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180
(exit $ac_status); } && {
10181
test -z "$ac_c_werror_flag" ||
10182
test ! -s conftest.err
10183
} && test -s conftest.$ac_objext; then
10186
echo "$as_me: failed program was:" >&5
10187
sed 's/^/| /' conftest.$ac_ext >&5
10189
ac_lo=`expr '(' $ac_mid ')' + 1`
10192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195
?*) size_t_bits_minus_1=$ac_lo;;
10196
'') size_t_bits_minus_1= ;;
10199
cat >conftest.$ac_ext <<_ACEOF
10202
cat confdefs.h >>conftest.$ac_ext
10203
cat >>conftest.$ac_ext <<_ACEOF
10204
/* end confdefs.h. */
10205
#include <stddef.h>
10206
#include <limits.h>
10207
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
10208
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
10210
#include <stdlib.h>
10215
FILE *f = fopen ("conftest.val", "w");
10218
if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
10220
long int i = longval ();
10221
if (i != (sizeof (size_t) * CHAR_BIT - 1))
10223
fprintf (f, "%ld\n", i);
10227
unsigned long int i = ulongval ();
10228
if (i != (sizeof (size_t) * CHAR_BIT - 1))
10230
fprintf (f, "%lu\n", i);
10232
return ferror (f) || fclose (f) != 0;
10238
rm -f conftest$ac_exeext
10239
if { (ac_try="$ac_link"
10240
case "(($ac_try" in
10241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242
*) ac_try_echo=$ac_try;;
10244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245
(eval "$ac_link") 2>&5
10247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10249
{ (case "(($ac_try" in
10250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251
*) ac_try_echo=$ac_try;;
10253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254
(eval "$ac_try") 2>&5
10256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257
(exit $ac_status); }; }; then
10258
size_t_bits_minus_1=`cat conftest.val`
10260
echo "$as_me: program exited with status $ac_status" >&5
10261
echo "$as_me: failed program was:" >&5
10262
sed 's/^/| /' conftest.$ac_ext >&5
10264
( exit $ac_status )
10265
size_t_bits_minus_1=
10267
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10270
if test "$cross_compiling" = yes; then
10271
# Depending upon the size, compute the lo and hi bounds.
10272
cat >conftest.$ac_ext <<_ACEOF
10275
cat confdefs.h >>conftest.$ac_ext
10276
cat >>conftest.$ac_ext <<_ACEOF
10277
/* end confdefs.h. */
10278
#include <stddef.h>
10282
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10289
rm -f conftest.$ac_objext
10290
if { (ac_try="$ac_compile"
10291
case "(($ac_try" in
10292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293
*) ac_try_echo=$ac_try;;
10295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296
(eval "$ac_compile") 2>conftest.er1
10298
grep -v '^ *+' conftest.er1 >conftest.err
10300
cat conftest.err >&5
10301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302
(exit $ac_status); } && {
10303
test -z "$ac_c_werror_flag" ||
10304
test ! -s conftest.err
10305
} && test -s conftest.$ac_objext; then
10308
cat >conftest.$ac_ext <<_ACEOF
10311
cat confdefs.h >>conftest.$ac_ext
10312
cat >>conftest.$ac_ext <<_ACEOF
10313
/* end confdefs.h. */
10314
#include <stddef.h>
10318
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10325
rm -f conftest.$ac_objext
10326
if { (ac_try="$ac_compile"
10327
case "(($ac_try" in
10328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329
*) ac_try_echo=$ac_try;;
10331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332
(eval "$ac_compile") 2>conftest.er1
10334
grep -v '^ *+' conftest.er1 >conftest.err
10336
cat conftest.err >&5
10337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338
(exit $ac_status); } && {
10339
test -z "$ac_c_werror_flag" ||
10340
test ! -s conftest.err
10341
} && test -s conftest.$ac_objext; then
10342
ac_hi=$ac_mid; break
10344
echo "$as_me: failed program was:" >&5
10345
sed 's/^/| /' conftest.$ac_ext >&5
10347
ac_lo=`expr $ac_mid + 1`
10348
if test $ac_lo -le $ac_mid; then
10352
ac_mid=`expr 2 '*' $ac_mid + 1`
10355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358
echo "$as_me: failed program was:" >&5
10359
sed 's/^/| /' conftest.$ac_ext >&5
10361
cat >conftest.$ac_ext <<_ACEOF
10364
cat confdefs.h >>conftest.$ac_ext
10365
cat >>conftest.$ac_ext <<_ACEOF
10366
/* end confdefs.h. */
10367
#include <stddef.h>
10371
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10378
rm -f conftest.$ac_objext
10379
if { (ac_try="$ac_compile"
10380
case "(($ac_try" in
10381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382
*) ac_try_echo=$ac_try;;
10384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385
(eval "$ac_compile") 2>conftest.er1
10387
grep -v '^ *+' conftest.er1 >conftest.err
10389
cat conftest.err >&5
10390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391
(exit $ac_status); } && {
10392
test -z "$ac_c_werror_flag" ||
10393
test ! -s conftest.err
10394
} && test -s conftest.$ac_objext; then
10397
cat >conftest.$ac_ext <<_ACEOF
10400
cat confdefs.h >>conftest.$ac_ext
10401
cat >>conftest.$ac_ext <<_ACEOF
10402
/* end confdefs.h. */
10403
#include <stddef.h>
10407
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10414
rm -f conftest.$ac_objext
10415
if { (ac_try="$ac_compile"
10416
case "(($ac_try" in
10417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418
*) ac_try_echo=$ac_try;;
10420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421
(eval "$ac_compile") 2>conftest.er1
10423
grep -v '^ *+' conftest.er1 >conftest.err
10425
cat conftest.err >&5
10426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427
(exit $ac_status); } && {
10428
test -z "$ac_c_werror_flag" ||
10429
test ! -s conftest.err
10430
} && test -s conftest.$ac_objext; then
10431
ac_lo=$ac_mid; break
10433
echo "$as_me: failed program was:" >&5
10434
sed 's/^/| /' conftest.$ac_ext >&5
10436
ac_hi=`expr '(' $ac_mid ')' - 1`
10437
if test $ac_mid -le $ac_hi; then
10441
ac_mid=`expr 2 '*' $ac_mid`
10444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447
echo "$as_me: failed program was:" >&5
10448
sed 's/^/| /' conftest.$ac_ext >&5
10453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457
# Binary search between lo and hi bounds.
10458
while test "x$ac_lo" != "x$ac_hi"; do
10459
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10460
cat >conftest.$ac_ext <<_ACEOF
10463
cat confdefs.h >>conftest.$ac_ext
10464
cat >>conftest.$ac_ext <<_ACEOF
10465
/* end confdefs.h. */
10466
#include <stddef.h>
10470
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10477
rm -f conftest.$ac_objext
10478
if { (ac_try="$ac_compile"
10479
case "(($ac_try" in
10480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481
*) ac_try_echo=$ac_try;;
10483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484
(eval "$ac_compile") 2>conftest.er1
10486
grep -v '^ *+' conftest.er1 >conftest.err
10488
cat conftest.err >&5
10489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490
(exit $ac_status); } && {
10491
test -z "$ac_c_werror_flag" ||
10492
test ! -s conftest.err
10493
} && test -s conftest.$ac_objext; then
10496
echo "$as_me: failed program was:" >&5
10497
sed 's/^/| /' conftest.$ac_ext >&5
10499
ac_lo=`expr '(' $ac_mid ')' + 1`
10502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505
?*) fits_in_uint=$ac_lo;;
10506
'') fits_in_uint= ;;
10509
cat >conftest.$ac_ext <<_ACEOF
10512
cat confdefs.h >>conftest.$ac_ext
10513
cat >>conftest.$ac_ext <<_ACEOF
10514
/* end confdefs.h. */
10515
#include <stddef.h>
10516
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10517
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10519
#include <stdlib.h>
10524
FILE *f = fopen ("conftest.val", "w");
10527
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10529
long int i = longval ();
10530
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10532
fprintf (f, "%ld\n", i);
10536
unsigned long int i = ulongval ();
10537
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10539
fprintf (f, "%lu\n", i);
10541
return ferror (f) || fclose (f) != 0;
10547
rm -f conftest$ac_exeext
10548
if { (ac_try="$ac_link"
10549
case "(($ac_try" in
10550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551
*) ac_try_echo=$ac_try;;
10553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554
(eval "$ac_link") 2>&5
10556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10558
{ (case "(($ac_try" in
10559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560
*) ac_try_echo=$ac_try;;
10562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563
(eval "$ac_try") 2>&5
10565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566
(exit $ac_status); }; }; then
10567
fits_in_uint=`cat conftest.val`
10569
echo "$as_me: program exited with status $ac_status" >&5
10570
echo "$as_me: failed program was:" >&5
10571
sed 's/^/| /' conftest.$ac_ext >&5
10573
( exit $ac_status )
10576
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10579
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10580
if test $fits_in_uint = 1; then
10581
cat >conftest.$ac_ext <<_ACEOF
10584
cat confdefs.h >>conftest.$ac_ext
10585
cat >>conftest.$ac_ext <<_ACEOF
10586
/* end confdefs.h. */
10587
#include <stddef.h>
10589
extern unsigned long foo;
10599
rm -f conftest.$ac_objext
10600
if { (ac_try="$ac_compile"
10601
case "(($ac_try" in
10602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603
*) ac_try_echo=$ac_try;;
10605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606
(eval "$ac_compile") 2>conftest.er1
10608
grep -v '^ *+' conftest.er1 >conftest.err
10610
cat conftest.err >&5
10611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612
(exit $ac_status); } && {
10613
test -z "$ac_c_werror_flag" ||
10614
test ! -s conftest.err
10615
} && test -s conftest.$ac_objext; then
10618
echo "$as_me: failed program was:" >&5
10619
sed 's/^/| /' conftest.$ac_ext >&5
10624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626
if test $fits_in_uint = 1; then
10627
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10629
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10632
gl_cv_size_max='((size_t)~(size_t)0)'
10638
{ echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
10639
echo "${ECHO_T}$gl_cv_size_max" >&6; }
10640
if test "$gl_cv_size_max" != yes; then
10642
cat >>confdefs.h <<_ACEOF
10643
#define SIZE_MAX $gl_cv_size_max
10652
for ac_header in stdint.h
10654
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659
echo $ECHO_N "(cached) $ECHO_C" >&6
10661
ac_res=`eval echo '${'$as_ac_Header'}'`
10662
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10663
echo "${ECHO_T}$ac_res" >&6; }
10665
# Is the header compilable?
10666
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668
cat >conftest.$ac_ext <<_ACEOF
10671
cat confdefs.h >>conftest.$ac_ext
10672
cat >>conftest.$ac_ext <<_ACEOF
10673
/* end confdefs.h. */
10674
$ac_includes_default
10675
#include <$ac_header>
10677
rm -f conftest.$ac_objext
10678
if { (ac_try="$ac_compile"
10679
case "(($ac_try" in
10680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681
*) ac_try_echo=$ac_try;;
10683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684
(eval "$ac_compile") 2>conftest.er1
10686
grep -v '^ *+' conftest.er1 >conftest.err
10688
cat conftest.err >&5
10689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690
(exit $ac_status); } && {
10691
test -z "$ac_c_werror_flag" ||
10692
test ! -s conftest.err
10693
} && test -s conftest.$ac_objext; then
10694
ac_header_compiler=yes
10696
echo "$as_me: failed program was:" >&5
10697
sed 's/^/| /' conftest.$ac_ext >&5
10699
ac_header_compiler=no
10702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704
echo "${ECHO_T}$ac_header_compiler" >&6; }
10706
# Is the header present?
10707
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10708
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10709
cat >conftest.$ac_ext <<_ACEOF
10712
cat confdefs.h >>conftest.$ac_ext
10713
cat >>conftest.$ac_ext <<_ACEOF
10714
/* end confdefs.h. */
10715
#include <$ac_header>
10717
if { (ac_try="$ac_cpp conftest.$ac_ext"
10718
case "(($ac_try" in
10719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720
*) ac_try_echo=$ac_try;;
10722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10725
grep -v '^ *+' conftest.er1 >conftest.err
10727
cat conftest.err >&5
10728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729
(exit $ac_status); } >/dev/null && {
10730
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731
test ! -s conftest.err
10733
ac_header_preproc=yes
10735
echo "$as_me: failed program was:" >&5
10736
sed 's/^/| /' conftest.$ac_ext >&5
10738
ac_header_preproc=no
10741
rm -f conftest.err conftest.$ac_ext
10742
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743
echo "${ECHO_T}$ac_header_preproc" >&6; }
10745
# So? What about this header?
10746
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10748
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752
ac_header_preproc=yes
10755
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10762
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10763
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10768
## ----------------------------------------------------------- ##
10769
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
10770
## ----------------------------------------------------------- ##
10772
) | sed "s/^/$as_me: WARNING: /" >&2
10775
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778
echo $ECHO_N "(cached) $ECHO_C" >&6
10780
eval "$as_ac_Header=\$ac_header_preproc"
10782
ac_res=`eval echo '${'$as_ac_Header'}'`
10783
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10784
echo "${ECHO_T}$ac_res" >&6; }
10787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10788
cat >>confdefs.h <<_ACEOF
10789
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10798
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10799
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10800
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10801
echo $ECHO_N "(cached) $ECHO_C" >&6
10803
gt_save_LIBS="$LIBS"
10804
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10805
cat >conftest.$ac_ext <<_ACEOF
10808
cat confdefs.h >>conftest.$ac_ext
10809
cat >>conftest.$ac_ext <<_ACEOF
10810
/* end confdefs.h. */
10811
#include <CoreFoundation/CFPreferences.h>
10815
CFPreferencesCopyAppValue(NULL, NULL)
10820
rm -f conftest.$ac_objext conftest$ac_exeext
10821
if { (ac_try="$ac_link"
10822
case "(($ac_try" in
10823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824
*) ac_try_echo=$ac_try;;
10826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827
(eval "$ac_link") 2>conftest.er1
10829
grep -v '^ *+' conftest.er1 >conftest.err
10831
cat conftest.err >&5
10832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833
(exit $ac_status); } && {
10834
test -z "$ac_c_werror_flag" ||
10835
test ! -s conftest.err
10836
} && test -s conftest$ac_exeext &&
10837
$as_test_x conftest$ac_exeext; then
10838
gt_cv_func_CFPreferencesCopyAppValue=yes
10840
echo "$as_me: failed program was:" >&5
10841
sed 's/^/| /' conftest.$ac_ext >&5
10843
gt_cv_func_CFPreferencesCopyAppValue=no
10846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10847
conftest$ac_exeext conftest.$ac_ext
10848
LIBS="$gt_save_LIBS"
10850
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10851
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10852
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10854
cat >>confdefs.h <<\_ACEOF
10855
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10859
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10860
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10861
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10862
echo $ECHO_N "(cached) $ECHO_C" >&6
10864
gt_save_LIBS="$LIBS"
10865
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10866
cat >conftest.$ac_ext <<_ACEOF
10869
cat confdefs.h >>conftest.$ac_ext
10870
cat >>conftest.$ac_ext <<_ACEOF
10871
/* end confdefs.h. */
10872
#include <CoreFoundation/CFLocale.h>
10876
CFLocaleCopyCurrent();
10881
rm -f conftest.$ac_objext conftest$ac_exeext
10882
if { (ac_try="$ac_link"
10883
case "(($ac_try" in
10884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885
*) ac_try_echo=$ac_try;;
10887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888
(eval "$ac_link") 2>conftest.er1
10890
grep -v '^ *+' conftest.er1 >conftest.err
10892
cat conftest.err >&5
10893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894
(exit $ac_status); } && {
10895
test -z "$ac_c_werror_flag" ||
10896
test ! -s conftest.err
10897
} && test -s conftest$ac_exeext &&
10898
$as_test_x conftest$ac_exeext; then
10899
gt_cv_func_CFLocaleCopyCurrent=yes
10901
echo "$as_me: failed program was:" >&5
10902
sed 's/^/| /' conftest.$ac_ext >&5
10904
gt_cv_func_CFLocaleCopyCurrent=no
10907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908
conftest$ac_exeext conftest.$ac_ext
10909
LIBS="$gt_save_LIBS"
10911
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10912
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10913
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10915
cat >>confdefs.h <<\_ACEOF
10916
#define HAVE_CFLOCALECOPYCURRENT 1
10921
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10922
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10931
{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10932
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10933
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10934
echo $ECHO_N "(cached) $ECHO_C" >&6
10936
cat >conftest.$ac_ext <<_ACEOF
10939
cat confdefs.h >>conftest.$ac_ext
10940
cat >>conftest.$ac_ext <<_ACEOF
10941
/* end confdefs.h. */
10942
$ac_includes_default
10943
typedef ptrdiff_t ac__type_new_;
10947
if ((ac__type_new_ *) 0)
10949
if (sizeof (ac__type_new_))
10955
rm -f conftest.$ac_objext
10956
if { (ac_try="$ac_compile"
10957
case "(($ac_try" in
10958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959
*) ac_try_echo=$ac_try;;
10961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962
(eval "$ac_compile") 2>conftest.er1
10964
grep -v '^ *+' conftest.er1 >conftest.err
10966
cat conftest.err >&5
10967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968
(exit $ac_status); } && {
10969
test -z "$ac_c_werror_flag" ||
10970
test ! -s conftest.err
10971
} && test -s conftest.$ac_objext; then
10972
ac_cv_type_ptrdiff_t=yes
10974
echo "$as_me: failed program was:" >&5
10975
sed 's/^/| /' conftest.$ac_ext >&5
10977
ac_cv_type_ptrdiff_t=no
10980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10983
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10984
if test $ac_cv_type_ptrdiff_t = yes; then
10988
cat >>confdefs.h <<\_ACEOF
10989
#define ptrdiff_t long
10998
for ac_header in stddef.h stdlib.h string.h
11000
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11001
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11002
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11003
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11004
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005
echo $ECHO_N "(cached) $ECHO_C" >&6
11007
ac_res=`eval echo '${'$as_ac_Header'}'`
11008
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11009
echo "${ECHO_T}$ac_res" >&6; }
11011
# Is the header compilable?
11012
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11013
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11014
cat >conftest.$ac_ext <<_ACEOF
11017
cat confdefs.h >>conftest.$ac_ext
11018
cat >>conftest.$ac_ext <<_ACEOF
11019
/* end confdefs.h. */
11020
$ac_includes_default
11021
#include <$ac_header>
11023
rm -f conftest.$ac_objext
11024
if { (ac_try="$ac_compile"
11025
case "(($ac_try" in
11026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027
*) ac_try_echo=$ac_try;;
11029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030
(eval "$ac_compile") 2>conftest.er1
11032
grep -v '^ *+' conftest.er1 >conftest.err
11034
cat conftest.err >&5
11035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036
(exit $ac_status); } && {
11037
test -z "$ac_c_werror_flag" ||
11038
test ! -s conftest.err
11039
} && test -s conftest.$ac_objext; then
11040
ac_header_compiler=yes
11042
echo "$as_me: failed program was:" >&5
11043
sed 's/^/| /' conftest.$ac_ext >&5
11045
ac_header_compiler=no
11048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11050
echo "${ECHO_T}$ac_header_compiler" >&6; }
11052
# Is the header present?
11053
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11055
cat >conftest.$ac_ext <<_ACEOF
11058
cat confdefs.h >>conftest.$ac_ext
11059
cat >>conftest.$ac_ext <<_ACEOF
11060
/* end confdefs.h. */
11061
#include <$ac_header>
11063
if { (ac_try="$ac_cpp conftest.$ac_ext"
11064
case "(($ac_try" in
11065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066
*) ac_try_echo=$ac_try;;
11068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11071
grep -v '^ *+' conftest.er1 >conftest.err
11073
cat conftest.err >&5
11074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075
(exit $ac_status); } >/dev/null && {
11076
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11077
test ! -s conftest.err
11079
ac_header_preproc=yes
11081
echo "$as_me: failed program was:" >&5
11082
sed 's/^/| /' conftest.$ac_ext >&5
11084
ac_header_preproc=no
11087
rm -f conftest.err conftest.$ac_ext
11088
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11089
echo "${ECHO_T}$ac_header_preproc" >&6; }
11091
# So? What about this header?
11092
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11095
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11096
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11097
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11098
ac_header_preproc=yes
11101
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11102
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11103
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11104
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11105
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11106
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11107
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11108
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11109
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11110
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11111
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11112
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11114
## ----------------------------------------------------------- ##
11115
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
11116
## ----------------------------------------------------------- ##
11118
) | sed "s/^/$as_me: WARNING: /" >&2
11121
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11122
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11123
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124
echo $ECHO_N "(cached) $ECHO_C" >&6
11126
eval "$as_ac_Header=\$ac_header_preproc"
11128
ac_res=`eval echo '${'$as_ac_Header'}'`
11129
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11130
echo "${ECHO_T}$ac_res" >&6; }
11133
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11134
cat >>confdefs.h <<_ACEOF
11135
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11149
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11151
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11152
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11153
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11154
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11155
echo $ECHO_N "(cached) $ECHO_C" >&6
11157
cat >conftest.$ac_ext <<_ACEOF
11160
cat confdefs.h >>conftest.$ac_ext
11161
cat >>conftest.$ac_ext <<_ACEOF
11162
/* end confdefs.h. */
11163
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11164
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11165
#define $ac_func innocuous_$ac_func
11167
/* System header to define __stub macros and hopefully few prototypes,
11168
which can conflict with char $ac_func (); below.
11169
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11170
<limits.h> exists even on freestanding compilers. */
11173
# include <limits.h>
11175
# include <assert.h>
11180
/* Override any GCC internal prototype to avoid an error.
11181
Use char because int might match the return type of a GCC
11182
builtin and then its argument prototype would still apply. */
11187
/* The GNU C library defines this for functions which it implements
11188
to always fail with ENOSYS. Some functions are actually named
11189
something starting with __ and the normal name is an alias. */
11190
#if defined __stub_$ac_func || defined __stub___$ac_func
11197
return $ac_func ();
11202
rm -f conftest.$ac_objext conftest$ac_exeext
11203
if { (ac_try="$ac_link"
11204
case "(($ac_try" in
11205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206
*) ac_try_echo=$ac_try;;
11208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209
(eval "$ac_link") 2>conftest.er1
11211
grep -v '^ *+' conftest.er1 >conftest.err
11213
cat conftest.err >&5
11214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215
(exit $ac_status); } && {
11216
test -z "$ac_c_werror_flag" ||
11217
test ! -s conftest.err
11218
} && test -s conftest$ac_exeext &&
11219
$as_test_x conftest$ac_exeext; then
11220
eval "$as_ac_var=yes"
11222
echo "$as_me: failed program was:" >&5
11223
sed 's/^/| /' conftest.$ac_ext >&5
11225
eval "$as_ac_var=no"
11228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11229
conftest$ac_exeext conftest.$ac_ext
11231
ac_res=`eval echo '${'$as_ac_var'}'`
11232
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11233
echo "${ECHO_T}$ac_res" >&6; }
11234
if test `eval echo '${'$as_ac_var'}'` = yes; then
11235
cat >>confdefs.h <<_ACEOF
11236
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11244
{ echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11245
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11246
if test "${ac_cv_have_decl__snprintf+set}" = set; then
11247
echo $ECHO_N "(cached) $ECHO_C" >&6
11249
cat >conftest.$ac_ext <<_ACEOF
11252
cat confdefs.h >>conftest.$ac_ext
11253
cat >>conftest.$ac_ext <<_ACEOF
11254
/* end confdefs.h. */
11261
char *p = (char *) _snprintf;
11268
rm -f conftest.$ac_objext
11269
if { (ac_try="$ac_compile"
11270
case "(($ac_try" in
11271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272
*) ac_try_echo=$ac_try;;
11274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275
(eval "$ac_compile") 2>conftest.er1
11277
grep -v '^ *+' conftest.er1 >conftest.err
11279
cat conftest.err >&5
11280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281
(exit $ac_status); } && {
11282
test -z "$ac_c_werror_flag" ||
11283
test ! -s conftest.err
11284
} && test -s conftest.$ac_objext; then
11285
ac_cv_have_decl__snprintf=yes
11287
echo "$as_me: failed program was:" >&5
11288
sed 's/^/| /' conftest.$ac_ext >&5
11290
ac_cv_have_decl__snprintf=no
11293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11296
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11297
if test $ac_cv_have_decl__snprintf = yes; then
11303
cat >>confdefs.h <<_ACEOF
11304
#define HAVE_DECL__SNPRINTF $gt_value
11309
{ echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11310
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11311
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11312
echo $ECHO_N "(cached) $ECHO_C" >&6
11314
cat >conftest.$ac_ext <<_ACEOF
11317
cat confdefs.h >>conftest.$ac_ext
11318
cat >>conftest.$ac_ext <<_ACEOF
11319
/* end confdefs.h. */
11326
char *p = (char *) _snwprintf;
11333
rm -f conftest.$ac_objext
11334
if { (ac_try="$ac_compile"
11335
case "(($ac_try" in
11336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337
*) ac_try_echo=$ac_try;;
11339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340
(eval "$ac_compile") 2>conftest.er1
11342
grep -v '^ *+' conftest.er1 >conftest.err
11344
cat conftest.err >&5
11345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346
(exit $ac_status); } && {
11347
test -z "$ac_c_werror_flag" ||
11348
test ! -s conftest.err
11349
} && test -s conftest.$ac_objext; then
11350
ac_cv_have_decl__snwprintf=yes
11352
echo "$as_me: failed program was:" >&5
11353
sed 's/^/| /' conftest.$ac_ext >&5
11355
ac_cv_have_decl__snwprintf=no
11358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11361
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11362
if test $ac_cv_have_decl__snwprintf = yes; then
11368
cat >>confdefs.h <<_ACEOF
11369
#define HAVE_DECL__SNWPRINTF $gt_value
11375
{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11376
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11377
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11378
echo $ECHO_N "(cached) $ECHO_C" >&6
11380
cat >conftest.$ac_ext <<_ACEOF
11383
cat confdefs.h >>conftest.$ac_ext
11384
cat >>conftest.$ac_ext <<_ACEOF
11385
/* end confdefs.h. */
11391
#ifndef getc_unlocked
11392
char *p = (char *) getc_unlocked;
11399
rm -f conftest.$ac_objext
11400
if { (ac_try="$ac_compile"
11401
case "(($ac_try" in
11402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403
*) ac_try_echo=$ac_try;;
11405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406
(eval "$ac_compile") 2>conftest.er1
11408
grep -v '^ *+' conftest.er1 >conftest.err
11410
cat conftest.err >&5
11411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412
(exit $ac_status); } && {
11413
test -z "$ac_c_werror_flag" ||
11414
test ! -s conftest.err
11415
} && test -s conftest.$ac_objext; then
11416
ac_cv_have_decl_getc_unlocked=yes
11418
echo "$as_me: failed program was:" >&5
11419
sed 's/^/| /' conftest.$ac_ext >&5
11421
ac_cv_have_decl_getc_unlocked=no
11424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11427
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11428
if test $ac_cv_have_decl_getc_unlocked = yes; then
11434
cat >>confdefs.h <<_ACEOF
11435
#define HAVE_DECL_GETC_UNLOCKED $gt_value
11440
case $gt_cv_func_printf_posix in
11441
*yes) HAVE_POSIX_PRINTF=1 ;;
11442
*) HAVE_POSIX_PRINTF=0 ;;
11445
if test "$ac_cv_func_asprintf" = yes; then
11451
if test "$ac_cv_func_snprintf" = yes; then
11457
if test "$ac_cv_func_wprintf" = yes; then
11465
{ echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11466
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11467
if test "${am_cv_langinfo_codeset+set}" = set; then
11468
echo $ECHO_N "(cached) $ECHO_C" >&6
11470
cat >conftest.$ac_ext <<_ACEOF
11473
cat confdefs.h >>conftest.$ac_ext
11474
cat >>conftest.$ac_ext <<_ACEOF
11475
/* end confdefs.h. */
11476
#include <langinfo.h>
11480
char* cs = nl_langinfo(CODESET); return !cs;
11485
rm -f conftest.$ac_objext conftest$ac_exeext
11486
if { (ac_try="$ac_link"
11487
case "(($ac_try" in
11488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489
*) ac_try_echo=$ac_try;;
11491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492
(eval "$ac_link") 2>conftest.er1
11494
grep -v '^ *+' conftest.er1 >conftest.err
11496
cat conftest.err >&5
11497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498
(exit $ac_status); } && {
11499
test -z "$ac_c_werror_flag" ||
11500
test ! -s conftest.err
11501
} && test -s conftest$ac_exeext &&
11502
$as_test_x conftest$ac_exeext; then
11503
am_cv_langinfo_codeset=yes
11505
echo "$as_me: failed program was:" >&5
11506
sed 's/^/| /' conftest.$ac_ext >&5
11508
am_cv_langinfo_codeset=no
11511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11512
conftest$ac_exeext conftest.$ac_ext
11515
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11516
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11517
if test $am_cv_langinfo_codeset = yes; then
11519
cat >>confdefs.h <<\_ACEOF
11520
#define HAVE_LANGINFO_CODESET 1
11526
{ echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11527
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11528
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11529
echo $ECHO_N "(cached) $ECHO_C" >&6
11531
cat >conftest.$ac_ext <<_ACEOF
11534
cat confdefs.h >>conftest.$ac_ext
11535
cat >>conftest.$ac_ext <<_ACEOF
11536
/* end confdefs.h. */
11537
#include <locale.h>
11546
rm -f conftest.$ac_objext conftest$ac_exeext
11547
if { (ac_try="$ac_link"
11548
case "(($ac_try" in
11549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550
*) ac_try_echo=$ac_try;;
11552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553
(eval "$ac_link") 2>conftest.er1
11555
grep -v '^ *+' conftest.er1 >conftest.err
11557
cat conftest.err >&5
11558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559
(exit $ac_status); } && {
11560
test -z "$ac_c_werror_flag" ||
11561
test ! -s conftest.err
11562
} && test -s conftest$ac_exeext &&
11563
$as_test_x conftest$ac_exeext; then
11564
gt_cv_val_LC_MESSAGES=yes
11566
echo "$as_me: failed program was:" >&5
11567
sed 's/^/| /' conftest.$ac_ext >&5
11569
gt_cv_val_LC_MESSAGES=no
11572
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11573
conftest$ac_exeext conftest.$ac_ext
11575
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11576
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
11577
if test $gt_cv_val_LC_MESSAGES = yes; then
11579
cat >>confdefs.h <<\_ACEOF
11580
#define HAVE_LC_MESSAGES 1
11586
if test "$enable_shared" = yes; then
11588
mingw* | cygwin*) is_woe32dll=yes ;;
11589
*) is_woe32dll=no ;;
11594
WOE32DLL=$is_woe32dll
11598
mingw* | cygwin*) is_woe32=yes ;;
11603
if test $WOE32 = yes; then
11604
if test -n "$ac_tool_prefix"; then
11605
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11606
set dummy ${ac_tool_prefix}windres; ac_word=$2
11607
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609
if test "${ac_cv_prog_WINDRES+set}" = set; then
11610
echo $ECHO_N "(cached) $ECHO_C" >&6
11612
if test -n "$WINDRES"; then
11613
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616
for as_dir in $PATH
11619
test -z "$as_dir" && as_dir=.
11620
for ac_exec_ext in '' $ac_executable_extensions; do
11621
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
11623
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632
WINDRES=$ac_cv_prog_WINDRES
11633
if test -n "$WINDRES"; then
11634
{ echo "$as_me:$LINENO: result: $WINDRES" >&5
11635
echo "${ECHO_T}$WINDRES" >&6; }
11637
{ echo "$as_me:$LINENO: result: no" >&5
11638
echo "${ECHO_T}no" >&6; }
11643
if test -z "$ac_cv_prog_WINDRES"; then
11644
ac_ct_WINDRES=$WINDRES
11645
# Extract the first word of "windres", so it can be a program name with args.
11646
set dummy windres; ac_word=$2
11647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11649
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
11650
echo $ECHO_N "(cached) $ECHO_C" >&6
11652
if test -n "$ac_ct_WINDRES"; then
11653
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
11655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656
for as_dir in $PATH
11659
test -z "$as_dir" && as_dir=.
11660
for ac_exec_ext in '' $ac_executable_extensions; do
11661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662
ac_cv_prog_ac_ct_WINDRES="windres"
11663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
11673
if test -n "$ac_ct_WINDRES"; then
11674
{ echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
11675
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
11677
{ echo "$as_me:$LINENO: result: no" >&5
11678
echo "${ECHO_T}no" >&6; }
11681
if test "x$ac_ct_WINDRES" = x; then
11684
case $cross_compiling:$ac_tool_warned in
11686
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11687
whose name does not start with the host triplet. If you think this
11688
configuration is useful to you, please write to autoconf@gnu.org." >&5
11689
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11690
whose name does not start with the host triplet. If you think this
11691
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11692
ac_tool_warned=yes ;;
11694
WINDRES=$ac_ct_WINDRES
11697
WINDRES="$ac_cv_prog_WINDRES"
11703
hpux*) LTLIBC="" ;;
11733
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11734
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
11735
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11736
echo $ECHO_N "(cached) $ECHO_C" >&6
11738
gt_save_LIBS="$LIBS"
11739
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11740
cat >conftest.$ac_ext <<_ACEOF
11743
cat confdefs.h >>conftest.$ac_ext
11744
cat >>conftest.$ac_ext <<_ACEOF
11745
/* end confdefs.h. */
11746
#include <CoreFoundation/CFPreferences.h>
11750
CFPreferencesCopyAppValue(NULL, NULL)
11755
rm -f conftest.$ac_objext conftest$ac_exeext
11756
if { (ac_try="$ac_link"
11757
case "(($ac_try" in
11758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759
*) ac_try_echo=$ac_try;;
11761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762
(eval "$ac_link") 2>conftest.er1
11764
grep -v '^ *+' conftest.er1 >conftest.err
11766
cat conftest.err >&5
11767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768
(exit $ac_status); } && {
11769
test -z "$ac_c_werror_flag" ||
11770
test ! -s conftest.err
11771
} && test -s conftest$ac_exeext &&
11772
$as_test_x conftest$ac_exeext; then
11773
gt_cv_func_CFPreferencesCopyAppValue=yes
11775
echo "$as_me: failed program was:" >&5
11776
sed 's/^/| /' conftest.$ac_ext >&5
11778
gt_cv_func_CFPreferencesCopyAppValue=no
11781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11782
conftest$ac_exeext conftest.$ac_ext
11783
LIBS="$gt_save_LIBS"
11785
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11786
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11787
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11789
cat >>confdefs.h <<\_ACEOF
11790
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11794
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11795
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
11796
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11797
echo $ECHO_N "(cached) $ECHO_C" >&6
11799
gt_save_LIBS="$LIBS"
11800
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11801
cat >conftest.$ac_ext <<_ACEOF
11804
cat confdefs.h >>conftest.$ac_ext
11805
cat >>conftest.$ac_ext <<_ACEOF
11806
/* end confdefs.h. */
11807
#include <CoreFoundation/CFLocale.h>
11811
CFLocaleCopyCurrent();
11816
rm -f conftest.$ac_objext conftest$ac_exeext
11817
if { (ac_try="$ac_link"
11818
case "(($ac_try" in
11819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820
*) ac_try_echo=$ac_try;;
11822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823
(eval "$ac_link") 2>conftest.er1
11825
grep -v '^ *+' conftest.er1 >conftest.err
11827
cat conftest.err >&5
11828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829
(exit $ac_status); } && {
11830
test -z "$ac_c_werror_flag" ||
11831
test ! -s conftest.err
11832
} && test -s conftest$ac_exeext &&
11833
$as_test_x conftest$ac_exeext; then
11834
gt_cv_func_CFLocaleCopyCurrent=yes
11836
echo "$as_me: failed program was:" >&5
11837
sed 's/^/| /' conftest.$ac_ext >&5
11839
gt_cv_func_CFLocaleCopyCurrent=no
11842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11843
conftest$ac_exeext conftest.$ac_ext
11844
LIBS="$gt_save_LIBS"
11846
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11847
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11848
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11850
cat >>confdefs.h <<\_ACEOF
11851
#define HAVE_CFLOCALECOPYCURRENT 1
11856
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11857
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11865
BUILD_INCLUDED_LIBINTL=no
11866
USE_INCLUDED_LIBINTL=no
11872
case " $gt_needs " in
11873
*" need-formatstring-macros "*) gt_api_version=3 ;;
11874
*" need-ngettext "*) gt_api_version=2 ;;
11875
*) gt_api_version=1 ;;
11877
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11878
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11880
if test "$USE_NLS" = "yes"; then
11881
gt_use_preinstalled_gnugettext=no
11883
{ echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11884
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11886
# Check whether --with-included-gettext was given.
11887
if test "${with_included_gettext+set}" = set; then
11888
withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11890
nls_cv_force_use_gnu_gettext=no
11893
{ echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11894
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11896
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11897
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11900
if test $gt_api_version -ge 3; then
11901
gt_revision_test_code='
11902
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11903
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11905
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11908
gt_revision_test_code=
11910
if test $gt_api_version -ge 2; then
11911
gt_expression_test_code=' + * ngettext ("", "", 0)'
11913
gt_expression_test_code=
11916
{ echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11917
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11918
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
11919
echo $ECHO_N "(cached) $ECHO_C" >&6
11921
cat >conftest.$ac_ext <<_ACEOF
11924
cat confdefs.h >>conftest.$ac_ext
11925
cat >>conftest.$ac_ext <<_ACEOF
11926
/* end confdefs.h. */
11927
#include <libintl.h>
11928
$gt_revision_test_code
11929
extern int _nl_msg_cat_cntr;
11930
extern int *_nl_domain_bindings;
11934
bindtextdomain ("", "");
11935
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11940
rm -f conftest.$ac_objext conftest$ac_exeext
11941
if { (ac_try="$ac_link"
11942
case "(($ac_try" in
11943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944
*) ac_try_echo=$ac_try;;
11946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947
(eval "$ac_link") 2>conftest.er1
11949
grep -v '^ *+' conftest.er1 >conftest.err
11951
cat conftest.err >&5
11952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953
(exit $ac_status); } && {
11954
test -z "$ac_c_werror_flag" ||
11955
test ! -s conftest.err
11956
} && test -s conftest$ac_exeext &&
11957
$as_test_x conftest$ac_exeext; then
11958
eval "$gt_func_gnugettext_libc=yes"
11960
echo "$as_me: failed program was:" >&5
11961
sed 's/^/| /' conftest.$ac_ext >&5
11963
eval "$gt_func_gnugettext_libc=no"
11966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11967
conftest$ac_exeext conftest.$ac_ext
11969
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
11970
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11971
echo "${ECHO_T}$ac_res" >&6; }
11973
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6946
SDL_CFLAGS=`sdl-config --cflags`
6947
CFLAGS="$CFLAGS $SDL_CFLAGS"
6949
SDL_LIBS=`sdl-config --libs`
6950
LIBS="$SDL_LIBS $LIBS"
6952
# Check platform - see if see if building for Windows:
6953
{ echo "$as_me:$LINENO: checking for native Win32" >&5
6954
echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
6963
{ echo "$as_me:$LINENO: result: $native_win32" >&5
6964
echo "${ECHO_T}$native_win32" >&6; }
6966
if test "$native_win32" = yes; then
6968
BUILD_MINGW32_FALSE='#'
6970
BUILD_MINGW32_TRUE='#'
6971
BUILD_MINGW32_FALSE=
6975
if test "$native_win32" = yes; then
6978
cat >>confdefs.h <<\_ACEOF
6979
#define BUILD_MINGW32 1
6982
CFLAGS="$CFLAGS -D__GW32__"
6983
LIBS="-lmingw32 -lSDLmain $LIBS -luuid -lole32 -lwsock32 -mwindows"
6984
CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
6985
#CPPFLAGS="$CPPFLAGS -I$prefix/include/glibc"
6986
# Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
6987
set dummy "$target_alias-windres"; ac_word=$2
6988
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990
if test "${ac_cv_path_WINDRES+set}" = set; then
6991
echo $ECHO_N "(cached) $ECHO_C" >&6
6995
ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
6998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002
test -z "$as_dir" && as_dir=.
7003
for ac_exec_ext in '' $ac_executable_extensions; do
7004
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005
ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
7006
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013
test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
7017
WINDRES=$ac_cv_path_WINDRES
7018
if test -n "$WINDRES"; then
7019
{ echo "$as_me:$LINENO: result: $WINDRES" >&5
7020
echo "${ECHO_T}$WINDRES" >&6; }
7022
{ echo "$as_me:$LINENO: result: no" >&5
7023
echo "${ECHO_T}no" >&6; }
14713
# --------------------------------------------------------------------------------------
7030
14714
# Checks for header files.
7032
ac_cpp='$CPP $CPPFLAGS'
7033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7037
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7038
# On Suns, sometimes $CPP names a directory.
7039
if test -n "$CPP" && test -d "$CPP"; then
7042
if test -z "$CPP"; then
7043
if test "${ac_cv_prog_CPP+set}" = set; then
7044
echo $ECHO_N "(cached) $ECHO_C" >&6
7046
# Double quotes because CPP needs to be expanded
7047
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7050
for ac_c_preproc_warn_flag in '' yes
7052
# Use a header file that comes with gcc, so configuring glibc
7053
# with a fresh cross-compiler works.
7054
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055
# <limits.h> exists even on freestanding compilers.
7056
# On the NeXT, cc -E runs the code through the compiler's parser,
7057
# not just through cpp. "Syntax error" is here to catch this case.
7058
cat >conftest.$ac_ext <<_ACEOF
7061
cat confdefs.h >>conftest.$ac_ext
7062
cat >>conftest.$ac_ext <<_ACEOF
7063
/* end confdefs.h. */
7065
# include <limits.h>
7067
# include <assert.h>
7071
if { (ac_try="$ac_cpp conftest.$ac_ext"
7073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074
*) ac_try_echo=$ac_try;;
7076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7079
grep -v '^ *+' conftest.er1 >conftest.err
7081
cat conftest.err >&5
7082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083
(exit $ac_status); } >/dev/null && {
7084
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7085
test ! -s conftest.err
7089
echo "$as_me: failed program was:" >&5
7090
sed 's/^/| /' conftest.$ac_ext >&5
7092
# Broken: fails on valid input.
7096
rm -f conftest.err conftest.$ac_ext
7098
# OK, works on sane cases. Now check whether nonexistent headers
7099
# can be detected and how.
7100
cat >conftest.$ac_ext <<_ACEOF
7103
cat confdefs.h >>conftest.$ac_ext
7104
cat >>conftest.$ac_ext <<_ACEOF
7105
/* end confdefs.h. */
7106
#include <ac_nonexistent.h>
7108
if { (ac_try="$ac_cpp conftest.$ac_ext"
7110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111
*) ac_try_echo=$ac_try;;
7113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7116
grep -v '^ *+' conftest.er1 >conftest.err
7118
cat conftest.err >&5
7119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120
(exit $ac_status); } >/dev/null && {
7121
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7122
test ! -s conftest.err
7124
# Broken: success on invalid input.
7127
echo "$as_me: failed program was:" >&5
7128
sed 's/^/| /' conftest.$ac_ext >&5
7130
# Passes both tests.
7135
rm -f conftest.err conftest.$ac_ext
7138
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7139
rm -f conftest.err conftest.$ac_ext
7140
if $ac_preproc_ok; then
7152
{ echo "$as_me:$LINENO: result: $CPP" >&5
7153
echo "${ECHO_T}$CPP" >&6; }
7155
for ac_c_preproc_warn_flag in '' yes
7157
# Use a header file that comes with gcc, so configuring glibc
7158
# with a fresh cross-compiler works.
7159
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160
# <limits.h> exists even on freestanding compilers.
7161
# On the NeXT, cc -E runs the code through the compiler's parser,
7162
# not just through cpp. "Syntax error" is here to catch this case.
7163
cat >conftest.$ac_ext <<_ACEOF
7166
cat confdefs.h >>conftest.$ac_ext
7167
cat >>conftest.$ac_ext <<_ACEOF
7168
/* end confdefs.h. */
7170
# include <limits.h>
7172
# include <assert.h>
7176
if { (ac_try="$ac_cpp conftest.$ac_ext"
7178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179
*) ac_try_echo=$ac_try;;
7181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7184
grep -v '^ *+' conftest.er1 >conftest.err
7186
cat conftest.err >&5
7187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188
(exit $ac_status); } >/dev/null && {
7189
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7190
test ! -s conftest.err
7194
echo "$as_me: failed program was:" >&5
7195
sed 's/^/| /' conftest.$ac_ext >&5
7197
# Broken: fails on valid input.
7201
rm -f conftest.err conftest.$ac_ext
7203
# OK, works on sane cases. Now check whether nonexistent headers
7204
# can be detected and how.
7205
cat >conftest.$ac_ext <<_ACEOF
7208
cat confdefs.h >>conftest.$ac_ext
7209
cat >>conftest.$ac_ext <<_ACEOF
7210
/* end confdefs.h. */
7211
#include <ac_nonexistent.h>
7213
if { (ac_try="$ac_cpp conftest.$ac_ext"
7215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216
*) ac_try_echo=$ac_try;;
7218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7221
grep -v '^ *+' conftest.er1 >conftest.err
7223
cat conftest.err >&5
7224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225
(exit $ac_status); } >/dev/null && {
7226
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7227
test ! -s conftest.err
7229
# Broken: success on invalid input.
7232
echo "$as_me: failed program was:" >&5
7233
sed 's/^/| /' conftest.$ac_ext >&5
7235
# Passes both tests.
7240
rm -f conftest.err conftest.$ac_ext
7243
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7244
rm -f conftest.err conftest.$ac_ext
7245
if $ac_preproc_ok; then
7248
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7249
See \`config.log' for more details." >&5
7250
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7251
See \`config.log' for more details." >&2;}
7252
{ (exit 1); exit 1; }; }
7256
ac_cpp='$CPP $CPPFLAGS'
7257
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7263
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7264
if test "${ac_cv_path_GREP+set}" = set; then
7265
echo $ECHO_N "(cached) $ECHO_C" >&6
7267
# Extract the first word of "grep ggrep" to use in msg output
7268
if test -z "$GREP"; then
7269
set dummy grep ggrep; ac_prog_name=$2
7270
if test "${ac_cv_path_GREP+set}" = set; then
7271
echo $ECHO_N "(cached) $ECHO_C" >&6
7273
ac_path_GREP_found=false
7274
# Loop through the user's path and test for each of PROGNAME-LIST
7275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7279
test -z "$as_dir" && as_dir=.
7280
for ac_prog in grep ggrep; do
7281
for ac_exec_ext in '' $ac_executable_extensions; do
7282
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7283
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7284
# Check for GNU ac_path_GREP and select it if it is found.
7285
# Check for GNU $ac_path_GREP
7286
case `"$ac_path_GREP" --version 2>&1` in
7288
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7291
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7294
cat "conftest.in" "conftest.in" >"conftest.tmp"
7295
mv "conftest.tmp" "conftest.in"
7296
cp "conftest.in" "conftest.nl"
7297
echo 'GREP' >> "conftest.nl"
7298
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7299
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7300
ac_count=`expr $ac_count + 1`
7301
if test $ac_count -gt ${ac_path_GREP_max-0}; then
7302
# Best one so far, save it but keep looking for a better one
7303
ac_cv_path_GREP="$ac_path_GREP"
7304
ac_path_GREP_max=$ac_count
7306
# 10*(2^10) chars as input seems more than enough
7307
test $ac_count -gt 10 && break
7309
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7313
$ac_path_GREP_found && break 3
7323
GREP="$ac_cv_path_GREP"
7324
if test -z "$GREP"; then
7325
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7326
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7327
{ (exit 1); exit 1; }; }
7331
ac_cv_path_GREP=$GREP
7336
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7337
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7338
GREP="$ac_cv_path_GREP"
7341
{ echo "$as_me:$LINENO: checking for egrep" >&5
7342
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7343
if test "${ac_cv_path_EGREP+set}" = set; then
7344
echo $ECHO_N "(cached) $ECHO_C" >&6
7346
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7347
then ac_cv_path_EGREP="$GREP -E"
7349
# Extract the first word of "egrep" to use in msg output
7350
if test -z "$EGREP"; then
7351
set dummy egrep; ac_prog_name=$2
7352
if test "${ac_cv_path_EGREP+set}" = set; then
7353
echo $ECHO_N "(cached) $ECHO_C" >&6
7355
ac_path_EGREP_found=false
7356
# Loop through the user's path and test for each of PROGNAME-LIST
7357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7361
test -z "$as_dir" && as_dir=.
7362
for ac_prog in egrep; do
7363
for ac_exec_ext in '' $ac_executable_extensions; do
7364
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7365
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7366
# Check for GNU ac_path_EGREP and select it if it is found.
7367
# Check for GNU $ac_path_EGREP
7368
case `"$ac_path_EGREP" --version 2>&1` in
7370
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7373
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7376
cat "conftest.in" "conftest.in" >"conftest.tmp"
7377
mv "conftest.tmp" "conftest.in"
7378
cp "conftest.in" "conftest.nl"
7379
echo 'EGREP' >> "conftest.nl"
7380
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7381
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7382
ac_count=`expr $ac_count + 1`
7383
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7384
# Best one so far, save it but keep looking for a better one
7385
ac_cv_path_EGREP="$ac_path_EGREP"
7386
ac_path_EGREP_max=$ac_count
7388
# 10*(2^10) chars as input seems more than enough
7389
test $ac_count -gt 10 && break
7391
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7395
$ac_path_EGREP_found && break 3
7405
EGREP="$ac_cv_path_EGREP"
7406
if test -z "$EGREP"; then
7407
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7408
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7409
{ (exit 1); exit 1; }; }
7413
ac_cv_path_EGREP=$EGREP
7419
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7420
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7421
EGREP="$ac_cv_path_EGREP"
14715
# --------------------------------------------------------------------------------------
14717
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14718
# for constant arguments. Useless!
14719
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
14720
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14721
if test "${ac_cv_working_alloca_h+set}" = set; then
14722
echo $ECHO_N "(cached) $ECHO_C" >&6
14724
cat >conftest.$ac_ext <<_ACEOF
14727
cat confdefs.h >>conftest.$ac_ext
14728
cat >>conftest.$ac_ext <<_ACEOF
14729
/* end confdefs.h. */
14730
#include <alloca.h>
14734
char *p = (char *) alloca (2 * sizeof (int));
14740
rm -f conftest.$ac_objext conftest$ac_exeext
14741
if { (ac_try="$ac_link"
14742
case "(($ac_try" in
14743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744
*) ac_try_echo=$ac_try;;
14746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747
(eval "$ac_link") 2>conftest.er1
14749
grep -v '^ *+' conftest.er1 >conftest.err
14751
cat conftest.err >&5
14752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753
(exit $ac_status); } && {
14754
test -z "$ac_c_werror_flag" ||
14755
test ! -s conftest.err
14756
} && test -s conftest$ac_exeext &&
14757
$as_test_x conftest$ac_exeext; then
14758
ac_cv_working_alloca_h=yes
14760
echo "$as_me: failed program was:" >&5
14761
sed 's/^/| /' conftest.$ac_ext >&5
14763
ac_cv_working_alloca_h=no
14766
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14767
conftest$ac_exeext conftest.$ac_ext
14769
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14770
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14771
if test $ac_cv_working_alloca_h = yes; then
14773
cat >>confdefs.h <<\_ACEOF
14774
#define HAVE_ALLOCA_H 1
14779
{ echo "$as_me:$LINENO: checking for alloca" >&5
14780
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14781
if test "${ac_cv_func_alloca_works+set}" = set; then
14782
echo $ECHO_N "(cached) $ECHO_C" >&6
14784
cat >conftest.$ac_ext <<_ACEOF
14787
cat confdefs.h >>conftest.$ac_ext
14788
cat >>conftest.$ac_ext <<_ACEOF
14789
/* end confdefs.h. */
14791
# define alloca __builtin_alloca
14794
# include <malloc.h>
14795
# define alloca _alloca
14797
# ifdef HAVE_ALLOCA_H
14798
# include <alloca.h>
14803
# ifndef alloca /* predefined by HP cc +Olibcalls */
14814
char *p = (char *) alloca (1);
14820
rm -f conftest.$ac_objext conftest$ac_exeext
14821
if { (ac_try="$ac_link"
14822
case "(($ac_try" in
14823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824
*) ac_try_echo=$ac_try;;
14826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827
(eval "$ac_link") 2>conftest.er1
14829
grep -v '^ *+' conftest.er1 >conftest.err
14831
cat conftest.err >&5
14832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833
(exit $ac_status); } && {
14834
test -z "$ac_c_werror_flag" ||
14835
test ! -s conftest.err
14836
} && test -s conftest$ac_exeext &&
14837
$as_test_x conftest$ac_exeext; then
14838
ac_cv_func_alloca_works=yes
14840
echo "$as_me: failed program was:" >&5
14841
sed 's/^/| /' conftest.$ac_ext >&5
14843
ac_cv_func_alloca_works=no
14846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14847
conftest$ac_exeext conftest.$ac_ext
14849
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14850
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14852
if test $ac_cv_func_alloca_works = yes; then
14854
cat >>confdefs.h <<\_ACEOF
14855
#define HAVE_ALLOCA 1
14859
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
14860
# that cause trouble. Some versions do not even contain alloca or
14861
# contain a buggy version. If you still want to use their alloca,
14862
# use ar to extract alloca.o from them instead of compiling alloca.c.
14864
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14866
cat >>confdefs.h <<\_ACEOF
14871
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14872
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14873
if test "${ac_cv_os_cray+set}" = set; then
14874
echo $ECHO_N "(cached) $ECHO_C" >&6
14876
cat >conftest.$ac_ext <<_ACEOF
14879
cat confdefs.h >>conftest.$ac_ext
14880
cat >>conftest.$ac_ext <<_ACEOF
14881
/* end confdefs.h. */
14882
#if defined CRAY && ! defined CRAY2
14889
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890
$EGREP "webecray" >/dev/null 2>&1; then
14898
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14899
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14900
if test $ac_cv_os_cray = yes; then
14901
for ac_func in _getb67 GETB67 getb67; do
14902
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14904
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906
echo $ECHO_N "(cached) $ECHO_C" >&6
14908
cat >conftest.$ac_ext <<_ACEOF
14911
cat confdefs.h >>conftest.$ac_ext
14912
cat >>conftest.$ac_ext <<_ACEOF
14913
/* end confdefs.h. */
14914
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14916
#define $ac_func innocuous_$ac_func
14918
/* System header to define __stub macros and hopefully few prototypes,
14919
which can conflict with char $ac_func (); below.
14920
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921
<limits.h> exists even on freestanding compilers. */
14924
# include <limits.h>
14926
# include <assert.h>
14931
/* Override any GCC internal prototype to avoid an error.
14932
Use char because int might match the return type of a GCC
14933
builtin and then its argument prototype would still apply. */
14938
/* The GNU C library defines this for functions which it implements
14939
to always fail with ENOSYS. Some functions are actually named
14940
something starting with __ and the normal name is an alias. */
14941
#if defined __stub_$ac_func || defined __stub___$ac_func
14948
return $ac_func ();
14953
rm -f conftest.$ac_objext conftest$ac_exeext
14954
if { (ac_try="$ac_link"
14955
case "(($ac_try" in
14956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957
*) ac_try_echo=$ac_try;;
14959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960
(eval "$ac_link") 2>conftest.er1
14962
grep -v '^ *+' conftest.er1 >conftest.err
14964
cat conftest.err >&5
14965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966
(exit $ac_status); } && {
14967
test -z "$ac_c_werror_flag" ||
14968
test ! -s conftest.err
14969
} && test -s conftest$ac_exeext &&
14970
$as_test_x conftest$ac_exeext; then
14971
eval "$as_ac_var=yes"
14973
echo "$as_me: failed program was:" >&5
14974
sed 's/^/| /' conftest.$ac_ext >&5
14976
eval "$as_ac_var=no"
14979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14980
conftest$ac_exeext conftest.$ac_ext
14982
ac_res=`eval echo '${'$as_ac_var'}'`
14983
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14984
echo "${ECHO_T}$ac_res" >&6; }
14985
if test `eval echo '${'$as_ac_var'}'` = yes; then
14987
cat >>confdefs.h <<_ACEOF
14988
#define CRAY_STACKSEG_END $ac_func
14997
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14998
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14999
if test "${ac_cv_c_stack_direction+set}" = set; then
15000
echo $ECHO_N "(cached) $ECHO_C" >&6
15002
if test "$cross_compiling" = yes; then
15003
ac_cv_c_stack_direction=0
15005
cat >conftest.$ac_ext <<_ACEOF
15008
cat confdefs.h >>conftest.$ac_ext
15009
cat >>conftest.$ac_ext <<_ACEOF
15010
/* end confdefs.h. */
15011
$ac_includes_default
15013
find_stack_direction ()
15015
static char *addr = 0;
15020
return find_stack_direction ();
15023
return (&dummy > addr) ? 1 : -1;
15029
return find_stack_direction () < 0;
15032
rm -f conftest$ac_exeext
15033
if { (ac_try="$ac_link"
15034
case "(($ac_try" in
15035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036
*) ac_try_echo=$ac_try;;
15038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039
(eval "$ac_link") 2>&5
15041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043
{ (case "(($ac_try" in
15044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045
*) ac_try_echo=$ac_try;;
15047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048
(eval "$ac_try") 2>&5
15050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051
(exit $ac_status); }; }; then
15052
ac_cv_c_stack_direction=1
15054
echo "$as_me: program exited with status $ac_status" >&5
15055
echo "$as_me: failed program was:" >&5
15056
sed 's/^/| /' conftest.$ac_ext >&5
15058
( exit $ac_status )
15059
ac_cv_c_stack_direction=-1
15061
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15066
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15067
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15069
cat >>confdefs.h <<_ACEOF
15070
#define STACK_DIRECTION $ac_cv_c_stack_direction
15081
ac_header_dirent=no
15082
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15083
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15084
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15085
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087
echo $ECHO_N "(cached) $ECHO_C" >&6
15089
cat >conftest.$ac_ext <<_ACEOF
15092
cat confdefs.h >>conftest.$ac_ext
15093
cat >>conftest.$ac_ext <<_ACEOF
15094
/* end confdefs.h. */
15095
#include <sys/types.h>
15107
rm -f conftest.$ac_objext
15108
if { (ac_try="$ac_compile"
15109
case "(($ac_try" in
15110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111
*) ac_try_echo=$ac_try;;
15113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114
(eval "$ac_compile") 2>conftest.er1
15116
grep -v '^ *+' conftest.er1 >conftest.err
15118
cat conftest.err >&5
15119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120
(exit $ac_status); } && {
15121
test -z "$ac_c_werror_flag" ||
15122
test ! -s conftest.err
15123
} && test -s conftest.$ac_objext; then
15124
eval "$as_ac_Header=yes"
15126
echo "$as_me: failed program was:" >&5
15127
sed 's/^/| /' conftest.$ac_ext >&5
15129
eval "$as_ac_Header=no"
15132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134
ac_res=`eval echo '${'$as_ac_Header'}'`
15135
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15136
echo "${ECHO_T}$ac_res" >&6; }
15137
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15138
cat >>confdefs.h <<_ACEOF
15139
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15142
ac_header_dirent=$ac_hdr; break
15146
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15147
if test $ac_header_dirent = dirent.h; then
15148
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
15149
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15150
if test "${ac_cv_search_opendir+set}" = set; then
15151
echo $ECHO_N "(cached) $ECHO_C" >&6
15153
ac_func_search_save_LIBS=$LIBS
15154
cat >conftest.$ac_ext <<_ACEOF
15157
cat confdefs.h >>conftest.$ac_ext
15158
cat >>conftest.$ac_ext <<_ACEOF
15159
/* end confdefs.h. */
15161
/* Override any GCC internal prototype to avoid an error.
15162
Use char because int might match the return type of a GCC
15163
builtin and then its argument prototype would still apply. */
15176
for ac_lib in '' dir; do
15177
if test -z "$ac_lib"; then
15178
ac_res="none required"
15181
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15183
rm -f conftest.$ac_objext conftest$ac_exeext
15184
if { (ac_try="$ac_link"
15185
case "(($ac_try" in
15186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187
*) ac_try_echo=$ac_try;;
15189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190
(eval "$ac_link") 2>conftest.er1
15192
grep -v '^ *+' conftest.er1 >conftest.err
15194
cat conftest.err >&5
15195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196
(exit $ac_status); } && {
15197
test -z "$ac_c_werror_flag" ||
15198
test ! -s conftest.err
15199
} && test -s conftest$ac_exeext &&
15200
$as_test_x conftest$ac_exeext; then
15201
ac_cv_search_opendir=$ac_res
15203
echo "$as_me: failed program was:" >&5
15204
sed 's/^/| /' conftest.$ac_ext >&5
15209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211
if test "${ac_cv_search_opendir+set}" = set; then
15215
if test "${ac_cv_search_opendir+set}" = set; then
15218
ac_cv_search_opendir=no
15220
rm conftest.$ac_ext
15221
LIBS=$ac_func_search_save_LIBS
15223
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15224
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15225
ac_res=$ac_cv_search_opendir
15226
if test "$ac_res" != no; then
15227
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15232
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
15233
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15234
if test "${ac_cv_search_opendir+set}" = set; then
15235
echo $ECHO_N "(cached) $ECHO_C" >&6
15237
ac_func_search_save_LIBS=$LIBS
15238
cat >conftest.$ac_ext <<_ACEOF
15241
cat confdefs.h >>conftest.$ac_ext
15242
cat >>conftest.$ac_ext <<_ACEOF
15243
/* end confdefs.h. */
15245
/* Override any GCC internal prototype to avoid an error.
15246
Use char because int might match the return type of a GCC
15247
builtin and then its argument prototype would still apply. */
15260
for ac_lib in '' x; do
15261
if test -z "$ac_lib"; then
15262
ac_res="none required"
15265
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15267
rm -f conftest.$ac_objext conftest$ac_exeext
15268
if { (ac_try="$ac_link"
15269
case "(($ac_try" in
15270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271
*) ac_try_echo=$ac_try;;
15273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274
(eval "$ac_link") 2>conftest.er1
15276
grep -v '^ *+' conftest.er1 >conftest.err
15278
cat conftest.err >&5
15279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280
(exit $ac_status); } && {
15281
test -z "$ac_c_werror_flag" ||
15282
test ! -s conftest.err
15283
} && test -s conftest$ac_exeext &&
15284
$as_test_x conftest$ac_exeext; then
15285
ac_cv_search_opendir=$ac_res
15287
echo "$as_me: failed program was:" >&5
15288
sed 's/^/| /' conftest.$ac_ext >&5
15293
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295
if test "${ac_cv_search_opendir+set}" = set; then
15299
if test "${ac_cv_search_opendir+set}" = set; then
15302
ac_cv_search_opendir=no
15304
rm conftest.$ac_ext
15305
LIBS=$ac_func_search_save_LIBS
15307
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15308
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15309
ac_res=$ac_cv_search_opendir
15310
if test "$ac_res" != no; then
15311
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7424
15317
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7425
15318
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
16023
{ echo "$as_me:$LINENO: checking for mode_t" >&5
16024
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16025
if test "${ac_cv_type_mode_t+set}" = set; then
16026
echo $ECHO_N "(cached) $ECHO_C" >&6
16028
cat >conftest.$ac_ext <<_ACEOF
16031
cat confdefs.h >>conftest.$ac_ext
16032
cat >>conftest.$ac_ext <<_ACEOF
16033
/* end confdefs.h. */
16034
$ac_includes_default
16035
typedef mode_t ac__type_new_;
16039
if ((ac__type_new_ *) 0)
16041
if (sizeof (ac__type_new_))
16047
rm -f conftest.$ac_objext
16048
if { (ac_try="$ac_compile"
16049
case "(($ac_try" in
16050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051
*) ac_try_echo=$ac_try;;
16053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054
(eval "$ac_compile") 2>conftest.er1
16056
grep -v '^ *+' conftest.er1 >conftest.err
16058
cat conftest.err >&5
16059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060
(exit $ac_status); } && {
16061
test -z "$ac_c_werror_flag" ||
16062
test ! -s conftest.err
16063
} && test -s conftest.$ac_objext; then
16064
ac_cv_type_mode_t=yes
16066
echo "$as_me: failed program was:" >&5
16067
sed 's/^/| /' conftest.$ac_ext >&5
16069
ac_cv_type_mode_t=no
16072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16075
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16076
if test $ac_cv_type_mode_t = yes; then
16080
cat >>confdefs.h <<_ACEOF
16086
{ echo "$as_me:$LINENO: checking for size_t" >&5
16087
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16088
if test "${ac_cv_type_size_t+set}" = set; then
16089
echo $ECHO_N "(cached) $ECHO_C" >&6
16091
cat >conftest.$ac_ext <<_ACEOF
16094
cat confdefs.h >>conftest.$ac_ext
16095
cat >>conftest.$ac_ext <<_ACEOF
16096
/* end confdefs.h. */
16097
$ac_includes_default
16098
typedef size_t ac__type_new_;
16102
if ((ac__type_new_ *) 0)
16104
if (sizeof (ac__type_new_))
16110
rm -f conftest.$ac_objext
16111
if { (ac_try="$ac_compile"
16112
case "(($ac_try" in
16113
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114
*) ac_try_echo=$ac_try;;
16116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117
(eval "$ac_compile") 2>conftest.er1
16119
grep -v '^ *+' conftest.er1 >conftest.err
16121
cat conftest.err >&5
16122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123
(exit $ac_status); } && {
16124
test -z "$ac_c_werror_flag" ||
16125
test ! -s conftest.err
16126
} && test -s conftest.$ac_objext; then
16127
ac_cv_type_size_t=yes
16129
echo "$as_me: failed program was:" >&5
16130
sed 's/^/| /' conftest.$ac_ext >&5
16132
ac_cv_type_size_t=no
16135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16138
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16139
if test $ac_cv_type_size_t = yes; then
16143
cat >>confdefs.h <<_ACEOF
16144
#define size_t unsigned int
16149
{ echo "$as_me:$LINENO: checking for working volatile" >&5
16150
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
16151
if test "${ac_cv_c_volatile+set}" = set; then
16152
echo $ECHO_N "(cached) $ECHO_C" >&6
16154
cat >conftest.$ac_ext <<_ACEOF
16157
cat confdefs.h >>conftest.$ac_ext
16158
cat >>conftest.$ac_ext <<_ACEOF
16159
/* end confdefs.h. */
16166
int * volatile y = (int *) 0;
16172
rm -f conftest.$ac_objext
16173
if { (ac_try="$ac_compile"
16174
case "(($ac_try" in
16175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176
*) ac_try_echo=$ac_try;;
16178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179
(eval "$ac_compile") 2>conftest.er1
16181
grep -v '^ *+' conftest.er1 >conftest.err
16183
cat conftest.err >&5
16184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185
(exit $ac_status); } && {
16186
test -z "$ac_c_werror_flag" ||
16187
test ! -s conftest.err
16188
} && test -s conftest.$ac_objext; then
16189
ac_cv_c_volatile=yes
16191
echo "$as_me: failed program was:" >&5
16192
sed 's/^/| /' conftest.$ac_ext >&5
16194
ac_cv_c_volatile=no
16197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16199
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
16200
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
16201
if test $ac_cv_c_volatile = no; then
16203
cat >>confdefs.h <<\_ACEOF
16209
{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
16210
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
16211
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
16212
echo $ECHO_N "(cached) $ECHO_C" >&6
16214
cat >conftest.$ac_ext <<_ACEOF
16217
cat confdefs.h >>conftest.$ac_ext
16218
cat >>conftest.$ac_ext <<_ACEOF
16219
/* end confdefs.h. */
16220
$ac_includes_default
16221
typedef ptrdiff_t ac__type_new_;
16225
if ((ac__type_new_ *) 0)
16227
if (sizeof (ac__type_new_))
16233
rm -f conftest.$ac_objext
16234
if { (ac_try="$ac_compile"
16235
case "(($ac_try" in
16236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237
*) ac_try_echo=$ac_try;;
16239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240
(eval "$ac_compile") 2>conftest.er1
16242
grep -v '^ *+' conftest.er1 >conftest.err
16244
cat conftest.err >&5
16245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246
(exit $ac_status); } && {
16247
test -z "$ac_c_werror_flag" ||
16248
test ! -s conftest.err
16249
} && test -s conftest.$ac_objext; then
16250
ac_cv_type_ptrdiff_t=yes
16252
echo "$as_me: failed program was:" >&5
16253
sed 's/^/| /' conftest.$ac_ext >&5
16255
ac_cv_type_ptrdiff_t=no
16258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
16261
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
16262
if test $ac_cv_type_ptrdiff_t = yes; then
16264
cat >>confdefs.h <<_ACEOF
16265
#define HAVE_PTRDIFF_T 1
16273
# -------------------------------------------------------------------------------------------
7991
16274
# Checks for library functions.
7997
for ac_func in atexit memset strchr strstr malloc
7999
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8000
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8001
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8002
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8003
echo $ECHO_N "(cached) $ECHO_C" >&6
8005
cat >conftest.$ac_ext <<_ACEOF
8008
cat confdefs.h >>conftest.$ac_ext
8009
cat >>conftest.$ac_ext <<_ACEOF
8010
/* end confdefs.h. */
8011
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8012
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8013
#define $ac_func innocuous_$ac_func
8015
/* System header to define __stub macros and hopefully few prototypes,
8016
which can conflict with char $ac_func (); below.
8017
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8018
<limits.h> exists even on freestanding compilers. */
8021
# include <limits.h>
8023
# include <assert.h>
8028
/* Override any GCC internal prototype to avoid an error.
8029
Use char because int might match the return type of a GCC
8030
builtin and then its argument prototype would still apply. */
8035
/* The GNU C library defines this for functions which it implements
8036
to always fail with ENOSYS. Some functions are actually named
8037
something starting with __ and the normal name is an alias. */
8038
#if defined __stub_$ac_func || defined __stub___$ac_func
8050
rm -f conftest.$ac_objext conftest$ac_exeext
8051
if { (ac_try="$ac_link"
8053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054
*) ac_try_echo=$ac_try;;
8056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057
(eval "$ac_link") 2>conftest.er1
8059
grep -v '^ *+' conftest.er1 >conftest.err
8061
cat conftest.err >&5
8062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063
(exit $ac_status); } && {
8064
test -z "$ac_c_werror_flag" ||
8065
test ! -s conftest.err
8066
} && test -s conftest$ac_exeext &&
8067
$as_test_x conftest$ac_exeext; then
8068
eval "$as_ac_var=yes"
8070
echo "$as_me: failed program was:" >&5
8071
sed 's/^/| /' conftest.$ac_ext >&5
8073
eval "$as_ac_var=no"
8076
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8077
conftest$ac_exeext conftest.$ac_ext
8079
ac_res=`eval echo '${'$as_ac_var'}'`
8080
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8081
echo "${ECHO_T}$ac_res" >&6; }
8082
if test `eval echo '${'$as_ac_var'}'` = yes; then
8083
cat >>confdefs.h <<_ACEOF
8084
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8095
# Sam's Install Kludge-work
8096
CPPFLAGS="$CPPFLAGS -DDATA_PREFIX=\\\"\$(prefix)\\\""
8098
ac_config_files="$ac_config_files Makefile po/Makefile.in data/Makefile data/fonts/Makefile data/images/Makefile data/images/backgrounds/Makefile data/images/cities/Makefile data/images/comets/Makefile data/images/hands/Makefile data/images/icons/Makefile data/images/keyboard/Makefile data/images/menu/Makefile data/images/status/Makefile data/images/tux/Makefile data/scripts/Makefile data/sounds/Makefile data/themes/Makefile data/themes/armenian/Makefile data/themes/armenian/images/Makefile data/themes/bokmal/Makefile data/themes/bokmal/words/Makefile data/themes/bokmal/images/Makefile data/themes/bokmal/images/status/Makefile data/themes/brazilian-portuguese/Makefile data/themes/brazilian-portuguese/images/Makefile data/themes/brazilian-portuguese/words/Makefile data/themes/catalan/Makefile data/themes/catalan/words/Makefile data/themes/czech/Makefile data/themes/czech/words/Makefile data/themes/dansk/Makefile data/themes/dansk/sounds/Makefile data/themes/dansk/words/Makefile data/themes/deutsch/Makefile data/themes/deutsch/words/Makefile data/themes/espanol/Makefile data/themes/espanol/images/Makefile data/themes/espanol/words/Makefile data/themes/euskara/Makefile data/themes/euskara/images/Makefile data/themes/euskara/words/Makefile data/themes/french/Makefile data/themes/french/words/Makefile data/themes/greek/Makefile data/themes/greek/words/Makefile data/themes/italian/Makefile data/themes/italian/images/Makefile data/themes/italian/words/Makefile data/themes/jamaican/Makefile data/themes/jamaican/images/Makefile data/themes/jamaican/words/Makefile data/themes/lithuanian/Makefile data/themes/lithuanian/images/Makefile data/themes/lithuanian/images/status/Makefile data/themes/lithuanian/sounds/Makefile data/themes/lithuanian/words/Makefile data/themes/malayalam/Makefile data/themes/malayalam/images/Makefile data/themes/malayalam/images/status/Makefile data/themes/malayalam/images/keyboard/Makefile data/themes/malayalam/scripts/Makefile data/themes/malayalam/words/Makefile data/themes/nederlands/Makefile data/themes/nederlands/words/Makefile data/themes/nepali/Makefile data/themes/nepali/words/Makefile data/themes/nynorsk/Makefile data/themes/nynorsk/images/Makefile data/themes/nynorsk/images/status/Makefile data/themes/nynorsk/words/Makefile data/themes/russian/Makefile data/themes/russian/images/Makefile data/themes/russian/images/status/Makefile data/themes/russian/words/Makefile data/themes/svenska/Makefile data/themes/svenska/words/Makefile data/themes/swahili/Makefile data/themes/swahili/words/Makefile data/themes/wolof/Makefile data/themes/wolof/images/Makefile data/themes/wolof/words/Makefile data/words/Makefile doc/Makefile doc/en/Makefile src/Makefile nsis/tuxtype.nsi tuxtype.spec"
8101
# Support for building NSIS Win32 installer (adapted from TuxMath NSIS):
16275
# -------------------------------------------------------------------------------------------
16278
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16279
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
16280
if test "${ac_cv_func_closedir_void+set}" = set; then
16281
echo $ECHO_N "(cached) $ECHO_C" >&6
16283
if test "$cross_compiling" = yes; then
16284
ac_cv_func_closedir_void=yes
16286
cat >conftest.$ac_ext <<_ACEOF
16289
cat confdefs.h >>conftest.$ac_ext
16290
cat >>conftest.$ac_ext <<_ACEOF
16291
/* end confdefs.h. */
16292
$ac_includes_default
16293
#include <$ac_header_dirent>
16294
#ifndef __cplusplus
16301
return closedir (opendir (".")) != 0;
16306
rm -f conftest$ac_exeext
16307
if { (ac_try="$ac_link"
16308
case "(($ac_try" in
16309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310
*) ac_try_echo=$ac_try;;
16312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313
(eval "$ac_link") 2>&5
16315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16317
{ (case "(($ac_try" in
16318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319
*) ac_try_echo=$ac_try;;
16321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322
(eval "$ac_try") 2>&5
16324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325
(exit $ac_status); }; }; then
16326
ac_cv_func_closedir_void=no
16328
echo "$as_me: program exited with status $ac_status" >&5
16329
echo "$as_me: failed program was:" >&5
16330
sed 's/^/| /' conftest.$ac_ext >&5
16332
( exit $ac_status )
16333
ac_cv_func_closedir_void=yes
16335
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16340
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16341
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
16342
if test $ac_cv_func_closedir_void = yes; then
16344
cat >>confdefs.h <<\_ACEOF
16345
#define CLOSEDIR_VOID 1
16350
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
16351
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
16352
if test "${ac_cv_lib_error_at_line+set}" = set; then
16353
echo $ECHO_N "(cached) $ECHO_C" >&6
16355
cat >conftest.$ac_ext <<_ACEOF
16358
cat confdefs.h >>conftest.$ac_ext
16359
cat >>conftest.$ac_ext <<_ACEOF
16360
/* end confdefs.h. */
16365
error_at_line (0, 0, "", 0, "an error occurred");
16370
rm -f conftest.$ac_objext conftest$ac_exeext
16371
if { (ac_try="$ac_link"
16372
case "(($ac_try" in
16373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374
*) ac_try_echo=$ac_try;;
16376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377
(eval "$ac_link") 2>conftest.er1
16379
grep -v '^ *+' conftest.er1 >conftest.err
16381
cat conftest.err >&5
16382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383
(exit $ac_status); } && {
16384
test -z "$ac_c_werror_flag" ||
16385
test ! -s conftest.err
16386
} && test -s conftest$ac_exeext &&
16387
$as_test_x conftest$ac_exeext; then
16388
ac_cv_lib_error_at_line=yes
16390
echo "$as_me: failed program was:" >&5
16391
sed 's/^/| /' conftest.$ac_ext >&5
16393
ac_cv_lib_error_at_line=no
16396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16397
conftest$ac_exeext conftest.$ac_ext
16399
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
16400
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
16401
if test $ac_cv_lib_error_at_line = no; then
16402
case " $LIBOBJS " in
16403
*" error.$ac_objext "* ) ;;
16404
*) LIBOBJS="$LIBOBJS error.$ac_objext"
16413
for ac_header in stdlib.h unistd.h
16415
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16416
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16417
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16418
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420
echo $ECHO_N "(cached) $ECHO_C" >&6
16422
ac_res=`eval echo '${'$as_ac_Header'}'`
16423
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16424
echo "${ECHO_T}$ac_res" >&6; }
16426
# Is the header compilable?
16427
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16428
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16429
cat >conftest.$ac_ext <<_ACEOF
16432
cat confdefs.h >>conftest.$ac_ext
16433
cat >>conftest.$ac_ext <<_ACEOF
16434
/* end confdefs.h. */
16435
$ac_includes_default
16436
#include <$ac_header>
16438
rm -f conftest.$ac_objext
16439
if { (ac_try="$ac_compile"
16440
case "(($ac_try" in
16441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442
*) ac_try_echo=$ac_try;;
16444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445
(eval "$ac_compile") 2>conftest.er1
16447
grep -v '^ *+' conftest.er1 >conftest.err
16449
cat conftest.err >&5
16450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451
(exit $ac_status); } && {
16452
test -z "$ac_c_werror_flag" ||
16453
test ! -s conftest.err
16454
} && test -s conftest.$ac_objext; then
16455
ac_header_compiler=yes
16457
echo "$as_me: failed program was:" >&5
16458
sed 's/^/| /' conftest.$ac_ext >&5
16460
ac_header_compiler=no
16463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16465
echo "${ECHO_T}$ac_header_compiler" >&6; }
16467
# Is the header present?
16468
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16469
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16470
cat >conftest.$ac_ext <<_ACEOF
16473
cat confdefs.h >>conftest.$ac_ext
16474
cat >>conftest.$ac_ext <<_ACEOF
16475
/* end confdefs.h. */
16476
#include <$ac_header>
16478
if { (ac_try="$ac_cpp conftest.$ac_ext"
16479
case "(($ac_try" in
16480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481
*) ac_try_echo=$ac_try;;
16483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16486
grep -v '^ *+' conftest.er1 >conftest.err
16488
cat conftest.err >&5
16489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490
(exit $ac_status); } >/dev/null && {
16491
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16492
test ! -s conftest.err
16494
ac_header_preproc=yes
16496
echo "$as_me: failed program was:" >&5
16497
sed 's/^/| /' conftest.$ac_ext >&5
16499
ac_header_preproc=no
16502
rm -f conftest.err conftest.$ac_ext
16503
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16504
echo "${ECHO_T}$ac_header_preproc" >&6; }
16506
# So? What about this header?
16507
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16509
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16510
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16511
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16512
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16513
ac_header_preproc=yes
16516
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16517
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16518
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16519
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16520
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16521
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16522
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16523
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16524
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16525
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16526
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16527
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16529
## ----------------------------------------------------------- ##
16530
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
16531
## ----------------------------------------------------------- ##
16533
) | sed "s/^/$as_me: WARNING: /" >&2
16536
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16537
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16538
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16539
echo $ECHO_N "(cached) $ECHO_C" >&6
16541
eval "$as_ac_Header=\$ac_header_preproc"
16543
ac_res=`eval echo '${'$as_ac_Header'}'`
16544
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16545
echo "${ECHO_T}$ac_res" >&6; }
16548
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16549
cat >>confdefs.h <<_ACEOF
16550
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16558
for ac_func in getpagesize
16560
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16561
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16562
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16563
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16564
echo $ECHO_N "(cached) $ECHO_C" >&6
16566
cat >conftest.$ac_ext <<_ACEOF
16569
cat confdefs.h >>conftest.$ac_ext
16570
cat >>conftest.$ac_ext <<_ACEOF
16571
/* end confdefs.h. */
16572
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16573
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16574
#define $ac_func innocuous_$ac_func
16576
/* System header to define __stub macros and hopefully few prototypes,
16577
which can conflict with char $ac_func (); below.
16578
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16579
<limits.h> exists even on freestanding compilers. */
16582
# include <limits.h>
16584
# include <assert.h>
16589
/* Override any GCC internal prototype to avoid an error.
16590
Use char because int might match the return type of a GCC
16591
builtin and then its argument prototype would still apply. */
16596
/* The GNU C library defines this for functions which it implements
16597
to always fail with ENOSYS. Some functions are actually named
16598
something starting with __ and the normal name is an alias. */
16599
#if defined __stub_$ac_func || defined __stub___$ac_func
16606
return $ac_func ();
16611
rm -f conftest.$ac_objext conftest$ac_exeext
16612
if { (ac_try="$ac_link"
16613
case "(($ac_try" in
16614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615
*) ac_try_echo=$ac_try;;
16617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618
(eval "$ac_link") 2>conftest.er1
16620
grep -v '^ *+' conftest.er1 >conftest.err
16622
cat conftest.err >&5
16623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624
(exit $ac_status); } && {
16625
test -z "$ac_c_werror_flag" ||
16626
test ! -s conftest.err
16627
} && test -s conftest$ac_exeext &&
16628
$as_test_x conftest$ac_exeext; then
16629
eval "$as_ac_var=yes"
16631
echo "$as_me: failed program was:" >&5
16632
sed 's/^/| /' conftest.$ac_ext >&5
16634
eval "$as_ac_var=no"
16637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638
conftest$ac_exeext conftest.$ac_ext
16640
ac_res=`eval echo '${'$as_ac_var'}'`
16641
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16642
echo "${ECHO_T}$ac_res" >&6; }
16643
if test `eval echo '${'$as_ac_var'}'` = yes; then
16644
cat >>confdefs.h <<_ACEOF
16645
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651
{ echo "$as_me:$LINENO: checking for working mmap" >&5
16652
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16653
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16654
echo $ECHO_N "(cached) $ECHO_C" >&6
16656
if test "$cross_compiling" = yes; then
16657
ac_cv_func_mmap_fixed_mapped=no
16659
cat >conftest.$ac_ext <<_ACEOF
16662
cat confdefs.h >>conftest.$ac_ext
16663
cat >>conftest.$ac_ext <<_ACEOF
16664
/* end confdefs.h. */
16665
$ac_includes_default
16666
/* malloc might have been renamed as rpl_malloc. */
16669
/* Thanks to Mike Haertel and Jim Avera for this test.
16670
Here is a matrix of mmap possibilities:
16671
mmap private not fixed
16672
mmap private fixed at somewhere currently unmapped
16673
mmap private fixed at somewhere already mapped
16674
mmap shared not fixed
16675
mmap shared fixed at somewhere currently unmapped
16676
mmap shared fixed at somewhere already mapped
16677
For private mappings, we should verify that changes cannot be read()
16678
back from the file, nor mmap's back from the file at a different
16679
address. (There have been systems where private was not correctly
16680
implemented like the infamous i386 svr4.0, and systems where the
16681
VM page cache was not coherent with the file system buffer cache
16682
like early versions of FreeBSD and possibly contemporary NetBSD.)
16683
For shared mappings, we should conversely verify that changes get
16684
propagated back to all the places they're supposed to be.
16686
Grep wants private fixed already mapped.
16687
The main things grep needs to know about mmap are:
16688
* does it exist and is it safe to write into the mmap'd area
16689
* how to use it (BSD variants) */
16692
#include <sys/mman.h>
16694
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16698
/* This mess was copied from the GNU getpagesize.h. */
16699
#ifndef HAVE_GETPAGESIZE
16700
/* Assume that all systems that can run configure have sys/param.h. */
16701
# ifndef HAVE_SYS_PARAM_H
16702
# define HAVE_SYS_PARAM_H 1
16705
# ifdef _SC_PAGESIZE
16706
# define getpagesize() sysconf(_SC_PAGESIZE)
16707
# else /* no _SC_PAGESIZE */
16708
# ifdef HAVE_SYS_PARAM_H
16709
# include <sys/param.h>
16710
# ifdef EXEC_PAGESIZE
16711
# define getpagesize() EXEC_PAGESIZE
16712
# else /* no EXEC_PAGESIZE */
16714
# define getpagesize() NBPG * CLSIZE
16717
# endif /* no CLSIZE */
16718
# else /* no NBPG */
16720
# define getpagesize() NBPC
16721
# else /* no NBPC */
16723
# define getpagesize() PAGESIZE
16724
# endif /* PAGESIZE */
16725
# endif /* no NBPC */
16726
# endif /* no NBPG */
16727
# endif /* no EXEC_PAGESIZE */
16728
# else /* no HAVE_SYS_PARAM_H */
16729
# define getpagesize() 8192 /* punt totally */
16730
# endif /* no HAVE_SYS_PARAM_H */
16731
# endif /* no _SC_PAGESIZE */
16733
#endif /* no HAVE_GETPAGESIZE */
16738
char *data, *data2, *data3;
16742
pagesize = getpagesize ();
16744
/* First, make a file with some known garbage in it. */
16745
data = (char *) malloc (pagesize);
16748
for (i = 0; i < pagesize; ++i)
16749
*(data + i) = rand ();
16751
fd = creat ("conftest.mmap", 0600);
16754
if (write (fd, data, pagesize) != pagesize)
16758
/* Next, try to mmap the file at a fixed address which already has
16759
something else allocated at it. If we can, also make sure that
16760
we see the same garbage. */
16761
fd = open ("conftest.mmap", O_RDWR);
16764
data2 = (char *) malloc (2 * pagesize);
16767
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16768
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16769
MAP_PRIVATE | MAP_FIXED, fd, 0L))
16771
for (i = 0; i < pagesize; ++i)
16772
if (*(data + i) != *(data2 + i))
16775
/* Finally, make sure that changes to the mapped area do not
16776
percolate back to the file as seen by read(). (This is a bug on
16777
some variants of i386 svr4.0.) */
16778
for (i = 0; i < pagesize; ++i)
16779
*(data2 + i) = *(data2 + i) + 1;
16780
data3 = (char *) malloc (pagesize);
16783
if (read (fd, data3, pagesize) != pagesize)
16785
for (i = 0; i < pagesize; ++i)
16786
if (*(data + i) != *(data3 + i))
16792
rm -f conftest$ac_exeext
16793
if { (ac_try="$ac_link"
16794
case "(($ac_try" in
16795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796
*) ac_try_echo=$ac_try;;
16798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799
(eval "$ac_link") 2>&5
16801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16803
{ (case "(($ac_try" in
16804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805
*) ac_try_echo=$ac_try;;
16807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808
(eval "$ac_try") 2>&5
16810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811
(exit $ac_status); }; }; then
16812
ac_cv_func_mmap_fixed_mapped=yes
16814
echo "$as_me: program exited with status $ac_status" >&5
16815
echo "$as_me: failed program was:" >&5
16816
sed 's/^/| /' conftest.$ac_ext >&5
16818
( exit $ac_status )
16819
ac_cv_func_mmap_fixed_mapped=no
16821
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16826
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16827
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
16828
if test $ac_cv_func_mmap_fixed_mapped = yes; then
16830
cat >>confdefs.h <<\_ACEOF
16831
#define HAVE_MMAP 1
16835
rm -f conftest.mmap
16838
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
16839
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
16840
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
16841
echo $ECHO_N "(cached) $ECHO_C" >&6
16843
rm -f conftest.sym conftest.file
16844
echo >conftest.file
16845
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16846
if test "$cross_compiling" = yes; then
16847
ac_cv_func_lstat_dereferences_slashed_symlink=no
16849
cat >conftest.$ac_ext <<_ACEOF
16852
cat confdefs.h >>conftest.$ac_ext
16853
cat >>conftest.$ac_ext <<_ACEOF
16854
/* end confdefs.h. */
16855
$ac_includes_default
16860
/* Linux will dereference the symlink and fail.
16861
That is better in the sense that it means we will not
16862
have to compile and use the lstat wrapper. */
16863
return lstat ("conftest.sym/", &sbuf) == 0;
16868
rm -f conftest$ac_exeext
16869
if { (ac_try="$ac_link"
16870
case "(($ac_try" in
16871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872
*) ac_try_echo=$ac_try;;
16874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875
(eval "$ac_link") 2>&5
16877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16879
{ (case "(($ac_try" in
16880
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881
*) ac_try_echo=$ac_try;;
16883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884
(eval "$ac_try") 2>&5
16886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887
(exit $ac_status); }; }; then
16888
ac_cv_func_lstat_dereferences_slashed_symlink=yes
16890
echo "$as_me: program exited with status $ac_status" >&5
16891
echo "$as_me: failed program was:" >&5
16892
sed 's/^/| /' conftest.$ac_ext >&5
16894
( exit $ac_status )
16895
ac_cv_func_lstat_dereferences_slashed_symlink=no
16897
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16902
# If the `ln -s' command failed, then we probably don't even
16903
# have an lstat function.
16904
ac_cv_func_lstat_dereferences_slashed_symlink=no
16906
rm -f conftest.sym conftest.file
16909
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16910
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16912
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16914
cat >>confdefs.h <<_ACEOF
16915
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16919
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16920
case " $LIBOBJS " in
16921
*" lstat.$ac_objext "* ) ;;
16922
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16928
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
16929
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
16930
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
16931
echo $ECHO_N "(cached) $ECHO_C" >&6
16933
if test "$cross_compiling" = yes; then
16934
ac_cv_func_stat_empty_string_bug=yes
16936
cat >conftest.$ac_ext <<_ACEOF
16939
cat confdefs.h >>conftest.$ac_ext
16940
cat >>conftest.$ac_ext <<_ACEOF
16941
/* end confdefs.h. */
16942
$ac_includes_default
16947
return stat ("", &sbuf) == 0;
16952
rm -f conftest$ac_exeext
16953
if { (ac_try="$ac_link"
16954
case "(($ac_try" in
16955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956
*) ac_try_echo=$ac_try;;
16958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959
(eval "$ac_link") 2>&5
16961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16963
{ (case "(($ac_try" in
16964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965
*) ac_try_echo=$ac_try;;
16967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968
(eval "$ac_try") 2>&5
16970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971
(exit $ac_status); }; }; then
16972
ac_cv_func_stat_empty_string_bug=no
16974
echo "$as_me: program exited with status $ac_status" >&5
16975
echo "$as_me: failed program was:" >&5
16976
sed 's/^/| /' conftest.$ac_ext >&5
16978
( exit $ac_status )
16979
ac_cv_func_stat_empty_string_bug=yes
16981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16986
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
16987
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
16988
if test $ac_cv_func_stat_empty_string_bug = yes; then
16989
case " $LIBOBJS " in
16990
*" stat.$ac_objext "* ) ;;
16991
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
16996
cat >>confdefs.h <<_ACEOF
16997
#define HAVE_STAT_EMPTY_STRING_BUG 1
17002
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
17003
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
17004
if test "${ac_cv_func_strcoll_works+set}" = set; then
17005
echo $ECHO_N "(cached) $ECHO_C" >&6
17007
if test "$cross_compiling" = yes; then
17008
ac_cv_func_strcoll_works=no
17010
cat >conftest.$ac_ext <<_ACEOF
17013
cat confdefs.h >>conftest.$ac_ext
17014
cat >>conftest.$ac_ext <<_ACEOF
17015
/* end confdefs.h. */
17016
$ac_includes_default
17020
return (strcoll ("abc", "def") >= 0 ||
17021
strcoll ("ABC", "DEF") >= 0 ||
17022
strcoll ("123", "456") >= 0)
17027
rm -f conftest$ac_exeext
17028
if { (ac_try="$ac_link"
17029
case "(($ac_try" in
17030
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031
*) ac_try_echo=$ac_try;;
17033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034
(eval "$ac_link") 2>&5
17036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17038
{ (case "(($ac_try" in
17039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040
*) ac_try_echo=$ac_try;;
17042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043
(eval "$ac_try") 2>&5
17045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046
(exit $ac_status); }; }; then
17047
ac_cv_func_strcoll_works=yes
17049
echo "$as_me: program exited with status $ac_status" >&5
17050
echo "$as_me: failed program was:" >&5
17051
sed 's/^/| /' conftest.$ac_ext >&5
17053
( exit $ac_status )
17054
ac_cv_func_strcoll_works=no
17056
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17061
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
17062
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
17063
if test $ac_cv_func_strcoll_works = yes; then
17065
cat >>confdefs.h <<\_ACEOF
17066
#define HAVE_STRCOLL 1
17071
{ echo "$as_me:$LINENO: checking for working strtod" >&5
17072
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
17073
if test "${ac_cv_func_strtod+set}" = set; then
17074
echo $ECHO_N "(cached) $ECHO_C" >&6
17076
if test "$cross_compiling" = yes; then
17077
ac_cv_func_strtod=no
17079
cat >conftest.$ac_ext <<_ACEOF
17082
cat confdefs.h >>conftest.$ac_ext
17083
cat >>conftest.$ac_ext <<_ACEOF
17084
/* end confdefs.h. */
17086
$ac_includes_default
17094
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
17095
char *string = " +69";
17098
value = strtod (string, &term);
17099
if (value != 69 || term != (string + 4))
17104
/* Under Solaris 2.4, strtod returns the wrong value for the
17105
terminating character under some conditions. */
17106
char *string = "NaN";
17108
strtod (string, &term);
17109
if (term != string && *(term - 1) == 0)
17116
rm -f conftest$ac_exeext
17117
if { (ac_try="$ac_link"
17118
case "(($ac_try" in
17119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120
*) ac_try_echo=$ac_try;;
17122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123
(eval "$ac_link") 2>&5
17125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17127
{ (case "(($ac_try" in
17128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129
*) ac_try_echo=$ac_try;;
17131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132
(eval "$ac_try") 2>&5
17134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135
(exit $ac_status); }; }; then
17136
ac_cv_func_strtod=yes
17138
echo "$as_me: program exited with status $ac_status" >&5
17139
echo "$as_me: failed program was:" >&5
17140
sed 's/^/| /' conftest.$ac_ext >&5
17142
( exit $ac_status )
17143
ac_cv_func_strtod=no
17145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17150
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
17151
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
17152
if test $ac_cv_func_strtod = no; then
17153
case " $LIBOBJS " in
17154
*" strtod.$ac_objext "* ) ;;
17155
*) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17159
{ echo "$as_me:$LINENO: checking for pow" >&5
17160
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
17161
if test "${ac_cv_func_pow+set}" = set; then
17162
echo $ECHO_N "(cached) $ECHO_C" >&6
17164
cat >conftest.$ac_ext <<_ACEOF
17167
cat confdefs.h >>conftest.$ac_ext
17168
cat >>conftest.$ac_ext <<_ACEOF
17169
/* end confdefs.h. */
17170
/* Define pow to an innocuous variant, in case <limits.h> declares pow.
17171
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17172
#define pow innocuous_pow
17174
/* System header to define __stub macros and hopefully few prototypes,
17175
which can conflict with char pow (); below.
17176
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177
<limits.h> exists even on freestanding compilers. */
17180
# include <limits.h>
17182
# include <assert.h>
17187
/* Override any GCC internal prototype to avoid an error.
17188
Use char because int might match the return type of a GCC
17189
builtin and then its argument prototype would still apply. */
17194
/* The GNU C library defines this for functions which it implements
17195
to always fail with ENOSYS. Some functions are actually named
17196
something starting with __ and the normal name is an alias. */
17197
#if defined __stub_pow || defined __stub___pow
17209
rm -f conftest.$ac_objext conftest$ac_exeext
17210
if { (ac_try="$ac_link"
17211
case "(($ac_try" in
17212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213
*) ac_try_echo=$ac_try;;
17215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216
(eval "$ac_link") 2>conftest.er1
17218
grep -v '^ *+' conftest.er1 >conftest.err
17220
cat conftest.err >&5
17221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222
(exit $ac_status); } && {
17223
test -z "$ac_c_werror_flag" ||
17224
test ! -s conftest.err
17225
} && test -s conftest$ac_exeext &&
17226
$as_test_x conftest$ac_exeext; then
17229
echo "$as_me: failed program was:" >&5
17230
sed 's/^/| /' conftest.$ac_ext >&5
17235
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236
conftest$ac_exeext conftest.$ac_ext
17238
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
17239
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
17241
if test $ac_cv_func_pow = no; then
17242
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
17243
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17244
if test "${ac_cv_lib_m_pow+set}" = set; then
17245
echo $ECHO_N "(cached) $ECHO_C" >&6
17247
ac_check_lib_save_LIBS=$LIBS
17249
cat >conftest.$ac_ext <<_ACEOF
17252
cat confdefs.h >>conftest.$ac_ext
17253
cat >>conftest.$ac_ext <<_ACEOF
17254
/* end confdefs.h. */
17256
/* Override any GCC internal prototype to avoid an error.
17257
Use char because int might match the return type of a GCC
17258
builtin and then its argument prototype would still apply. */
17271
rm -f conftest.$ac_objext conftest$ac_exeext
17272
if { (ac_try="$ac_link"
17273
case "(($ac_try" in
17274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275
*) ac_try_echo=$ac_try;;
17277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278
(eval "$ac_link") 2>conftest.er1
17280
grep -v '^ *+' conftest.er1 >conftest.err
17282
cat conftest.err >&5
17283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284
(exit $ac_status); } && {
17285
test -z "$ac_c_werror_flag" ||
17286
test ! -s conftest.err
17287
} && test -s conftest$ac_exeext &&
17288
$as_test_x conftest$ac_exeext; then
17289
ac_cv_lib_m_pow=yes
17291
echo "$as_me: failed program was:" >&5
17292
sed 's/^/| /' conftest.$ac_ext >&5
17297
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298
conftest$ac_exeext conftest.$ac_ext
17299
LIBS=$ac_check_lib_save_LIBS
17301
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17302
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17303
if test $ac_cv_lib_m_pow = yes; then
17306
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
17307
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17315
for ac_func in vprintf
17317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17321
echo $ECHO_N "(cached) $ECHO_C" >&6
17323
cat >conftest.$ac_ext <<_ACEOF
17326
cat confdefs.h >>conftest.$ac_ext
17327
cat >>conftest.$ac_ext <<_ACEOF
17328
/* end confdefs.h. */
17329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17330
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17331
#define $ac_func innocuous_$ac_func
17333
/* System header to define __stub macros and hopefully few prototypes,
17334
which can conflict with char $ac_func (); below.
17335
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17336
<limits.h> exists even on freestanding compilers. */
17339
# include <limits.h>
17341
# include <assert.h>
17346
/* Override any GCC internal prototype to avoid an error.
17347
Use char because int might match the return type of a GCC
17348
builtin and then its argument prototype would still apply. */
17353
/* The GNU C library defines this for functions which it implements
17354
to always fail with ENOSYS. Some functions are actually named
17355
something starting with __ and the normal name is an alias. */
17356
#if defined __stub_$ac_func || defined __stub___$ac_func
17363
return $ac_func ();
17368
rm -f conftest.$ac_objext conftest$ac_exeext
17369
if { (ac_try="$ac_link"
17370
case "(($ac_try" in
17371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372
*) ac_try_echo=$ac_try;;
17374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375
(eval "$ac_link") 2>conftest.er1
17377
grep -v '^ *+' conftest.er1 >conftest.err
17379
cat conftest.err >&5
17380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381
(exit $ac_status); } && {
17382
test -z "$ac_c_werror_flag" ||
17383
test ! -s conftest.err
17384
} && test -s conftest$ac_exeext &&
17385
$as_test_x conftest$ac_exeext; then
17386
eval "$as_ac_var=yes"
17388
echo "$as_me: failed program was:" >&5
17389
sed 's/^/| /' conftest.$ac_ext >&5
17391
eval "$as_ac_var=no"
17394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395
conftest$ac_exeext conftest.$ac_ext
17397
ac_res=`eval echo '${'$as_ac_var'}'`
17398
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17399
echo "${ECHO_T}$ac_res" >&6; }
17400
if test `eval echo '${'$as_ac_var'}'` = yes; then
17401
cat >>confdefs.h <<_ACEOF
17402
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17405
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
17406
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
17407
if test "${ac_cv_func__doprnt+set}" = set; then
17408
echo $ECHO_N "(cached) $ECHO_C" >&6
17410
cat >conftest.$ac_ext <<_ACEOF
17413
cat confdefs.h >>conftest.$ac_ext
17414
cat >>conftest.$ac_ext <<_ACEOF
17415
/* end confdefs.h. */
17416
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
17417
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17418
#define _doprnt innocuous__doprnt
17420
/* System header to define __stub macros and hopefully few prototypes,
17421
which can conflict with char _doprnt (); below.
17422
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17423
<limits.h> exists even on freestanding compilers. */
17426
# include <limits.h>
17428
# include <assert.h>
17433
/* Override any GCC internal prototype to avoid an error.
17434
Use char because int might match the return type of a GCC
17435
builtin and then its argument prototype would still apply. */
17440
/* The GNU C library defines this for functions which it implements
17441
to always fail with ENOSYS. Some functions are actually named
17442
something starting with __ and the normal name is an alias. */
17443
#if defined __stub__doprnt || defined __stub____doprnt
17455
rm -f conftest.$ac_objext conftest$ac_exeext
17456
if { (ac_try="$ac_link"
17457
case "(($ac_try" in
17458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459
*) ac_try_echo=$ac_try;;
17461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462
(eval "$ac_link") 2>conftest.er1
17464
grep -v '^ *+' conftest.er1 >conftest.err
17466
cat conftest.err >&5
17467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468
(exit $ac_status); } && {
17469
test -z "$ac_c_werror_flag" ||
17470
test ! -s conftest.err
17471
} && test -s conftest$ac_exeext &&
17472
$as_test_x conftest$ac_exeext; then
17473
ac_cv_func__doprnt=yes
17475
echo "$as_me: failed program was:" >&5
17476
sed 's/^/| /' conftest.$ac_ext >&5
17478
ac_cv_func__doprnt=no
17481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17482
conftest$ac_exeext conftest.$ac_ext
17484
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17485
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
17486
if test $ac_cv_func__doprnt = yes; then
17488
cat >>confdefs.h <<\_ACEOF
17489
#define HAVE_DOPRNT 1
17522
for ac_func in __argz_count __argz_next __argz_stringify atexit bcopy getcwd localtime_r memmove mempcpy memset mkdir munmap nl_langinfo scandir setlocale stpcpy strcasecmp strchr strcspn strdup strncasecmp strndup strstr strtoul
17524
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17526
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17527
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17528
echo $ECHO_N "(cached) $ECHO_C" >&6
17530
cat >conftest.$ac_ext <<_ACEOF
17533
cat confdefs.h >>conftest.$ac_ext
17534
cat >>conftest.$ac_ext <<_ACEOF
17535
/* end confdefs.h. */
17536
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538
#define $ac_func innocuous_$ac_func
17540
/* System header to define __stub macros and hopefully few prototypes,
17541
which can conflict with char $ac_func (); below.
17542
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543
<limits.h> exists even on freestanding compilers. */
17546
# include <limits.h>
17548
# include <assert.h>
17553
/* Override any GCC internal prototype to avoid an error.
17554
Use char because int might match the return type of a GCC
17555
builtin and then its argument prototype would still apply. */
17560
/* The GNU C library defines this for functions which it implements
17561
to always fail with ENOSYS. Some functions are actually named
17562
something starting with __ and the normal name is an alias. */
17563
#if defined __stub_$ac_func || defined __stub___$ac_func
17570
return $ac_func ();
17575
rm -f conftest.$ac_objext conftest$ac_exeext
17576
if { (ac_try="$ac_link"
17577
case "(($ac_try" in
17578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579
*) ac_try_echo=$ac_try;;
17581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582
(eval "$ac_link") 2>conftest.er1
17584
grep -v '^ *+' conftest.er1 >conftest.err
17586
cat conftest.err >&5
17587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588
(exit $ac_status); } && {
17589
test -z "$ac_c_werror_flag" ||
17590
test ! -s conftest.err
17591
} && test -s conftest$ac_exeext &&
17592
$as_test_x conftest$ac_exeext; then
17593
eval "$as_ac_var=yes"
17595
echo "$as_me: failed program was:" >&5
17596
sed 's/^/| /' conftest.$ac_ext >&5
17598
eval "$as_ac_var=no"
17601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602
conftest$ac_exeext conftest.$ac_ext
17604
ac_res=`eval echo '${'$as_ac_var'}'`
17605
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17606
echo "${ECHO_T}$ac_res" >&6; }
17607
if test `eval echo '${'$as_ac_var'}'` = yes; then
17608
cat >>confdefs.h <<_ACEOF
17609
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17616
# Set PACKAGE_DATA_DIR
17617
PACKAGE_DATA_DIR="data"
17620
#AM_CONDITIONAL(BUILD_MINGW32, test "$native_win32" = yes)
17622
if test $native_win32 = yes; then
17624
cat >>confdefs.h <<\_ACEOF
17625
#define BUILD_MINGW32 1
17628
CFLAGS="$CFLAGS -D__GW32__"
17629
LIBS="$LIBS -luuid -lole32 -lwsock32 -mwindows"
17630
CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
17631
# Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
17632
set dummy "$target_alias-windres"; ac_word=$2
17633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17635
if test "${ac_cv_path_WINDRES+set}" = set; then
17636
echo $ECHO_N "(cached) $ECHO_C" >&6
17640
ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
17643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17644
for as_dir in $PATH
17647
test -z "$as_dir" && as_dir=.
17648
for ac_exec_ext in '' $ac_executable_extensions; do
17649
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17650
ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
17651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17658
test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
17662
WINDRES=$ac_cv_path_WINDRES
17663
if test -n "$WINDRES"; then
17664
{ echo "$as_me:$LINENO: result: $WINDRES" >&5
17665
echo "${ECHO_T}$WINDRES" >&6; }
17667
{ echo "$as_me:$LINENO: result: no" >&5
17668
echo "${ECHO_T}no" >&6; }
17675
# ------------------------------------------------------------
17676
# Support for building NSIS Win32 installer:
17677
# ------------------------------------------------------------
8102
17679
NSI_INSTALL_DIR=mingw32