2754
# Don't try gcc -ansi; that turns off useful extensions and
2755
# breaks some systems' header files.
2756
# AIX -qlanglvl=ansi
2757
# Ultrix and OSF/1 -std1
2758
# HP-UX 10.20 and later -Ae
2759
# HP-UX older versions -Aa -D_HPUX_SOURCE
2760
# SVR4 -Xc -D__EXTENSIONS__
2761
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2763
3827
CC="$ac_save_CC $ac_arg"
2764
3828
rm -f conftest.$ac_objext
2765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766
(eval $ac_compile) 2>conftest.er1
3829
if { (ac_try="$ac_compile"
3831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832
*) ac_try_echo=$ac_try;;
3834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835
(eval "$ac_compile") 2>conftest.er1
2768
3837
grep -v '^ *+' conftest.er1 >conftest.err
2769
3838
rm -f conftest.er1
2770
3839
cat conftest.err >&5
2771
3840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
3841
(exit $ac_status); } &&
2773
{ ac_try='test -z "$ac_c_werror_flag"
2774
|| test ! -s conftest.err'
2775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3843
{ (case "(($ac_try" in
3844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845
*) ac_try_echo=$ac_try;;
3847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848
(eval "$ac_try") 2>&5
2778
3850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
3851
(exit $ac_status); }; } &&
2780
3852
{ ac_try='test -s conftest.$ac_objext'
2781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853
{ (case "(($ac_try" in
3854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855
*) ac_try_echo=$ac_try;;
3857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858
(eval "$ac_try") 2>&5
2784
3860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
3861
(exit $ac_status); }; }; then
2786
ac_cv_prog_cc_stdc=$ac_arg
3862
ac_cv_prog_cc_c89=$ac_arg
2789
3864
echo "$as_me: failed program was:" >&5
2790
3865
sed 's/^/| /' conftest.$ac_ext >&5
2793
rm -f conftest.err conftest.$ac_objext
3870
rm -f core conftest.err conftest.$ac_objext
3871
test "x$ac_cv_prog_cc_c89" != "xno" && break
2795
rm -f conftest.$ac_ext conftest.$ac_objext
3873
rm -f conftest.$ac_ext
2800
case "x$ac_cv_prog_cc_stdc" in
2802
echo "$as_me:$LINENO: result: none needed" >&5
2803
echo "${ECHO_T}none needed" >&6 ;;
3878
case "x$ac_cv_prog_cc_c89" in
3880
{ echo "$as_me:$LINENO: result: none needed" >&5
3881
echo "${ECHO_T}none needed" >&6; } ;;
3883
{ echo "$as_me:$LINENO: result: unsupported" >&5
3884
echo "${ECHO_T}unsupported" >&6; } ;;
2805
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2806
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2807
CC="$CC $ac_cv_prog_cc_stdc" ;;
2810
# Some people use a C++ compiler to compile C. Since we use `exit',
2811
# in C++ we need to declare it. In case someone uses the same compiler
2812
# for both compiling C and C++ we need to have the C++ compiler decide
2813
# the declaration of exit, since it's the most demanding environment.
2814
cat >conftest.$ac_ext <<_ACEOF
3886
CC="$CC $ac_cv_prog_cc_c89"
3887
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3888
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3893
ac_cpp='$CPP $CPPFLAGS'
3894
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
depcc="$CC" am_compiler_list=
3900
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3901
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3902
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3903
echo $ECHO_N "(cached) $ECHO_C" >&6
3905
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3906
# We make a subdir and do the tests there. Otherwise we can end up
3907
# making bogus files that we don't know about and never remove. For
3908
# instance it was reported that on HP-UX the gcc test will end up
3909
# making a dummy file named `D' -- because `-MD' means `put the output
3912
# Copy depcomp to subdir because otherwise we won't find it if we're
3913
# using a relative directory.
3914
cp "$am_depcomp" conftest.dir
3916
# We will build objects and dependencies in a subdirectory because
3917
# it helps to detect inapplicable dependency modes. For instance
3918
# both Tru64's cc and ICC support -MD to output dependencies as a
3919
# side effect of compilation, but ICC will put the dependencies in
3920
# the current directory while Tru64 will put them in the object
3924
am_cv_CC_dependencies_compiler_type=none
3925
if test "$am_compiler_list" = ""; then
3926
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3928
for depmode in $am_compiler_list; do
3929
# Setup a source with many dependencies, because some compilers
3930
# like to wrap large dependency lists on column 80 (with \), and
3931
# we should not choose a depcomp mode which is confused by this.
3933
# We need to recreate these files for each test, as the compiler may
3934
# overwrite some of them when testing with obscure command lines.
3935
# This happens at least with the AIX C compiler.
3937
for i in 1 2 3 4 5 6; do
3938
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3939
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3940
# Solaris 8's {/usr,}/bin/sh.
3941
touch sub/conftst$i.h
3943
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3947
# after this tag, mechanisms are not by side-effect, so they'll
3948
# only be used when explicitly requested
3949
if test "x$enable_dependency_tracking" = xyes; then
3957
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3958
# mode. It turns out that the SunPro C++ compiler does not properly
3959
# handle `-M -o', and we need to detect this.
3960
if depmode=$depmode \
3961
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3962
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3963
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3964
>/dev/null 2>conftest.err &&
3965
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3966
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3967
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3968
# icc doesn't choke on unknown options, it will just issue warnings
3969
# or remarks (even with -Werror). So we grep stderr for any message
3970
# that says an option was ignored or not supported.
3971
# When given -MP, icc 7.0 and 7.1 complain thusly:
3972
# icc: Command line warning: ignoring option '-M'; no argument required
3973
# The diagnosis changed in icc 8.0:
3974
# icc: Command line remark: option '-MP' not supported
3975
if (grep 'ignoring option' conftest.err ||
3976
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3977
am_cv_CC_dependencies_compiler_type=$depmode
3986
am_cv_CC_dependencies_compiler_type=none
3990
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3991
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3992
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3997
test "x$enable_dependency_tracking" != xno \
3998
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4000
am__fastdepCC_FALSE='#'
4002
am__fastdepCC_TRUE='#'
4003
am__fastdepCC_FALSE=
4007
# Make sure we can run config.sub.
4008
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4009
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4010
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4011
{ (exit 1); exit 1; }; }
4013
{ echo "$as_me:$LINENO: checking build system type" >&5
4014
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4015
if test "${ac_cv_build+set}" = set; then
4016
echo $ECHO_N "(cached) $ECHO_C" >&6
4018
ac_build_alias=$build_alias
4019
test "x$ac_build_alias" = x &&
4020
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4021
test "x$ac_build_alias" = x &&
4022
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4023
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4024
{ (exit 1); exit 1; }; }
4025
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4026
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4027
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4028
{ (exit 1); exit 1; }; }
4031
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4032
echo "${ECHO_T}$ac_cv_build" >&6; }
4033
case $ac_cv_build in
4035
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4036
echo "$as_me: error: invalid value of canonical build" >&2;}
4037
{ (exit 1); exit 1; }; };;
4040
ac_save_IFS=$IFS; IFS='-'
4046
# Remember, the first character of IFS is used to create $*,
4047
# except with old shells:
4050
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4053
{ echo "$as_me:$LINENO: checking host system type" >&5
4054
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4055
if test "${ac_cv_host+set}" = set; then
4056
echo $ECHO_N "(cached) $ECHO_C" >&6
4058
if test "x$host_alias" = x; then
4059
ac_cv_host=$ac_cv_build
4061
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4062
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4063
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4064
{ (exit 1); exit 1; }; }
4068
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4069
echo "${ECHO_T}$ac_cv_host" >&6; }
4072
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4073
echo "$as_me: error: invalid value of canonical host" >&2;}
4074
{ (exit 1); exit 1; }; };;
4077
ac_save_IFS=$IFS; IFS='-'
4083
# Remember, the first character of IFS is used to create $*,
4084
# except with old shells:
4087
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4092
ac_cpp='$CPP $CPPFLAGS'
4093
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4097
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4098
# On Suns, sometimes $CPP names a directory.
4099
if test -n "$CPP" && test -d "$CPP"; then
4102
if test -z "$CPP"; then
4103
if test "${ac_cv_prog_CPP+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
# Double quotes because CPP needs to be expanded
4107
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110
for ac_c_preproc_warn_flag in '' yes
4112
# Use a header file that comes with gcc, so configuring glibc
4113
# with a fresh cross-compiler works.
4114
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115
# <limits.h> exists even on freestanding compilers.
4116
# On the NeXT, cc -E runs the code through the compiler's parser,
4117
# not just through cpp. "Syntax error" is here to catch this case.
4118
cat >conftest.$ac_ext <<_ACEOF
4121
cat confdefs.h >>conftest.$ac_ext
4122
cat >>conftest.$ac_ext <<_ACEOF
4123
/* end confdefs.h. */
4125
# include <limits.h>
4127
# include <assert.h>
2819
rm -f conftest.$ac_objext
2820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821
(eval $ac_compile) 2>conftest.er1
2823
grep -v '^ *+' conftest.er1 >conftest.err
2825
cat conftest.err >&5
2826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827
(exit $ac_status); } &&
2828
{ ac_try='test -z "$ac_c_werror_flag"
2829
|| test ! -s conftest.err'
2830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
(exit $ac_status); }; } &&
2835
{ ac_try='test -s conftest.$ac_objext'
2836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
(exit $ac_status); }; }; then
2841
for ac_declaration in \
2843
'extern "C" void std::exit (int) throw (); using std::exit;' \
2844
'extern "C" void std::exit (int); using std::exit;' \
2845
'extern "C" void exit (int) throw ();' \
2846
'extern "C" void exit (int);' \
2849
cat >conftest.$ac_ext <<_ACEOF
2852
cat confdefs.h >>conftest.$ac_ext
2853
cat >>conftest.$ac_ext <<_ACEOF
2854
/* end confdefs.h. */
2865
rm -f conftest.$ac_objext
2866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867
(eval $ac_compile) 2>conftest.er1
2869
grep -v '^ *+' conftest.er1 >conftest.err
2871
cat conftest.err >&5
2872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873
(exit $ac_status); } &&
2874
{ ac_try='test -z "$ac_c_werror_flag"
2875
|| test ! -s conftest.err'
2876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880
(exit $ac_status); }; } &&
2881
{ ac_try='test -s conftest.$ac_objext'
2882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
(exit $ac_status); }; }; then
4131
if { (ac_try="$ac_cpp conftest.$ac_ext"
4133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134
*) ac_try_echo=$ac_try;;
4136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4139
grep -v '^ *+' conftest.er1 >conftest.err
4141
cat conftest.err >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); } >/dev/null; then
4144
if test -s conftest.err; then
4145
ac_cpp_err=$ac_c_preproc_warn_flag
4146
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4153
if test -z "$ac_cpp_err"; then
2889
4156
echo "$as_me: failed program was:" >&5
2890
4157
sed 's/^/| /' conftest.$ac_ext >&5
4159
# Broken: fails on valid input.
2894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163
rm -f conftest.err conftest.$ac_ext
4165
# OK, works on sane cases. Now check whether nonexistent headers
4166
# can be detected and how.
2895
4167
cat >conftest.$ac_ext <<_ACEOF
2896
4168
/* confdefs.h. */
2898
4170
cat confdefs.h >>conftest.$ac_ext
2899
4171
cat >>conftest.$ac_ext <<_ACEOF
2900
4172
/* end confdefs.h. */
4173
#include <ac_nonexistent.h>
2910
rm -f conftest.$ac_objext
2911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912
(eval $ac_compile) 2>conftest.er1
4175
if { (ac_try="$ac_cpp conftest.$ac_ext"
4177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178
*) ac_try_echo=$ac_try;;
4180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2914
4183
grep -v '^ *+' conftest.er1 >conftest.err
2915
4184
rm -f conftest.er1
2916
4185
cat conftest.err >&5
2917
4186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918
(exit $ac_status); } &&
2919
{ ac_try='test -z "$ac_c_werror_flag"
2920
|| test ! -s conftest.err'
2921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
(exit $ac_status); }; } &&
2926
{ ac_try='test -s conftest.$ac_objext'
2927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
(exit $ac_status); }; }; then
4187
(exit $ac_status); } >/dev/null; then
4188
if test -s conftest.err; then
4189
ac_cpp_err=$ac_c_preproc_warn_flag
4190
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4197
if test -z "$ac_cpp_err"; then
4198
# Broken: success on invalid input.
4201
echo "$as_me: failed program was:" >&5
4202
sed 's/^/| /' conftest.$ac_ext >&5
4204
# Passes both tests.
4209
rm -f conftest.err conftest.$ac_ext
4212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213
rm -f conftest.err conftest.$ac_ext
4214
if $ac_preproc_ok; then
2934
echo "$as_me: failed program was:" >&5
2935
sed 's/^/| /' conftest.$ac_ext >&5
2938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226
{ echo "$as_me:$LINENO: result: $CPP" >&5
4227
echo "${ECHO_T}$CPP" >&6; }
4229
for ac_c_preproc_warn_flag in '' yes
4231
# Use a header file that comes with gcc, so configuring glibc
4232
# with a fresh cross-compiler works.
4233
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234
# <limits.h> exists even on freestanding compilers.
4235
# On the NeXT, cc -E runs the code through the compiler's parser,
4236
# not just through cpp. "Syntax error" is here to catch this case.
4237
cat >conftest.$ac_ext <<_ACEOF
4240
cat confdefs.h >>conftest.$ac_ext
4241
cat >>conftest.$ac_ext <<_ACEOF
4242
/* end confdefs.h. */
4244
# include <limits.h>
4246
# include <assert.h>
4250
if { (ac_try="$ac_cpp conftest.$ac_ext"
4252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253
*) ac_try_echo=$ac_try;;
4255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4258
grep -v '^ *+' conftest.er1 >conftest.err
4260
cat conftest.err >&5
4261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
(exit $ac_status); } >/dev/null; then
4263
if test -s conftest.err; then
4264
ac_cpp_err=$ac_c_preproc_warn_flag
4265
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272
if test -z "$ac_cpp_err"; then
4275
echo "$as_me: failed program was:" >&5
4276
sed 's/^/| /' conftest.$ac_ext >&5
4278
# Broken: fails on valid input.
4282
rm -f conftest.err conftest.$ac_ext
4284
# OK, works on sane cases. Now check whether nonexistent headers
4285
# can be detected and how.
4286
cat >conftest.$ac_ext <<_ACEOF
4289
cat confdefs.h >>conftest.$ac_ext
4290
cat >>conftest.$ac_ext <<_ACEOF
4291
/* end confdefs.h. */
4292
#include <ac_nonexistent.h>
4294
if { (ac_try="$ac_cpp conftest.$ac_ext"
4296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297
*) ac_try_echo=$ac_try;;
4299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4302
grep -v '^ *+' conftest.er1 >conftest.err
4304
cat conftest.err >&5
4305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
(exit $ac_status); } >/dev/null; then
4307
if test -s conftest.err; then
4308
ac_cpp_err=$ac_c_preproc_warn_flag
4309
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4316
if test -z "$ac_cpp_err"; then
4317
# Broken: success on invalid input.
4320
echo "$as_me: failed program was:" >&5
4321
sed 's/^/| /' conftest.$ac_ext >&5
4323
# Passes both tests.
4328
rm -f conftest.err conftest.$ac_ext
2941
if test -n "$ac_declaration"; then
2942
echo '#ifdef __cplusplus' >>confdefs.h
2943
echo $ac_declaration >>confdefs.h
2944
echo '#endif' >>confdefs.h
4331
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4332
rm -f conftest.err conftest.$ac_ext
4333
if $ac_preproc_ok; then
2948
echo "$as_me: failed program was:" >&5
2949
sed 's/^/| /' conftest.$ac_ext >&5
4336
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4337
See \`config.log' for more details." >&5
4338
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4339
See \`config.log' for more details." >&2;}
4340
{ (exit 1); exit 1; }; }
2952
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954
4344
ac_cpp='$CPP $CPPFLAGS'
2955
4345
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956
4346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957
4347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
DEPDIR="${am__leading_dot}deps"
2960
ac_config_commands="$ac_config_commands depfiles"
2963
am_make=${MAKE-make}
2964
cat > confinc << 'END'
2969
# If we don't find an include directive, just comment out the code.
2970
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2971
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2975
# First try GNU make style include.
2976
echo "include confinc" > confmf
2977
# We grep out `Entering directory' and `Leaving directory'
2978
# messages which can occur if `w' ends up in MAKEFLAGS.
2979
# In particular we don't look at `^make:' because GNU make might
2980
# be invoked under some other name (usually "gmake"), in which
2981
# case it prints its new name instead of `make'.
2982
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2987
# Now try BSD make style include.
2988
if test "$am__include" = "#"; then
2989
echo '.include "confinc"' > confmf
2990
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2991
am__include=.include
4350
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4351
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4352
if test "${ac_cv_path_GREP+set}" = set; then
4353
echo $ECHO_N "(cached) $ECHO_C" >&6
4355
# Extract the first word of "grep ggrep" to use in msg output
4356
if test -z "$GREP"; then
4357
set dummy grep ggrep; ac_prog_name=$2
4358
if test "${ac_cv_path_GREP+set}" = set; then
4359
echo $ECHO_N "(cached) $ECHO_C" >&6
4361
ac_path_GREP_found=false
4362
# Loop through the user's path and test for each of PROGNAME-LIST
4363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367
test -z "$as_dir" && as_dir=.
4368
for ac_prog in grep ggrep; do
4369
for ac_exec_ext in '' $ac_executable_extensions; do
4370
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4371
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4372
# Check for GNU ac_path_GREP and select it if it is found.
4373
# Check for GNU $ac_path_GREP
4374
case `"$ac_path_GREP" --version 2>&1` in
4376
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4379
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4382
cat "conftest.in" "conftest.in" >"conftest.tmp"
4383
mv "conftest.tmp" "conftest.in"
4384
cp "conftest.in" "conftest.nl"
4385
echo 'GREP' >> "conftest.nl"
4386
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388
ac_count=`expr $ac_count + 1`
4389
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4390
# Best one so far, save it but keep looking for a better one
4391
ac_cv_path_GREP="$ac_path_GREP"
4392
ac_path_GREP_max=$ac_count
4394
# 10*(2^10) chars as input seems more than enough
4395
test $ac_count -gt 10 && break
4397
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4401
$ac_path_GREP_found && break 3
4411
GREP="$ac_cv_path_GREP"
4412
if test -z "$GREP"; then
4413
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4414
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4415
{ (exit 1); exit 1; }; }
4419
ac_cv_path_GREP=$GREP
4424
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4425
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4426
GREP="$ac_cv_path_GREP"
4429
{ echo "$as_me:$LINENO: checking for egrep" >&5
4430
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4431
if test "${ac_cv_path_EGREP+set}" = set; then
4432
echo $ECHO_N "(cached) $ECHO_C" >&6
4434
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4435
then ac_cv_path_EGREP="$GREP -E"
4437
# Extract the first word of "egrep" to use in msg output
4438
if test -z "$EGREP"; then
4439
set dummy egrep; ac_prog_name=$2
4440
if test "${ac_cv_path_EGREP+set}" = set; then
4441
echo $ECHO_N "(cached) $ECHO_C" >&6
4443
ac_path_EGREP_found=false
4444
# Loop through the user's path and test for each of PROGNAME-LIST
4445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449
test -z "$as_dir" && as_dir=.
4450
for ac_prog in egrep; do
4451
for ac_exec_ext in '' $ac_executable_extensions; do
4452
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4453
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4454
# Check for GNU ac_path_EGREP and select it if it is found.
4455
# Check for GNU $ac_path_EGREP
4456
case `"$ac_path_EGREP" --version 2>&1` in
4458
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4461
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4464
cat "conftest.in" "conftest.in" >"conftest.tmp"
4465
mv "conftest.tmp" "conftest.in"
4466
cp "conftest.in" "conftest.nl"
4467
echo 'EGREP' >> "conftest.nl"
4468
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470
ac_count=`expr $ac_count + 1`
4471
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4472
# Best one so far, save it but keep looking for a better one
4473
ac_cv_path_EGREP="$ac_path_EGREP"
4474
ac_path_EGREP_max=$ac_count
4476
# 10*(2^10) chars as input seems more than enough
4477
test $ac_count -gt 10 && break
4479
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483
$ac_path_EGREP_found && break 3
4493
EGREP="$ac_cv_path_EGREP"
4494
if test -z "$EGREP"; then
4495
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4496
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4497
{ (exit 1); exit 1; }; }
4501
ac_cv_path_EGREP=$EGREP
2998
echo "$as_me:$LINENO: result: $_am_result" >&5
2999
echo "${ECHO_T}$_am_result" >&6
3000
rm -f confinc confmf
3002
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3003
if test "${enable_dependency_tracking+set}" = set; then
3004
enableval="$enable_dependency_tracking"
3007
if test "x$enable_dependency_tracking" != xno; then
3008
am_depcomp="$ac_aux_dir/depcomp"
3013
if test "x$enable_dependency_tracking" != xno; then
4507
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4508
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4509
EGREP="$ac_cv_path_EGREP"
4513
{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4514
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4515
if test "${ac_cv_gnu_library_2+set}" = set; then
4516
echo $ECHO_N "(cached) $ECHO_C" >&6
4518
cat >conftest.$ac_ext <<_ACEOF
4521
cat confdefs.h >>conftest.$ac_ext
4522
cat >>conftest.$ac_ext <<_ACEOF
4523
/* end confdefs.h. */
4525
#include <features.h>
4526
#ifdef __GNU_LIBRARY__
4527
#if (__GLIBC__ >= 2)
4533
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
4535
ac_cv_gnu_library_2=yes
4537
ac_cv_gnu_library_2=no
4544
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4545
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4547
GLIBC2="$ac_cv_gnu_library_2"
4550
if test -n "$ac_tool_prefix"; then
4551
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4552
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555
if test "${ac_cv_prog_RANLIB+set}" = set; then
4556
echo $ECHO_N "(cached) $ECHO_C" >&6
4558
if test -n "$RANLIB"; then
4559
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565
test -z "$as_dir" && as_dir=.
4566
for ac_exec_ext in '' $ac_executable_extensions; do
4567
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4569
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578
RANLIB=$ac_cv_prog_RANLIB
4579
if test -n "$RANLIB"; then
4580
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4581
echo "${ECHO_T}$RANLIB" >&6; }
4583
{ echo "$as_me:$LINENO: result: no" >&5
4584
echo "${ECHO_T}no" >&6; }
4589
if test -z "$ac_cv_prog_RANLIB"; then
4590
ac_ct_RANLIB=$RANLIB
4591
# Extract the first word of "ranlib", so it can be a program name with args.
4592
set dummy ranlib; ac_word=$2
4593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4596
echo $ECHO_N "(cached) $ECHO_C" >&6
4598
if test -n "$ac_ct_RANLIB"; then
4599
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605
test -z "$as_dir" && as_dir=.
4606
for ac_exec_ext in '' $ac_executable_extensions; do
4607
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608
ac_cv_prog_ac_ct_RANLIB="ranlib"
4609
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4619
if test -n "$ac_ct_RANLIB"; then
4620
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4621
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4623
{ echo "$as_me:$LINENO: result: no" >&5
4624
echo "${ECHO_T}no" >&6; }
4627
if test "x$ac_ct_RANLIB" = x; then
4630
case $cross_compiling:$ac_tool_warned in
4632
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4633
whose name does not start with the host triplet. If you think this
4634
configuration is useful to you, please write to autoconf@gnu.org." >&5
4635
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4636
whose name does not start with the host triplet. If you think this
4637
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4638
ac_tool_warned=yes ;;
4640
RANLIB=$ac_ct_RANLIB
4643
RANLIB="$ac_cv_prog_RANLIB"
4647
{ echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4648
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4649
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4650
echo $ECHO_N "(cached) $ECHO_C" >&6
4652
ac_check_lib_save_LIBS=$LIBS
4653
LIBS="-lcposix $LIBS"
4654
cat >conftest.$ac_ext <<_ACEOF
4657
cat confdefs.h >>conftest.$ac_ext
4658
cat >>conftest.$ac_ext <<_ACEOF
4659
/* end confdefs.h. */
4661
/* Override any GCC internal prototype to avoid an error.
4662
Use char because int might match the return type of a GCC
4663
builtin and then its argument prototype would still apply. */
4676
rm -f conftest.$ac_objext conftest$ac_exeext
4677
if { (ac_try="$ac_link"
4679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680
*) ac_try_echo=$ac_try;;
4682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683
(eval "$ac_link") 2>conftest.er1
4685
grep -v '^ *+' conftest.er1 >conftest.err
4687
cat conftest.err >&5
4688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689
(exit $ac_status); } &&
4690
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4691
{ (case "(($ac_try" in
4692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
*) ac_try_echo=$ac_try;;
4695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696
(eval "$ac_try") 2>&5
4698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
(exit $ac_status); }; } &&
4700
{ ac_try='test -s conftest$ac_exeext'
4701
{ (case "(($ac_try" in
4702
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703
*) ac_try_echo=$ac_try;;
4705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706
(eval "$ac_try") 2>&5
4708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709
(exit $ac_status); }; }; then
4710
ac_cv_lib_cposix_strerror=yes
4712
echo "$as_me: failed program was:" >&5
4713
sed 's/^/| /' conftest.$ac_ext >&5
4715
ac_cv_lib_cposix_strerror=no
4718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4719
conftest$ac_exeext conftest.$ac_ext
4720
LIBS=$ac_check_lib_save_LIBS
4722
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4723
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4724
if test $ac_cv_lib_cposix_strerror = yes; then
4725
LIBS="$LIBS -lcposix"
4730
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4731
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4732
if test "${ac_cv_header_stdc+set}" = set; then
4733
echo $ECHO_N "(cached) $ECHO_C" >&6
4735
cat >conftest.$ac_ext <<_ACEOF
4738
cat confdefs.h >>conftest.$ac_ext
4739
cat >>conftest.$ac_ext <<_ACEOF
4740
/* end confdefs.h. */
4754
rm -f conftest.$ac_objext
4755
if { (ac_try="$ac_compile"
4757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758
*) ac_try_echo=$ac_try;;
4760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761
(eval "$ac_compile") 2>conftest.er1
4763
grep -v '^ *+' conftest.er1 >conftest.err
4765
cat conftest.err >&5
4766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
(exit $ac_status); } &&
4768
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769
{ (case "(($ac_try" in
4770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771
*) ac_try_echo=$ac_try;;
4773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774
(eval "$ac_try") 2>&5
4776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
(exit $ac_status); }; } &&
4778
{ ac_try='test -s conftest.$ac_objext'
4779
{ (case "(($ac_try" in
4780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781
*) ac_try_echo=$ac_try;;
4783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784
(eval "$ac_try") 2>&5
4786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787
(exit $ac_status); }; }; then
4788
ac_cv_header_stdc=yes
4790
echo "$as_me: failed program was:" >&5
4791
sed 's/^/| /' conftest.$ac_ext >&5
4793
ac_cv_header_stdc=no
4796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798
if test $ac_cv_header_stdc = yes; then
4799
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4800
cat >conftest.$ac_ext <<_ACEOF
4803
cat confdefs.h >>conftest.$ac_ext
4804
cat >>conftest.$ac_ext <<_ACEOF
4805
/* end confdefs.h. */
4809
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810
$EGREP "memchr" >/dev/null 2>&1; then
4813
ac_cv_header_stdc=no
4819
if test $ac_cv_header_stdc = yes; then
4820
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821
cat >conftest.$ac_ext <<_ACEOF
4824
cat confdefs.h >>conftest.$ac_ext
4825
cat >>conftest.$ac_ext <<_ACEOF
4826
/* end confdefs.h. */
4830
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831
$EGREP "free" >/dev/null 2>&1; then
4834
ac_cv_header_stdc=no
4840
if test $ac_cv_header_stdc = yes; then
4841
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4842
if test "$cross_compiling" = yes; then
4845
cat >conftest.$ac_ext <<_ACEOF
4848
cat confdefs.h >>conftest.$ac_ext
4849
cat >>conftest.$ac_ext <<_ACEOF
4850
/* end confdefs.h. */
4853
#if ((' ' & 0x0FF) == 0x020)
4854
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4855
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4857
# define ISLOWER(c) \
4858
(('a' <= (c) && (c) <= 'i') \
4859
|| ('j' <= (c) && (c) <= 'r') \
4860
|| ('s' <= (c) && (c) <= 'z'))
4861
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4864
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4869
for (i = 0; i < 256; i++)
4870
if (XOR (islower (i), ISLOWER (i))
4871
|| toupper (i) != TOUPPER (i))
4876
rm -f conftest$ac_exeext
4877
if { (ac_try="$ac_link"
4879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880
*) ac_try_echo=$ac_try;;
4882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883
(eval "$ac_link") 2>&5
4885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4887
{ (case "(($ac_try" in
4888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889
*) ac_try_echo=$ac_try;;
4891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892
(eval "$ac_try") 2>&5
4894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
(exit $ac_status); }; }; then
4898
echo "$as_me: program exited with status $ac_status" >&5
4899
echo "$as_me: failed program was:" >&5
4900
sed 's/^/| /' conftest.$ac_ext >&5
4903
ac_cv_header_stdc=no
4905
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4911
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4912
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4913
if test $ac_cv_header_stdc = yes; then
4915
cat >>confdefs.h <<\_ACEOF
4916
#define STDC_HEADERS 1
4921
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4922
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4923
if test "${ac_cv_c_const+set}" = set; then
4924
echo $ECHO_N "(cached) $ECHO_C" >&6
4926
cat >conftest.$ac_ext <<_ACEOF
4929
cat confdefs.h >>conftest.$ac_ext
4930
cat >>conftest.$ac_ext <<_ACEOF
4931
/* end confdefs.h. */
4936
/* FIXME: Include the comments suggested by Paul. */
4938
/* Ultrix mips cc rejects this. */
4939
typedef int charset[2];
4941
/* SunOS 4.1.1 cc rejects this. */
4942
char const *const *pcpcc;
4944
/* NEC SVR4.0.2 mips cc rejects this. */
4945
struct point {int x, y;};
4946
static struct point const zero = {0,0};
4947
/* AIX XL C 1.02.0.0 rejects this.
4948
It does not let you subtract one const X* pointer from another in
4949
an arm of an if-expression whose if-part is not a constant
4951
const char *g = "string";
4952
pcpcc = &g + (g ? g-g : 0);
4953
/* HPUX 7.0 cc rejects these. */
4955
ppc = (char**) pcpcc;
4956
pcpcc = (char const *const *) ppc;
4957
{ /* SCO 3.2v4 cc rejects this. */
4959
char const *s = 0 ? (char *) 0 : (char const *) 0;
4964
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4966
const int *foo = &x[0];
4969
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4970
typedef const int *iptr;
4974
{ /* AIX XL C 1.02.0.0 rejects this saying
4975
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4976
struct s { int j; const int *ap[3]; };
4977
struct s *b; b->j = 5;
4979
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4983
return !cs[0] && !zero.x;
4990
rm -f conftest.$ac_objext
4991
if { (ac_try="$ac_compile"
4993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994
*) ac_try_echo=$ac_try;;
4996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997
(eval "$ac_compile") 2>conftest.er1
4999
grep -v '^ *+' conftest.er1 >conftest.err
5001
cat conftest.err >&5
5002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003
(exit $ac_status); } &&
5004
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5005
{ (case "(($ac_try" in
5006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007
*) ac_try_echo=$ac_try;;
5009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010
(eval "$ac_try") 2>&5
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); }; } &&
5014
{ ac_try='test -s conftest.$ac_objext'
5015
{ (case "(($ac_try" in
5016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017
*) ac_try_echo=$ac_try;;
5019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020
(eval "$ac_try") 2>&5
5022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023
(exit $ac_status); }; }; then
5026
echo "$as_me: failed program was:" >&5
5027
sed 's/^/| /' conftest.$ac_ext >&5
5032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5035
echo "${ECHO_T}$ac_cv_c_const" >&6; }
5036
if test $ac_cv_c_const = no; then
5038
cat >>confdefs.h <<\_ACEOF
5045
{ echo "$as_me:$LINENO: checking for signed" >&5
5046
echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5047
if test "${bh_cv_c_signed+set}" = set; then
5048
echo $ECHO_N "(cached) $ECHO_C" >&6
5050
cat >conftest.$ac_ext <<_ACEOF
5053
cat confdefs.h >>conftest.$ac_ext
5054
cat >>conftest.$ac_ext <<_ACEOF
5055
/* end confdefs.h. */
5065
rm -f conftest.$ac_objext
5066
if { (ac_try="$ac_compile"
5068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069
*) ac_try_echo=$ac_try;;
5071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072
(eval "$ac_compile") 2>conftest.er1
5074
grep -v '^ *+' conftest.er1 >conftest.err
5076
cat conftest.err >&5
5077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
(exit $ac_status); } &&
5079
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080
{ (case "(($ac_try" in
5081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082
*) ac_try_echo=$ac_try;;
5084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085
(eval "$ac_try") 2>&5
5087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
(exit $ac_status); }; } &&
5089
{ ac_try='test -s conftest.$ac_objext'
5090
{ (case "(($ac_try" in
5091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092
*) ac_try_echo=$ac_try;;
5094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095
(eval "$ac_try") 2>&5
5097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
(exit $ac_status); }; }; then
5101
echo "$as_me: failed program was:" >&5
5102
sed 's/^/| /' conftest.$ac_ext >&5
5107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109
{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5110
echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5111
if test $bh_cv_c_signed = no; then
5113
cat >>confdefs.h <<\_ACEOF
5119
{ echo "$as_me:$LINENO: checking for inline" >&5
5120
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5121
if test "${ac_cv_c_inline+set}" = set; then
5122
echo $ECHO_N "(cached) $ECHO_C" >&6
5125
for ac_kw in inline __inline__ __inline; do
5126
cat >conftest.$ac_ext <<_ACEOF
5129
cat confdefs.h >>conftest.$ac_ext
5130
cat >>conftest.$ac_ext <<_ACEOF
5131
/* end confdefs.h. */
5134
static $ac_kw foo_t static_foo () {return 0; }
5135
$ac_kw foo_t foo () {return 0; }
5139
rm -f conftest.$ac_objext
5140
if { (ac_try="$ac_compile"
5142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143
*) ac_try_echo=$ac_try;;
5145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146
(eval "$ac_compile") 2>conftest.er1
5148
grep -v '^ *+' conftest.er1 >conftest.err
5150
cat conftest.err >&5
5151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152
(exit $ac_status); } &&
5153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5154
{ (case "(($ac_try" in
5155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156
*) ac_try_echo=$ac_try;;
5158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159
(eval "$ac_try") 2>&5
5161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
(exit $ac_status); }; } &&
5163
{ ac_try='test -s conftest.$ac_objext'
5164
{ (case "(($ac_try" in
5165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166
*) ac_try_echo=$ac_try;;
5168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169
(eval "$ac_try") 2>&5
5171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172
(exit $ac_status); }; }; then
5173
ac_cv_c_inline=$ac_kw
5175
echo "$as_me: failed program was:" >&5
5176
sed 's/^/| /' conftest.$ac_ext >&5
5181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182
test "$ac_cv_c_inline" != no && break
5186
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5187
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5190
case $ac_cv_c_inline in
5193
case $ac_cv_c_inline in
5195
*) ac_val=$ac_cv_c_inline;;
5197
cat >>confdefs.h <<_ACEOF
5199
#define inline $ac_val
5205
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5215
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5216
inttypes.h stdint.h unistd.h
5218
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5222
echo $ECHO_N "(cached) $ECHO_C" >&6
5224
cat >conftest.$ac_ext <<_ACEOF
5227
cat confdefs.h >>conftest.$ac_ext
5228
cat >>conftest.$ac_ext <<_ACEOF
5229
/* end confdefs.h. */
5230
$ac_includes_default
5232
#include <$ac_header>
5234
rm -f conftest.$ac_objext
5235
if { (ac_try="$ac_compile"
5237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238
*) ac_try_echo=$ac_try;;
5240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241
(eval "$ac_compile") 2>conftest.er1
5243
grep -v '^ *+' conftest.er1 >conftest.err
5245
cat conftest.err >&5
5246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
(exit $ac_status); } &&
5248
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249
{ (case "(($ac_try" in
5250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251
*) ac_try_echo=$ac_try;;
5253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254
(eval "$ac_try") 2>&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); }; } &&
5258
{ ac_try='test -s conftest.$ac_objext'
5259
{ (case "(($ac_try" in
5260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261
*) ac_try_echo=$ac_try;;
5263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264
(eval "$ac_try") 2>&5
5266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267
(exit $ac_status); }; }; then
5268
eval "$as_ac_Header=yes"
5270
echo "$as_me: failed program was:" >&5
5271
sed 's/^/| /' conftest.$ac_ext >&5
5273
eval "$as_ac_Header=no"
5276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278
ac_res=`eval echo '${'$as_ac_Header'}'`
5279
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5280
echo "${ECHO_T}$ac_res" >&6; }
5281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5282
cat >>confdefs.h <<_ACEOF
5283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5291
{ echo "$as_me:$LINENO: checking for off_t" >&5
5292
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5293
if test "${ac_cv_type_off_t+set}" = set; then
5294
echo $ECHO_N "(cached) $ECHO_C" >&6
5296
cat >conftest.$ac_ext <<_ACEOF
5299
cat confdefs.h >>conftest.$ac_ext
5300
cat >>conftest.$ac_ext <<_ACEOF
5301
/* end confdefs.h. */
5302
$ac_includes_default
5303
typedef off_t ac__type_new_;
5307
if ((ac__type_new_ *) 0)
5309
if (sizeof (ac__type_new_))
5315
rm -f conftest.$ac_objext
5316
if { (ac_try="$ac_compile"
5318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319
*) ac_try_echo=$ac_try;;
5321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322
(eval "$ac_compile") 2>conftest.er1
5324
grep -v '^ *+' conftest.er1 >conftest.err
5326
cat conftest.err >&5
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328
(exit $ac_status); } &&
5329
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5330
{ (case "(($ac_try" in
5331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332
*) ac_try_echo=$ac_try;;
5334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335
(eval "$ac_try") 2>&5
5337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338
(exit $ac_status); }; } &&
5339
{ ac_try='test -s conftest.$ac_objext'
5340
{ (case "(($ac_try" in
5341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342
*) ac_try_echo=$ac_try;;
5344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345
(eval "$ac_try") 2>&5
5347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348
(exit $ac_status); }; }; then
5349
ac_cv_type_off_t=yes
5351
echo "$as_me: failed program was:" >&5
5352
sed 's/^/| /' conftest.$ac_ext >&5
5357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5360
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5361
if test $ac_cv_type_off_t = yes; then
5365
cat >>confdefs.h <<_ACEOF
5366
#define off_t long int
5371
{ echo "$as_me:$LINENO: checking for size_t" >&5
5372
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5373
if test "${ac_cv_type_size_t+set}" = set; then
5374
echo $ECHO_N "(cached) $ECHO_C" >&6
5376
cat >conftest.$ac_ext <<_ACEOF
5379
cat confdefs.h >>conftest.$ac_ext
5380
cat >>conftest.$ac_ext <<_ACEOF
5381
/* end confdefs.h. */
5382
$ac_includes_default
5383
typedef size_t ac__type_new_;
5387
if ((ac__type_new_ *) 0)
5389
if (sizeof (ac__type_new_))
5395
rm -f conftest.$ac_objext
5396
if { (ac_try="$ac_compile"
5398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399
*) ac_try_echo=$ac_try;;
5401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402
(eval "$ac_compile") 2>conftest.er1
5404
grep -v '^ *+' conftest.er1 >conftest.err
5406
cat conftest.err >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); } &&
5409
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5410
{ (case "(($ac_try" in
5411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412
*) ac_try_echo=$ac_try;;
5414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415
(eval "$ac_try") 2>&5
5417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418
(exit $ac_status); }; } &&
5419
{ ac_try='test -s conftest.$ac_objext'
5420
{ (case "(($ac_try" in
5421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422
*) ac_try_echo=$ac_try;;
5424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425
(eval "$ac_try") 2>&5
5427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428
(exit $ac_status); }; }; then
5429
ac_cv_type_size_t=yes
5431
echo "$as_me: failed program was:" >&5
5432
sed 's/^/| /' conftest.$ac_ext >&5
5434
ac_cv_type_size_t=no
5437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5440
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5441
if test $ac_cv_type_size_t = yes; then
5445
cat >>confdefs.h <<_ACEOF
5446
#define size_t unsigned int
5452
{ echo "$as_me:$LINENO: checking for long long" >&5
5453
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5454
if test "${ac_cv_type_long_long+set}" = set; then
5455
echo $ECHO_N "(cached) $ECHO_C" >&6
5457
cat >conftest.$ac_ext <<_ACEOF
5460
cat confdefs.h >>conftest.$ac_ext
5461
cat >>conftest.$ac_ext <<_ACEOF
5462
/* end confdefs.h. */
5463
long long ll = 1LL; int i = 63;
5467
long long llmax = (long long) -1;
5468
return ll << i | ll >> i | llmax / ll | llmax % ll;
5473
rm -f conftest.$ac_objext conftest$ac_exeext
5474
if { (ac_try="$ac_link"
5476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477
*) ac_try_echo=$ac_try;;
5479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480
(eval "$ac_link") 2>conftest.er1
5482
grep -v '^ *+' conftest.er1 >conftest.err
5484
cat conftest.err >&5
5485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486
(exit $ac_status); } &&
5487
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5488
{ (case "(($ac_try" in
5489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490
*) ac_try_echo=$ac_try;;
5492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493
(eval "$ac_try") 2>&5
5495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
(exit $ac_status); }; } &&
5497
{ ac_try='test -s conftest$ac_exeext'
5498
{ (case "(($ac_try" in
5499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500
*) ac_try_echo=$ac_try;;
5502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503
(eval "$ac_try") 2>&5
5505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506
(exit $ac_status); }; }; then
5507
ac_cv_type_long_long=yes
5509
echo "$as_me: failed program was:" >&5
5510
sed 's/^/| /' conftest.$ac_ext >&5
5512
ac_cv_type_long_long=no
5515
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5516
conftest$ac_exeext conftest.$ac_ext
5518
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5519
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5520
if test $ac_cv_type_long_long = yes; then
5522
cat >>confdefs.h <<\_ACEOF
5523
#define HAVE_LONG_LONG 1
5529
{ echo "$as_me:$LINENO: checking for long double" >&5
5530
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5531
if test "${gt_cv_c_long_double+set}" = set; then
5532
echo $ECHO_N "(cached) $ECHO_C" >&6
5534
if test "$GCC" = yes; then
5535
gt_cv_c_long_double=yes
5537
cat >conftest.$ac_ext <<_ACEOF
5540
cat confdefs.h >>conftest.$ac_ext
5541
cat >>conftest.$ac_ext <<_ACEOF
5542
/* end confdefs.h. */
5544
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
5545
long double foo = 0.0;
5546
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5547
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5557
rm -f conftest.$ac_objext
5558
if { (ac_try="$ac_compile"
5560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561
*) ac_try_echo=$ac_try;;
5563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564
(eval "$ac_compile") 2>conftest.er1
5566
grep -v '^ *+' conftest.er1 >conftest.err
5568
cat conftest.err >&5
5569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
(exit $ac_status); } &&
5571
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5572
{ (case "(($ac_try" in
5573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574
*) ac_try_echo=$ac_try;;
5576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577
(eval "$ac_try") 2>&5
5579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580
(exit $ac_status); }; } &&
5581
{ ac_try='test -s conftest.$ac_objext'
5582
{ (case "(($ac_try" in
5583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584
*) ac_try_echo=$ac_try;;
5586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587
(eval "$ac_try") 2>&5
5589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590
(exit $ac_status); }; }; then
5591
gt_cv_c_long_double=yes
5593
echo "$as_me: failed program was:" >&5
5594
sed 's/^/| /' conftest.$ac_ext >&5
5596
gt_cv_c_long_double=no
5599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602
{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5603
echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5604
if test $gt_cv_c_long_double = yes; then
5606
cat >>confdefs.h <<\_ACEOF
5607
#define HAVE_LONG_DOUBLE 1
5613
{ echo "$as_me:$LINENO: checking for wchar_t" >&5
5614
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5615
if test "${gt_cv_c_wchar_t+set}" = set; then
5616
echo $ECHO_N "(cached) $ECHO_C" >&6
5618
cat >conftest.$ac_ext <<_ACEOF
5621
cat confdefs.h >>conftest.$ac_ext
5622
cat >>conftest.$ac_ext <<_ACEOF
5623
/* end confdefs.h. */
5625
wchar_t foo = (wchar_t)'\0';
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641
(eval "$ac_compile") 2>conftest.er1
5643
grep -v '^ *+' conftest.er1 >conftest.err
5645
cat conftest.err >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } &&
5648
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5649
{ (case "(($ac_try" in
5650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651
*) ac_try_echo=$ac_try;;
5653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654
(eval "$ac_try") 2>&5
5656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657
(exit $ac_status); }; } &&
5658
{ ac_try='test -s conftest.$ac_objext'
5659
{ (case "(($ac_try" in
5660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661
*) ac_try_echo=$ac_try;;
5663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664
(eval "$ac_try") 2>&5
5666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
(exit $ac_status); }; }; then
5670
echo "$as_me: failed program was:" >&5
5671
sed 's/^/| /' conftest.$ac_ext >&5
5676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5679
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5680
if test $gt_cv_c_wchar_t = yes; then
5682
cat >>confdefs.h <<\_ACEOF
5683
#define HAVE_WCHAR_T 1
5689
{ echo "$as_me:$LINENO: checking for wint_t" >&5
5690
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5691
if test "${gt_cv_c_wint_t+set}" = set; then
5692
echo $ECHO_N "(cached) $ECHO_C" >&6
5694
cat >conftest.$ac_ext <<_ACEOF
5697
cat confdefs.h >>conftest.$ac_ext
5698
cat >>conftest.$ac_ext <<_ACEOF
5699
/* end confdefs.h. */
5701
wint_t foo = (wchar_t)'\0';
5710
rm -f conftest.$ac_objext
5711
if { (ac_try="$ac_compile"
5713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714
*) ac_try_echo=$ac_try;;
5716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717
(eval "$ac_compile") 2>conftest.er1
5719
grep -v '^ *+' conftest.er1 >conftest.err
5721
cat conftest.err >&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); } &&
5724
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725
{ (case "(($ac_try" in
5726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727
*) ac_try_echo=$ac_try;;
5729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730
(eval "$ac_try") 2>&5
5732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
(exit $ac_status); }; } &&
5734
{ ac_try='test -s conftest.$ac_objext'
5735
{ (case "(($ac_try" in
5736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737
*) ac_try_echo=$ac_try;;
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740
(eval "$ac_try") 2>&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); }; }; then
5746
echo "$as_me: failed program was:" >&5
5747
sed 's/^/| /' conftest.$ac_ext >&5
5752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5755
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5756
if test $gt_cv_c_wint_t = yes; then
5758
cat >>confdefs.h <<\_ACEOF
5759
#define HAVE_WINT_T 1
5765
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
5766
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5767
if test "${gl_cv_header_inttypes_h+set}" = set; then
5768
echo $ECHO_N "(cached) $ECHO_C" >&6
5770
cat >conftest.$ac_ext <<_ACEOF
5773
cat confdefs.h >>conftest.$ac_ext
5774
cat >>conftest.$ac_ext <<_ACEOF
5775
/* end confdefs.h. */
5776
#include <sys/types.h>
5777
#include <inttypes.h>
5781
uintmax_t i = (uintmax_t) -1;
5786
rm -f conftest.$ac_objext
5787
if { (ac_try="$ac_compile"
5789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
*) ac_try_echo=$ac_try;;
5792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793
(eval "$ac_compile") 2>conftest.er1
5795
grep -v '^ *+' conftest.er1 >conftest.err
5797
cat conftest.err >&5
5798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
(exit $ac_status); } &&
5800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801
{ (case "(($ac_try" in
5802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803
*) ac_try_echo=$ac_try;;
5805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806
(eval "$ac_try") 2>&5
5808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809
(exit $ac_status); }; } &&
5810
{ ac_try='test -s conftest.$ac_objext'
5811
{ (case "(($ac_try" in
5812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813
*) ac_try_echo=$ac_try;;
5815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816
(eval "$ac_try") 2>&5
5818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819
(exit $ac_status); }; }; then
5820
gl_cv_header_inttypes_h=yes
5822
echo "$as_me: failed program was:" >&5
5823
sed 's/^/| /' conftest.$ac_ext >&5
5825
gl_cv_header_inttypes_h=no
5828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830
{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5831
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5832
if test $gl_cv_header_inttypes_h = yes; then
5834
cat >>confdefs.h <<_ACEOF
5835
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5841
{ echo "$as_me:$LINENO: checking for stdint.h" >&5
5842
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5843
if test "${gl_cv_header_stdint_h+set}" = set; then
5844
echo $ECHO_N "(cached) $ECHO_C" >&6
5846
cat >conftest.$ac_ext <<_ACEOF
5849
cat confdefs.h >>conftest.$ac_ext
5850
cat >>conftest.$ac_ext <<_ACEOF
5851
/* end confdefs.h. */
5852
#include <sys/types.h>
5857
uintmax_t i = (uintmax_t) -1;
5862
rm -f conftest.$ac_objext
5863
if { (ac_try="$ac_compile"
5865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866
*) ac_try_echo=$ac_try;;
5868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869
(eval "$ac_compile") 2>conftest.er1
5871
grep -v '^ *+' conftest.er1 >conftest.err
5873
cat conftest.err >&5
5874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875
(exit $ac_status); } &&
5876
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877
{ (case "(($ac_try" in
5878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879
*) ac_try_echo=$ac_try;;
5881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882
(eval "$ac_try") 2>&5
5884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885
(exit $ac_status); }; } &&
5886
{ ac_try='test -s conftest.$ac_objext'
5887
{ (case "(($ac_try" in
5888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889
*) ac_try_echo=$ac_try;;
5891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892
(eval "$ac_try") 2>&5
5894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895
(exit $ac_status); }; }; then
5896
gl_cv_header_stdint_h=yes
5898
echo "$as_me: failed program was:" >&5
5899
sed 's/^/| /' conftest.$ac_ext >&5
5901
gl_cv_header_stdint_h=no
5904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906
{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5907
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5908
if test $gl_cv_header_stdint_h = yes; then
5910
cat >>confdefs.h <<_ACEOF
5911
#define HAVE_STDINT_H_WITH_UINTMAX 1
5919
{ echo "$as_me:$LINENO: checking for intmax_t" >&5
5920
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5921
if test "${gt_cv_c_intmax_t+set}" = set; then
5922
echo $ECHO_N "(cached) $ECHO_C" >&6
5924
cat >conftest.$ac_ext <<_ACEOF
5927
cat confdefs.h >>conftest.$ac_ext
5928
cat >>conftest.$ac_ext <<_ACEOF
5929
/* end confdefs.h. */
5933
#if HAVE_STDINT_H_WITH_UINTMAX
5936
#if HAVE_INTTYPES_H_WITH_UINTMAX
5937
#include <inttypes.h>
5948
rm -f conftest.$ac_objext
5949
if { (ac_try="$ac_compile"
5951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952
*) ac_try_echo=$ac_try;;
5954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955
(eval "$ac_compile") 2>conftest.er1
5957
grep -v '^ *+' conftest.er1 >conftest.err
5959
cat conftest.err >&5
5960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961
(exit $ac_status); } &&
5962
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963
{ (case "(($ac_try" in
5964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965
*) ac_try_echo=$ac_try;;
5967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968
(eval "$ac_try") 2>&5
5970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971
(exit $ac_status); }; } &&
5972
{ ac_try='test -s conftest.$ac_objext'
5973
{ (case "(($ac_try" in
5974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975
*) ac_try_echo=$ac_try;;
5977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978
(eval "$ac_try") 2>&5
5980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981
(exit $ac_status); }; }; then
5982
gt_cv_c_intmax_t=yes
5984
echo "$as_me: failed program was:" >&5
5985
sed 's/^/| /' conftest.$ac_ext >&5
5990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992
{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5993
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5994
if test $gt_cv_c_intmax_t = yes; then
5996
cat >>confdefs.h <<\_ACEOF
5997
#define HAVE_INTMAX_T 1
6004
{ echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6005
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
6006
if test "${gt_cv_func_printf_posix+set}" = set; then
6007
echo $ECHO_N "(cached) $ECHO_C" >&6
6010
if test "$cross_compiling" = yes; then
6012
cat >conftest.$ac_ext <<_ACEOF
6015
cat confdefs.h >>conftest.$ac_ext
6016
cat >>conftest.$ac_ext <<_ACEOF
6017
/* end confdefs.h. */
6019
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025
$EGREP "notposix" >/dev/null 2>&1; then
6026
gt_cv_func_printf_posix="guessing no"
6028
gt_cv_func_printf_posix="guessing yes"
6034
cat >conftest.$ac_ext <<_ACEOF
6037
cat confdefs.h >>conftest.$ac_ext
6038
cat >>conftest.$ac_ext <<_ACEOF
6039
/* end confdefs.h. */
6043
/* The string "%2$d %1$d", with dollar characters protected from the shell's
6044
dollar expansion (possibly an autoconf bug). */
6045
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6046
static char buf[100];
6049
sprintf (buf, format, 33, 55);
6050
return (strcmp (buf, "55 33") != 0);
6053
rm -f conftest$ac_exeext
6054
if { (ac_try="$ac_link"
6056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057
*) ac_try_echo=$ac_try;;
6059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060
(eval "$ac_link") 2>&5
6062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6064
{ (case "(($ac_try" in
6065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066
*) ac_try_echo=$ac_try;;
6068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069
(eval "$ac_try") 2>&5
6071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
(exit $ac_status); }; }; then
6073
gt_cv_func_printf_posix=yes
6075
echo "$as_me: program exited with status $ac_status" >&5
6076
echo "$as_me: failed program was:" >&5
6077
sed 's/^/| /' conftest.$ac_ext >&5
6080
gt_cv_func_printf_posix=no
6082
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088
{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6089
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6090
case $gt_cv_func_printf_posix in
6093
cat >>confdefs.h <<\_ACEOF
6094
#define HAVE_POSIX_PRINTF 1
6100
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6101
# for constant arguments. Useless!
6102
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6103
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6104
if test "${ac_cv_working_alloca_h+set}" = set; then
6105
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. */
6117
char *p = (char *) alloca (2 * sizeof (int));
6123
rm -f conftest.$ac_objext conftest$ac_exeext
6124
if { (ac_try="$ac_link"
6126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127
*) ac_try_echo=$ac_try;;
6129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130
(eval "$ac_link") 2>conftest.er1
6132
grep -v '^ *+' conftest.er1 >conftest.err
6134
cat conftest.err >&5
6135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136
(exit $ac_status); } &&
6137
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6138
{ (case "(($ac_try" in
6139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140
*) ac_try_echo=$ac_try;;
6142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143
(eval "$ac_try") 2>&5
6145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146
(exit $ac_status); }; } &&
6147
{ ac_try='test -s conftest$ac_exeext'
6148
{ (case "(($ac_try" in
6149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150
*) ac_try_echo=$ac_try;;
6152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153
(eval "$ac_try") 2>&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); }; }; then
6157
ac_cv_working_alloca_h=yes
6159
echo "$as_me: failed program was:" >&5
6160
sed 's/^/| /' conftest.$ac_ext >&5
6162
ac_cv_working_alloca_h=no
6165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6166
conftest$ac_exeext conftest.$ac_ext
6168
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6169
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6170
if test $ac_cv_working_alloca_h = yes; then
6172
cat >>confdefs.h <<\_ACEOF
6173
#define HAVE_ALLOCA_H 1
6178
{ echo "$as_me:$LINENO: checking for alloca" >&5
6179
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6180
if test "${ac_cv_func_alloca_works+set}" = set; then
6181
echo $ECHO_N "(cached) $ECHO_C" >&6
6183
cat >conftest.$ac_ext <<_ACEOF
6186
cat confdefs.h >>conftest.$ac_ext
6187
cat >>conftest.$ac_ext <<_ACEOF
6188
/* end confdefs.h. */
6190
# define alloca __builtin_alloca
6193
# include <malloc.h>
6194
# define alloca _alloca
6196
# ifdef HAVE_ALLOCA_H
6197
# include <alloca.h>
6202
# ifndef alloca /* predefined by HP cc +Olibcalls */
6213
char *p = (char *) alloca (1);
6219
rm -f conftest.$ac_objext conftest$ac_exeext
6220
if { (ac_try="$ac_link"
6222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223
*) ac_try_echo=$ac_try;;
6225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226
(eval "$ac_link") 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
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234
{ (case "(($ac_try" in
6235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236
*) ac_try_echo=$ac_try;;
6238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239
(eval "$ac_try") 2>&5
6241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242
(exit $ac_status); }; } &&
6243
{ ac_try='test -s conftest$ac_exeext'
6244
{ (case "(($ac_try" in
6245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246
*) ac_try_echo=$ac_try;;
6248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249
(eval "$ac_try") 2>&5
6251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252
(exit $ac_status); }; }; then
6253
ac_cv_func_alloca_works=yes
6255
echo "$as_me: failed program was:" >&5
6256
sed 's/^/| /' conftest.$ac_ext >&5
6258
ac_cv_func_alloca_works=no
6261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262
conftest$ac_exeext conftest.$ac_ext
6264
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6265
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6267
if test $ac_cv_func_alloca_works = yes; then
6269
cat >>confdefs.h <<\_ACEOF
6270
#define HAVE_ALLOCA 1
6274
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
6275
# that cause trouble. Some versions do not even contain alloca or
6276
# contain a buggy version. If you still want to use their alloca,
6277
# use ar to extract alloca.o from them instead of compiling alloca.c.
6279
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6281
cat >>confdefs.h <<\_ACEOF
6286
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6287
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6288
if test "${ac_cv_os_cray+set}" = set; then
6289
echo $ECHO_N "(cached) $ECHO_C" >&6
6291
cat >conftest.$ac_ext <<_ACEOF
6294
cat confdefs.h >>conftest.$ac_ext
6295
cat >>conftest.$ac_ext <<_ACEOF
6296
/* end confdefs.h. */
6297
#if defined CRAY && ! defined CRAY2
6304
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305
$EGREP "webecray" >/dev/null 2>&1; then
6313
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6314
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6315
if test $ac_cv_os_cray = yes; then
6316
for ac_func in _getb67 GETB67 getb67; do
6317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6321
echo $ECHO_N "(cached) $ECHO_C" >&6
6323
cat >conftest.$ac_ext <<_ACEOF
6326
cat confdefs.h >>conftest.$ac_ext
6327
cat >>conftest.$ac_ext <<_ACEOF
6328
/* end confdefs.h. */
6329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6330
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6331
#define $ac_func innocuous_$ac_func
6333
/* System header to define __stub macros and hopefully few prototypes,
6334
which can conflict with char $ac_func (); below.
6335
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6336
<limits.h> exists even on freestanding compilers. */
6339
# include <limits.h>
6341
# include <assert.h>
6346
/* Override any GCC internal prototype to avoid an error.
6347
Use char because int might match the return type of a GCC
6348
builtin and then its argument prototype would still apply. */
6353
/* The GNU C library defines this for functions which it implements
6354
to always fail with ENOSYS. Some functions are actually named
6355
something starting with __ and the normal name is an alias. */
6356
#if defined __stub_$ac_func || defined __stub___$ac_func
6368
rm -f conftest.$ac_objext conftest$ac_exeext
6369
if { (ac_try="$ac_link"
6371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372
*) ac_try_echo=$ac_try;;
6374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375
(eval "$ac_link") 2>conftest.er1
6377
grep -v '^ *+' conftest.er1 >conftest.err
6379
cat conftest.err >&5
6380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
(exit $ac_status); } &&
6382
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6383
{ (case "(($ac_try" in
6384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385
*) ac_try_echo=$ac_try;;
6387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388
(eval "$ac_try") 2>&5
6390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391
(exit $ac_status); }; } &&
6392
{ ac_try='test -s conftest$ac_exeext'
6393
{ (case "(($ac_try" in
6394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395
*) ac_try_echo=$ac_try;;
6397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398
(eval "$ac_try") 2>&5
6400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401
(exit $ac_status); }; }; then
6402
eval "$as_ac_var=yes"
6404
echo "$as_me: failed program was:" >&5
6405
sed 's/^/| /' conftest.$ac_ext >&5
6407
eval "$as_ac_var=no"
6410
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6411
conftest$ac_exeext conftest.$ac_ext
6413
ac_res=`eval echo '${'$as_ac_var'}'`
6414
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6415
echo "${ECHO_T}$ac_res" >&6; }
6416
if test `eval echo '${'$as_ac_var'}'` = yes; then
6418
cat >>confdefs.h <<_ACEOF
6419
#define CRAY_STACKSEG_END $ac_func
6428
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6429
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6430
if test "${ac_cv_c_stack_direction+set}" = set; then
6431
echo $ECHO_N "(cached) $ECHO_C" >&6
6433
if test "$cross_compiling" = yes; then
6434
ac_cv_c_stack_direction=0
6436
cat >conftest.$ac_ext <<_ACEOF
6439
cat confdefs.h >>conftest.$ac_ext
6440
cat >>conftest.$ac_ext <<_ACEOF
6441
/* end confdefs.h. */
6442
$ac_includes_default
6444
find_stack_direction ()
6446
static char *addr = 0;
6451
return find_stack_direction ();
6454
return (&dummy > addr) ? 1 : -1;
6460
return find_stack_direction () < 0;
6463
rm -f conftest$ac_exeext
6464
if { (ac_try="$ac_link"
6466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467
*) ac_try_echo=$ac_try;;
6469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470
(eval "$ac_link") 2>&5
6472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6474
{ (case "(($ac_try" in
6475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476
*) ac_try_echo=$ac_try;;
6478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479
(eval "$ac_try") 2>&5
6481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482
(exit $ac_status); }; }; then
6483
ac_cv_c_stack_direction=1
6485
echo "$as_me: program exited with status $ac_status" >&5
6486
echo "$as_me: failed program was:" >&5
6487
sed 's/^/| /' conftest.$ac_ext >&5
6490
ac_cv_c_stack_direction=-1
6492
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6497
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6498
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6500
cat >>confdefs.h <<_ACEOF
6501
#define STACK_DIRECTION $ac_cv_c_stack_direction
6509
for ac_header in stdlib.h unistd.h
6511
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6513
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6514
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6515
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6516
echo $ECHO_N "(cached) $ECHO_C" >&6
6518
ac_res=`eval echo '${'$as_ac_Header'}'`
6519
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6520
echo "${ECHO_T}$ac_res" >&6; }
6522
# Is the header compilable?
6523
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6525
cat >conftest.$ac_ext <<_ACEOF
6528
cat confdefs.h >>conftest.$ac_ext
6529
cat >>conftest.$ac_ext <<_ACEOF
6530
/* end confdefs.h. */
6531
$ac_includes_default
6532
#include <$ac_header>
6534
rm -f conftest.$ac_objext
6535
if { (ac_try="$ac_compile"
6537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538
*) ac_try_echo=$ac_try;;
6540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541
(eval "$ac_compile") 2>conftest.er1
6543
grep -v '^ *+' conftest.er1 >conftest.err
6545
cat conftest.err >&5
6546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547
(exit $ac_status); } &&
6548
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6549
{ (case "(($ac_try" in
6550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551
*) ac_try_echo=$ac_try;;
6553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554
(eval "$ac_try") 2>&5
6556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557
(exit $ac_status); }; } &&
6558
{ ac_try='test -s conftest.$ac_objext'
6559
{ (case "(($ac_try" in
6560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561
*) ac_try_echo=$ac_try;;
6563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564
(eval "$ac_try") 2>&5
6566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567
(exit $ac_status); }; }; then
6568
ac_header_compiler=yes
6570
echo "$as_me: failed program was:" >&5
6571
sed 's/^/| /' conftest.$ac_ext >&5
6573
ac_header_compiler=no
6576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578
echo "${ECHO_T}$ac_header_compiler" >&6; }
6580
# Is the header present?
6581
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6583
cat >conftest.$ac_ext <<_ACEOF
6586
cat confdefs.h >>conftest.$ac_ext
6587
cat >>conftest.$ac_ext <<_ACEOF
6588
/* end confdefs.h. */
6589
#include <$ac_header>
6591
if { (ac_try="$ac_cpp conftest.$ac_ext"
6593
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594
*) ac_try_echo=$ac_try;;
6596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599
grep -v '^ *+' conftest.er1 >conftest.err
6601
cat conftest.err >&5
6602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603
(exit $ac_status); } >/dev/null; then
6604
if test -s conftest.err; then
6605
ac_cpp_err=$ac_c_preproc_warn_flag
6606
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6613
if test -z "$ac_cpp_err"; then
6614
ac_header_preproc=yes
6616
echo "$as_me: failed program was:" >&5
6617
sed 's/^/| /' conftest.$ac_ext >&5
6619
ac_header_preproc=no
6622
rm -f conftest.err conftest.$ac_ext
6623
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6624
echo "${ECHO_T}$ac_header_preproc" >&6; }
6626
# So? What about this header?
6627
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6629
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6630
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6631
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6632
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6633
ac_header_preproc=yes
6636
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6637
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6638
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6639
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6640
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6641
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6642
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6643
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6644
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6645
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6646
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6647
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649
## ------------------------------------ ##
6650
## Report this to m17n-lib-bug@m17n.org ##
6651
## ------------------------------------ ##
6653
) | sed "s/^/$as_me: WARNING: /" >&2
6656
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6658
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6659
echo $ECHO_N "(cached) $ECHO_C" >&6
6661
eval "$as_ac_Header=\$ac_header_preproc"
6663
ac_res=`eval echo '${'$as_ac_Header'}'`
6664
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6665
echo "${ECHO_T}$ac_res" >&6; }
6668
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669
cat >>confdefs.h <<_ACEOF
6670
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6678
for ac_func in getpagesize
6680
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6681
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6682
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6683
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6684
echo $ECHO_N "(cached) $ECHO_C" >&6
6686
cat >conftest.$ac_ext <<_ACEOF
6689
cat confdefs.h >>conftest.$ac_ext
6690
cat >>conftest.$ac_ext <<_ACEOF
6691
/* end confdefs.h. */
6692
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6693
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6694
#define $ac_func innocuous_$ac_func
6696
/* System header to define __stub macros and hopefully few prototypes,
6697
which can conflict with char $ac_func (); below.
6698
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6699
<limits.h> exists even on freestanding compilers. */
6702
# include <limits.h>
6704
# include <assert.h>
6709
/* Override any GCC internal prototype to avoid an error.
6710
Use char because int might match the return type of a GCC
6711
builtin and then its argument prototype would still apply. */
6716
/* The GNU C library defines this for functions which it implements
6717
to always fail with ENOSYS. Some functions are actually named
6718
something starting with __ and the normal name is an alias. */
6719
#if defined __stub_$ac_func || defined __stub___$ac_func
6731
rm -f conftest.$ac_objext conftest$ac_exeext
6732
if { (ac_try="$ac_link"
6734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735
*) ac_try_echo=$ac_try;;
6737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738
(eval "$ac_link") 2>conftest.er1
6740
grep -v '^ *+' conftest.er1 >conftest.err
6742
cat conftest.err >&5
6743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744
(exit $ac_status); } &&
6745
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6746
{ (case "(($ac_try" in
6747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748
*) ac_try_echo=$ac_try;;
6750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751
(eval "$ac_try") 2>&5
6753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754
(exit $ac_status); }; } &&
6755
{ ac_try='test -s conftest$ac_exeext'
6756
{ (case "(($ac_try" in
6757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758
*) ac_try_echo=$ac_try;;
6760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761
(eval "$ac_try") 2>&5
6763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
(exit $ac_status); }; }; then
6765
eval "$as_ac_var=yes"
6767
echo "$as_me: failed program was:" >&5
6768
sed 's/^/| /' conftest.$ac_ext >&5
6770
eval "$as_ac_var=no"
6773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6774
conftest$ac_exeext conftest.$ac_ext
6776
ac_res=`eval echo '${'$as_ac_var'}'`
6777
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6778
echo "${ECHO_T}$ac_res" >&6; }
6779
if test `eval echo '${'$as_ac_var'}'` = yes; then
6780
cat >>confdefs.h <<_ACEOF
6781
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6787
{ echo "$as_me:$LINENO: checking for working mmap" >&5
6788
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6789
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6790
echo $ECHO_N "(cached) $ECHO_C" >&6
6792
if test "$cross_compiling" = yes; then
6793
ac_cv_func_mmap_fixed_mapped=no
6795
cat >conftest.$ac_ext <<_ACEOF
6798
cat confdefs.h >>conftest.$ac_ext
6799
cat >>conftest.$ac_ext <<_ACEOF
6800
/* end confdefs.h. */
6801
$ac_includes_default
6802
/* malloc might have been renamed as rpl_malloc. */
6805
/* Thanks to Mike Haertel and Jim Avera for this test.
6806
Here is a matrix of mmap possibilities:
6807
mmap private not fixed
6808
mmap private fixed at somewhere currently unmapped
6809
mmap private fixed at somewhere already mapped
6810
mmap shared not fixed
6811
mmap shared fixed at somewhere currently unmapped
6812
mmap shared fixed at somewhere already mapped
6813
For private mappings, we should verify that changes cannot be read()
6814
back from the file, nor mmap's back from the file at a different
6815
address. (There have been systems where private was not correctly
6816
implemented like the infamous i386 svr4.0, and systems where the
6817
VM page cache was not coherent with the file system buffer cache
6818
like early versions of FreeBSD and possibly contemporary NetBSD.)
6819
For shared mappings, we should conversely verify that changes get
6820
propagated back to all the places they're supposed to be.
6822
Grep wants private fixed already mapped.
6823
The main things grep needs to know about mmap are:
6824
* does it exist and is it safe to write into the mmap'd area
6825
* how to use it (BSD variants) */
6828
#include <sys/mman.h>
6830
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6834
/* This mess was copied from the GNU getpagesize.h. */
6835
#ifndef HAVE_GETPAGESIZE
6836
/* Assume that all systems that can run configure have sys/param.h. */
6837
# ifndef HAVE_SYS_PARAM_H
6838
# define HAVE_SYS_PARAM_H 1
6841
# ifdef _SC_PAGESIZE
6842
# define getpagesize() sysconf(_SC_PAGESIZE)
6843
# else /* no _SC_PAGESIZE */
6844
# ifdef HAVE_SYS_PARAM_H
6845
# include <sys/param.h>
6846
# ifdef EXEC_PAGESIZE
6847
# define getpagesize() EXEC_PAGESIZE
6848
# else /* no EXEC_PAGESIZE */
6850
# define getpagesize() NBPG * CLSIZE
6853
# endif /* no CLSIZE */
6854
# else /* no NBPG */
6856
# define getpagesize() NBPC
6857
# else /* no NBPC */
6859
# define getpagesize() PAGESIZE
6860
# endif /* PAGESIZE */
6861
# endif /* no NBPC */
6862
# endif /* no NBPG */
6863
# endif /* no EXEC_PAGESIZE */
6864
# else /* no HAVE_SYS_PARAM_H */
6865
# define getpagesize() 8192 /* punt totally */
6866
# endif /* no HAVE_SYS_PARAM_H */
6867
# endif /* no _SC_PAGESIZE */
6869
#endif /* no HAVE_GETPAGESIZE */
6874
char *data, *data2, *data3;
6878
pagesize = getpagesize ();
6880
/* First, make a file with some known garbage in it. */
6881
data = (char *) malloc (pagesize);
6884
for (i = 0; i < pagesize; ++i)
6885
*(data + i) = rand ();
6887
fd = creat ("conftest.mmap", 0600);
6890
if (write (fd, data, pagesize) != pagesize)
6894
/* Next, try to mmap the file at a fixed address which already has
6895
something else allocated at it. If we can, also make sure that
6896
we see the same garbage. */
6897
fd = open ("conftest.mmap", O_RDWR);
6900
data2 = (char *) malloc (2 * pagesize);
6903
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6904
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6905
MAP_PRIVATE | MAP_FIXED, fd, 0L))
6907
for (i = 0; i < pagesize; ++i)
6908
if (*(data + i) != *(data2 + i))
6911
/* Finally, make sure that changes to the mapped area do not
6912
percolate back to the file as seen by read(). (This is a bug on
6913
some variants of i386 svr4.0.) */
6914
for (i = 0; i < pagesize; ++i)
6915
*(data2 + i) = *(data2 + i) + 1;
6916
data3 = (char *) malloc (pagesize);
6919
if (read (fd, data3, pagesize) != pagesize)
6921
for (i = 0; i < pagesize; ++i)
6922
if (*(data + i) != *(data3 + i))
6928
rm -f conftest$ac_exeext
6929
if { (ac_try="$ac_link"
6931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932
*) ac_try_echo=$ac_try;;
6934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935
(eval "$ac_link") 2>&5
6937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6939
{ (case "(($ac_try" in
6940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941
*) ac_try_echo=$ac_try;;
6943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944
(eval "$ac_try") 2>&5
6946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947
(exit $ac_status); }; }; then
6948
ac_cv_func_mmap_fixed_mapped=yes
6950
echo "$as_me: program exited with status $ac_status" >&5
6951
echo "$as_me: failed program was:" >&5
6952
sed 's/^/| /' conftest.$ac_ext >&5
6955
ac_cv_func_mmap_fixed_mapped=no
6957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6963
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6964
if test $ac_cv_func_mmap_fixed_mapped = yes; then
6966
cat >>confdefs.h <<\_ACEOF
6974
{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6975
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6976
if test "${ac_cv_gnu_library_2_1+set}" = set; then
6977
echo $ECHO_N "(cached) $ECHO_C" >&6
6979
cat >conftest.$ac_ext <<_ACEOF
6982
cat confdefs.h >>conftest.$ac_ext
6983
cat >>conftest.$ac_ext <<_ACEOF
6984
/* end confdefs.h. */
6986
#include <features.h>
6987
#ifdef __GNU_LIBRARY__
6988
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6994
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
6996
ac_cv_gnu_library_2_1=yes
6998
ac_cv_gnu_library_2_1=no
7005
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7006
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
7008
GLIBC21="$ac_cv_gnu_library_2_1"
7013
{ echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7014
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
7015
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7016
echo $ECHO_N "(cached) $ECHO_C" >&6
7019
if test "$cross_compiling" = yes; then
7021
# Guess based on the CPU.
7023
alpha* | i3456786 | m68k | s390*)
7024
gt_cv_int_divbyzero_sigfpe="guessing yes";;
7026
gt_cv_int_divbyzero_sigfpe="guessing no";;
7030
cat >conftest.$ac_ext <<_ACEOF
7033
cat confdefs.h >>conftest.$ac_ext
7034
cat >>conftest.$ac_ext <<_ACEOF
7035
/* end confdefs.h. */
7042
sigfpe_handler (int sig)
7044
sigfpe_handler (sig) int sig;
7047
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7048
exit (sig != SIGFPE);
7058
signal (SIGFPE, sigfpe_handler);
7059
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7060
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7061
signal (SIGTRAP, sigfpe_handler);
7063
/* Linux/SPARC yields signal SIGILL. */
7064
#if defined (__sparc__) && defined (__linux__)
7065
signal (SIGILL, sigfpe_handler);
7074
rm -f conftest$ac_exeext
7075
if { (ac_try="$ac_link"
7077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078
*) ac_try_echo=$ac_try;;
7080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081
(eval "$ac_link") 2>&5
7083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7085
{ (case "(($ac_try" in
7086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087
*) ac_try_echo=$ac_try;;
7089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090
(eval "$ac_try") 2>&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; }; then
7094
gt_cv_int_divbyzero_sigfpe=yes
7096
echo "$as_me: program exited with status $ac_status" >&5
7097
echo "$as_me: failed program was:" >&5
7098
sed 's/^/| /' conftest.$ac_ext >&5
7101
gt_cv_int_divbyzero_sigfpe=no
7103
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7110
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
7111
case "$gt_cv_int_divbyzero_sigfpe" in
7116
cat >>confdefs.h <<_ACEOF
7117
#define INTDIV0_RAISES_SIGFPE $value
7122
{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
7123
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7124
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7125
echo $ECHO_N "(cached) $ECHO_C" >&6
7127
cat >conftest.$ac_ext <<_ACEOF
7130
cat confdefs.h >>conftest.$ac_ext
7131
cat >>conftest.$ac_ext <<_ACEOF
7132
/* end confdefs.h. */
7133
unsigned long long ull = 1ULL; int i = 63;
7137
unsigned long long ullmax = (unsigned long long) -1;
7138
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7143
rm -f conftest.$ac_objext conftest$ac_exeext
7144
if { (ac_try="$ac_link"
7146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147
*) ac_try_echo=$ac_try;;
7149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150
(eval "$ac_link") 2>conftest.er1
7152
grep -v '^ *+' conftest.er1 >conftest.err
7154
cat conftest.err >&5
7155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156
(exit $ac_status); } &&
7157
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7158
{ (case "(($ac_try" in
7159
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160
*) ac_try_echo=$ac_try;;
7162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163
(eval "$ac_try") 2>&5
7165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166
(exit $ac_status); }; } &&
7167
{ ac_try='test -s conftest$ac_exeext'
7168
{ (case "(($ac_try" in
7169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170
*) ac_try_echo=$ac_try;;
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173
(eval "$ac_try") 2>&5
7175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176
(exit $ac_status); }; }; then
7177
ac_cv_type_unsigned_long_long=yes
7179
echo "$as_me: failed program was:" >&5
7180
sed 's/^/| /' conftest.$ac_ext >&5
7182
ac_cv_type_unsigned_long_long=no
7185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7186
conftest$ac_exeext conftest.$ac_ext
7188
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7189
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7190
if test $ac_cv_type_unsigned_long_long = yes; then
7192
cat >>confdefs.h <<\_ACEOF
7193
#define HAVE_UNSIGNED_LONG_LONG 1
7201
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7203
test $ac_cv_type_unsigned_long_long = yes \
7204
&& ac_type='unsigned long long' \
7205
|| ac_type='unsigned long'
7207
cat >>confdefs.h <<_ACEOF
7208
#define uintmax_t $ac_type
7213
cat >>confdefs.h <<\_ACEOF
7214
#define HAVE_UINTMAX_T 1
7220
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
7221
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7222
if test "${gt_cv_header_inttypes_h+set}" = set; then
7223
echo $ECHO_N "(cached) $ECHO_C" >&6
7226
cat >conftest.$ac_ext <<_ACEOF
7229
cat confdefs.h >>conftest.$ac_ext
7230
cat >>conftest.$ac_ext <<_ACEOF
7231
/* end confdefs.h. */
7232
#include <sys/types.h>
7233
#include <inttypes.h>
7242
rm -f conftest.$ac_objext
7243
if { (ac_try="$ac_compile"
7245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246
*) ac_try_echo=$ac_try;;
7248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249
(eval "$ac_compile") 2>conftest.er1
7251
grep -v '^ *+' conftest.er1 >conftest.err
7253
cat conftest.err >&5
7254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255
(exit $ac_status); } &&
7256
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7257
{ (case "(($ac_try" in
7258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259
*) ac_try_echo=$ac_try;;
7261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262
(eval "$ac_try") 2>&5
7264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265
(exit $ac_status); }; } &&
7266
{ ac_try='test -s conftest.$ac_objext'
7267
{ (case "(($ac_try" in
7268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269
*) ac_try_echo=$ac_try;;
7271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272
(eval "$ac_try") 2>&5
7274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275
(exit $ac_status); }; }; then
7276
gt_cv_header_inttypes_h=yes
7278
echo "$as_me: failed program was:" >&5
7279
sed 's/^/| /' conftest.$ac_ext >&5
7281
gt_cv_header_inttypes_h=no
7284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287
{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7288
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7289
if test $gt_cv_header_inttypes_h = yes; then
7291
cat >>confdefs.h <<_ACEOF
7292
#define HAVE_INTTYPES_H 1
7299
if test $gt_cv_header_inttypes_h = yes; then
7300
{ echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7301
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7302
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7303
echo $ECHO_N "(cached) $ECHO_C" >&6
7306
cat >conftest.$ac_ext <<_ACEOF
7309
cat confdefs.h >>conftest.$ac_ext
7310
cat >>conftest.$ac_ext <<_ACEOF
7311
/* end confdefs.h. */
7312
#include <inttypes.h>
7325
rm -f conftest.$ac_objext
7326
if { (ac_try="$ac_compile"
7328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329
*) ac_try_echo=$ac_try;;
7331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332
(eval "$ac_compile") 2>conftest.er1
7334
grep -v '^ *+' conftest.er1 >conftest.err
7336
cat conftest.err >&5
7337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338
(exit $ac_status); } &&
7339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7340
{ (case "(($ac_try" in
7341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342
*) ac_try_echo=$ac_try;;
7344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345
(eval "$ac_try") 2>&5
7347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348
(exit $ac_status); }; } &&
7349
{ ac_try='test -s conftest.$ac_objext'
7350
{ (case "(($ac_try" in
7351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352
*) ac_try_echo=$ac_try;;
7354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355
(eval "$ac_try") 2>&5
7357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358
(exit $ac_status); }; }; then
7359
gt_cv_inttypes_pri_broken=no
7361
echo "$as_me: failed program was:" >&5
7362
sed 's/^/| /' conftest.$ac_ext >&5
7364
gt_cv_inttypes_pri_broken=yes
7367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370
{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7371
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7373
if test "$gt_cv_inttypes_pri_broken" = yes; then
7375
cat >>confdefs.h <<_ACEOF
7376
#define PRI_MACROS_BROKEN 1
7383
for ac_header in stdint.h
7385
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7387
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7389
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390
echo $ECHO_N "(cached) $ECHO_C" >&6
7392
ac_res=`eval echo '${'$as_ac_Header'}'`
7393
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7394
echo "${ECHO_T}$ac_res" >&6; }
7396
# Is the header compilable?
7397
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7398
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7399
cat >conftest.$ac_ext <<_ACEOF
7402
cat confdefs.h >>conftest.$ac_ext
7403
cat >>conftest.$ac_ext <<_ACEOF
7404
/* end confdefs.h. */
7405
$ac_includes_default
7406
#include <$ac_header>
7408
rm -f conftest.$ac_objext
7409
if { (ac_try="$ac_compile"
7411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412
*) ac_try_echo=$ac_try;;
7414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415
(eval "$ac_compile") 2>conftest.er1
7417
grep -v '^ *+' conftest.er1 >conftest.err
7419
cat conftest.err >&5
7420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421
(exit $ac_status); } &&
7422
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7423
{ (case "(($ac_try" in
7424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425
*) ac_try_echo=$ac_try;;
7427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428
(eval "$ac_try") 2>&5
7430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431
(exit $ac_status); }; } &&
7432
{ ac_try='test -s conftest.$ac_objext'
7433
{ (case "(($ac_try" in
7434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435
*) ac_try_echo=$ac_try;;
7437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438
(eval "$ac_try") 2>&5
7440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441
(exit $ac_status); }; }; then
7442
ac_header_compiler=yes
7444
echo "$as_me: failed program was:" >&5
7445
sed 's/^/| /' conftest.$ac_ext >&5
7447
ac_header_compiler=no
7450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7452
echo "${ECHO_T}$ac_header_compiler" >&6; }
7454
# Is the header present?
7455
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7456
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7457
cat >conftest.$ac_ext <<_ACEOF
7460
cat confdefs.h >>conftest.$ac_ext
7461
cat >>conftest.$ac_ext <<_ACEOF
7462
/* end confdefs.h. */
7463
#include <$ac_header>
7465
if { (ac_try="$ac_cpp conftest.$ac_ext"
7467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468
*) ac_try_echo=$ac_try;;
7470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7473
grep -v '^ *+' conftest.er1 >conftest.err
7475
cat conftest.err >&5
7476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477
(exit $ac_status); } >/dev/null; then
7478
if test -s conftest.err; then
7479
ac_cpp_err=$ac_c_preproc_warn_flag
7480
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7487
if test -z "$ac_cpp_err"; then
7488
ac_header_preproc=yes
7490
echo "$as_me: failed program was:" >&5
7491
sed 's/^/| /' conftest.$ac_ext >&5
7493
ac_header_preproc=no
7496
rm -f conftest.err conftest.$ac_ext
7497
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7498
echo "${ECHO_T}$ac_header_preproc" >&6; }
7500
# So? What about this header?
7501
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7503
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7504
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7505
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7506
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7507
ac_header_preproc=yes
7510
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7511
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7512
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7513
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7514
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7515
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7516
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7517
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7518
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7519
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7520
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7521
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7523
## ------------------------------------ ##
7524
## Report this to m17n-lib-bug@m17n.org ##
7525
## ------------------------------------ ##
7527
) | sed "s/^/$as_me: WARNING: /" >&2
7530
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7531
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7532
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533
echo $ECHO_N "(cached) $ECHO_C" >&6
7535
eval "$as_ac_Header=\$ac_header_preproc"
7537
ac_res=`eval echo '${'$as_ac_Header'}'`
7538
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7539
echo "${ECHO_T}$ac_res" >&6; }
7542
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543
cat >>confdefs.h <<_ACEOF
7544
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551
{ echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7552
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7554
cat >conftest.$ac_ext <<_ACEOF
7557
cat confdefs.h >>conftest.$ac_ext
7558
cat >>conftest.$ac_ext <<_ACEOF
7559
/* end confdefs.h. */
7570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7571
$EGREP "Found it" >/dev/null 2>&1; then
7576
if test -z "$result"; then
7577
if test "$cross_compiling" = yes; then
7578
# Depending upon the size, compute the lo and hi bounds.
7579
cat >conftest.$ac_ext <<_ACEOF
7582
cat confdefs.h >>conftest.$ac_ext
7583
cat >>conftest.$ac_ext <<_ACEOF
7584
/* end confdefs.h. */
7589
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7596
rm -f conftest.$ac_objext
7597
if { (ac_try="$ac_compile"
7599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600
*) ac_try_echo=$ac_try;;
7602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603
(eval "$ac_compile") 2>conftest.er1
7605
grep -v '^ *+' conftest.er1 >conftest.err
7607
cat conftest.err >&5
7608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609
(exit $ac_status); } &&
7610
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7611
{ (case "(($ac_try" in
7612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613
*) ac_try_echo=$ac_try;;
7615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616
(eval "$ac_try") 2>&5
7618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619
(exit $ac_status); }; } &&
7620
{ ac_try='test -s conftest.$ac_objext'
7621
{ (case "(($ac_try" in
7622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623
*) ac_try_echo=$ac_try;;
7625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626
(eval "$ac_try") 2>&5
7628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629
(exit $ac_status); }; }; then
7632
cat >conftest.$ac_ext <<_ACEOF
7635
cat confdefs.h >>conftest.$ac_ext
7636
cat >>conftest.$ac_ext <<_ACEOF
7637
/* end confdefs.h. */
7642
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7649
rm -f conftest.$ac_objext
7650
if { (ac_try="$ac_compile"
7652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653
*) ac_try_echo=$ac_try;;
7655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656
(eval "$ac_compile") 2>conftest.er1
7658
grep -v '^ *+' conftest.er1 >conftest.err
7660
cat conftest.err >&5
7661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662
(exit $ac_status); } &&
7663
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7664
{ (case "(($ac_try" in
7665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666
*) ac_try_echo=$ac_try;;
7668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669
(eval "$ac_try") 2>&5
7671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672
(exit $ac_status); }; } &&
7673
{ ac_try='test -s conftest.$ac_objext'
7674
{ (case "(($ac_try" in
7675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676
*) ac_try_echo=$ac_try;;
7678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679
(eval "$ac_try") 2>&5
7681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682
(exit $ac_status); }; }; then
7683
ac_hi=$ac_mid; break
7685
echo "$as_me: failed program was:" >&5
7686
sed 's/^/| /' conftest.$ac_ext >&5
7688
ac_lo=`expr $ac_mid + 1`
7689
if test $ac_lo -le $ac_mid; then
7693
ac_mid=`expr 2 '*' $ac_mid + 1`
7696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699
echo "$as_me: failed program was:" >&5
7700
sed 's/^/| /' conftest.$ac_ext >&5
7702
cat >conftest.$ac_ext <<_ACEOF
7705
cat confdefs.h >>conftest.$ac_ext
7706
cat >>conftest.$ac_ext <<_ACEOF
7707
/* end confdefs.h. */
7712
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7719
rm -f conftest.$ac_objext
7720
if { (ac_try="$ac_compile"
7722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723
*) ac_try_echo=$ac_try;;
7725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726
(eval "$ac_compile") 2>conftest.er1
7728
grep -v '^ *+' conftest.er1 >conftest.err
7730
cat conftest.err >&5
7731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732
(exit $ac_status); } &&
7733
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7734
{ (case "(($ac_try" in
7735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736
*) ac_try_echo=$ac_try;;
7738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739
(eval "$ac_try") 2>&5
7741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742
(exit $ac_status); }; } &&
7743
{ ac_try='test -s conftest.$ac_objext'
7744
{ (case "(($ac_try" in
7745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746
*) ac_try_echo=$ac_try;;
7748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749
(eval "$ac_try") 2>&5
7751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752
(exit $ac_status); }; }; then
7755
cat >conftest.$ac_ext <<_ACEOF
7758
cat confdefs.h >>conftest.$ac_ext
7759
cat >>conftest.$ac_ext <<_ACEOF
7760
/* end confdefs.h. */
7765
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7772
rm -f conftest.$ac_objext
7773
if { (ac_try="$ac_compile"
7775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776
*) ac_try_echo=$ac_try;;
7778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779
(eval "$ac_compile") 2>conftest.er1
7781
grep -v '^ *+' conftest.er1 >conftest.err
7783
cat conftest.err >&5
7784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785
(exit $ac_status); } &&
7786
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787
{ (case "(($ac_try" in
7788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789
*) ac_try_echo=$ac_try;;
7791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792
(eval "$ac_try") 2>&5
7794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795
(exit $ac_status); }; } &&
7796
{ ac_try='test -s conftest.$ac_objext'
7797
{ (case "(($ac_try" in
7798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799
*) ac_try_echo=$ac_try;;
7801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802
(eval "$ac_try") 2>&5
7804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805
(exit $ac_status); }; }; then
7806
ac_lo=$ac_mid; break
7808
echo "$as_me: failed program was:" >&5
7809
sed 's/^/| /' conftest.$ac_ext >&5
7811
ac_hi=`expr '(' $ac_mid ')' - 1`
7812
if test $ac_mid -le $ac_hi; then
7816
ac_mid=`expr 2 '*' $ac_mid`
7819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822
echo "$as_me: failed program was:" >&5
7823
sed 's/^/| /' conftest.$ac_ext >&5
7828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832
# Binary search between lo and hi bounds.
7833
while test "x$ac_lo" != "x$ac_hi"; do
7834
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7835
cat >conftest.$ac_ext <<_ACEOF
7838
cat confdefs.h >>conftest.$ac_ext
7839
cat >>conftest.$ac_ext <<_ACEOF
7840
/* end confdefs.h. */
7845
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7852
rm -f conftest.$ac_objext
7853
if { (ac_try="$ac_compile"
7855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856
*) ac_try_echo=$ac_try;;
7858
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859
(eval "$ac_compile") 2>conftest.er1
7861
grep -v '^ *+' conftest.er1 >conftest.err
7863
cat conftest.err >&5
7864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865
(exit $ac_status); } &&
7866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867
{ (case "(($ac_try" in
7868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869
*) ac_try_echo=$ac_try;;
7871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872
(eval "$ac_try") 2>&5
7874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875
(exit $ac_status); }; } &&
7876
{ ac_try='test -s conftest.$ac_objext'
7877
{ (case "(($ac_try" in
7878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879
*) ac_try_echo=$ac_try;;
7881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882
(eval "$ac_try") 2>&5
7884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885
(exit $ac_status); }; }; then
7888
echo "$as_me: failed program was:" >&5
7889
sed 's/^/| /' conftest.$ac_ext >&5
7891
ac_lo=`expr '(' $ac_mid ')' + 1`
7894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901
cat >conftest.$ac_ext <<_ACEOF
7904
cat confdefs.h >>conftest.$ac_ext
7905
cat >>conftest.$ac_ext <<_ACEOF
7906
/* end confdefs.h. */
7908
static long int longval () { return ~(size_t)0 / 10; }
7909
static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7916
FILE *f = fopen ("conftest.val", "w");
7919
if ((~(size_t)0 / 10) < 0)
7921
long int i = longval ();
7922
if (i != (~(size_t)0 / 10))
7924
fprintf (f, "%ld\n", i);
7928
unsigned long int i = ulongval ();
7929
if (i != (~(size_t)0 / 10))
7931
fprintf (f, "%lu\n", i);
7933
return ferror (f) || fclose (f) != 0;
7939
rm -f conftest$ac_exeext
7940
if { (ac_try="$ac_link"
7942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943
*) ac_try_echo=$ac_try;;
7945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946
(eval "$ac_link") 2>&5
7948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7950
{ (case "(($ac_try" in
7951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952
*) ac_try_echo=$ac_try;;
7954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955
(eval "$ac_try") 2>&5
7957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958
(exit $ac_status); }; }; then
7959
res_hi=`cat conftest.val`
7961
echo "$as_me: program exited with status $ac_status" >&5
7962
echo "$as_me: failed program was:" >&5
7963
sed 's/^/| /' conftest.$ac_ext >&5
7968
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7971
if test "$cross_compiling" = yes; then
7972
# Depending upon the size, compute the lo and hi bounds.
7973
cat >conftest.$ac_ext <<_ACEOF
7976
cat confdefs.h >>conftest.$ac_ext
7977
cat >>conftest.$ac_ext <<_ACEOF
7978
/* end confdefs.h. */
7983
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7990
rm -f conftest.$ac_objext
7991
if { (ac_try="$ac_compile"
7993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994
*) ac_try_echo=$ac_try;;
7996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997
(eval "$ac_compile") 2>conftest.er1
7999
grep -v '^ *+' conftest.er1 >conftest.err
8001
cat conftest.err >&5
8002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003
(exit $ac_status); } &&
8004
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8005
{ (case "(($ac_try" in
8006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007
*) ac_try_echo=$ac_try;;
8009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010
(eval "$ac_try") 2>&5
8012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013
(exit $ac_status); }; } &&
8014
{ ac_try='test -s conftest.$ac_objext'
8015
{ (case "(($ac_try" in
8016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017
*) ac_try_echo=$ac_try;;
8019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020
(eval "$ac_try") 2>&5
8022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023
(exit $ac_status); }; }; then
8026
cat >conftest.$ac_ext <<_ACEOF
8029
cat confdefs.h >>conftest.$ac_ext
8030
cat >>conftest.$ac_ext <<_ACEOF
8031
/* end confdefs.h. */
8036
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8043
rm -f conftest.$ac_objext
8044
if { (ac_try="$ac_compile"
8046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047
*) ac_try_echo=$ac_try;;
8049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050
(eval "$ac_compile") 2>conftest.er1
8052
grep -v '^ *+' conftest.er1 >conftest.err
8054
cat conftest.err >&5
8055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056
(exit $ac_status); } &&
8057
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8058
{ (case "(($ac_try" in
8059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060
*) ac_try_echo=$ac_try;;
8062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063
(eval "$ac_try") 2>&5
8065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066
(exit $ac_status); }; } &&
8067
{ ac_try='test -s conftest.$ac_objext'
8068
{ (case "(($ac_try" in
8069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070
*) ac_try_echo=$ac_try;;
8072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073
(eval "$ac_try") 2>&5
8075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076
(exit $ac_status); }; }; then
8077
ac_hi=$ac_mid; break
8079
echo "$as_me: failed program was:" >&5
8080
sed 's/^/| /' conftest.$ac_ext >&5
8082
ac_lo=`expr $ac_mid + 1`
8083
if test $ac_lo -le $ac_mid; then
8087
ac_mid=`expr 2 '*' $ac_mid + 1`
8090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
echo "$as_me: failed program was:" >&5
8094
sed 's/^/| /' conftest.$ac_ext >&5
8096
cat >conftest.$ac_ext <<_ACEOF
8099
cat confdefs.h >>conftest.$ac_ext
8100
cat >>conftest.$ac_ext <<_ACEOF
8101
/* end confdefs.h. */
8106
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8113
rm -f conftest.$ac_objext
8114
if { (ac_try="$ac_compile"
8116
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117
*) ac_try_echo=$ac_try;;
8119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120
(eval "$ac_compile") 2>conftest.er1
8122
grep -v '^ *+' conftest.er1 >conftest.err
8124
cat conftest.err >&5
8125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126
(exit $ac_status); } &&
8127
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8128
{ (case "(($ac_try" in
8129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130
*) ac_try_echo=$ac_try;;
8132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133
(eval "$ac_try") 2>&5
8135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136
(exit $ac_status); }; } &&
8137
{ ac_try='test -s conftest.$ac_objext'
8138
{ (case "(($ac_try" in
8139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140
*) ac_try_echo=$ac_try;;
8142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143
(eval "$ac_try") 2>&5
8145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146
(exit $ac_status); }; }; then
8149
cat >conftest.$ac_ext <<_ACEOF
8152
cat confdefs.h >>conftest.$ac_ext
8153
cat >>conftest.$ac_ext <<_ACEOF
8154
/* end confdefs.h. */
8159
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8166
rm -f conftest.$ac_objext
8167
if { (ac_try="$ac_compile"
8169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170
*) ac_try_echo=$ac_try;;
8172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173
(eval "$ac_compile") 2>conftest.er1
8175
grep -v '^ *+' conftest.er1 >conftest.err
8177
cat conftest.err >&5
8178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179
(exit $ac_status); } &&
8180
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181
{ (case "(($ac_try" in
8182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183
*) ac_try_echo=$ac_try;;
8185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186
(eval "$ac_try") 2>&5
8188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
(exit $ac_status); }; } &&
8190
{ ac_try='test -s conftest.$ac_objext'
8191
{ (case "(($ac_try" in
8192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193
*) ac_try_echo=$ac_try;;
8195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196
(eval "$ac_try") 2>&5
8198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199
(exit $ac_status); }; }; then
8200
ac_lo=$ac_mid; break
8202
echo "$as_me: failed program was:" >&5
8203
sed 's/^/| /' conftest.$ac_ext >&5
8205
ac_hi=`expr '(' $ac_mid ')' - 1`
8206
if test $ac_mid -le $ac_hi; then
8210
ac_mid=`expr 2 '*' $ac_mid`
8213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216
echo "$as_me: failed program was:" >&5
8217
sed 's/^/| /' conftest.$ac_ext >&5
8222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226
# Binary search between lo and hi bounds.
8227
while test "x$ac_lo" != "x$ac_hi"; do
8228
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8229
cat >conftest.$ac_ext <<_ACEOF
8232
cat confdefs.h >>conftest.$ac_ext
8233
cat >>conftest.$ac_ext <<_ACEOF
8234
/* end confdefs.h. */
8239
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8246
rm -f conftest.$ac_objext
8247
if { (ac_try="$ac_compile"
8249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250
*) ac_try_echo=$ac_try;;
8252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253
(eval "$ac_compile") 2>conftest.er1
8255
grep -v '^ *+' conftest.er1 >conftest.err
8257
cat conftest.err >&5
8258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259
(exit $ac_status); } &&
8260
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8261
{ (case "(($ac_try" in
8262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263
*) ac_try_echo=$ac_try;;
8265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266
(eval "$ac_try") 2>&5
8268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269
(exit $ac_status); }; } &&
8270
{ ac_try='test -s conftest.$ac_objext'
8271
{ (case "(($ac_try" in
8272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273
*) ac_try_echo=$ac_try;;
8275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276
(eval "$ac_try") 2>&5
8278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279
(exit $ac_status); }; }; then
8282
echo "$as_me: failed program was:" >&5
8283
sed 's/^/| /' conftest.$ac_ext >&5
8285
ac_lo=`expr '(' $ac_mid ')' + 1`
8288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295
cat >conftest.$ac_ext <<_ACEOF
8298
cat confdefs.h >>conftest.$ac_ext
8299
cat >>conftest.$ac_ext <<_ACEOF
8300
/* end confdefs.h. */
8302
static long int longval () { return ~(size_t)0 % 10; }
8303
static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8310
FILE *f = fopen ("conftest.val", "w");
8313
if ((~(size_t)0 % 10) < 0)
8315
long int i = longval ();
8316
if (i != (~(size_t)0 % 10))
8318
fprintf (f, "%ld\n", i);
8322
unsigned long int i = ulongval ();
8323
if (i != (~(size_t)0 % 10))
8325
fprintf (f, "%lu\n", i);
8327
return ferror (f) || fclose (f) != 0;
8333
rm -f conftest$ac_exeext
8334
if { (ac_try="$ac_link"
8336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337
*) ac_try_echo=$ac_try;;
8339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340
(eval "$ac_link") 2>&5
8342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8344
{ (case "(($ac_try" in
8345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346
*) ac_try_echo=$ac_try;;
8348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349
(eval "$ac_try") 2>&5
8351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352
(exit $ac_status); }; }; then
8353
res_lo=`cat conftest.val`
8355
echo "$as_me: program exited with status $ac_status" >&5
8356
echo "$as_me: failed program was:" >&5
8357
sed 's/^/| /' conftest.$ac_ext >&5
8362
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8365
if test "$cross_compiling" = yes; then
8366
# Depending upon the size, compute the lo and hi bounds.
8367
cat >conftest.$ac_ext <<_ACEOF
8370
cat confdefs.h >>conftest.$ac_ext
8371
cat >>conftest.$ac_ext <<_ACEOF
8372
/* end confdefs.h. */
8377
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8384
rm -f conftest.$ac_objext
8385
if { (ac_try="$ac_compile"
8387
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388
*) ac_try_echo=$ac_try;;
8390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391
(eval "$ac_compile") 2>conftest.er1
8393
grep -v '^ *+' conftest.er1 >conftest.err
8395
cat conftest.err >&5
8396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397
(exit $ac_status); } &&
8398
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399
{ (case "(($ac_try" in
8400
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401
*) ac_try_echo=$ac_try;;
8403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404
(eval "$ac_try") 2>&5
8406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407
(exit $ac_status); }; } &&
8408
{ ac_try='test -s conftest.$ac_objext'
8409
{ (case "(($ac_try" in
8410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411
*) ac_try_echo=$ac_try;;
8413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414
(eval "$ac_try") 2>&5
8416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417
(exit $ac_status); }; }; then
8420
cat >conftest.$ac_ext <<_ACEOF
8423
cat confdefs.h >>conftest.$ac_ext
8424
cat >>conftest.$ac_ext <<_ACEOF
8425
/* end confdefs.h. */
8430
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8437
rm -f conftest.$ac_objext
8438
if { (ac_try="$ac_compile"
8440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441
*) ac_try_echo=$ac_try;;
8443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444
(eval "$ac_compile") 2>conftest.er1
8446
grep -v '^ *+' conftest.er1 >conftest.err
8448
cat conftest.err >&5
8449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450
(exit $ac_status); } &&
8451
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452
{ (case "(($ac_try" in
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_try") 2>&5
8459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460
(exit $ac_status); }; } &&
8461
{ ac_try='test -s conftest.$ac_objext'
8462
{ (case "(($ac_try" in
8463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464
*) ac_try_echo=$ac_try;;
8466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467
(eval "$ac_try") 2>&5
8469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470
(exit $ac_status); }; }; then
8471
ac_hi=$ac_mid; break
8473
echo "$as_me: failed program was:" >&5
8474
sed 's/^/| /' conftest.$ac_ext >&5
8476
ac_lo=`expr $ac_mid + 1`
8477
if test $ac_lo -le $ac_mid; then
8481
ac_mid=`expr 2 '*' $ac_mid + 1`
8484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487
echo "$as_me: failed program was:" >&5
8488
sed 's/^/| /' conftest.$ac_ext >&5
8490
cat >conftest.$ac_ext <<_ACEOF
8493
cat confdefs.h >>conftest.$ac_ext
8494
cat >>conftest.$ac_ext <<_ACEOF
8495
/* end confdefs.h. */
8500
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8507
rm -f conftest.$ac_objext
8508
if { (ac_try="$ac_compile"
8510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511
*) ac_try_echo=$ac_try;;
8513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514
(eval "$ac_compile") 2>conftest.er1
8516
grep -v '^ *+' conftest.er1 >conftest.err
8518
cat conftest.err >&5
8519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520
(exit $ac_status); } &&
8521
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8522
{ (case "(($ac_try" in
8523
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524
*) ac_try_echo=$ac_try;;
8526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527
(eval "$ac_try") 2>&5
8529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530
(exit $ac_status); }; } &&
8531
{ ac_try='test -s conftest.$ac_objext'
8532
{ (case "(($ac_try" in
8533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534
*) ac_try_echo=$ac_try;;
8536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537
(eval "$ac_try") 2>&5
8539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
(exit $ac_status); }; }; then
8543
cat >conftest.$ac_ext <<_ACEOF
8546
cat confdefs.h >>conftest.$ac_ext
8547
cat >>conftest.$ac_ext <<_ACEOF
8548
/* end confdefs.h. */
8553
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8560
rm -f conftest.$ac_objext
8561
if { (ac_try="$ac_compile"
8563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564
*) ac_try_echo=$ac_try;;
8566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567
(eval "$ac_compile") 2>conftest.er1
8569
grep -v '^ *+' conftest.er1 >conftest.err
8571
cat conftest.err >&5
8572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573
(exit $ac_status); } &&
8574
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575
{ (case "(($ac_try" in
8576
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577
*) ac_try_echo=$ac_try;;
8579
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580
(eval "$ac_try") 2>&5
8582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583
(exit $ac_status); }; } &&
8584
{ ac_try='test -s conftest.$ac_objext'
8585
{ (case "(($ac_try" in
8586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587
*) ac_try_echo=$ac_try;;
8589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590
(eval "$ac_try") 2>&5
8592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
(exit $ac_status); }; }; then
8594
ac_lo=$ac_mid; break
8596
echo "$as_me: failed program was:" >&5
8597
sed 's/^/| /' conftest.$ac_ext >&5
8599
ac_hi=`expr '(' $ac_mid ')' - 1`
8600
if test $ac_mid -le $ac_hi; then
8604
ac_mid=`expr 2 '*' $ac_mid`
8607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610
echo "$as_me: failed program was:" >&5
8611
sed 's/^/| /' conftest.$ac_ext >&5
8616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620
# Binary search between lo and hi bounds.
8621
while test "x$ac_lo" != "x$ac_hi"; do
8622
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8623
cat >conftest.$ac_ext <<_ACEOF
8626
cat confdefs.h >>conftest.$ac_ext
8627
cat >>conftest.$ac_ext <<_ACEOF
8628
/* end confdefs.h. */
8633
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8640
rm -f conftest.$ac_objext
8641
if { (ac_try="$ac_compile"
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_compile") 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
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8655
{ (case "(($ac_try" in
8656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657
*) ac_try_echo=$ac_try;;
8659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660
(eval "$ac_try") 2>&5
8662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663
(exit $ac_status); }; } &&
8664
{ ac_try='test -s conftest.$ac_objext'
8665
{ (case "(($ac_try" in
8666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667
*) ac_try_echo=$ac_try;;
8669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670
(eval "$ac_try") 2>&5
8672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
(exit $ac_status); }; }; then
8676
echo "$as_me: failed program was:" >&5
8677
sed 's/^/| /' conftest.$ac_ext >&5
8679
ac_lo=`expr '(' $ac_mid ')' + 1`
8682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685
?*) fits_in_uint=$ac_lo;;
8689
cat >conftest.$ac_ext <<_ACEOF
8692
cat confdefs.h >>conftest.$ac_ext
8693
cat >>conftest.$ac_ext <<_ACEOF
8694
/* end confdefs.h. */
8696
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8697
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8704
FILE *f = fopen ("conftest.val", "w");
8707
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8709
long int i = longval ();
8710
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8712
fprintf (f, "%ld\n", i);
8716
unsigned long int i = ulongval ();
8717
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8719
fprintf (f, "%lu\n", i);
8721
return ferror (f) || fclose (f) != 0;
8727
rm -f conftest$ac_exeext
8728
if { (ac_try="$ac_link"
8730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731
*) ac_try_echo=$ac_try;;
8733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734
(eval "$ac_link") 2>&5
8736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8738
{ (case "(($ac_try" in
8739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740
*) ac_try_echo=$ac_try;;
8742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743
(eval "$ac_try") 2>&5
8745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746
(exit $ac_status); }; }; then
8747
fits_in_uint=`cat conftest.val`
8749
echo "$as_me: program exited with status $ac_status" >&5
8750
echo "$as_me: failed program was:" >&5
8751
sed 's/^/| /' conftest.$ac_ext >&5
8756
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8759
if test "$fits_in_uint" = 1; then
8760
cat >conftest.$ac_ext <<_ACEOF
8763
cat confdefs.h >>conftest.$ac_ext
8764
cat >>conftest.$ac_ext <<_ACEOF
8765
/* end confdefs.h. */
8768
extern unsigned long foo;
8778
rm -f conftest.$ac_objext
8779
if { (ac_try="$ac_compile"
8781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782
*) ac_try_echo=$ac_try;;
8784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785
(eval "$ac_compile") 2>conftest.er1
8787
grep -v '^ *+' conftest.er1 >conftest.err
8789
cat conftest.err >&5
8790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791
(exit $ac_status); } &&
8792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793
{ (case "(($ac_try" in
8794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795
*) ac_try_echo=$ac_try;;
8797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798
(eval "$ac_try") 2>&5
8800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801
(exit $ac_status); }; } &&
8802
{ ac_try='test -s conftest.$ac_objext'
8803
{ (case "(($ac_try" in
8804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805
*) ac_try_echo=$ac_try;;
8807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808
(eval "$ac_try") 2>&5
8810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
(exit $ac_status); }; }; then
8814
echo "$as_me: failed program was:" >&5
8815
sed 's/^/| /' conftest.$ac_ext >&5
8820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822
if test -z "$result"; then
8823
if test "$fits_in_uint" = 1; then
8824
result="$res_hi$res_lo"U
8826
result="$res_hi$res_lo"UL
8832
{ echo "$as_me:$LINENO: result: $result" >&5
8833
echo "${ECHO_T}$result" >&6; }
8834
if test "$result" != yes; then
8836
cat >>confdefs.h <<_ACEOF
8837
#define SIZE_MAX $result
8846
for ac_header in stdint.h
8848
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8849
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8851
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8852
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8853
echo $ECHO_N "(cached) $ECHO_C" >&6
8855
ac_res=`eval echo '${'$as_ac_Header'}'`
8856
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8857
echo "${ECHO_T}$ac_res" >&6; }
8859
# Is the header compilable?
8860
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8861
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8862
cat >conftest.$ac_ext <<_ACEOF
8865
cat confdefs.h >>conftest.$ac_ext
8866
cat >>conftest.$ac_ext <<_ACEOF
8867
/* end confdefs.h. */
8868
$ac_includes_default
8869
#include <$ac_header>
8871
rm -f conftest.$ac_objext
8872
if { (ac_try="$ac_compile"
8874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875
*) ac_try_echo=$ac_try;;
8877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878
(eval "$ac_compile") 2>conftest.er1
8880
grep -v '^ *+' conftest.er1 >conftest.err
8882
cat conftest.err >&5
8883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884
(exit $ac_status); } &&
8885
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886
{ (case "(($ac_try" in
8887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888
*) ac_try_echo=$ac_try;;
8890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891
(eval "$ac_try") 2>&5
8893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894
(exit $ac_status); }; } &&
8895
{ ac_try='test -s conftest.$ac_objext'
8896
{ (case "(($ac_try" in
8897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898
*) ac_try_echo=$ac_try;;
8900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901
(eval "$ac_try") 2>&5
8903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904
(exit $ac_status); }; }; then
8905
ac_header_compiler=yes
8907
echo "$as_me: failed program was:" >&5
8908
sed 's/^/| /' conftest.$ac_ext >&5
8910
ac_header_compiler=no
8913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8915
echo "${ECHO_T}$ac_header_compiler" >&6; }
8917
# Is the header present?
8918
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8919
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8920
cat >conftest.$ac_ext <<_ACEOF
8923
cat confdefs.h >>conftest.$ac_ext
8924
cat >>conftest.$ac_ext <<_ACEOF
8925
/* end confdefs.h. */
8926
#include <$ac_header>
8928
if { (ac_try="$ac_cpp conftest.$ac_ext"
8930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931
*) ac_try_echo=$ac_try;;
8933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8936
grep -v '^ *+' conftest.er1 >conftest.err
8938
cat conftest.err >&5
8939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940
(exit $ac_status); } >/dev/null; then
8941
if test -s conftest.err; then
8942
ac_cpp_err=$ac_c_preproc_warn_flag
8943
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8950
if test -z "$ac_cpp_err"; then
8951
ac_header_preproc=yes
8953
echo "$as_me: failed program was:" >&5
8954
sed 's/^/| /' conftest.$ac_ext >&5
8956
ac_header_preproc=no
8959
rm -f conftest.err conftest.$ac_ext
8960
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8961
echo "${ECHO_T}$ac_header_preproc" >&6; }
8963
# So? What about this header?
8964
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8966
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8967
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8968
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8969
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8970
ac_header_preproc=yes
8973
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8974
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8975
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8976
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8977
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8978
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8979
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8980
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8981
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8982
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8983
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8984
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8986
## ------------------------------------ ##
8987
## Report this to m17n-lib-bug@m17n.org ##
8988
## ------------------------------------ ##
8990
) | sed "s/^/$as_me: WARNING: /" >&2
8993
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8994
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8995
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8996
echo $ECHO_N "(cached) $ECHO_C" >&6
8998
eval "$as_ac_Header=\$ac_header_preproc"
9000
ac_res=`eval echo '${'$as_ac_Header'}'`
9001
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9002
echo "${ECHO_T}$ac_res" >&6; }
9005
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9006
cat >>confdefs.h <<_ACEOF
9007
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
9017
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
9018
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
9019
echo $ECHO_N "(cached) $ECHO_C" >&6
9021
gt_save_CPPFLAGS="$CPPFLAGS"
9022
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9023
gt_save_LIBS="$LIBS"
9024
LIBS="$LIBS -framework CoreFoundation"
9025
cat >conftest.$ac_ext <<_ACEOF
9028
cat confdefs.h >>conftest.$ac_ext
9029
cat >>conftest.$ac_ext <<_ACEOF
9030
/* end confdefs.h. */
9031
#include <CFPreferences.h>
9035
CFPreferencesCopyAppValue(NULL, NULL)
9040
rm -f conftest.$ac_objext conftest$ac_exeext
9041
if { (ac_try="$ac_link"
9043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044
*) ac_try_echo=$ac_try;;
9046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047
(eval "$ac_link") 2>conftest.er1
9049
grep -v '^ *+' conftest.er1 >conftest.err
9051
cat conftest.err >&5
9052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053
(exit $ac_status); } &&
9054
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055
{ (case "(($ac_try" in
9056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057
*) ac_try_echo=$ac_try;;
9059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060
(eval "$ac_try") 2>&5
9062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063
(exit $ac_status); }; } &&
9064
{ ac_try='test -s conftest$ac_exeext'
9065
{ (case "(($ac_try" in
9066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067
*) ac_try_echo=$ac_try;;
9069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070
(eval "$ac_try") 2>&5
9072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
(exit $ac_status); }; }; then
9074
gt_cv_func_CFPreferencesCopyAppValue=yes
9076
echo "$as_me: failed program was:" >&5
9077
sed 's/^/| /' conftest.$ac_ext >&5
9079
gt_cv_func_CFPreferencesCopyAppValue=no
9082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083
conftest$ac_exeext conftest.$ac_ext
9084
CPPFLAGS="$gt_save_CPPFLAGS"
9085
LIBS="$gt_save_LIBS"
9087
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9088
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9089
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9091
cat >>confdefs.h <<\_ACEOF
9092
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
9096
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
9097
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
9098
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
9099
echo $ECHO_N "(cached) $ECHO_C" >&6
9101
gt_save_CPPFLAGS="$CPPFLAGS"
9102
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9103
gt_save_LIBS="$LIBS"
9104
LIBS="$LIBS -framework CoreFoundation"
9105
cat >conftest.$ac_ext <<_ACEOF
9108
cat confdefs.h >>conftest.$ac_ext
9109
cat >>conftest.$ac_ext <<_ACEOF
9110
/* end confdefs.h. */
9111
#include <CFLocale.h>
9115
CFLocaleCopyCurrent();
9120
rm -f conftest.$ac_objext conftest$ac_exeext
9121
if { (ac_try="$ac_link"
9123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124
*) ac_try_echo=$ac_try;;
9126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127
(eval "$ac_link") 2>conftest.er1
9129
grep -v '^ *+' conftest.er1 >conftest.err
9131
cat conftest.err >&5
9132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
(exit $ac_status); } &&
9134
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9135
{ (case "(($ac_try" in
9136
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137
*) ac_try_echo=$ac_try;;
9139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140
(eval "$ac_try") 2>&5
9142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143
(exit $ac_status); }; } &&
9144
{ ac_try='test -s conftest$ac_exeext'
9145
{ (case "(($ac_try" in
9146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147
*) ac_try_echo=$ac_try;;
9149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150
(eval "$ac_try") 2>&5
9152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153
(exit $ac_status); }; }; then
9154
gt_cv_func_CFLocaleCopyCurrent=yes
9156
echo "$as_me: failed program was:" >&5
9157
sed 's/^/| /' conftest.$ac_ext >&5
9159
gt_cv_func_CFLocaleCopyCurrent=no
9162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9163
conftest$ac_exeext conftest.$ac_ext
9164
CPPFLAGS="$gt_save_CPPFLAGS"
9165
LIBS="$gt_save_LIBS"
9167
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9168
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9169
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9171
cat >>confdefs.h <<\_ACEOF
9172
#define HAVE_CFLOCALECOPYCURRENT 1
9177
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9178
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9183
if test "X$prefix" = "XNONE"; then
9184
acl_final_prefix="$ac_default_prefix"
9186
acl_final_prefix="$prefix"
9188
if test "X$exec_prefix" = "XNONE"; then
9189
acl_final_exec_prefix='${prefix}'
9191
acl_final_exec_prefix="$exec_prefix"
9193
acl_save_prefix="$prefix"
9194
prefix="$acl_final_prefix"
9195
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9196
prefix="$acl_save_prefix"
9199
# Check whether --with-gnu-ld was given.
9200
if test "${with_gnu_ld+set}" = set; then
9201
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9206
# Prepare PATH_SEPARATOR.
9207
# The user is always right.
9208
if test "${PATH_SEPARATOR+set}" != set; then
9209
echo "#! /bin/sh" >conf$$.sh
9210
echo "exit 0" >>conf$$.sh
9212
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9220
if test "$GCC" = yes; then
9221
# Check if gcc -print-prog-name=ld gives a path.
9222
{ echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9223
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
9226
# gcc leaves a trailing carriage return which upsets mingw
9227
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9229
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9232
# Accept absolute paths.
9233
[\\/]* | [A-Za-z]:[\\/]*)
9234
re_direlt='/[^/][^/]*/\.\./'
9235
# Canonicalize the path of ld
9236
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9237
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9238
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9240
test -z "$LD" && LD="$ac_prog"
9243
# If it fails, then pretend we aren't using GCC.
9247
# If it is relative, then search for the first ld in PATH.
9251
elif test "$with_gnu_ld" = yes; then
9252
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
9253
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9255
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9256
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9258
if test "${acl_cv_path_LD+set}" = set; then
9259
echo $ECHO_N "(cached) $ECHO_C" >&6
9261
if test -z "$LD"; then
9262
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9263
for ac_dir in $PATH; do
9264
test -z "$ac_dir" && ac_dir=.
9265
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9266
acl_cv_path_LD="$ac_dir/$ac_prog"
9267
# Check to see if the program is GNU ld. I'd rather use --version,
9268
# but apparently some GNU ld's only accept -v.
9269
# Break only if it was the GNU/non-GNU ld that we prefer.
9270
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9271
*GNU* | *'with BFD'*)
9272
test "$with_gnu_ld" != no && break ;;
9274
test "$with_gnu_ld" != yes && break ;;
9280
acl_cv_path_LD="$LD" # Let the user override the test with a path.
9284
LD="$acl_cv_path_LD"
9285
if test -n "$LD"; then
9286
{ echo "$as_me:$LINENO: result: $LD" >&5
9287
echo "${ECHO_T}$LD" >&6; }
9289
{ echo "$as_me:$LINENO: result: no" >&5
9290
echo "${ECHO_T}no" >&6; }
9292
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9293
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9294
{ (exit 1); exit 1; }; }
9295
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9296
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9297
if test "${acl_cv_prog_gnu_ld+set}" = set; then
9298
echo $ECHO_N "(cached) $ECHO_C" >&6
9300
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9301
case `$LD -v 2>&1 </dev/null` in
9302
*GNU* | *'with BFD'*)
9303
acl_cv_prog_gnu_ld=yes ;;
9305
acl_cv_prog_gnu_ld=no ;;
9308
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9309
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9310
with_gnu_ld=$acl_cv_prog_gnu_ld
9315
{ echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9316
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9317
if test "${acl_cv_rpath+set}" = set; then
9318
echo $ECHO_N "(cached) $ECHO_C" >&6
9321
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9322
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9328
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9329
echo "${ECHO_T}$acl_cv_rpath" >&6; }
9331
libext="$acl_cv_libext"
9332
shlibext="$acl_cv_shlibext"
9333
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9334
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9335
hardcode_direct="$acl_cv_hardcode_direct"
9336
hardcode_minus_L="$acl_cv_hardcode_minus_L"
9337
# Check whether --enable-rpath was given.
9338
if test "${enable_rpath+set}" = set; then
9339
enableval=$enable_rpath; :
9353
acl_save_prefix="$prefix"
9354
prefix="$acl_final_prefix"
9355
acl_save_exec_prefix="$exec_prefix"
9356
exec_prefix="$acl_final_exec_prefix"
9358
eval additional_includedir=\"$includedir\"
9359
eval additional_libdir=\"$libdir\"
9361
exec_prefix="$acl_save_exec_prefix"
9362
prefix="$acl_save_prefix"
9365
# Check whether --with-libiconv-prefix was given.
9366
if test "${with_libiconv_prefix+set}" = set; then
9367
withval=$with_libiconv_prefix;
9368
if test "X$withval" = "Xno"; then
9371
if test "X$withval" = "X"; then
9373
acl_save_prefix="$prefix"
9374
prefix="$acl_final_prefix"
9375
acl_save_exec_prefix="$exec_prefix"
9376
exec_prefix="$acl_final_exec_prefix"
9378
eval additional_includedir=\"$includedir\"
9379
eval additional_libdir=\"$libdir\"
9381
exec_prefix="$acl_save_exec_prefix"
9382
prefix="$acl_save_prefix"
9385
additional_includedir="$withval/include"
9386
additional_libdir="$withval/lib"
9397
names_already_handled=
9398
names_next_round='iconv '
9399
while test -n "$names_next_round"; do
9400
names_this_round="$names_next_round"
9402
for name in $names_this_round; do
9404
for n in $names_already_handled; do
9405
if test "$n" = "$name"; then
9410
if test -z "$already_handled"; then
9411
names_already_handled="$names_already_handled $name"
9412
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9413
eval value=\"\$HAVE_LIB$uppername\"
9414
if test -n "$value"; then
9415
if test "$value" = yes; then
9416
eval value=\"\$LIB$uppername\"
9417
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9418
eval value=\"\$LTLIB$uppername\"
9419
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9428
if test $use_additional = yes; then
9429
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9430
found_dir="$additional_libdir"
9431
found_so="$additional_libdir/lib$name.$shlibext"
9432
if test -f "$additional_libdir/lib$name.la"; then
9433
found_la="$additional_libdir/lib$name.la"
9436
if test -f "$additional_libdir/lib$name.$libext"; then
9437
found_dir="$additional_libdir"
9438
found_a="$additional_libdir/lib$name.$libext"
9439
if test -f "$additional_libdir/lib$name.la"; then
9440
found_la="$additional_libdir/lib$name.la"
9445
if test "X$found_dir" = "X"; then
9446
for x in $LDFLAGS $LTLIBICONV; do
9448
acl_save_prefix="$prefix"
9449
prefix="$acl_final_prefix"
9450
acl_save_exec_prefix="$exec_prefix"
9451
exec_prefix="$acl_final_exec_prefix"
9453
exec_prefix="$acl_save_exec_prefix"
9454
prefix="$acl_save_prefix"
9458
dir=`echo "X$x" | sed -e 's/^X-L//'`
9459
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9461
found_so="$dir/lib$name.$shlibext"
9462
if test -f "$dir/lib$name.la"; then
9463
found_la="$dir/lib$name.la"
9466
if test -f "$dir/lib$name.$libext"; then
9468
found_a="$dir/lib$name.$libext"
9469
if test -f "$dir/lib$name.la"; then
9470
found_la="$dir/lib$name.la"
9476
if test "X$found_dir" != "X"; then
9481
if test "X$found_dir" != "X"; then
9482
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9483
if test "X$found_so" != "X"; then
9484
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9485
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9488
for x in $ltrpathdirs; do
9489
if test "X$x" = "X$found_dir"; then
9494
if test -z "$haveit"; then
9495
ltrpathdirs="$ltrpathdirs $found_dir"
9497
if test "$hardcode_direct" = yes; then
9498
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9500
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9501
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9503
for x in $rpathdirs; do
9504
if test "X$x" = "X$found_dir"; then
9509
if test -z "$haveit"; then
9510
rpathdirs="$rpathdirs $found_dir"
9514
for x in $LDFLAGS $LIBICONV; do
9516
acl_save_prefix="$prefix"
9517
prefix="$acl_final_prefix"
9518
acl_save_exec_prefix="$exec_prefix"
9519
exec_prefix="$acl_final_exec_prefix"
9521
exec_prefix="$acl_save_exec_prefix"
9522
prefix="$acl_save_prefix"
9524
if test "X$x" = "X-L$found_dir"; then
9529
if test -z "$haveit"; then
9530
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9532
if test "$hardcode_minus_L" != no; then
9533
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9535
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9541
if test "X$found_a" != "X"; then
9542
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9544
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9547
additional_includedir=
9548
case "$found_dir" in
9550
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9551
additional_includedir="$basedir/include"
9554
if test "X$additional_includedir" != "X"; then
9555
if test "X$additional_includedir" != "X/usr/include"; then
9557
if test "X$additional_includedir" = "X/usr/local/include"; then
9558
if test -n "$GCC"; then
9560
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9564
if test -z "$haveit"; then
9565
for x in $CPPFLAGS $INCICONV; do
9567
acl_save_prefix="$prefix"
9568
prefix="$acl_final_prefix"
9569
acl_save_exec_prefix="$exec_prefix"
9570
exec_prefix="$acl_final_exec_prefix"
9572
exec_prefix="$acl_save_exec_prefix"
9573
prefix="$acl_save_prefix"
9575
if test "X$x" = "X-I$additional_includedir"; then
9580
if test -z "$haveit"; then
9581
if test -d "$additional_includedir"; then
9582
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9588
if test -n "$found_la"; then
9589
save_libdir="$libdir"
9591
*/* | *\\*) . "$found_la" ;;
9592
*) . "./$found_la" ;;
9594
libdir="$save_libdir"
9595
for dep in $dependency_libs; do
9598
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9599
if test "X$additional_libdir" != "X/usr/lib"; then
9601
if test "X$additional_libdir" = "X/usr/local/lib"; then
9602
if test -n "$GCC"; then
9604
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9608
if test -z "$haveit"; then
9610
for x in $LDFLAGS $LIBICONV; do
9612
acl_save_prefix="$prefix"
9613
prefix="$acl_final_prefix"
9614
acl_save_exec_prefix="$exec_prefix"
9615
exec_prefix="$acl_final_exec_prefix"
9617
exec_prefix="$acl_save_exec_prefix"
9618
prefix="$acl_save_prefix"
9620
if test "X$x" = "X-L$additional_libdir"; then
9625
if test -z "$haveit"; then
9626
if test -d "$additional_libdir"; then
9627
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9631
for x in $LDFLAGS $LTLIBICONV; do
9633
acl_save_prefix="$prefix"
9634
prefix="$acl_final_prefix"
9635
acl_save_exec_prefix="$exec_prefix"
9636
exec_prefix="$acl_final_exec_prefix"
9638
exec_prefix="$acl_save_exec_prefix"
9639
prefix="$acl_save_prefix"
9641
if test "X$x" = "X-L$additional_libdir"; then
9646
if test -z "$haveit"; then
9647
if test -d "$additional_libdir"; then
9648
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9655
dir=`echo "X$dep" | sed -e 's/^X-R//'`
9656
if test "$enable_rpath" != no; then
9658
for x in $rpathdirs; do
9659
if test "X$x" = "X$dir"; then
9664
if test -z "$haveit"; then
9665
rpathdirs="$rpathdirs $dir"
9668
for x in $ltrpathdirs; do
9669
if test "X$x" = "X$dir"; then
9674
if test -z "$haveit"; then
9675
ltrpathdirs="$ltrpathdirs $dir"
9680
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9683
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9686
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9687
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9693
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9694
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9700
if test "X$rpathdirs" != "X"; then
9701
if test -n "$hardcode_libdir_separator"; then
9703
for found_dir in $rpathdirs; do
9704
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9706
acl_save_libdir="$libdir"
9708
eval flag=\"$hardcode_libdir_flag_spec\"
9709
libdir="$acl_save_libdir"
9710
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9712
for found_dir in $rpathdirs; do
9713
acl_save_libdir="$libdir"
9715
eval flag=\"$hardcode_libdir_flag_spec\"
9716
libdir="$acl_save_libdir"
9717
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9721
if test "X$ltrpathdirs" != "X"; then
9722
for found_dir in $ltrpathdirs; do
9723
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9734
{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9735
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9736
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9737
echo $ECHO_N "(cached) $ECHO_C" >&6
9739
cat >conftest.$ac_ext <<_ACEOF
9742
cat confdefs.h >>conftest.$ac_ext
9743
cat >>conftest.$ac_ext <<_ACEOF
9744
/* end confdefs.h. */
9745
$ac_includes_default
9746
typedef ptrdiff_t ac__type_new_;
9750
if ((ac__type_new_ *) 0)
9752
if (sizeof (ac__type_new_))
9758
rm -f conftest.$ac_objext
9759
if { (ac_try="$ac_compile"
9761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762
*) ac_try_echo=$ac_try;;
9764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765
(eval "$ac_compile") 2>conftest.er1
9767
grep -v '^ *+' conftest.er1 >conftest.err
9769
cat conftest.err >&5
9770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771
(exit $ac_status); } &&
9772
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773
{ (case "(($ac_try" in
9774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775
*) ac_try_echo=$ac_try;;
9777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778
(eval "$ac_try") 2>&5
9780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781
(exit $ac_status); }; } &&
9782
{ ac_try='test -s conftest.$ac_objext'
9783
{ (case "(($ac_try" in
9784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785
*) ac_try_echo=$ac_try;;
9787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788
(eval "$ac_try") 2>&5
9790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791
(exit $ac_status); }; }; then
9792
ac_cv_type_ptrdiff_t=yes
9794
echo "$as_me: failed program was:" >&5
9795
sed 's/^/| /' conftest.$ac_ext >&5
9797
ac_cv_type_ptrdiff_t=no
9800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9803
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9804
if test $ac_cv_type_ptrdiff_t = yes; then
9808
cat >>confdefs.h <<\_ACEOF
9809
#define ptrdiff_t long
9825
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9826
stdlib.h string.h unistd.h sys/param.h
9828
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9830
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9831
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9832
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9833
echo $ECHO_N "(cached) $ECHO_C" >&6
9835
ac_res=`eval echo '${'$as_ac_Header'}'`
9836
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9837
echo "${ECHO_T}$ac_res" >&6; }
9839
# Is the header compilable?
9840
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9842
cat >conftest.$ac_ext <<_ACEOF
9845
cat confdefs.h >>conftest.$ac_ext
9846
cat >>conftest.$ac_ext <<_ACEOF
9847
/* end confdefs.h. */
9848
$ac_includes_default
9849
#include <$ac_header>
9851
rm -f conftest.$ac_objext
9852
if { (ac_try="$ac_compile"
9854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855
*) ac_try_echo=$ac_try;;
9857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858
(eval "$ac_compile") 2>conftest.er1
9860
grep -v '^ *+' conftest.er1 >conftest.err
9862
cat conftest.err >&5
9863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
(exit $ac_status); } &&
9865
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866
{ (case "(($ac_try" in
9867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868
*) ac_try_echo=$ac_try;;
9870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871
(eval "$ac_try") 2>&5
9873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874
(exit $ac_status); }; } &&
9875
{ ac_try='test -s conftest.$ac_objext'
9876
{ (case "(($ac_try" in
9877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878
*) ac_try_echo=$ac_try;;
9880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881
(eval "$ac_try") 2>&5
9883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884
(exit $ac_status); }; }; then
9885
ac_header_compiler=yes
9887
echo "$as_me: failed program was:" >&5
9888
sed 's/^/| /' conftest.$ac_ext >&5
9890
ac_header_compiler=no
9893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895
echo "${ECHO_T}$ac_header_compiler" >&6; }
9897
# Is the header present?
9898
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9899
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9900
cat >conftest.$ac_ext <<_ACEOF
9903
cat confdefs.h >>conftest.$ac_ext
9904
cat >>conftest.$ac_ext <<_ACEOF
9905
/* end confdefs.h. */
9906
#include <$ac_header>
9908
if { (ac_try="$ac_cpp conftest.$ac_ext"
9910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911
*) ac_try_echo=$ac_try;;
9913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9916
grep -v '^ *+' conftest.er1 >conftest.err
9918
cat conftest.err >&5
9919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
(exit $ac_status); } >/dev/null; then
9921
if test -s conftest.err; then
9922
ac_cpp_err=$ac_c_preproc_warn_flag
9923
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9930
if test -z "$ac_cpp_err"; then
9931
ac_header_preproc=yes
9933
echo "$as_me: failed program was:" >&5
9934
sed 's/^/| /' conftest.$ac_ext >&5
9936
ac_header_preproc=no
9939
rm -f conftest.err conftest.$ac_ext
9940
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941
echo "${ECHO_T}$ac_header_preproc" >&6; }
9943
# So? What about this header?
9944
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9946
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9947
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9949
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9950
ac_header_preproc=yes
9953
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9954
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9955
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9956
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9957
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9958
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9959
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9960
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9961
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9962
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9963
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9964
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9966
## ------------------------------------ ##
9967
## Report this to m17n-lib-bug@m17n.org ##
9968
## ------------------------------------ ##
9970
) | sed "s/^/$as_me: WARNING: /" >&2
9973
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9974
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9975
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9976
echo $ECHO_N "(cached) $ECHO_C" >&6
9978
eval "$as_ac_Header=\$ac_header_preproc"
9980
ac_res=`eval echo '${'$as_ac_Header'}'`
9981
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9982
echo "${ECHO_T}$ac_res" >&6; }
9985
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9986
cat >>confdefs.h <<_ACEOF
9987
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10018
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10019
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10023
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10025
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10026
echo $ECHO_N "(cached) $ECHO_C" >&6
10028
cat >conftest.$ac_ext <<_ACEOF
10031
cat confdefs.h >>conftest.$ac_ext
10032
cat >>conftest.$ac_ext <<_ACEOF
10033
/* end confdefs.h. */
10034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10035
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10036
#define $ac_func innocuous_$ac_func
10038
/* System header to define __stub macros and hopefully few prototypes,
10039
which can conflict with char $ac_func (); below.
10040
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10041
<limits.h> exists even on freestanding compilers. */
10044
# include <limits.h>
10046
# include <assert.h>
10051
/* Override any GCC internal prototype to avoid an error.
10052
Use char because int might match the return type of a GCC
10053
builtin and then its argument prototype would still apply. */
10058
/* The GNU C library defines this for functions which it implements
10059
to always fail with ENOSYS. Some functions are actually named
10060
something starting with __ and the normal name is an alias. */
10061
#if defined __stub_$ac_func || defined __stub___$ac_func
10068
return $ac_func ();
10073
rm -f conftest.$ac_objext conftest$ac_exeext
10074
if { (ac_try="$ac_link"
10075
case "(($ac_try" in
10076
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077
*) ac_try_echo=$ac_try;;
10079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080
(eval "$ac_link") 2>conftest.er1
10082
grep -v '^ *+' conftest.er1 >conftest.err
10084
cat conftest.err >&5
10085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
(exit $ac_status); } &&
10087
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088
{ (case "(($ac_try" in
10089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090
*) ac_try_echo=$ac_try;;
10092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093
(eval "$ac_try") 2>&5
10095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096
(exit $ac_status); }; } &&
10097
{ ac_try='test -s conftest$ac_exeext'
10098
{ (case "(($ac_try" in
10099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100
*) ac_try_echo=$ac_try;;
10102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103
(eval "$ac_try") 2>&5
10105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106
(exit $ac_status); }; }; then
10107
eval "$as_ac_var=yes"
10109
echo "$as_me: failed program was:" >&5
10110
sed 's/^/| /' conftest.$ac_ext >&5
10112
eval "$as_ac_var=no"
10115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116
conftest$ac_exeext conftest.$ac_ext
10118
ac_res=`eval echo '${'$as_ac_var'}'`
10119
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10120
echo "${ECHO_T}$ac_res" >&6; }
10121
if test `eval echo '${'$as_ac_var'}'` = yes; then
10122
cat >>confdefs.h <<_ACEOF
10123
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10131
{ echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10132
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
10133
if test "${ac_cv_have_decl__snprintf+set}" = set; then
10134
echo $ECHO_N "(cached) $ECHO_C" >&6
10136
cat >conftest.$ac_ext <<_ACEOF
10139
cat confdefs.h >>conftest.$ac_ext
10140
cat >>conftest.$ac_ext <<_ACEOF
10141
/* end confdefs.h. */
10148
char *p = (char *) _snprintf;
10155
rm -f conftest.$ac_objext
10156
if { (ac_try="$ac_compile"
10157
case "(($ac_try" in
10158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159
*) ac_try_echo=$ac_try;;
10161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162
(eval "$ac_compile") 2>conftest.er1
10164
grep -v '^ *+' conftest.er1 >conftest.err
10166
cat conftest.err >&5
10167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168
(exit $ac_status); } &&
10169
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170
{ (case "(($ac_try" in
10171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172
*) ac_try_echo=$ac_try;;
10174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175
(eval "$ac_try") 2>&5
10177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178
(exit $ac_status); }; } &&
10179
{ ac_try='test -s conftest.$ac_objext'
10180
{ (case "(($ac_try" in
10181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182
*) ac_try_echo=$ac_try;;
10184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185
(eval "$ac_try") 2>&5
10187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
(exit $ac_status); }; }; then
10189
ac_cv_have_decl__snprintf=yes
10191
echo "$as_me: failed program was:" >&5
10192
sed 's/^/| /' conftest.$ac_ext >&5
10194
ac_cv_have_decl__snprintf=no
10197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10200
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
10201
if test $ac_cv_have_decl__snprintf = yes; then
10207
cat >>confdefs.h <<_ACEOF
10208
#define HAVE_DECL__SNPRINTF $gt_value
10213
{ echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10214
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
10215
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10216
echo $ECHO_N "(cached) $ECHO_C" >&6
10218
cat >conftest.$ac_ext <<_ACEOF
10221
cat confdefs.h >>conftest.$ac_ext
10222
cat >>conftest.$ac_ext <<_ACEOF
10223
/* end confdefs.h. */
10230
char *p = (char *) _snwprintf;
10237
rm -f conftest.$ac_objext
10238
if { (ac_try="$ac_compile"
10239
case "(($ac_try" in
10240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241
*) ac_try_echo=$ac_try;;
10243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244
(eval "$ac_compile") 2>conftest.er1
10246
grep -v '^ *+' conftest.er1 >conftest.err
10248
cat conftest.err >&5
10249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250
(exit $ac_status); } &&
10251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252
{ (case "(($ac_try" in
10253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254
*) ac_try_echo=$ac_try;;
10256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257
(eval "$ac_try") 2>&5
10259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260
(exit $ac_status); }; } &&
10261
{ ac_try='test -s conftest.$ac_objext'
10262
{ (case "(($ac_try" in
10263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264
*) ac_try_echo=$ac_try;;
10266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267
(eval "$ac_try") 2>&5
10269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270
(exit $ac_status); }; }; then
10271
ac_cv_have_decl__snwprintf=yes
10273
echo "$as_me: failed program was:" >&5
10274
sed 's/^/| /' conftest.$ac_ext >&5
10276
ac_cv_have_decl__snwprintf=no
10279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10282
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
10283
if test $ac_cv_have_decl__snwprintf = yes; then
10289
cat >>confdefs.h <<_ACEOF
10290
#define HAVE_DECL__SNWPRINTF $gt_value
10296
{ echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10297
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
10298
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10299
echo $ECHO_N "(cached) $ECHO_C" >&6
10301
cat >conftest.$ac_ext <<_ACEOF
10304
cat confdefs.h >>conftest.$ac_ext
10305
cat >>conftest.$ac_ext <<_ACEOF
10306
/* end confdefs.h. */
10312
#ifndef feof_unlocked
10313
char *p = (char *) feof_unlocked;
10320
rm -f conftest.$ac_objext
10321
if { (ac_try="$ac_compile"
10322
case "(($ac_try" in
10323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324
*) ac_try_echo=$ac_try;;
10326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327
(eval "$ac_compile") 2>conftest.er1
10329
grep -v '^ *+' conftest.er1 >conftest.err
10331
cat conftest.err >&5
10332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333
(exit $ac_status); } &&
10334
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10335
{ (case "(($ac_try" in
10336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337
*) ac_try_echo=$ac_try;;
10339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340
(eval "$ac_try") 2>&5
10342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343
(exit $ac_status); }; } &&
10344
{ ac_try='test -s conftest.$ac_objext'
10345
{ (case "(($ac_try" in
10346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347
*) ac_try_echo=$ac_try;;
10349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350
(eval "$ac_try") 2>&5
10352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
(exit $ac_status); }; }; then
10354
ac_cv_have_decl_feof_unlocked=yes
10356
echo "$as_me: failed program was:" >&5
10357
sed 's/^/| /' conftest.$ac_ext >&5
10359
ac_cv_have_decl_feof_unlocked=no
10362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10365
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10366
if test $ac_cv_have_decl_feof_unlocked = yes; then
10372
cat >>confdefs.h <<_ACEOF
10373
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10378
{ echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10379
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10380
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10381
echo $ECHO_N "(cached) $ECHO_C" >&6
10383
cat >conftest.$ac_ext <<_ACEOF
10386
cat confdefs.h >>conftest.$ac_ext
10387
cat >>conftest.$ac_ext <<_ACEOF
10388
/* end confdefs.h. */
10394
#ifndef fgets_unlocked
10395
char *p = (char *) fgets_unlocked;
10402
rm -f conftest.$ac_objext
10403
if { (ac_try="$ac_compile"
10404
case "(($ac_try" in
10405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406
*) ac_try_echo=$ac_try;;
10408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409
(eval "$ac_compile") 2>conftest.er1
10411
grep -v '^ *+' conftest.er1 >conftest.err
10413
cat conftest.err >&5
10414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415
(exit $ac_status); } &&
10416
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10417
{ (case "(($ac_try" in
10418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419
*) ac_try_echo=$ac_try;;
10421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422
(eval "$ac_try") 2>&5
10424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425
(exit $ac_status); }; } &&
10426
{ ac_try='test -s conftest.$ac_objext'
10427
{ (case "(($ac_try" in
10428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429
*) ac_try_echo=$ac_try;;
10431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432
(eval "$ac_try") 2>&5
10434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435
(exit $ac_status); }; }; then
10436
ac_cv_have_decl_fgets_unlocked=yes
10438
echo "$as_me: failed program was:" >&5
10439
sed 's/^/| /' conftest.$ac_ext >&5
10441
ac_cv_have_decl_fgets_unlocked=no
10444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10447
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10448
if test $ac_cv_have_decl_fgets_unlocked = yes; then
10454
cat >>confdefs.h <<_ACEOF
10455
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10460
{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10461
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10462
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10463
echo $ECHO_N "(cached) $ECHO_C" >&6
10465
cat >conftest.$ac_ext <<_ACEOF
10468
cat confdefs.h >>conftest.$ac_ext
10469
cat >>conftest.$ac_ext <<_ACEOF
10470
/* end confdefs.h. */
10476
#ifndef getc_unlocked
10477
char *p = (char *) getc_unlocked;
10484
rm -f conftest.$ac_objext
10485
if { (ac_try="$ac_compile"
10486
case "(($ac_try" in
10487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488
*) ac_try_echo=$ac_try;;
10490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491
(eval "$ac_compile") 2>conftest.er1
10493
grep -v '^ *+' conftest.er1 >conftest.err
10495
cat conftest.err >&5
10496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497
(exit $ac_status); } &&
10498
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499
{ (case "(($ac_try" in
10500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501
*) ac_try_echo=$ac_try;;
10503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504
(eval "$ac_try") 2>&5
10506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507
(exit $ac_status); }; } &&
10508
{ ac_try='test -s conftest.$ac_objext'
10509
{ (case "(($ac_try" in
10510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511
*) ac_try_echo=$ac_try;;
10513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514
(eval "$ac_try") 2>&5
10516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517
(exit $ac_status); }; }; then
10518
ac_cv_have_decl_getc_unlocked=yes
10520
echo "$as_me: failed program was:" >&5
10521
sed 's/^/| /' conftest.$ac_ext >&5
10523
ac_cv_have_decl_getc_unlocked=no
10526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10529
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10530
if test $ac_cv_have_decl_getc_unlocked = yes; then
10536
cat >>confdefs.h <<_ACEOF
10537
#define HAVE_DECL_GETC_UNLOCKED $gt_value
10542
case $gt_cv_func_printf_posix in
10543
*yes) HAVE_POSIX_PRINTF=1 ;;
10544
*) HAVE_POSIX_PRINTF=0 ;;
10547
if test "$ac_cv_func_asprintf" = yes; then
10553
if test "$ac_cv_func_snprintf" = yes; then
10559
if test "$ac_cv_func_wprintf" = yes; then
10571
am_save_CPPFLAGS="$CPPFLAGS"
10573
for element in $INCICONV; do
10575
for x in $CPPFLAGS; do
10577
acl_save_prefix="$prefix"
10578
prefix="$acl_final_prefix"
10579
acl_save_exec_prefix="$exec_prefix"
10580
exec_prefix="$acl_final_exec_prefix"
10582
exec_prefix="$acl_save_exec_prefix"
10583
prefix="$acl_save_prefix"
10585
if test "X$x" = "X$element"; then
10590
if test -z "$haveit"; then
10591
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10596
{ echo "$as_me:$LINENO: checking for iconv" >&5
10597
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10598
if test "${am_cv_func_iconv+set}" = set; then
10599
echo $ECHO_N "(cached) $ECHO_C" >&6
10602
am_cv_func_iconv="no, consider installing GNU libiconv"
10604
cat >conftest.$ac_ext <<_ACEOF
10607
cat confdefs.h >>conftest.$ac_ext
10608
cat >>conftest.$ac_ext <<_ACEOF
10609
/* end confdefs.h. */
10610
#include <stdlib.h>
10615
iconv_t cd = iconv_open("","");
10616
iconv(cd,NULL,NULL,NULL,NULL);
10622
rm -f conftest.$ac_objext conftest$ac_exeext
10623
if { (ac_try="$ac_link"
10624
case "(($ac_try" in
10625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626
*) ac_try_echo=$ac_try;;
10628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629
(eval "$ac_link") 2>conftest.er1
10631
grep -v '^ *+' conftest.er1 >conftest.err
10633
cat conftest.err >&5
10634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635
(exit $ac_status); } &&
10636
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637
{ (case "(($ac_try" in
10638
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639
*) ac_try_echo=$ac_try;;
10641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642
(eval "$ac_try") 2>&5
10644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645
(exit $ac_status); }; } &&
10646
{ ac_try='test -s conftest$ac_exeext'
10647
{ (case "(($ac_try" in
10648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649
*) ac_try_echo=$ac_try;;
10651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652
(eval "$ac_try") 2>&5
10654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655
(exit $ac_status); }; }; then
10656
am_cv_func_iconv=yes
10658
echo "$as_me: failed program was:" >&5
10659
sed 's/^/| /' conftest.$ac_ext >&5
10664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665
conftest$ac_exeext conftest.$ac_ext
10666
if test "$am_cv_func_iconv" != yes; then
10667
am_save_LIBS="$LIBS"
10668
LIBS="$LIBS $LIBICONV"
10669
cat >conftest.$ac_ext <<_ACEOF
10672
cat confdefs.h >>conftest.$ac_ext
10673
cat >>conftest.$ac_ext <<_ACEOF
10674
/* end confdefs.h. */
10675
#include <stdlib.h>
10680
iconv_t cd = iconv_open("","");
10681
iconv(cd,NULL,NULL,NULL,NULL);
10687
rm -f conftest.$ac_objext conftest$ac_exeext
10688
if { (ac_try="$ac_link"
10689
case "(($ac_try" in
10690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691
*) ac_try_echo=$ac_try;;
10693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694
(eval "$ac_link") 2>conftest.er1
10696
grep -v '^ *+' conftest.er1 >conftest.err
10698
cat conftest.err >&5
10699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700
(exit $ac_status); } &&
10701
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702
{ (case "(($ac_try" in
10703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704
*) ac_try_echo=$ac_try;;
10706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707
(eval "$ac_try") 2>&5
10709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710
(exit $ac_status); }; } &&
10711
{ ac_try='test -s conftest$ac_exeext'
10712
{ (case "(($ac_try" in
10713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714
*) ac_try_echo=$ac_try;;
10716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717
(eval "$ac_try") 2>&5
10719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720
(exit $ac_status); }; }; then
10721
am_cv_lib_iconv=yes
10722
am_cv_func_iconv=yes
10724
echo "$as_me: failed program was:" >&5
10725
sed 's/^/| /' conftest.$ac_ext >&5
10730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731
conftest$ac_exeext conftest.$ac_ext
10732
LIBS="$am_save_LIBS"
10736
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10737
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10738
if test "$am_cv_func_iconv" = yes; then
10740
cat >>confdefs.h <<\_ACEOF
10741
#define HAVE_ICONV 1
10745
if test "$am_cv_lib_iconv" = yes; then
10746
{ echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10747
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10748
{ echo "$as_me:$LINENO: result: $LIBICONV" >&5
10749
echo "${ECHO_T}$LIBICONV" >&6; }
10751
CPPFLAGS="$am_save_CPPFLAGS"
10758
if test "$am_cv_func_iconv" = yes; then
10759
{ echo "$as_me:$LINENO: checking for iconv declaration" >&5
10760
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10761
if test "${am_cv_proto_iconv+set}" = set; then
10762
echo $ECHO_N "(cached) $ECHO_C" >&6
10765
cat >conftest.$ac_ext <<_ACEOF
10768
cat confdefs.h >>conftest.$ac_ext
10769
cat >>conftest.$ac_ext <<_ACEOF
10770
/* end confdefs.h. */
10772
#include <stdlib.h>
10778
#if defined(__STDC__) || defined(__cplusplus)
10779
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10792
rm -f conftest.$ac_objext
10793
if { (ac_try="$ac_compile"
10794
case "(($ac_try" in
10795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796
*) ac_try_echo=$ac_try;;
10798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799
(eval "$ac_compile") 2>conftest.er1
10801
grep -v '^ *+' conftest.er1 >conftest.err
10803
cat conftest.err >&5
10804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805
(exit $ac_status); } &&
10806
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807
{ (case "(($ac_try" in
10808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809
*) ac_try_echo=$ac_try;;
10811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812
(eval "$ac_try") 2>&5
10814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815
(exit $ac_status); }; } &&
10816
{ ac_try='test -s conftest.$ac_objext'
10817
{ (case "(($ac_try" in
10818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819
*) ac_try_echo=$ac_try;;
10821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822
(eval "$ac_try") 2>&5
10824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825
(exit $ac_status); }; }; then
10826
am_cv_proto_iconv_arg1=""
10828
echo "$as_me: failed program was:" >&5
10829
sed 's/^/| /' conftest.$ac_ext >&5
10831
am_cv_proto_iconv_arg1="const"
10834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835
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);"
10838
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10839
{ echo "$as_me:$LINENO: result: ${ac_t:-
10840
}$am_cv_proto_iconv" >&5
10841
echo "${ECHO_T}${ac_t:-
10842
}$am_cv_proto_iconv" >&6; }
10844
cat >>confdefs.h <<_ACEOF
10845
#define ICONV_CONST $am_cv_proto_iconv_arg1
10851
{ echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10852
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10853
if test "${am_cv_langinfo_codeset+set}" = set; then
10854
echo $ECHO_N "(cached) $ECHO_C" >&6
10856
cat >conftest.$ac_ext <<_ACEOF
10859
cat confdefs.h >>conftest.$ac_ext
10860
cat >>conftest.$ac_ext <<_ACEOF
10861
/* end confdefs.h. */
10862
#include <langinfo.h>
10866
char* cs = nl_langinfo(CODESET);
10871
rm -f conftest.$ac_objext conftest$ac_exeext
10872
if { (ac_try="$ac_link"
10873
case "(($ac_try" in
10874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875
*) ac_try_echo=$ac_try;;
10877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878
(eval "$ac_link") 2>conftest.er1
10880
grep -v '^ *+' conftest.er1 >conftest.err
10882
cat conftest.err >&5
10883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884
(exit $ac_status); } &&
10885
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886
{ (case "(($ac_try" in
10887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888
*) ac_try_echo=$ac_try;;
10890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891
(eval "$ac_try") 2>&5
10893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894
(exit $ac_status); }; } &&
10895
{ ac_try='test -s conftest$ac_exeext'
10896
{ (case "(($ac_try" in
10897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898
*) ac_try_echo=$ac_try;;
10900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901
(eval "$ac_try") 2>&5
10903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904
(exit $ac_status); }; }; then
10905
am_cv_langinfo_codeset=yes
10907
echo "$as_me: failed program was:" >&5
10908
sed 's/^/| /' conftest.$ac_ext >&5
10910
am_cv_langinfo_codeset=no
10913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914
conftest$ac_exeext conftest.$ac_ext
10917
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10918
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10919
if test $am_cv_langinfo_codeset = yes; then
10921
cat >>confdefs.h <<\_ACEOF
10922
#define HAVE_LANGINFO_CODESET 1
10927
if test $ac_cv_header_locale_h = yes; then
10929
{ echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10930
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10931
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
10932
echo $ECHO_N "(cached) $ECHO_C" >&6
10934
cat >conftest.$ac_ext <<_ACEOF
10937
cat confdefs.h >>conftest.$ac_ext
10938
cat >>conftest.$ac_ext <<_ACEOF
10939
/* end confdefs.h. */
10940
#include <locale.h>
10949
rm -f conftest.$ac_objext conftest$ac_exeext
10950
if { (ac_try="$ac_link"
10951
case "(($ac_try" in
10952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953
*) ac_try_echo=$ac_try;;
10955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956
(eval "$ac_link") 2>conftest.er1
10958
grep -v '^ *+' conftest.er1 >conftest.err
10960
cat conftest.err >&5
10961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962
(exit $ac_status); } &&
10963
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10964
{ (case "(($ac_try" in
10965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966
*) ac_try_echo=$ac_try;;
10968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969
(eval "$ac_try") 2>&5
10971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972
(exit $ac_status); }; } &&
10973
{ ac_try='test -s conftest$ac_exeext'
10974
{ (case "(($ac_try" in
10975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976
*) ac_try_echo=$ac_try;;
10978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979
(eval "$ac_try") 2>&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); }; }; then
10983
gt_cv_val_LC_MESSAGES=yes
10985
echo "$as_me: failed program was:" >&5
10986
sed 's/^/| /' conftest.$ac_ext >&5
10988
gt_cv_val_LC_MESSAGES=no
10991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992
conftest$ac_exeext conftest.$ac_ext
10994
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
10995
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
10996
if test $gt_cv_val_LC_MESSAGES = yes; then
10998
cat >>confdefs.h <<\_ACEOF
10999
#define HAVE_LC_MESSAGES 1
11006
if test -n "$INTL_MACOSX_LIBS"; then
11007
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11010
for ac_prog in bison
11012
# Extract the first word of "$ac_prog", so it can be a program name with args.
11013
set dummy $ac_prog; ac_word=$2
11014
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11016
if test "${ac_cv_prog_INTLBISON+set}" = set; then
11017
echo $ECHO_N "(cached) $ECHO_C" >&6
11019
if test -n "$INTLBISON"; then
11020
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023
for as_dir in $PATH
11026
test -z "$as_dir" && as_dir=.
11027
for ac_exec_ext in '' $ac_executable_extensions; do
11028
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11029
ac_cv_prog_INTLBISON="$ac_prog"
11030
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11039
INTLBISON=$ac_cv_prog_INTLBISON
11040
if test -n "$INTLBISON"; then
11041
{ echo "$as_me:$LINENO: result: $INTLBISON" >&5
11042
echo "${ECHO_T}$INTLBISON" >&6; }
11044
{ echo "$as_me:$LINENO: result: no" >&5
11045
echo "${ECHO_T}no" >&6; }
11049
test -n "$INTLBISON" && break
11052
if test -z "$INTLBISON"; then
11055
{ echo "$as_me:$LINENO: checking version of bison" >&5
11056
echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
11057
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11058
case $ac_prog_version in
11059
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11060
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11061
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11062
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11064
{ echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11065
echo "${ECHO_T}$ac_prog_version" >&6; }
11067
if test $ac_verc_fail = yes; then
11086
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11087
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
11088
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11089
echo $ECHO_N "(cached) $ECHO_C" >&6
11091
gt_save_CPPFLAGS="$CPPFLAGS"
11092
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11093
gt_save_LIBS="$LIBS"
11094
LIBS="$LIBS -framework CoreFoundation"
11095
cat >conftest.$ac_ext <<_ACEOF
11098
cat confdefs.h >>conftest.$ac_ext
11099
cat >>conftest.$ac_ext <<_ACEOF
11100
/* end confdefs.h. */
11101
#include <CFPreferences.h>
11105
CFPreferencesCopyAppValue(NULL, NULL)
11110
rm -f conftest.$ac_objext conftest$ac_exeext
11111
if { (ac_try="$ac_link"
11112
case "(($ac_try" in
11113
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114
*) ac_try_echo=$ac_try;;
11116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117
(eval "$ac_link") 2>conftest.er1
11119
grep -v '^ *+' conftest.er1 >conftest.err
11121
cat conftest.err >&5
11122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123
(exit $ac_status); } &&
11124
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125
{ (case "(($ac_try" in
11126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127
*) ac_try_echo=$ac_try;;
11129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130
(eval "$ac_try") 2>&5
11132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133
(exit $ac_status); }; } &&
11134
{ ac_try='test -s conftest$ac_exeext'
11135
{ (case "(($ac_try" in
11136
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137
*) ac_try_echo=$ac_try;;
11139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140
(eval "$ac_try") 2>&5
11142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143
(exit $ac_status); }; }; then
11144
gt_cv_func_CFPreferencesCopyAppValue=yes
11146
echo "$as_me: failed program was:" >&5
11147
sed 's/^/| /' conftest.$ac_ext >&5
11149
gt_cv_func_CFPreferencesCopyAppValue=no
11152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11153
conftest$ac_exeext conftest.$ac_ext
11154
CPPFLAGS="$gt_save_CPPFLAGS"
11155
LIBS="$gt_save_LIBS"
11157
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11158
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11159
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11161
cat >>confdefs.h <<\_ACEOF
11162
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11166
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11167
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
11168
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11169
echo $ECHO_N "(cached) $ECHO_C" >&6
11171
gt_save_CPPFLAGS="$CPPFLAGS"
11172
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11173
gt_save_LIBS="$LIBS"
11174
LIBS="$LIBS -framework CoreFoundation"
11175
cat >conftest.$ac_ext <<_ACEOF
11178
cat confdefs.h >>conftest.$ac_ext
11179
cat >>conftest.$ac_ext <<_ACEOF
11180
/* end confdefs.h. */
11181
#include <CFLocale.h>
11185
CFLocaleCopyCurrent();
11190
rm -f conftest.$ac_objext conftest$ac_exeext
11191
if { (ac_try="$ac_link"
11192
case "(($ac_try" in
11193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194
*) ac_try_echo=$ac_try;;
11196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197
(eval "$ac_link") 2>conftest.er1
11199
grep -v '^ *+' conftest.er1 >conftest.err
11201
cat conftest.err >&5
11202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203
(exit $ac_status); } &&
11204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205
{ (case "(($ac_try" in
11206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207
*) ac_try_echo=$ac_try;;
11209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210
(eval "$ac_try") 2>&5
11212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213
(exit $ac_status); }; } &&
11214
{ ac_try='test -s conftest$ac_exeext'
11215
{ (case "(($ac_try" in
11216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217
*) ac_try_echo=$ac_try;;
11219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220
(eval "$ac_try") 2>&5
11222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223
(exit $ac_status); }; }; then
11224
gt_cv_func_CFLocaleCopyCurrent=yes
11226
echo "$as_me: failed program was:" >&5
11227
sed 's/^/| /' conftest.$ac_ext >&5
11229
gt_cv_func_CFLocaleCopyCurrent=no
11232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11233
conftest$ac_exeext conftest.$ac_ext
11234
CPPFLAGS="$gt_save_CPPFLAGS"
11235
LIBS="$gt_save_LIBS"
11237
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11238
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11239
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11241
cat >>confdefs.h <<\_ACEOF
11242
#define HAVE_CFLOCALECOPYCURRENT 1
11247
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11248
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11254
{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11255
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11256
# Check whether --enable-nls was given.
11257
if test "${enable_nls+set}" = set; then
11258
enableval=$enable_nls; USE_NLS=$enableval
11263
{ echo "$as_me:$LINENO: result: $USE_NLS" >&5
11264
echo "${ECHO_T}$USE_NLS" >&6; }
11269
BUILD_INCLUDED_LIBINTL=no
11270
USE_INCLUDED_LIBINTL=no
11276
if test "$USE_NLS" = "yes"; then
11277
gt_use_preinstalled_gnugettext=no
11279
{ echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11280
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11282
# Check whether --with-included-gettext was given.
11283
if test "${with_included_gettext+set}" = set; then
11284
withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11286
nls_cv_force_use_gnu_gettext=no
11289
{ echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11290
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11292
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11293
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11300
{ echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11301
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11302
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11303
echo $ECHO_N "(cached) $ECHO_C" >&6
11305
cat >conftest.$ac_ext <<_ACEOF
11308
cat confdefs.h >>conftest.$ac_ext
11309
cat >>conftest.$ac_ext <<_ACEOF
11310
/* end confdefs.h. */
11311
#include <libintl.h>
11312
extern int _nl_msg_cat_cntr;
11313
extern int *_nl_domain_bindings;
11317
bindtextdomain ("", "");
11318
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11323
rm -f conftest.$ac_objext conftest$ac_exeext
11324
if { (ac_try="$ac_link"
11325
case "(($ac_try" in
11326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327
*) ac_try_echo=$ac_try;;
11329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330
(eval "$ac_link") 2>conftest.er1
11332
grep -v '^ *+' conftest.er1 >conftest.err
11334
cat conftest.err >&5
11335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336
(exit $ac_status); } &&
11337
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338
{ (case "(($ac_try" in
11339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340
*) ac_try_echo=$ac_try;;
11342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343
(eval "$ac_try") 2>&5
11345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346
(exit $ac_status); }; } &&
11347
{ ac_try='test -s conftest$ac_exeext'
11348
{ (case "(($ac_try" in
11349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350
*) ac_try_echo=$ac_try;;
11352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353
(eval "$ac_try") 2>&5
11355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356
(exit $ac_status); }; }; then
11357
gt_cv_func_gnugettext1_libc=yes
11359
echo "$as_me: failed program was:" >&5
11360
sed 's/^/| /' conftest.$ac_ext >&5
11362
gt_cv_func_gnugettext1_libc=no
11365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366
conftest$ac_exeext conftest.$ac_ext
11368
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11369
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11371
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11377
acl_save_prefix="$prefix"
11378
prefix="$acl_final_prefix"
11379
acl_save_exec_prefix="$exec_prefix"
11380
exec_prefix="$acl_final_exec_prefix"
11382
eval additional_includedir=\"$includedir\"
11383
eval additional_libdir=\"$libdir\"
11385
exec_prefix="$acl_save_exec_prefix"
11386
prefix="$acl_save_prefix"
11389
# Check whether --with-libintl-prefix was given.
11390
if test "${with_libintl_prefix+set}" = set; then
11391
withval=$with_libintl_prefix;
11392
if test "X$withval" = "Xno"; then
11395
if test "X$withval" = "X"; then
11397
acl_save_prefix="$prefix"
11398
prefix="$acl_final_prefix"
11399
acl_save_exec_prefix="$exec_prefix"
11400
exec_prefix="$acl_final_exec_prefix"
11402
eval additional_includedir=\"$includedir\"
11403
eval additional_libdir=\"$libdir\"
11405
exec_prefix="$acl_save_exec_prefix"
11406
prefix="$acl_save_prefix"
11409
additional_includedir="$withval/include"
11410
additional_libdir="$withval/lib"
11421
names_already_handled=
11422
names_next_round='intl '
11423
while test -n "$names_next_round"; do
11424
names_this_round="$names_next_round"
11426
for name in $names_this_round; do
11428
for n in $names_already_handled; do
11429
if test "$n" = "$name"; then
11430
already_handled=yes
11434
if test -z "$already_handled"; then
11435
names_already_handled="$names_already_handled $name"
11436
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11437
eval value=\"\$HAVE_LIB$uppername\"
11438
if test -n "$value"; then
11439
if test "$value" = yes; then
11440
eval value=\"\$LIB$uppername\"
11441
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11442
eval value=\"\$LTLIB$uppername\"
11443
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11452
if test $use_additional = yes; then
11453
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11454
found_dir="$additional_libdir"
11455
found_so="$additional_libdir/lib$name.$shlibext"
11456
if test -f "$additional_libdir/lib$name.la"; then
11457
found_la="$additional_libdir/lib$name.la"
11460
if test -f "$additional_libdir/lib$name.$libext"; then
11461
found_dir="$additional_libdir"
11462
found_a="$additional_libdir/lib$name.$libext"
11463
if test -f "$additional_libdir/lib$name.la"; then
11464
found_la="$additional_libdir/lib$name.la"
11469
if test "X$found_dir" = "X"; then
11470
for x in $LDFLAGS $LTLIBINTL; do
11472
acl_save_prefix="$prefix"
11473
prefix="$acl_final_prefix"
11474
acl_save_exec_prefix="$exec_prefix"
11475
exec_prefix="$acl_final_exec_prefix"
11477
exec_prefix="$acl_save_exec_prefix"
11478
prefix="$acl_save_prefix"
11482
dir=`echo "X$x" | sed -e 's/^X-L//'`
11483
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11485
found_so="$dir/lib$name.$shlibext"
11486
if test -f "$dir/lib$name.la"; then
11487
found_la="$dir/lib$name.la"
11490
if test -f "$dir/lib$name.$libext"; then
11492
found_a="$dir/lib$name.$libext"
11493
if test -f "$dir/lib$name.la"; then
11494
found_la="$dir/lib$name.la"
11500
if test "X$found_dir" != "X"; then
11505
if test "X$found_dir" != "X"; then
11506
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11507
if test "X$found_so" != "X"; then
11508
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11509
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11512
for x in $ltrpathdirs; do
11513
if test "X$x" = "X$found_dir"; then
11518
if test -z "$haveit"; then
11519
ltrpathdirs="$ltrpathdirs $found_dir"
11521
if test "$hardcode_direct" = yes; then
11522
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11524
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11525
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11527
for x in $rpathdirs; do
11528
if test "X$x" = "X$found_dir"; then
11533
if test -z "$haveit"; then
11534
rpathdirs="$rpathdirs $found_dir"
11538
for x in $LDFLAGS $LIBINTL; do
11540
acl_save_prefix="$prefix"
11541
prefix="$acl_final_prefix"
11542
acl_save_exec_prefix="$exec_prefix"
11543
exec_prefix="$acl_final_exec_prefix"
11545
exec_prefix="$acl_save_exec_prefix"
11546
prefix="$acl_save_prefix"
11548
if test "X$x" = "X-L$found_dir"; then
11553
if test -z "$haveit"; then
11554
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11556
if test "$hardcode_minus_L" != no; then
11557
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11559
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11565
if test "X$found_a" != "X"; then
11566
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11568
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11571
additional_includedir=
11572
case "$found_dir" in
11574
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11575
additional_includedir="$basedir/include"
11578
if test "X$additional_includedir" != "X"; then
11579
if test "X$additional_includedir" != "X/usr/include"; then
11581
if test "X$additional_includedir" = "X/usr/local/include"; then
11582
if test -n "$GCC"; then
11584
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11588
if test -z "$haveit"; then
11589
for x in $CPPFLAGS $INCINTL; do
11591
acl_save_prefix="$prefix"
11592
prefix="$acl_final_prefix"
11593
acl_save_exec_prefix="$exec_prefix"
11594
exec_prefix="$acl_final_exec_prefix"
11596
exec_prefix="$acl_save_exec_prefix"
11597
prefix="$acl_save_prefix"
11599
if test "X$x" = "X-I$additional_includedir"; then
11604
if test -z "$haveit"; then
11605
if test -d "$additional_includedir"; then
11606
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11612
if test -n "$found_la"; then
11613
save_libdir="$libdir"
11614
case "$found_la" in
11615
*/* | *\\*) . "$found_la" ;;
11616
*) . "./$found_la" ;;
11618
libdir="$save_libdir"
11619
for dep in $dependency_libs; do
11622
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11623
if test "X$additional_libdir" != "X/usr/lib"; then
11625
if test "X$additional_libdir" = "X/usr/local/lib"; then
11626
if test -n "$GCC"; then
11628
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11632
if test -z "$haveit"; then
11634
for x in $LDFLAGS $LIBINTL; do
11636
acl_save_prefix="$prefix"
11637
prefix="$acl_final_prefix"
11638
acl_save_exec_prefix="$exec_prefix"
11639
exec_prefix="$acl_final_exec_prefix"
11641
exec_prefix="$acl_save_exec_prefix"
11642
prefix="$acl_save_prefix"
11644
if test "X$x" = "X-L$additional_libdir"; then
11649
if test -z "$haveit"; then
11650
if test -d "$additional_libdir"; then
11651
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11655
for x in $LDFLAGS $LTLIBINTL; do
11657
acl_save_prefix="$prefix"
11658
prefix="$acl_final_prefix"
11659
acl_save_exec_prefix="$exec_prefix"
11660
exec_prefix="$acl_final_exec_prefix"
11662
exec_prefix="$acl_save_exec_prefix"
11663
prefix="$acl_save_prefix"
11665
if test "X$x" = "X-L$additional_libdir"; then
11670
if test -z "$haveit"; then
11671
if test -d "$additional_libdir"; then
11672
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11679
dir=`echo "X$dep" | sed -e 's/^X-R//'`
11680
if test "$enable_rpath" != no; then
11682
for x in $rpathdirs; do
11683
if test "X$x" = "X$dir"; then
11688
if test -z "$haveit"; then
11689
rpathdirs="$rpathdirs $dir"
11692
for x in $ltrpathdirs; do
11693
if test "X$x" = "X$dir"; then
11698
if test -z "$haveit"; then
11699
ltrpathdirs="$ltrpathdirs $dir"
11704
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11707
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11710
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11711
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11717
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11718
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11724
if test "X$rpathdirs" != "X"; then
11725
if test -n "$hardcode_libdir_separator"; then
11727
for found_dir in $rpathdirs; do
11728
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11730
acl_save_libdir="$libdir"
11732
eval flag=\"$hardcode_libdir_flag_spec\"
11733
libdir="$acl_save_libdir"
11734
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11736
for found_dir in $rpathdirs; do
11737
acl_save_libdir="$libdir"
11738
libdir="$found_dir"
11739
eval flag=\"$hardcode_libdir_flag_spec\"
11740
libdir="$acl_save_libdir"
11741
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11745
if test "X$ltrpathdirs" != "X"; then
11746
for found_dir in $ltrpathdirs; do
11747
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11751
{ echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11752
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11753
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11754
echo $ECHO_N "(cached) $ECHO_C" >&6
11756
gt_save_CPPFLAGS="$CPPFLAGS"
11757
CPPFLAGS="$CPPFLAGS $INCINTL"
11758
gt_save_LIBS="$LIBS"
11759
LIBS="$LIBS $LIBINTL"
11760
cat >conftest.$ac_ext <<_ACEOF
11763
cat confdefs.h >>conftest.$ac_ext
11764
cat >>conftest.$ac_ext <<_ACEOF
11765
/* end confdefs.h. */
11766
#include <libintl.h>
11767
extern int _nl_msg_cat_cntr;
11772
const char *_nl_expand_alias (const char *);
11776
bindtextdomain ("", "");
11777
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11782
rm -f conftest.$ac_objext conftest$ac_exeext
11783
if { (ac_try="$ac_link"
11784
case "(($ac_try" in
11785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786
*) ac_try_echo=$ac_try;;
11788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789
(eval "$ac_link") 2>conftest.er1
11791
grep -v '^ *+' conftest.er1 >conftest.err
11793
cat conftest.err >&5
11794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795
(exit $ac_status); } &&
11796
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797
{ (case "(($ac_try" in
11798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799
*) ac_try_echo=$ac_try;;
11801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802
(eval "$ac_try") 2>&5
11804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805
(exit $ac_status); }; } &&
11806
{ ac_try='test -s conftest$ac_exeext'
11807
{ (case "(($ac_try" in
11808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809
*) ac_try_echo=$ac_try;;
11811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812
(eval "$ac_try") 2>&5
11814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815
(exit $ac_status); }; }; then
11816
gt_cv_func_gnugettext1_libintl=yes
11818
echo "$as_me: failed program was:" >&5
11819
sed 's/^/| /' conftest.$ac_ext >&5
11821
gt_cv_func_gnugettext1_libintl=no
11824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825
conftest$ac_exeext conftest.$ac_ext
11826
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11827
LIBS="$LIBS $LIBICONV"
11828
cat >conftest.$ac_ext <<_ACEOF
11831
cat confdefs.h >>conftest.$ac_ext
11832
cat >>conftest.$ac_ext <<_ACEOF
11833
/* end confdefs.h. */
11834
#include <libintl.h>
11835
extern int _nl_msg_cat_cntr;
11840
const char *_nl_expand_alias (const char *);
11844
bindtextdomain ("", "");
11845
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11850
rm -f conftest.$ac_objext conftest$ac_exeext
11851
if { (ac_try="$ac_link"
11852
case "(($ac_try" in
11853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854
*) ac_try_echo=$ac_try;;
11856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857
(eval "$ac_link") 2>conftest.er1
11859
grep -v '^ *+' conftest.er1 >conftest.err
11861
cat conftest.err >&5
11862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863
(exit $ac_status); } &&
11864
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11865
{ (case "(($ac_try" in
11866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867
*) ac_try_echo=$ac_try;;
11869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870
(eval "$ac_try") 2>&5
11872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873
(exit $ac_status); }; } &&
11874
{ ac_try='test -s conftest$ac_exeext'
11875
{ (case "(($ac_try" in
11876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877
*) ac_try_echo=$ac_try;;
11879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880
(eval "$ac_try") 2>&5
11882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883
(exit $ac_status); }; }; then
11884
LIBINTL="$LIBINTL $LIBICONV"
11885
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11886
gt_cv_func_gnugettext1_libintl=yes
11889
echo "$as_me: failed program was:" >&5
11890
sed 's/^/| /' conftest.$ac_ext >&5
11895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11896
conftest$ac_exeext conftest.$ac_ext
11898
CPPFLAGS="$gt_save_CPPFLAGS"
11899
LIBS="$gt_save_LIBS"
11901
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11902
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11905
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11906
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11907
&& test "$PACKAGE" != gettext-runtime \
11908
&& test "$PACKAGE" != gettext-tools; }; then
11909
gt_use_preinstalled_gnugettext=yes
11917
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11918
nls_cv_use_gnu_gettext=yes
11922
if test "$nls_cv_use_gnu_gettext" = "yes"; then
11923
BUILD_INCLUDED_LIBINTL=yes
11924
USE_INCLUDED_LIBINTL=yes
11925
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11926
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11927
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11931
if test "$gt_use_preinstalled_gnugettext" = "yes" \
11932
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
11937
if test -n "$INTL_MACOSX_LIBS"; then
11938
if test "$gt_use_preinstalled_gnugettext" = "yes" \
11939
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
11940
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11941
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11945
if test "$gt_use_preinstalled_gnugettext" = "yes" \
11946
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
11948
cat >>confdefs.h <<\_ACEOF
11949
#define ENABLE_NLS 1
11957
{ echo "$as_me:$LINENO: checking whether to use NLS" >&5
11958
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11959
{ echo "$as_me:$LINENO: result: $USE_NLS" >&5
11960
echo "${ECHO_T}$USE_NLS" >&6; }
11961
if test "$USE_NLS" = "yes"; then
11962
{ echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11963
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11964
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11965
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11966
gt_source="external libintl"
11971
gt_source="included intl directory"
11973
{ echo "$as_me:$LINENO: result: $gt_source" >&5
11974
echo "${ECHO_T}$gt_source" >&6; }
11977
if test "$USE_NLS" = "yes"; then
11979
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11980
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11981
{ echo "$as_me:$LINENO: checking how to link with libintl" >&5
11982
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11983
{ echo "$as_me:$LINENO: result: $LIBINTL" >&5
11984
echo "${ECHO_T}$LIBINTL" >&6; }
11986
for element in $INCINTL; do
11988
for x in $CPPFLAGS; do
11990
acl_save_prefix="$prefix"
11991
prefix="$acl_final_prefix"
11992
acl_save_exec_prefix="$exec_prefix"
11993
exec_prefix="$acl_final_exec_prefix"
11995
exec_prefix="$acl_save_exec_prefix"
11996
prefix="$acl_save_prefix"
11998
if test "X$x" = "X$element"; then
12003
if test -z "$haveit"; then
12004
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12011
cat >>confdefs.h <<\_ACEOF
12012
#define HAVE_GETTEXT 1
12016
cat >>confdefs.h <<\_ACEOF
12017
#define HAVE_DCGETTEXT 1
12026
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12027
BUILD_INCLUDED_LIBINTL=yes
12034
nls_cv_header_intl=
12035
nls_cv_header_libgt=
12047
if test "$USE_INCLUDED_LIBINTL" = yes; then
12048
INTLOBJS="\$(GETTOBJS)"
12052
INTL_LIBTOOL_SUFFIX_PREFIX=
12056
INTLLIBS="$LIBINTL"
12063
GETTEXTDIR="$datadir/locale"
12067
ac_cpp='$CPP $CPPFLAGS'
12068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
if test -n "$ac_tool_prefix"; then
12072
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12073
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12074
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12076
if test "${ac_cv_prog_CC+set}" = set; then
12077
echo $ECHO_N "(cached) $ECHO_C" >&6
12079
if test -n "$CC"; then
12080
ac_cv_prog_CC="$CC" # Let the user override the test.
12082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083
for as_dir in $PATH
12086
test -z "$as_dir" && as_dir=.
12087
for ac_exec_ext in '' $ac_executable_extensions; do
12088
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12089
ac_cv_prog_CC="${ac_tool_prefix}gcc"
12090
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12100
if test -n "$CC"; then
12101
{ echo "$as_me:$LINENO: result: $CC" >&5
12102
echo "${ECHO_T}$CC" >&6; }
12104
{ echo "$as_me:$LINENO: result: no" >&5
12105
echo "${ECHO_T}no" >&6; }
12110
if test -z "$ac_cv_prog_CC"; then
12112
# Extract the first word of "gcc", so it can be a program name with args.
12113
set dummy gcc; ac_word=$2
12114
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12116
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12117
echo $ECHO_N "(cached) $ECHO_C" >&6
12119
if test -n "$ac_ct_CC"; then
12120
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123
for as_dir in $PATH
12126
test -z "$as_dir" && as_dir=.
12127
for ac_exec_ext in '' $ac_executable_extensions; do
12128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12129
ac_cv_prog_ac_ct_CC="gcc"
12130
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12140
if test -n "$ac_ct_CC"; then
12141
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12142
echo "${ECHO_T}$ac_ct_CC" >&6; }
12144
{ echo "$as_me:$LINENO: result: no" >&5
12145
echo "${ECHO_T}no" >&6; }
12148
if test "x$ac_ct_CC" = x; then
12151
case $cross_compiling:$ac_tool_warned in
12153
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12154
whose name does not start with the host triplet. If you think this
12155
configuration is useful to you, please write to autoconf@gnu.org." >&5
12156
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12157
whose name does not start with the host triplet. If you think this
12158
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12159
ac_tool_warned=yes ;;
12164
CC="$ac_cv_prog_CC"
12167
if test -z "$CC"; then
12168
if test -n "$ac_tool_prefix"; then
12169
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12170
set dummy ${ac_tool_prefix}cc; ac_word=$2
12171
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12173
if test "${ac_cv_prog_CC+set}" = set; then
12174
echo $ECHO_N "(cached) $ECHO_C" >&6
12176
if test -n "$CC"; then
12177
ac_cv_prog_CC="$CC" # Let the user override the test.
12179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180
for as_dir in $PATH
12183
test -z "$as_dir" && as_dir=.
12184
for ac_exec_ext in '' $ac_executable_extensions; do
12185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12186
ac_cv_prog_CC="${ac_tool_prefix}cc"
12187
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197
if test -n "$CC"; then
12198
{ echo "$as_me:$LINENO: result: $CC" >&5
12199
echo "${ECHO_T}$CC" >&6; }
12201
{ echo "$as_me:$LINENO: result: no" >&5
12202
echo "${ECHO_T}no" >&6; }
12208
if test -z "$CC"; then
12209
# Extract the first word of "cc", so it can be a program name with args.
12210
set dummy cc; ac_word=$2
12211
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12212
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12213
if test "${ac_cv_prog_CC+set}" = set; then
12214
echo $ECHO_N "(cached) $ECHO_C" >&6
12216
if test -n "$CC"; then
12217
ac_cv_prog_CC="$CC" # Let the user override the test.
12219
ac_prog_rejected=no
12220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221
for as_dir in $PATH
12224
test -z "$as_dir" && as_dir=.
12225
for ac_exec_ext in '' $ac_executable_extensions; do
12226
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12227
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12228
ac_prog_rejected=yes
12232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239
if test $ac_prog_rejected = yes; then
12240
# We found a bogon in the path, so make sure we never use it.
12241
set dummy $ac_cv_prog_CC
12243
if test $# != 0; then
12244
# We chose a different compiler from the bogus one.
12245
# However, it has the same basename, so the bogon will be chosen
12246
# first if we set CC to just the basename; use the full file name.
12248
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12254
if test -n "$CC"; then
12255
{ echo "$as_me:$LINENO: result: $CC" >&5
12256
echo "${ECHO_T}$CC" >&6; }
12258
{ echo "$as_me:$LINENO: result: no" >&5
12259
echo "${ECHO_T}no" >&6; }
12264
if test -z "$CC"; then
12265
if test -n "$ac_tool_prefix"; then
12266
for ac_prog in cl.exe
12268
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12269
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12270
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12271
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12272
if test "${ac_cv_prog_CC+set}" = set; then
12273
echo $ECHO_N "(cached) $ECHO_C" >&6
12275
if test -n "$CC"; then
12276
ac_cv_prog_CC="$CC" # Let the user override the test.
12278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279
for as_dir in $PATH
12282
test -z "$as_dir" && as_dir=.
12283
for ac_exec_ext in '' $ac_executable_extensions; do
12284
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12285
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12286
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296
if test -n "$CC"; then
12297
{ echo "$as_me:$LINENO: result: $CC" >&5
12298
echo "${ECHO_T}$CC" >&6; }
12300
{ echo "$as_me:$LINENO: result: no" >&5
12301
echo "${ECHO_T}no" >&6; }
12305
test -n "$CC" && break
12308
if test -z "$CC"; then
12310
for ac_prog in cl.exe
12312
# Extract the first word of "$ac_prog", so it can be a program name with args.
12313
set dummy $ac_prog; ac_word=$2
12314
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12316
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12317
echo $ECHO_N "(cached) $ECHO_C" >&6
12319
if test -n "$ac_ct_CC"; then
12320
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323
for as_dir in $PATH
12326
test -z "$as_dir" && as_dir=.
12327
for ac_exec_ext in '' $ac_executable_extensions; do
12328
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12329
ac_cv_prog_ac_ct_CC="$ac_prog"
12330
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12339
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12340
if test -n "$ac_ct_CC"; then
12341
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12342
echo "${ECHO_T}$ac_ct_CC" >&6; }
12344
{ echo "$as_me:$LINENO: result: no" >&5
12345
echo "${ECHO_T}no" >&6; }
12349
test -n "$ac_ct_CC" && break
12352
if test "x$ac_ct_CC" = x; then
12355
case $cross_compiling:$ac_tool_warned in
12357
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12358
whose name does not start with the host triplet. If you think this
12359
configuration is useful to you, please write to autoconf@gnu.org." >&5
12360
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12361
whose name does not start with the host triplet. If you think this
12362
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12363
ac_tool_warned=yes ;;
12372
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12373
See \`config.log' for more details." >&5
12374
echo "$as_me: error: no acceptable C compiler found in \$PATH
12375
See \`config.log' for more details." >&2;}
12376
{ (exit 1); exit 1; }; }
12378
# Provide some information about the compiler.
12379
echo "$as_me:$LINENO: checking for C compiler version" >&5
12380
ac_compiler=`set X $ac_compile; echo $2`
12381
{ (ac_try="$ac_compiler --version >&5"
12382
case "(($ac_try" in
12383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384
*) ac_try_echo=$ac_try;;
12386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387
(eval "$ac_compiler --version >&5") 2>&5
12389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390
(exit $ac_status); }
12391
{ (ac_try="$ac_compiler -v >&5"
12392
case "(($ac_try" in
12393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394
*) ac_try_echo=$ac_try;;
12396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397
(eval "$ac_compiler -v >&5") 2>&5
12399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400
(exit $ac_status); }
12401
{ (ac_try="$ac_compiler -V >&5"
12402
case "(($ac_try" in
12403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404
*) ac_try_echo=$ac_try;;
12406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407
(eval "$ac_compiler -V >&5") 2>&5
12409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410
(exit $ac_status); }
12412
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12413
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
12414
if test "${ac_cv_c_compiler_gnu+set}" = set; then
12415
echo $ECHO_N "(cached) $ECHO_C" >&6
12417
cat >conftest.$ac_ext <<_ACEOF
12420
cat confdefs.h >>conftest.$ac_ext
12421
cat >>conftest.$ac_ext <<_ACEOF
12422
/* end confdefs.h. */
12435
rm -f conftest.$ac_objext
12436
if { (ac_try="$ac_compile"
12437
case "(($ac_try" in
12438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439
*) ac_try_echo=$ac_try;;
12441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442
(eval "$ac_compile") 2>conftest.er1
12444
grep -v '^ *+' conftest.er1 >conftest.err
12446
cat conftest.err >&5
12447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448
(exit $ac_status); } &&
12449
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450
{ (case "(($ac_try" in
12451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452
*) ac_try_echo=$ac_try;;
12454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455
(eval "$ac_try") 2>&5
12457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458
(exit $ac_status); }; } &&
12459
{ ac_try='test -s conftest.$ac_objext'
12460
{ (case "(($ac_try" in
12461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462
*) ac_try_echo=$ac_try;;
12464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465
(eval "$ac_try") 2>&5
12467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468
(exit $ac_status); }; }; then
12469
ac_compiler_gnu=yes
12471
echo "$as_me: failed program was:" >&5
12472
sed 's/^/| /' conftest.$ac_ext >&5
12477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12481
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12482
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
12483
GCC=`test $ac_compiler_gnu = yes && echo yes`
12484
ac_test_CFLAGS=${CFLAGS+set}
12485
ac_save_CFLAGS=$CFLAGS
12486
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12487
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
12488
if test "${ac_cv_prog_cc_g+set}" = set; then
12489
echo $ECHO_N "(cached) $ECHO_C" >&6
12491
ac_save_c_werror_flag=$ac_c_werror_flag
12492
ac_c_werror_flag=yes
12495
cat >conftest.$ac_ext <<_ACEOF
12498
cat confdefs.h >>conftest.$ac_ext
12499
cat >>conftest.$ac_ext <<_ACEOF
12500
/* end confdefs.h. */
12510
rm -f conftest.$ac_objext
12511
if { (ac_try="$ac_compile"
12512
case "(($ac_try" in
12513
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514
*) ac_try_echo=$ac_try;;
12516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517
(eval "$ac_compile") 2>conftest.er1
12519
grep -v '^ *+' conftest.er1 >conftest.err
12521
cat conftest.err >&5
12522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523
(exit $ac_status); } &&
12524
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12525
{ (case "(($ac_try" in
12526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527
*) ac_try_echo=$ac_try;;
12529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530
(eval "$ac_try") 2>&5
12532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533
(exit $ac_status); }; } &&
12534
{ ac_try='test -s conftest.$ac_objext'
12535
{ (case "(($ac_try" in
12536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537
*) ac_try_echo=$ac_try;;
12539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540
(eval "$ac_try") 2>&5
12542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543
(exit $ac_status); }; }; then
12544
ac_cv_prog_cc_g=yes
12546
echo "$as_me: failed program was:" >&5
12547
sed 's/^/| /' conftest.$ac_ext >&5
12550
cat >conftest.$ac_ext <<_ACEOF
12553
cat confdefs.h >>conftest.$ac_ext
12554
cat >>conftest.$ac_ext <<_ACEOF
12555
/* end confdefs.h. */
12565
rm -f conftest.$ac_objext
12566
if { (ac_try="$ac_compile"
12567
case "(($ac_try" in
12568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569
*) ac_try_echo=$ac_try;;
12571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572
(eval "$ac_compile") 2>conftest.er1
12574
grep -v '^ *+' conftest.er1 >conftest.err
12576
cat conftest.err >&5
12577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578
(exit $ac_status); } &&
12579
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580
{ (case "(($ac_try" in
12581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582
*) ac_try_echo=$ac_try;;
12584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585
(eval "$ac_try") 2>&5
12587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588
(exit $ac_status); }; } &&
12589
{ ac_try='test -s conftest.$ac_objext'
12590
{ (case "(($ac_try" in
12591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592
*) ac_try_echo=$ac_try;;
12594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595
(eval "$ac_try") 2>&5
12597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
(exit $ac_status); }; }; then
12601
echo "$as_me: failed program was:" >&5
12602
sed 's/^/| /' conftest.$ac_ext >&5
12604
ac_c_werror_flag=$ac_save_c_werror_flag
12606
cat >conftest.$ac_ext <<_ACEOF
12609
cat confdefs.h >>conftest.$ac_ext
12610
cat >>conftest.$ac_ext <<_ACEOF
12611
/* end confdefs.h. */
12621
rm -f conftest.$ac_objext
12622
if { (ac_try="$ac_compile"
12623
case "(($ac_try" in
12624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625
*) ac_try_echo=$ac_try;;
12627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628
(eval "$ac_compile") 2>conftest.er1
12630
grep -v '^ *+' conftest.er1 >conftest.err
12632
cat conftest.err >&5
12633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634
(exit $ac_status); } &&
12635
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636
{ (case "(($ac_try" in
12637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638
*) ac_try_echo=$ac_try;;
12640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641
(eval "$ac_try") 2>&5
12643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644
(exit $ac_status); }; } &&
12645
{ ac_try='test -s conftest.$ac_objext'
12646
{ (case "(($ac_try" in
12647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648
*) ac_try_echo=$ac_try;;
12650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651
(eval "$ac_try") 2>&5
12653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654
(exit $ac_status); }; }; then
12655
ac_cv_prog_cc_g=yes
12657
echo "$as_me: failed program was:" >&5
12658
sed 's/^/| /' conftest.$ac_ext >&5
12663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670
ac_c_werror_flag=$ac_save_c_werror_flag
12672
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12673
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
12674
if test "$ac_test_CFLAGS" = set; then
12675
CFLAGS=$ac_save_CFLAGS
12676
elif test $ac_cv_prog_cc_g = yes; then
12677
if test "$GCC" = yes; then
12683
if test "$GCC" = yes; then
12689
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12690
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12691
if test "${ac_cv_prog_cc_c89+set}" = set; then
12692
echo $ECHO_N "(cached) $ECHO_C" >&6
12694
ac_cv_prog_cc_c89=no
12696
cat >conftest.$ac_ext <<_ACEOF
12699
cat confdefs.h >>conftest.$ac_ext
12700
cat >>conftest.$ac_ext <<_ACEOF
12701
/* end confdefs.h. */
12702
#include <stdarg.h>
12704
#include <sys/types.h>
12705
#include <sys/stat.h>
12706
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12707
struct buf { int x; };
12708
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12709
static char *e (p, i)
12715
static char *f (char * (*g) (char **, int), char **p, ...)
12720
s = g (p, va_arg (v,int));
12725
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12726
function prototypes and stuff, but not '\xHH' hex character constants.
12727
These don't provoke an error unfortunately, instead are silently treated
12728
as 'x'. The following induces an error, until -std is added to get
12729
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12730
array size at least. It's necessary to write '\x00'==0 to get something
12731
that's true only with -std. */
12732
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12734
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12735
inside strings and character constants. */
12737
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12739
int test (int i, double x);
12740
struct s1 {int (*f) (int a);};
12741
struct s2 {int (*f) (double a);};
12742
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12748
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12753
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12754
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12756
CC="$ac_save_CC $ac_arg"
12757
rm -f conftest.$ac_objext
12758
if { (ac_try="$ac_compile"
12759
case "(($ac_try" in
12760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761
*) ac_try_echo=$ac_try;;
12763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764
(eval "$ac_compile") 2>conftest.er1
12766
grep -v '^ *+' conftest.er1 >conftest.err
12768
cat conftest.err >&5
12769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770
(exit $ac_status); } &&
12771
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772
{ (case "(($ac_try" in
12773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
*) ac_try_echo=$ac_try;;
12776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777
(eval "$ac_try") 2>&5
12779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780
(exit $ac_status); }; } &&
12781
{ ac_try='test -s conftest.$ac_objext'
12782
{ (case "(($ac_try" in
12783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784
*) ac_try_echo=$ac_try;;
12786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787
(eval "$ac_try") 2>&5
12789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790
(exit $ac_status); }; }; then
12791
ac_cv_prog_cc_c89=$ac_arg
12793
echo "$as_me: failed program was:" >&5
12794
sed 's/^/| /' conftest.$ac_ext >&5
12799
rm -f core conftest.err conftest.$ac_objext
12800
test "x$ac_cv_prog_cc_c89" != "xno" && break
12802
rm -f conftest.$ac_ext
12807
case "x$ac_cv_prog_cc_c89" in
12809
{ echo "$as_me:$LINENO: result: none needed" >&5
12810
echo "${ECHO_T}none needed" >&6; } ;;
12812
{ echo "$as_me:$LINENO: result: unsupported" >&5
12813
echo "${ECHO_T}unsupported" >&6; } ;;
12815
CC="$CC $ac_cv_prog_cc_c89"
12816
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12817
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12822
ac_cpp='$CPP $CPPFLAGS'
12823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
12827
depcc="$CC" am_compiler_list=
3026
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3027
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12829
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12830
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3028
12831
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3029
12832
echo $ECHO_N "(cached) $ECHO_C" >&6