1963
2740
rm -f conftest.$ac_objext
1964
if { (eval echo "$as_me:1964: \"$ac_compile\"") >&5
1965
(eval $ac_compile) 2>&5
2741
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742
(eval $ac_compile) 2>conftest.er1
1967
echo "$as_me:1967: \$? = $ac_status" >&5
2744
grep -v '^ *+' conftest.er1 >conftest.err
2746
cat conftest.err >&5
2747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968
2748
(exit $ac_status); } &&
1969
{ ac_try='test -s conftest.$ac_objext'
1970
{ (eval echo "$as_me:1970: \"$ac_try\"") >&5
1973
echo "$as_me:1973: \$? = $ac_status" >&5
2749
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754
(exit $ac_status); }; } &&
2755
{ ac_try='test -s conftest.$ac_objext'
2756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974
2760
(exit $ac_status); }; }; then
1975
2761
for ac_declaration in \
1977
'#include <stdlib.h>' \
1978
'extern "C" void std::exit (int) throw (); using std::exit;' \
1979
'extern "C" void std::exit (int); using std::exit;' \
1980
'extern "C" void exit (int) throw ();' \
1981
'extern "C" void exit (int);' \
1984
cat >conftest.$ac_ext <<_ACEOF
1985
#line 1985 "configure"
1986
#include "confdefs.h"
1997
rm -f conftest.$ac_objext
1998
if { (eval echo "$as_me:1998: \"$ac_compile\"") >&5
1999
(eval $ac_compile) 2>&5
2001
echo "$as_me:2001: \$? = $ac_status" >&5
2002
(exit $ac_status); } &&
2003
{ ac_try='test -s conftest.$ac_objext'
2004
{ (eval echo "$as_me:2004: \"$ac_try\"") >&5
2007
echo "$as_me:2007: \$? = $ac_status" >&5
2008
(exit $ac_status); }; }; then
2011
echo "$as_me: failed program was:" >&5
2012
cat conftest.$ac_ext >&5
2015
rm -f conftest.$ac_objext conftest.$ac_ext
2016
cat >conftest.$ac_ext <<_ACEOF
2017
#line 2017 "configure"
2018
#include "confdefs.h"
2028
rm -f conftest.$ac_objext
2029
if { (eval echo "$as_me:2029: \"$ac_compile\"") >&5
2030
(eval $ac_compile) 2>&5
2032
echo "$as_me:2032: \$? = $ac_status" >&5
2033
(exit $ac_status); } &&
2034
{ ac_try='test -s conftest.$ac_objext'
2035
{ (eval echo "$as_me:2035: \"$ac_try\"") >&5
2038
echo "$as_me:2038: \$? = $ac_status" >&5
2039
(exit $ac_status); }; }; then
2042
echo "$as_me: failed program was:" >&5
2043
cat conftest.$ac_ext >&5
2045
rm -f conftest.$ac_objext conftest.$ac_ext
2048
if test -n "$ac_declaration"; then
2049
echo '#ifdef __cplusplus' >>confdefs.h
2050
echo $ac_declaration >>confdefs.h
2051
echo '#endif' >>confdefs.h
2055
echo "$as_me: failed program was:" >&5
2056
cat conftest.$ac_ext >&5
2058
rm -f conftest.$ac_objext conftest.$ac_ext
2060
ac_cpp='$CPP $CPPFLAGS'
2061
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
'extern "C" void std::exit (int) throw (); using std::exit;' \
2764
'extern "C" void std::exit (int); using std::exit;' \
2765
'extern "C" void exit (int) throw ();' \
2766
'extern "C" void exit (int);' \
2769
cat >conftest.$ac_ext <<_ACEOF
2772
cat confdefs.h >>conftest.$ac_ext
2773
cat >>conftest.$ac_ext <<_ACEOF
2774
/* end confdefs.h. */
2785
rm -f conftest.$ac_objext
2786
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787
(eval $ac_compile) 2>conftest.er1
2789
grep -v '^ *+' conftest.er1 >conftest.err
2791
cat conftest.err >&5
2792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
(exit $ac_status); } &&
2794
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799
(exit $ac_status); }; } &&
2800
{ ac_try='test -s conftest.$ac_objext'
2801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805
(exit $ac_status); }; }; then
2808
echo "$as_me: failed program was:" >&5
2809
sed 's/^/| /' conftest.$ac_ext >&5
2813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814
cat >conftest.$ac_ext <<_ACEOF
2817
cat confdefs.h >>conftest.$ac_ext
2818
cat >>conftest.$ac_ext <<_ACEOF
2819
/* end confdefs.h. */
2829
rm -f conftest.$ac_objext
2830
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831
(eval $ac_compile) 2>conftest.er1
2833
grep -v '^ *+' conftest.er1 >conftest.err
2835
cat conftest.err >&5
2836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
(exit $ac_status); } &&
2838
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843
(exit $ac_status); }; } &&
2844
{ ac_try='test -s conftest.$ac_objext'
2845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849
(exit $ac_status); }; }; then
2852
echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859
if test -n "$ac_declaration"; then
2860
echo '#ifdef __cplusplus' >>confdefs.h
2861
echo $ac_declaration >>confdefs.h
2862
echo '#endif' >>confdefs.h
2866
echo "$as_me: failed program was:" >&5
2867
sed 's/^/| /' conftest.$ac_ext >&5
2870
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872
ac_cpp='$CPP $CPPFLAGS'
2873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
ac_cpp='$CXXCPP $CPPFLAGS'
2879
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2882
if test -n "$ac_tool_prefix"; then
2883
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2885
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887
echo "$as_me:$LINENO: checking for $ac_word" >&5
2888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889
if test "${ac_cv_prog_CXX+set}" = set; then
2890
echo $ECHO_N "(cached) $ECHO_C" >&6
2892
if test -n "$CXX"; then
2893
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899
test -z "$as_dir" && as_dir=.
2900
for ac_exec_ext in '' $ac_executable_extensions; do
2901
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912
if test -n "$CXX"; then
2913
echo "$as_me:$LINENO: result: $CXX" >&5
2914
echo "${ECHO_T}$CXX" >&6
2916
echo "$as_me:$LINENO: result: no" >&5
2917
echo "${ECHO_T}no" >&6
2920
test -n "$CXX" && break
2923
if test -z "$CXX"; then
2925
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2927
# Extract the first word of "$ac_prog", so it can be a program name with args.
2928
set dummy $ac_prog; ac_word=$2
2929
echo "$as_me:$LINENO: checking for $ac_word" >&5
2930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932
echo $ECHO_N "(cached) $ECHO_C" >&6
2934
if test -n "$ac_ct_CXX"; then
2935
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941
test -z "$as_dir" && as_dir=.
2942
for ac_exec_ext in '' $ac_executable_extensions; do
2943
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944
ac_cv_prog_ac_ct_CXX="$ac_prog"
2945
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2954
if test -n "$ac_ct_CXX"; then
2955
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2956
echo "${ECHO_T}$ac_ct_CXX" >&6
2958
echo "$as_me:$LINENO: result: no" >&5
2959
echo "${ECHO_T}no" >&6
2962
test -n "$ac_ct_CXX" && break
2964
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2970
# Provide some information about the compiler.
2971
echo "$as_me:$LINENO:" \
2972
"checking for C++ compiler version" >&5
2973
ac_compiler=`set X $ac_compile; echo $2`
2974
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975
(eval $ac_compiler --version </dev/null >&5) 2>&5
2977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978
(exit $ac_status); }
2979
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980
(eval $ac_compiler -v </dev/null >&5) 2>&5
2982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983
(exit $ac_status); }
2984
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985
(eval $ac_compiler -V </dev/null >&5) 2>&5
2987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988
(exit $ac_status); }
2990
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2991
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2992
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2993
echo $ECHO_N "(cached) $ECHO_C" >&6
2995
cat >conftest.$ac_ext <<_ACEOF
2998
cat confdefs.h >>conftest.$ac_ext
2999
cat >>conftest.$ac_ext <<_ACEOF
3000
/* end confdefs.h. */
3013
rm -f conftest.$ac_objext
3014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015
(eval $ac_compile) 2>conftest.er1
3017
grep -v '^ *+' conftest.er1 >conftest.err
3019
cat conftest.err >&5
3020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021
(exit $ac_status); } &&
3022
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); }; } &&
3028
{ ac_try='test -s conftest.$ac_objext'
3029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
(exit $ac_status); }; }; then
3036
echo "$as_me: failed program was:" >&5
3037
sed 's/^/| /' conftest.$ac_ext >&5
3041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3045
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3046
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3047
GXX=`test $ac_compiler_gnu = yes && echo yes`
3048
ac_test_CXXFLAGS=${CXXFLAGS+set}
3049
ac_save_CXXFLAGS=$CXXFLAGS
3051
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3052
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3053
if test "${ac_cv_prog_cxx_g+set}" = set; then
3054
echo $ECHO_N "(cached) $ECHO_C" >&6
3056
cat >conftest.$ac_ext <<_ACEOF
3059
cat confdefs.h >>conftest.$ac_ext
3060
cat >>conftest.$ac_ext <<_ACEOF
3061
/* end confdefs.h. */
3071
rm -f conftest.$ac_objext
3072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073
(eval $ac_compile) 2>conftest.er1
3075
grep -v '^ *+' conftest.er1 >conftest.err
3077
cat conftest.err >&5
3078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079
(exit $ac_status); } &&
3080
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085
(exit $ac_status); }; } &&
3086
{ ac_try='test -s conftest.$ac_objext'
3087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091
(exit $ac_status); }; }; then
3092
ac_cv_prog_cxx_g=yes
3094
echo "$as_me: failed program was:" >&5
3095
sed 's/^/| /' conftest.$ac_ext >&5
3099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3102
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3103
if test "$ac_test_CXXFLAGS" = set; then
3104
CXXFLAGS=$ac_save_CXXFLAGS
3105
elif test $ac_cv_prog_cxx_g = yes; then
3106
if test "$GXX" = yes; then
3112
if test "$GXX" = yes; then
3118
for ac_declaration in \
3120
'extern "C" void std::exit (int) throw (); using std::exit;' \
3121
'extern "C" void std::exit (int); using std::exit;' \
3122
'extern "C" void exit (int) throw ();' \
3123
'extern "C" void exit (int);' \
3126
cat >conftest.$ac_ext <<_ACEOF
3129
cat confdefs.h >>conftest.$ac_ext
3130
cat >>conftest.$ac_ext <<_ACEOF
3131
/* end confdefs.h. */
3142
rm -f conftest.$ac_objext
3143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144
(eval $ac_compile) 2>conftest.er1
3146
grep -v '^ *+' conftest.er1 >conftest.err
3148
cat conftest.err >&5
3149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150
(exit $ac_status); } &&
3151
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156
(exit $ac_status); }; } &&
3157
{ ac_try='test -s conftest.$ac_objext'
3158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162
(exit $ac_status); }; }; then
3165
echo "$as_me: failed program was:" >&5
3166
sed 's/^/| /' conftest.$ac_ext >&5
3170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3171
cat >conftest.$ac_ext <<_ACEOF
3174
cat confdefs.h >>conftest.$ac_ext
3175
cat >>conftest.$ac_ext <<_ACEOF
3176
/* end confdefs.h. */
3186
rm -f conftest.$ac_objext
3187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188
(eval $ac_compile) 2>conftest.er1
3190
grep -v '^ *+' conftest.er1 >conftest.err
3192
cat conftest.err >&5
3193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
(exit $ac_status); } &&
3195
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
(exit $ac_status); }; } &&
3201
{ ac_try='test -s conftest.$ac_objext'
3202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206
(exit $ac_status); }; }; then
3209
echo "$as_me: failed program was:" >&5
3210
sed 's/^/| /' conftest.$ac_ext >&5
3213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216
if test -n "$ac_declaration"; then
3217
echo '#ifdef __cplusplus' >>confdefs.h
3218
echo $ac_declaration >>confdefs.h
3219
echo '#endif' >>confdefs.h
3223
ac_cpp='$CPP $CPPFLAGS'
3224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
# Find a good install program. We prefer a C program (faster),
3229
# so one script is as good as another. But avoid the broken or
3230
# incompatible versions:
3231
# SysV /etc/install, /usr/sbin/install
3232
# SunOS /usr/etc/install
3233
# IRIX /sbin/install
3235
# AmigaOS /C/install, which installs bootblocks on floppy discs
3236
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239
# OS/2's system install, which has a completely different semantic
3240
# ./install, which can be erroneously created by make from ./install.sh.
3241
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3242
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3243
if test -z "$INSTALL"; then
3244
if test "${ac_cv_path_install+set}" = set; then
3245
echo $ECHO_N "(cached) $ECHO_C" >&6
3247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251
test -z "$as_dir" && as_dir=.
3252
# Account for people who put trailing slashes in PATH elements.
3254
./ | .// | /cC/* | \
3255
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3256
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3259
# OSF1 and SCO ODT 3.0 have their own names for install.
3260
# Don't use installbsd from OSF since it installs stuff as root
3262
for ac_prog in ginstall scoinst install; do
3263
for ac_exec_ext in '' $ac_executable_extensions; do
3264
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3265
if test $ac_prog = install &&
3266
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3267
# AIX install. It has an incompatible calling convention.
3269
elif test $ac_prog = install &&
3270
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3271
# program-specific install script used by HP pwplus--don't use.
3274
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3286
if test "${ac_cv_path_install+set}" = set; then
3287
INSTALL=$ac_cv_path_install
3289
# As a last resort, use the slow shell script. We don't cache a
3290
# path for INSTALL within a source directory, because that will
3291
# break other packages using the cache if that directory is
3292
# removed, or if the path is relative.
3293
INSTALL=$ac_install_sh
3296
echo "$as_me:$LINENO: result: $INSTALL" >&5
3297
echo "${ECHO_T}$INSTALL" >&6
3299
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3300
# It thinks the first close brace ends the variable substitution.
3301
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3303
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3305
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3307
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3308
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3309
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3310
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3311
echo $ECHO_N "(cached) $ECHO_C" >&6
3313
cat >conftest.make <<\_ACEOF
3315
@echo 'ac_maketemp="$(MAKE)"'
3317
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3318
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3319
if test -n "$ac_maketemp"; then
3320
eval ac_cv_prog_make_${ac_make}_set=yes
3322
eval ac_cv_prog_make_${ac_make}_set=no
3326
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3327
echo "$as_me:$LINENO: result: yes" >&5
3328
echo "${ECHO_T}yes" >&6
3331
echo "$as_me:$LINENO: result: no" >&5
3332
echo "${ECHO_T}no" >&6
3333
SET_MAKE="MAKE=${MAKE-make}"
3336
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3337
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3339
if test "$LN_S" = "ln -s"; then
3340
echo "$as_me:$LINENO: result: yes" >&5
3341
echo "${ECHO_T}yes" >&6
3343
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3344
echo "${ECHO_T}no, using $LN_S" >&6
3349
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3350
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3351
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3352
echo $ECHO_N "(cached) $ECHO_C" >&6
3354
ac_check_lib_save_LIBS=$LIBS
3355
LIBS="-lcposix $LIBS"
3356
cat >conftest.$ac_ext <<_ACEOF
3359
cat confdefs.h >>conftest.$ac_ext
3360
cat >>conftest.$ac_ext <<_ACEOF
3361
/* end confdefs.h. */
3363
/* Override any gcc2 internal prototype to avoid an error. */
3367
/* We use char because int might match the return type of a gcc2
3368
builtin and then its argument prototype would still apply. */
3378
rm -f conftest.$ac_objext conftest$ac_exeext
3379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380
(eval $ac_link) 2>conftest.er1
3382
grep -v '^ *+' conftest.er1 >conftest.err
3384
cat conftest.err >&5
3385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386
(exit $ac_status); } &&
3387
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392
(exit $ac_status); }; } &&
3393
{ ac_try='test -s conftest$ac_exeext'
3394
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
(exit $ac_status); }; }; then
3399
ac_cv_lib_cposix_strerror=yes
3401
echo "$as_me: failed program was:" >&5
3402
sed 's/^/| /' conftest.$ac_ext >&5
3404
ac_cv_lib_cposix_strerror=no
3406
rm -f conftest.err conftest.$ac_objext \
3407
conftest$ac_exeext conftest.$ac_ext
3408
LIBS=$ac_check_lib_save_LIBS
3410
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3411
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3412
if test $ac_cv_lib_cposix_strerror = yes; then
3413
LIBS="$LIBS -lcposix"
3418
for ac_prog in gawk mawk nawk awk
3420
# Extract the first word of "$ac_prog", so it can be a program name with args.
3421
set dummy $ac_prog; ac_word=$2
3422
echo "$as_me:$LINENO: checking for $ac_word" >&5
3423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424
if test "${ac_cv_prog_AWK+set}" = set; then
3425
echo $ECHO_N "(cached) $ECHO_C" >&6
3427
if test -n "$AWK"; then
3428
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
test -z "$as_dir" && as_dir=.
3435
for ac_exec_ext in '' $ac_executable_extensions; do
3436
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437
ac_cv_prog_AWK="$ac_prog"
3438
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447
if test -n "$AWK"; then
3448
echo "$as_me:$LINENO: result: $AWK" >&5
3449
echo "${ECHO_T}$AWK" >&6
3451
echo "$as_me:$LINENO: result: no" >&5
3452
echo "${ECHO_T}no" >&6
3455
test -n "$AWK" && break
3459
# gettext support (must be set here; before libti* dependancy checks)
3463
if test -n "$ac_aux_dir"; then
3464
case "$ac_aux_dir" in
3465
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3466
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3469
if test -z "$MKINSTALLDIRS"; then
3470
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3475
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3476
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3477
# Check whether --enable-nls or --disable-nls was given.
3478
if test "${enable_nls+set}" = set; then
3479
enableval="$enable_nls"
3484
echo "$as_me:$LINENO: result: $USE_NLS" >&5
3485
echo "${ECHO_T}$USE_NLS" >&6
3492
# Prepare PATH_SEPARATOR.
3493
# The user is always right.
3494
if test "${PATH_SEPARATOR+set}" != set; then
3495
echo "#! /bin/sh" >conf$$.sh
3496
echo "exit 0" >>conf$$.sh
3498
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3506
# Find out how to test for executable files. Don't use a zero-byte file,
3507
# as systems may use methods other than mode bits to determine executability.
3508
cat >conf$$.file <<_ASEOF
3512
chmod +x conf$$.file
3513
if test -x conf$$.file >/dev/null 2>&1; then
3514
ac_executable_p="test -x"
3516
ac_executable_p="test -f"
3520
# Extract the first word of "msgfmt", so it can be a program name with args.
3521
set dummy msgfmt; ac_word=$2
3522
echo "$as_me:$LINENO: checking for $ac_word" >&5
3523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524
if test "${ac_cv_path_MSGFMT+set}" = set; then
3525
echo $ECHO_N "(cached) $ECHO_C" >&6
3529
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3532
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3533
for ac_dir in $PATH; do
3535
test -z "$ac_dir" && ac_dir=.
3536
for ac_exec_ext in '' $ac_executable_extensions; do
3537
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3538
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3539
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3540
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3547
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3551
MSGFMT="$ac_cv_path_MSGFMT"
3552
if test "$MSGFMT" != ":"; then
3553
echo "$as_me:$LINENO: result: $MSGFMT" >&5
3554
echo "${ECHO_T}$MSGFMT" >&6
3556
echo "$as_me:$LINENO: result: no" >&5
3557
echo "${ECHO_T}no" >&6
3560
# Extract the first word of "gmsgfmt", so it can be a program name with args.
3561
set dummy gmsgfmt; ac_word=$2
3562
echo "$as_me:$LINENO: checking for $ac_word" >&5
3563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564
if test "${ac_cv_path_GMSGFMT+set}" = set; then
3565
echo $ECHO_N "(cached) $ECHO_C" >&6
3569
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576
test -z "$as_dir" && as_dir=.
3577
for ac_exec_ext in '' $ac_executable_extensions; do
3578
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3580
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3590
GMSGFMT=$ac_cv_path_GMSGFMT
3592
if test -n "$GMSGFMT"; then
3593
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3594
echo "${ECHO_T}$GMSGFMT" >&6
3596
echo "$as_me:$LINENO: result: no" >&5
3597
echo "${ECHO_T}no" >&6
3602
# Prepare PATH_SEPARATOR.
3603
# The user is always right.
3604
if test "${PATH_SEPARATOR+set}" != set; then
3605
echo "#! /bin/sh" >conf$$.sh
3606
echo "exit 0" >>conf$$.sh
3608
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3616
# Find out how to test for executable files. Don't use a zero-byte file,
3617
# as systems may use methods other than mode bits to determine executability.
3618
cat >conf$$.file <<_ASEOF
3622
chmod +x conf$$.file
3623
if test -x conf$$.file >/dev/null 2>&1; then
3624
ac_executable_p="test -x"
3626
ac_executable_p="test -f"
3630
# Extract the first word of "xgettext", so it can be a program name with args.
3631
set dummy xgettext; ac_word=$2
3632
echo "$as_me:$LINENO: checking for $ac_word" >&5
3633
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634
if test "${ac_cv_path_XGETTEXT+set}" = set; then
3635
echo $ECHO_N "(cached) $ECHO_C" >&6
3639
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3642
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3643
for ac_dir in $PATH; do
3645
test -z "$ac_dir" && ac_dir=.
3646
for ac_exec_ext in '' $ac_executable_extensions; do
3647
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3648
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3649
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3650
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3657
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3661
XGETTEXT="$ac_cv_path_XGETTEXT"
3662
if test "$XGETTEXT" != ":"; then
3663
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3664
echo "${ECHO_T}$XGETTEXT" >&6
3666
echo "$as_me:$LINENO: result: no" >&5
3667
echo "${ECHO_T}no" >&6
3673
# Prepare PATH_SEPARATOR.
3674
# The user is always right.
3675
if test "${PATH_SEPARATOR+set}" != set; then
3676
echo "#! /bin/sh" >conf$$.sh
3677
echo "exit 0" >>conf$$.sh
3679
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3687
# Find out how to test for executable files. Don't use a zero-byte file,
3688
# as systems may use methods other than mode bits to determine executability.
3689
cat >conf$$.file <<_ASEOF
3693
chmod +x conf$$.file
3694
if test -x conf$$.file >/dev/null 2>&1; then
3695
ac_executable_p="test -x"
3697
ac_executable_p="test -f"
3701
# Extract the first word of "msgmerge", so it can be a program name with args.
3702
set dummy msgmerge; ac_word=$2
3703
echo "$as_me:$LINENO: checking for $ac_word" >&5
3704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705
if test "${ac_cv_path_MSGMERGE+set}" = set; then
3706
echo $ECHO_N "(cached) $ECHO_C" >&6
3710
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3713
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3714
for ac_dir in $PATH; do
3716
test -z "$ac_dir" && ac_dir=.
3717
for ac_exec_ext in '' $ac_executable_extensions; do
3718
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3719
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3720
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3727
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3731
MSGMERGE="$ac_cv_path_MSGMERGE"
3732
if test "$MSGMERGE" != ":"; then
3733
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3734
echo "${ECHO_T}$MSGMERGE" >&6
3736
echo "$as_me:$LINENO: result: no" >&5
3737
echo "${ECHO_T}no" >&6
3741
if test "$GMSGFMT" != ":"; then
3742
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3743
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3746
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3747
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3748
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3753
if test "$XGETTEXT" != ":"; then
3754
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3755
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3758
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3759
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3765
ac_config_commands="$ac_config_commands default-2"
3768
if test -n "$ac_tool_prefix"; then
3769
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3770
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3771
echo "$as_me:$LINENO: checking for $ac_word" >&5
3772
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773
if test "${ac_cv_prog_RANLIB+set}" = set; then
3774
echo $ECHO_N "(cached) $ECHO_C" >&6
3776
if test -n "$RANLIB"; then
3777
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783
test -z "$as_dir" && as_dir=.
3784
for ac_exec_ext in '' $ac_executable_extensions; do
3785
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3787
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795
RANLIB=$ac_cv_prog_RANLIB
3796
if test -n "$RANLIB"; then
3797
echo "$as_me:$LINENO: result: $RANLIB" >&5
3798
echo "${ECHO_T}$RANLIB" >&6
3800
echo "$as_me:$LINENO: result: no" >&5
3801
echo "${ECHO_T}no" >&6
3805
if test -z "$ac_cv_prog_RANLIB"; then
3806
ac_ct_RANLIB=$RANLIB
3807
# Extract the first word of "ranlib", so it can be a program name with args.
3808
set dummy ranlib; ac_word=$2
3809
echo "$as_me:$LINENO: checking for $ac_word" >&5
3810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3812
echo $ECHO_N "(cached) $ECHO_C" >&6
3814
if test -n "$ac_ct_RANLIB"; then
3815
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821
test -z "$as_dir" && as_dir=.
3822
for ac_exec_ext in '' $ac_executable_extensions; do
3823
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824
ac_cv_prog_ac_ct_RANLIB="ranlib"
3825
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3834
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3835
if test -n "$ac_ct_RANLIB"; then
3836
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3837
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3839
echo "$as_me:$LINENO: result: no" >&5
3840
echo "${ECHO_T}no" >&6
3843
RANLIB=$ac_ct_RANLIB
3845
RANLIB="$ac_cv_prog_RANLIB"
3849
ac_cpp='$CPP $CPPFLAGS'
3850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3854
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3855
# On Suns, sometimes $CPP names a directory.
3856
if test -n "$CPP" && test -d "$CPP"; then
3859
if test -z "$CPP"; then
3860
if test "${ac_cv_prog_CPP+set}" = set; then
3861
echo $ECHO_N "(cached) $ECHO_C" >&6
3863
# Double quotes because CPP needs to be expanded
3864
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867
for ac_c_preproc_warn_flag in '' yes
3869
# Use a header file that comes with gcc, so configuring glibc
3870
# with a fresh cross-compiler works.
3871
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872
# <limits.h> exists even on freestanding compilers.
3873
# On the NeXT, cc -E runs the code through the compiler's parser,
3874
# not just through cpp. "Syntax error" is here to catch this case.
3875
cat >conftest.$ac_ext <<_ACEOF
3878
cat confdefs.h >>conftest.$ac_ext
3879
cat >>conftest.$ac_ext <<_ACEOF
3880
/* end confdefs.h. */
3882
# include <limits.h>
3884
# include <assert.h>
3888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891
grep -v '^ *+' conftest.er1 >conftest.err
3893
cat conftest.err >&5
3894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
(exit $ac_status); } >/dev/null; then
3896
if test -s conftest.err; then
3897
ac_cpp_err=$ac_c_preproc_warn_flag
3898
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905
if test -z "$ac_cpp_err"; then
3908
echo "$as_me: failed program was:" >&5
3909
sed 's/^/| /' conftest.$ac_ext >&5
3911
# Broken: fails on valid input.
3914
rm -f conftest.err conftest.$ac_ext
3916
# OK, works on sane cases. Now check whether non-existent headers
3917
# can be detected and how.
3918
cat >conftest.$ac_ext <<_ACEOF
3921
cat confdefs.h >>conftest.$ac_ext
3922
cat >>conftest.$ac_ext <<_ACEOF
3923
/* end confdefs.h. */
3924
#include <ac_nonexistent.h>
3926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929
grep -v '^ *+' conftest.er1 >conftest.err
3931
cat conftest.err >&5
3932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
(exit $ac_status); } >/dev/null; then
3934
if test -s conftest.err; then
3935
ac_cpp_err=$ac_c_preproc_warn_flag
3936
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943
if test -z "$ac_cpp_err"; then
3944
# Broken: success on invalid input.
3947
echo "$as_me: failed program was:" >&5
3948
sed 's/^/| /' conftest.$ac_ext >&5
3950
# Passes both tests.
3954
rm -f conftest.err conftest.$ac_ext
3957
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958
rm -f conftest.err conftest.$ac_ext
3959
if $ac_preproc_ok; then
3971
echo "$as_me:$LINENO: result: $CPP" >&5
3972
echo "${ECHO_T}$CPP" >&6
3974
for ac_c_preproc_warn_flag in '' yes
3976
# Use a header file that comes with gcc, so configuring glibc
3977
# with a fresh cross-compiler works.
3978
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979
# <limits.h> exists even on freestanding compilers.
3980
# On the NeXT, cc -E runs the code through the compiler's parser,
3981
# not just through cpp. "Syntax error" is here to catch this case.
3982
cat >conftest.$ac_ext <<_ACEOF
3985
cat confdefs.h >>conftest.$ac_ext
3986
cat >>conftest.$ac_ext <<_ACEOF
3987
/* end confdefs.h. */
3989
# include <limits.h>
3991
# include <assert.h>
3995
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998
grep -v '^ *+' conftest.er1 >conftest.err
4000
cat conftest.err >&5
4001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
(exit $ac_status); } >/dev/null; then
4003
if test -s conftest.err; then
4004
ac_cpp_err=$ac_c_preproc_warn_flag
4005
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012
if test -z "$ac_cpp_err"; then
4015
echo "$as_me: failed program was:" >&5
4016
sed 's/^/| /' conftest.$ac_ext >&5
4018
# Broken: fails on valid input.
4021
rm -f conftest.err conftest.$ac_ext
4023
# OK, works on sane cases. Now check whether non-existent headers
4024
# can be detected and how.
4025
cat >conftest.$ac_ext <<_ACEOF
4028
cat confdefs.h >>conftest.$ac_ext
4029
cat >>conftest.$ac_ext <<_ACEOF
4030
/* end confdefs.h. */
4031
#include <ac_nonexistent.h>
4033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036
grep -v '^ *+' conftest.er1 >conftest.err
4038
cat conftest.err >&5
4039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040
(exit $ac_status); } >/dev/null; then
4041
if test -s conftest.err; then
4042
ac_cpp_err=$ac_c_preproc_warn_flag
4043
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050
if test -z "$ac_cpp_err"; then
4051
# Broken: success on invalid input.
4054
echo "$as_me: failed program was:" >&5
4055
sed 's/^/| /' conftest.$ac_ext >&5
4057
# Passes both tests.
4061
rm -f conftest.err conftest.$ac_ext
4064
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065
rm -f conftest.err conftest.$ac_ext
4066
if $ac_preproc_ok; then
4069
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4070
See \`config.log' for more details." >&5
4071
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4072
See \`config.log' for more details." >&2;}
4073
{ (exit 1); exit 1; }; }
4077
ac_cpp='$CPP $CPPFLAGS'
4078
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
echo "$as_me:$LINENO: checking for egrep" >&5
4084
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4085
if test "${ac_cv_prog_egrep+set}" = set; then
4086
echo $ECHO_N "(cached) $ECHO_C" >&6
4088
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4089
then ac_cv_prog_egrep='grep -E'
4090
else ac_cv_prog_egrep='egrep'
4093
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4094
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4095
EGREP=$ac_cv_prog_egrep
4098
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4099
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4100
if test "${ac_cv_header_stdc+set}" = set; then
4101
echo $ECHO_N "(cached) $ECHO_C" >&6
4103
cat >conftest.$ac_ext <<_ACEOF
4106
cat confdefs.h >>conftest.$ac_ext
4107
cat >>conftest.$ac_ext <<_ACEOF
4108
/* end confdefs.h. */
4122
rm -f conftest.$ac_objext
4123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124
(eval $ac_compile) 2>conftest.er1
4126
grep -v '^ *+' conftest.er1 >conftest.err
4128
cat conftest.err >&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); } &&
4131
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
(exit $ac_status); }; } &&
4137
{ ac_try='test -s conftest.$ac_objext'
4138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142
(exit $ac_status); }; }; then
4143
ac_cv_header_stdc=yes
4145
echo "$as_me: failed program was:" >&5
4146
sed 's/^/| /' conftest.$ac_ext >&5
4148
ac_cv_header_stdc=no
4150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152
if test $ac_cv_header_stdc = yes; then
4153
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154
cat >conftest.$ac_ext <<_ACEOF
4157
cat confdefs.h >>conftest.$ac_ext
4158
cat >>conftest.$ac_ext <<_ACEOF
4159
/* end confdefs.h. */
4163
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164
$EGREP "memchr" >/dev/null 2>&1; then
4167
ac_cv_header_stdc=no
4173
if test $ac_cv_header_stdc = yes; then
4174
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4175
cat >conftest.$ac_ext <<_ACEOF
4178
cat confdefs.h >>conftest.$ac_ext
4179
cat >>conftest.$ac_ext <<_ACEOF
4180
/* end confdefs.h. */
4184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185
$EGREP "free" >/dev/null 2>&1; then
4188
ac_cv_header_stdc=no
4194
if test $ac_cv_header_stdc = yes; then
4195
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4196
if test "$cross_compiling" = yes; then
4199
cat >conftest.$ac_ext <<_ACEOF
4202
cat confdefs.h >>conftest.$ac_ext
4203
cat >>conftest.$ac_ext <<_ACEOF
4204
/* end confdefs.h. */
4206
#if ((' ' & 0x0FF) == 0x020)
4207
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4208
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4210
# define ISLOWER(c) \
4211
(('a' <= (c) && (c) <= 'i') \
4212
|| ('j' <= (c) && (c) <= 'r') \
4213
|| ('s' <= (c) && (c) <= 'z'))
4214
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4222
for (i = 0; i < 256; i++)
4223
if (XOR (islower (i), ISLOWER (i))
4224
|| toupper (i) != TOUPPER (i))
4229
rm -f conftest$ac_exeext
4230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231
(eval $ac_link) 2>&5
4233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239
(exit $ac_status); }; }; then
4242
echo "$as_me: program exited with status $ac_status" >&5
4243
echo "$as_me: failed program was:" >&5
4244
sed 's/^/| /' conftest.$ac_ext >&5
4247
ac_cv_header_stdc=no
4249
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4255
if test $ac_cv_header_stdc = yes; then
4257
cat >>confdefs.h <<\_ACEOF
4258
#define STDC_HEADERS 1
4263
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4264
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4265
if test "${ac_cv_c_const+set}" = set; then
4266
echo $ECHO_N "(cached) $ECHO_C" >&6
4268
cat >conftest.$ac_ext <<_ACEOF
4271
cat confdefs.h >>conftest.$ac_ext
4272
cat >>conftest.$ac_ext <<_ACEOF
4273
/* end confdefs.h. */
4278
/* FIXME: Include the comments suggested by Paul. */
4280
/* Ultrix mips cc rejects this. */
4281
typedef int charset[2];
4283
/* SunOS 4.1.1 cc rejects this. */
4284
char const *const *ccp;
4286
/* NEC SVR4.0.2 mips cc rejects this. */
4287
struct point {int x, y;};
4288
static struct point const zero = {0,0};
4289
/* AIX XL C 1.02.0.0 rejects this.
4290
It does not let you subtract one const X* pointer from another in
4291
an arm of an if-expression whose if-part is not a constant
4293
const char *g = "string";
4294
ccp = &g + (g ? g-g : 0);
4295
/* HPUX 7.0 cc rejects these. */
4298
ccp = (char const *const *) p;
4299
{ /* SCO 3.2v4 cc rejects this. */
4301
char const *s = 0 ? (char *) 0 : (char const *) 0;
4305
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4307
const int *foo = &x[0];
4310
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4311
typedef const int *iptr;
4315
{ /* AIX XL C 1.02.0.0 rejects this saying
4316
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4317
struct s { int j; const int *ap[3]; };
4318
struct s *b; b->j = 5;
4320
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4329
rm -f conftest.$ac_objext
4330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331
(eval $ac_compile) 2>conftest.er1
4333
grep -v '^ *+' conftest.er1 >conftest.err
4335
cat conftest.err >&5
4336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337
(exit $ac_status); } &&
4338
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343
(exit $ac_status); }; } &&
4344
{ ac_try='test -s conftest.$ac_objext'
4345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349
(exit $ac_status); }; }; then
4352
echo "$as_me: failed program was:" >&5
4353
sed 's/^/| /' conftest.$ac_ext >&5
4357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4360
echo "${ECHO_T}$ac_cv_c_const" >&6
4361
if test $ac_cv_c_const = no; then
4363
cat >>confdefs.h <<\_ACEOF
4370
echo "$as_me:$LINENO: checking for signed" >&5
4371
echo $ECHO_N "checking for signed... $ECHO_C" >&6
4372
if test "${bh_cv_c_signed+set}" = set; then
4373
echo $ECHO_N "(cached) $ECHO_C" >&6
4375
cat >conftest.$ac_ext <<_ACEOF
4378
cat confdefs.h >>conftest.$ac_ext
4379
cat >>conftest.$ac_ext <<_ACEOF
4380
/* end confdefs.h. */
4390
rm -f conftest.$ac_objext
4391
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392
(eval $ac_compile) 2>conftest.er1
4394
grep -v '^ *+' conftest.er1 >conftest.err
4396
cat conftest.err >&5
4397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398
(exit $ac_status); } &&
4399
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404
(exit $ac_status); }; } &&
4405
{ ac_try='test -s conftest.$ac_objext'
4406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410
(exit $ac_status); }; }; then
4413
echo "$as_me: failed program was:" >&5
4414
sed 's/^/| /' conftest.$ac_ext >&5
4418
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4421
echo "${ECHO_T}$bh_cv_c_signed" >&6
4422
if test $bh_cv_c_signed = no; then
4424
cat >>confdefs.h <<\_ACEOF
4430
echo "$as_me:$LINENO: checking for inline" >&5
4431
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4432
if test "${ac_cv_c_inline+set}" = set; then
4433
echo $ECHO_N "(cached) $ECHO_C" >&6
4436
for ac_kw in inline __inline__ __inline; do
4437
cat >conftest.$ac_ext <<_ACEOF
4440
cat confdefs.h >>conftest.$ac_ext
4441
cat >>conftest.$ac_ext <<_ACEOF
4442
/* end confdefs.h. */
4445
static $ac_kw foo_t static_foo () {return 0; }
4446
$ac_kw foo_t foo () {return 0; }
4450
rm -f conftest.$ac_objext
4451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452
(eval $ac_compile) 2>conftest.er1
4454
grep -v '^ *+' conftest.er1 >conftest.err
4456
cat conftest.err >&5
4457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458
(exit $ac_status); } &&
4459
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464
(exit $ac_status); }; } &&
4465
{ ac_try='test -s conftest.$ac_objext'
4466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470
(exit $ac_status); }; }; then
4471
ac_cv_c_inline=$ac_kw; break
4473
echo "$as_me: failed program was:" >&5
4474
sed 's/^/| /' conftest.$ac_ext >&5
4477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4482
echo "${ECHO_T}$ac_cv_c_inline" >&6
4485
case $ac_cv_c_inline in
4488
case $ac_cv_c_inline in
4490
*) ac_val=$ac_cv_c_inline;;
4492
cat >>confdefs.h <<_ACEOF
4494
#define inline $ac_val
4500
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4510
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511
inttypes.h stdint.h unistd.h
4513
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514
echo "$as_me:$LINENO: checking for $ac_header" >&5
4515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517
echo $ECHO_N "(cached) $ECHO_C" >&6
4519
cat >conftest.$ac_ext <<_ACEOF
4522
cat confdefs.h >>conftest.$ac_ext
4523
cat >>conftest.$ac_ext <<_ACEOF
4524
/* end confdefs.h. */
4525
$ac_includes_default
4527
#include <$ac_header>
4529
rm -f conftest.$ac_objext
4530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531
(eval $ac_compile) 2>conftest.er1
4533
grep -v '^ *+' conftest.er1 >conftest.err
4535
cat conftest.err >&5
4536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
(exit $ac_status); } &&
4538
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543
(exit $ac_status); }; } &&
4544
{ ac_try='test -s conftest.$ac_objext'
4545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); }; }; then
4550
eval "$as_ac_Header=yes"
4552
echo "$as_me: failed program was:" >&5
4553
sed 's/^/| /' conftest.$ac_ext >&5
4555
eval "$as_ac_Header=no"
4557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562
cat >>confdefs.h <<_ACEOF
4563
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571
echo "$as_me:$LINENO: checking for off_t" >&5
4572
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4573
if test "${ac_cv_type_off_t+set}" = set; then
4574
echo $ECHO_N "(cached) $ECHO_C" >&6
4576
cat >conftest.$ac_ext <<_ACEOF
4579
cat confdefs.h >>conftest.$ac_ext
4580
cat >>conftest.$ac_ext <<_ACEOF
4581
/* end confdefs.h. */
4582
$ac_includes_default
4594
rm -f conftest.$ac_objext
4595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596
(eval $ac_compile) 2>conftest.er1
4598
grep -v '^ *+' conftest.er1 >conftest.err
4600
cat conftest.err >&5
4601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602
(exit $ac_status); } &&
4603
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608
(exit $ac_status); }; } &&
4609
{ ac_try='test -s conftest.$ac_objext'
4610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614
(exit $ac_status); }; }; then
4615
ac_cv_type_off_t=yes
4617
echo "$as_me: failed program was:" >&5
4618
sed 's/^/| /' conftest.$ac_ext >&5
4622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4625
echo "${ECHO_T}$ac_cv_type_off_t" >&6
4626
if test $ac_cv_type_off_t = yes; then
4630
cat >>confdefs.h <<_ACEOF
4636
echo "$as_me:$LINENO: checking for size_t" >&5
4637
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4638
if test "${ac_cv_type_size_t+set}" = set; then
4639
echo $ECHO_N "(cached) $ECHO_C" >&6
4641
cat >conftest.$ac_ext <<_ACEOF
4644
cat confdefs.h >>conftest.$ac_ext
4645
cat >>conftest.$ac_ext <<_ACEOF
4646
/* end confdefs.h. */
4647
$ac_includes_default
4653
if (sizeof (size_t))
4659
rm -f conftest.$ac_objext
4660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661
(eval $ac_compile) 2>conftest.er1
4663
grep -v '^ *+' conftest.er1 >conftest.err
4665
cat conftest.err >&5
4666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667
(exit $ac_status); } &&
4668
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673
(exit $ac_status); }; } &&
4674
{ ac_try='test -s conftest.$ac_objext'
4675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679
(exit $ac_status); }; }; then
4680
ac_cv_type_size_t=yes
4682
echo "$as_me: failed program was:" >&5
4683
sed 's/^/| /' conftest.$ac_ext >&5
4685
ac_cv_type_size_t=no
4687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4690
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4691
if test $ac_cv_type_size_t = yes; then
4695
cat >>confdefs.h <<_ACEOF
4696
#define size_t unsigned
4702
echo "$as_me:$LINENO: checking for long long" >&5
4703
echo $ECHO_N "checking for long long... $ECHO_C" >&6
4704
if test "${ac_cv_type_long_long+set}" = set; then
4705
echo $ECHO_N "(cached) $ECHO_C" >&6
4707
cat >conftest.$ac_ext <<_ACEOF
4710
cat confdefs.h >>conftest.$ac_ext
4711
cat >>conftest.$ac_ext <<_ACEOF
4712
/* end confdefs.h. */
4713
long long ll = 1LL; int i = 63;
4717
long long llmax = (long long) -1;
4718
return ll << i | ll >> i | llmax / ll | llmax % ll;
4723
rm -f conftest.$ac_objext conftest$ac_exeext
4724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725
(eval $ac_link) 2>conftest.er1
4727
grep -v '^ *+' conftest.er1 >conftest.err
4729
cat conftest.err >&5
4730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731
(exit $ac_status); } &&
4732
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737
(exit $ac_status); }; } &&
4738
{ ac_try='test -s conftest$ac_exeext'
4739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743
(exit $ac_status); }; }; then
4744
ac_cv_type_long_long=yes
4746
echo "$as_me: failed program was:" >&5
4747
sed 's/^/| /' conftest.$ac_ext >&5
4749
ac_cv_type_long_long=no
4751
rm -f conftest.err conftest.$ac_objext \
4752
conftest$ac_exeext conftest.$ac_ext
4754
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4755
echo "${ECHO_T}$ac_cv_type_long_long" >&6
4756
if test $ac_cv_type_long_long = yes; then
4758
cat >>confdefs.h <<\_ACEOF
4759
#define HAVE_LONG_LONG 1
4765
echo "$as_me:$LINENO: checking for long double" >&5
4766
echo $ECHO_N "checking for long double... $ECHO_C" >&6
4767
if test "${gt_cv_c_long_double+set}" = set; then
4768
echo $ECHO_N "(cached) $ECHO_C" >&6
4770
if test "$GCC" = yes; then
4771
gt_cv_c_long_double=yes
4773
cat >conftest.$ac_ext <<_ACEOF
4776
cat confdefs.h >>conftest.$ac_ext
4777
cat >>conftest.$ac_ext <<_ACEOF
4778
/* end confdefs.h. */
4780
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
4781
long double foo = 0.0;
4782
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4783
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4793
rm -f conftest.$ac_objext
4794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795
(eval $ac_compile) 2>conftest.er1
4797
grep -v '^ *+' conftest.er1 >conftest.err
4799
cat conftest.err >&5
4800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801
(exit $ac_status); } &&
4802
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
(exit $ac_status); }; } &&
4808
{ ac_try='test -s conftest.$ac_objext'
4809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
(exit $ac_status); }; }; then
4814
gt_cv_c_long_double=yes
4816
echo "$as_me: failed program was:" >&5
4817
sed 's/^/| /' conftest.$ac_ext >&5
4819
gt_cv_c_long_double=no
4821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4825
echo "${ECHO_T}$gt_cv_c_long_double" >&6
4826
if test $gt_cv_c_long_double = yes; then
4828
cat >>confdefs.h <<\_ACEOF
4829
#define HAVE_LONG_DOUBLE 1
4835
echo "$as_me:$LINENO: checking for wchar_t" >&5
4836
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4837
if test "${gt_cv_c_wchar_t+set}" = set; then
4838
echo $ECHO_N "(cached) $ECHO_C" >&6
4840
cat >conftest.$ac_ext <<_ACEOF
4843
cat confdefs.h >>conftest.$ac_ext
4844
cat >>conftest.$ac_ext <<_ACEOF
4845
/* end confdefs.h. */
4847
wchar_t foo = (wchar_t)'\0';
4856
rm -f conftest.$ac_objext
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858
(eval $ac_compile) 2>conftest.er1
4860
grep -v '^ *+' conftest.er1 >conftest.err
4862
cat conftest.err >&5
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
(exit $ac_status); } &&
4865
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
(exit $ac_status); }; } &&
4871
{ ac_try='test -s conftest.$ac_objext'
4872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
(exit $ac_status); }; }; then
4879
echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4887
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4888
if test $gt_cv_c_wchar_t = yes; then
4890
cat >>confdefs.h <<\_ACEOF
4891
#define HAVE_WCHAR_T 1
4897
echo "$as_me:$LINENO: checking for wint_t" >&5
4898
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4899
if test "${gt_cv_c_wint_t+set}" = set; then
4900
echo $ECHO_N "(cached) $ECHO_C" >&6
4902
cat >conftest.$ac_ext <<_ACEOF
4905
cat confdefs.h >>conftest.$ac_ext
4906
cat >>conftest.$ac_ext <<_ACEOF
4907
/* end confdefs.h. */
4909
wint_t foo = (wchar_t)'\0';
4918
rm -f conftest.$ac_objext
4919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920
(eval $ac_compile) 2>conftest.er1
4922
grep -v '^ *+' conftest.er1 >conftest.err
4924
cat conftest.err >&5
4925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926
(exit $ac_status); } &&
4927
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932
(exit $ac_status); }; } &&
4933
{ ac_try='test -s conftest.$ac_objext'
4934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938
(exit $ac_status); }; }; then
4941
echo "$as_me: failed program was:" >&5
4942
sed 's/^/| /' conftest.$ac_ext >&5
4946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4949
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4950
if test $gt_cv_c_wint_t = yes; then
4952
cat >>confdefs.h <<\_ACEOF
4953
#define HAVE_WINT_T 1
4959
echo "$as_me:$LINENO: checking for inttypes.h" >&5
4960
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4961
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4962
echo $ECHO_N "(cached) $ECHO_C" >&6
4964
cat >conftest.$ac_ext <<_ACEOF
4967
cat confdefs.h >>conftest.$ac_ext
4968
cat >>conftest.$ac_ext <<_ACEOF
4969
/* end confdefs.h. */
4970
#include <sys/types.h>
4971
#include <inttypes.h>
4975
uintmax_t i = (uintmax_t) -1;
4980
rm -f conftest.$ac_objext
4981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982
(eval $ac_compile) 2>conftest.er1
4984
grep -v '^ *+' conftest.er1 >conftest.err
4986
cat conftest.err >&5
4987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988
(exit $ac_status); } &&
4989
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994
(exit $ac_status); }; } &&
4995
{ ac_try='test -s conftest.$ac_objext'
4996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
(exit $ac_status); }; }; then
5001
jm_ac_cv_header_inttypes_h=yes
5003
echo "$as_me: failed program was:" >&5
5004
sed 's/^/| /' conftest.$ac_ext >&5
5006
jm_ac_cv_header_inttypes_h=no
5008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5011
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5012
if test $jm_ac_cv_header_inttypes_h = yes; then
5014
cat >>confdefs.h <<_ACEOF
5015
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5021
echo "$as_me:$LINENO: checking for stdint.h" >&5
5022
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5023
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5024
echo $ECHO_N "(cached) $ECHO_C" >&6
5026
cat >conftest.$ac_ext <<_ACEOF
5029
cat confdefs.h >>conftest.$ac_ext
5030
cat >>conftest.$ac_ext <<_ACEOF
5031
/* end confdefs.h. */
5032
#include <sys/types.h>
5037
uintmax_t i = (uintmax_t) -1;
5042
rm -f conftest.$ac_objext
5043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044
(eval $ac_compile) 2>conftest.er1
5046
grep -v '^ *+' conftest.er1 >conftest.err
5048
cat conftest.err >&5
5049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050
(exit $ac_status); } &&
5051
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056
(exit $ac_status); }; } &&
5057
{ ac_try='test -s conftest.$ac_objext'
5058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
(exit $ac_status); }; }; then
5063
jm_ac_cv_header_stdint_h=yes
5065
echo "$as_me: failed program was:" >&5
5066
sed 's/^/| /' conftest.$ac_ext >&5
5068
jm_ac_cv_header_stdint_h=no
5070
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5073
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5074
if test $jm_ac_cv_header_stdint_h = yes; then
5076
cat >>confdefs.h <<_ACEOF
5077
#define HAVE_STDINT_H_WITH_UINTMAX 1
5085
echo "$as_me:$LINENO: checking for intmax_t" >&5
5086
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
5087
if test "${gt_cv_c_intmax_t+set}" = set; then
5088
echo $ECHO_N "(cached) $ECHO_C" >&6
5090
cat >conftest.$ac_ext <<_ACEOF
5093
cat confdefs.h >>conftest.$ac_ext
5094
cat >>conftest.$ac_ext <<_ACEOF
5095
/* end confdefs.h. */
5099
#if HAVE_STDINT_H_WITH_UINTMAX
5102
#if HAVE_INTTYPES_H_WITH_UINTMAX
5103
#include <inttypes.h>
5114
rm -f conftest.$ac_objext
5115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116
(eval $ac_compile) 2>conftest.er1
5118
grep -v '^ *+' conftest.er1 >conftest.err
5120
cat conftest.err >&5
5121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122
(exit $ac_status); } &&
5123
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128
(exit $ac_status); }; } &&
5129
{ ac_try='test -s conftest.$ac_objext'
5130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
(exit $ac_status); }; }; then
5135
gt_cv_c_intmax_t=yes
5137
echo "$as_me: failed program was:" >&5
5138
sed 's/^/| /' conftest.$ac_ext >&5
5142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5144
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5145
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
5146
if test $gt_cv_c_intmax_t = yes; then
5148
cat >>confdefs.h <<\_ACEOF
5149
#define HAVE_INTMAX_T 1
5156
echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5157
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
5158
if test "${gt_cv_func_printf_posix+set}" = set; then
5159
echo $ECHO_N "(cached) $ECHO_C" >&6
5162
if test "$cross_compiling" = yes; then
5164
cat >conftest.$ac_ext <<_ACEOF
5167
cat confdefs.h >>conftest.$ac_ext
5168
cat >>conftest.$ac_ext <<_ACEOF
5169
/* end confdefs.h. */
5171
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5176
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177
$EGREP "notposix" >/dev/null 2>&1; then
5178
gt_cv_func_printf_posix="guessing no"
5180
gt_cv_func_printf_posix="guessing yes"
5186
cat >conftest.$ac_ext <<_ACEOF
5189
cat confdefs.h >>conftest.$ac_ext
5190
cat >>conftest.$ac_ext <<_ACEOF
5191
/* end confdefs.h. */
5195
/* The string "%2$d %1$d", with dollar characters protected from the shell's
5196
dollar expansion (possibly an autoconf bug). */
5197
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5198
static char buf[100];
5201
sprintf (buf, format, 33, 55);
5202
return (strcmp (buf, "55 33") != 0);
5205
rm -f conftest$ac_exeext
5206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207
(eval $ac_link) 2>&5
5209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215
(exit $ac_status); }; }; then
5216
gt_cv_func_printf_posix=yes
5218
echo "$as_me: program exited with status $ac_status" >&5
5219
echo "$as_me: failed program was:" >&5
5220
sed 's/^/| /' conftest.$ac_ext >&5
5223
gt_cv_func_printf_posix=no
5225
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5229
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5230
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5231
case $gt_cv_func_printf_posix in
5234
cat >>confdefs.h <<\_ACEOF
5235
#define HAVE_POSIX_PRINTF 1
5241
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5242
# for constant arguments. Useless!
5243
echo "$as_me:$LINENO: checking for working alloca.h" >&5
5244
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5245
if test "${ac_cv_working_alloca_h+set}" = set; then
5246
echo $ECHO_N "(cached) $ECHO_C" >&6
5248
cat >conftest.$ac_ext <<_ACEOF
5251
cat confdefs.h >>conftest.$ac_ext
5252
cat >>conftest.$ac_ext <<_ACEOF
5253
/* end confdefs.h. */
5258
char *p = (char *) alloca (2 * sizeof (int));
5263
rm -f conftest.$ac_objext conftest$ac_exeext
5264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265
(eval $ac_link) 2>conftest.er1
5267
grep -v '^ *+' conftest.er1 >conftest.err
5269
cat conftest.err >&5
5270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271
(exit $ac_status); } &&
5272
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277
(exit $ac_status); }; } &&
5278
{ ac_try='test -s conftest$ac_exeext'
5279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283
(exit $ac_status); }; }; then
5284
ac_cv_working_alloca_h=yes
5286
echo "$as_me: failed program was:" >&5
5287
sed 's/^/| /' conftest.$ac_ext >&5
5289
ac_cv_working_alloca_h=no
5291
rm -f conftest.err conftest.$ac_objext \
5292
conftest$ac_exeext conftest.$ac_ext
5294
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5295
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5296
if test $ac_cv_working_alloca_h = yes; then
5298
cat >>confdefs.h <<\_ACEOF
5299
#define HAVE_ALLOCA_H 1
5304
echo "$as_me:$LINENO: checking for alloca" >&5
5305
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5306
if test "${ac_cv_func_alloca_works+set}" = set; then
5307
echo $ECHO_N "(cached) $ECHO_C" >&6
5309
cat >conftest.$ac_ext <<_ACEOF
5312
cat confdefs.h >>conftest.$ac_ext
5313
cat >>conftest.$ac_ext <<_ACEOF
5314
/* end confdefs.h. */
5316
# define alloca __builtin_alloca
5319
# include <malloc.h>
5320
# define alloca _alloca
5323
# include <alloca.h>
5328
# ifndef alloca /* predefined by HP cc +Olibcalls */
5339
char *p = (char *) alloca (1);
5344
rm -f conftest.$ac_objext conftest$ac_exeext
5345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346
(eval $ac_link) 2>conftest.er1
5348
grep -v '^ *+' conftest.er1 >conftest.err
5350
cat conftest.err >&5
5351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352
(exit $ac_status); } &&
5353
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
(exit $ac_status); }; } &&
5359
{ ac_try='test -s conftest$ac_exeext'
5360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364
(exit $ac_status); }; }; then
5365
ac_cv_func_alloca_works=yes
5367
echo "$as_me: failed program was:" >&5
5368
sed 's/^/| /' conftest.$ac_ext >&5
5370
ac_cv_func_alloca_works=no
5372
rm -f conftest.err conftest.$ac_objext \
5373
conftest$ac_exeext conftest.$ac_ext
5375
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5376
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5378
if test $ac_cv_func_alloca_works = yes; then
5380
cat >>confdefs.h <<\_ACEOF
5381
#define HAVE_ALLOCA 1
5385
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
5386
# that cause trouble. Some versions do not even contain alloca or
5387
# contain a buggy version. If you still want to use their alloca,
5388
# use ar to extract alloca.o from them instead of compiling alloca.c.
5390
ALLOCA=alloca.$ac_objext
5392
cat >>confdefs.h <<\_ACEOF
5397
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5398
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5399
if test "${ac_cv_os_cray+set}" = set; then
5400
echo $ECHO_N "(cached) $ECHO_C" >&6
5402
cat >conftest.$ac_ext <<_ACEOF
5405
cat confdefs.h >>conftest.$ac_ext
5406
cat >>conftest.$ac_ext <<_ACEOF
5407
/* end confdefs.h. */
5408
#if defined(CRAY) && ! defined(CRAY2)
5415
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416
$EGREP "webecray" >/dev/null 2>&1; then
5424
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5425
echo "${ECHO_T}$ac_cv_os_cray" >&6
5426
if test $ac_cv_os_cray = yes; then
5427
for ac_func in _getb67 GETB67 getb67; do
5428
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5429
echo "$as_me:$LINENO: checking for $ac_func" >&5
5430
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5431
if eval "test \"\${$as_ac_var+set}\" = set"; then
5432
echo $ECHO_N "(cached) $ECHO_C" >&6
5434
cat >conftest.$ac_ext <<_ACEOF
5437
cat confdefs.h >>conftest.$ac_ext
5438
cat >>conftest.$ac_ext <<_ACEOF
5439
/* end confdefs.h. */
5440
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5441
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5442
#define $ac_func innocuous_$ac_func
5444
/* System header to define __stub macros and hopefully few prototypes,
5445
which can conflict with char $ac_func (); below.
5446
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447
<limits.h> exists even on freestanding compilers. */
5450
# include <limits.h>
5452
# include <assert.h>
5457
/* Override any gcc2 internal prototype to avoid an error. */
5462
/* We use char because int might match the return type of a gcc2
5463
builtin and then its argument prototype would still apply. */
5465
/* The GNU C library defines this for functions which it implements
5466
to always fail with ENOSYS. Some functions are actually named
5467
something starting with __ and the normal name is an alias. */
5468
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471
char (*f) () = $ac_func;
5480
return f != $ac_func;
5485
rm -f conftest.$ac_objext conftest$ac_exeext
5486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487
(eval $ac_link) 2>conftest.er1
5489
grep -v '^ *+' conftest.er1 >conftest.err
5491
cat conftest.err >&5
5492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493
(exit $ac_status); } &&
5494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499
(exit $ac_status); }; } &&
5500
{ ac_try='test -s conftest$ac_exeext'
5501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505
(exit $ac_status); }; }; then
5506
eval "$as_ac_var=yes"
5508
echo "$as_me: failed program was:" >&5
5509
sed 's/^/| /' conftest.$ac_ext >&5
5511
eval "$as_ac_var=no"
5513
rm -f conftest.err conftest.$ac_objext \
5514
conftest$ac_exeext conftest.$ac_ext
5516
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5517
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5518
if test `eval echo '${'$as_ac_var'}'` = yes; then
5520
cat >>confdefs.h <<_ACEOF
5521
#define CRAY_STACKSEG_END $ac_func
5530
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5531
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5532
if test "${ac_cv_c_stack_direction+set}" = set; then
5533
echo $ECHO_N "(cached) $ECHO_C" >&6
5535
if test "$cross_compiling" = yes; then
5536
ac_cv_c_stack_direction=0
5538
cat >conftest.$ac_ext <<_ACEOF
5541
cat confdefs.h >>conftest.$ac_ext
5542
cat >>conftest.$ac_ext <<_ACEOF
5543
/* end confdefs.h. */
5545
find_stack_direction ()
5547
static char *addr = 0;
5552
return find_stack_direction ();
5555
return (&dummy > addr) ? 1 : -1;
5561
exit (find_stack_direction () < 0);
5564
rm -f conftest$ac_exeext
5565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566
(eval $ac_link) 2>&5
5568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574
(exit $ac_status); }; }; then
5575
ac_cv_c_stack_direction=1
5577
echo "$as_me: program exited with status $ac_status" >&5
5578
echo "$as_me: failed program was:" >&5
5579
sed 's/^/| /' conftest.$ac_ext >&5
5582
ac_cv_c_stack_direction=-1
5584
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5587
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5588
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5590
cat >>confdefs.h <<_ACEOF
5591
#define STACK_DIRECTION $ac_cv_c_stack_direction
5599
for ac_header in stdlib.h unistd.h
5601
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603
echo "$as_me:$LINENO: checking for $ac_header" >&5
5604
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606
echo $ECHO_N "(cached) $ECHO_C" >&6
5608
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611
# Is the header compilable?
5612
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5614
cat >conftest.$ac_ext <<_ACEOF
5617
cat confdefs.h >>conftest.$ac_ext
5618
cat >>conftest.$ac_ext <<_ACEOF
5619
/* end confdefs.h. */
5620
$ac_includes_default
5621
#include <$ac_header>
5623
rm -f conftest.$ac_objext
5624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625
(eval $ac_compile) 2>conftest.er1
5627
grep -v '^ *+' conftest.er1 >conftest.err
5629
cat conftest.err >&5
5630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
(exit $ac_status); } &&
5632
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); }; } &&
5638
{ ac_try='test -s conftest.$ac_objext'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; }; then
5644
ac_header_compiler=yes
5646
echo "$as_me: failed program was:" >&5
5647
sed 's/^/| /' conftest.$ac_ext >&5
5649
ac_header_compiler=no
5651
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5652
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653
echo "${ECHO_T}$ac_header_compiler" >&6
5655
# Is the header present?
5656
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5658
cat >conftest.$ac_ext <<_ACEOF
5661
cat confdefs.h >>conftest.$ac_ext
5662
cat >>conftest.$ac_ext <<_ACEOF
5663
/* end confdefs.h. */
5664
#include <$ac_header>
5666
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669
grep -v '^ *+' conftest.er1 >conftest.err
5671
cat conftest.err >&5
5672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
(exit $ac_status); } >/dev/null; then
5674
if test -s conftest.err; then
5675
ac_cpp_err=$ac_c_preproc_warn_flag
5676
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5683
if test -z "$ac_cpp_err"; then
5684
ac_header_preproc=yes
5686
echo "$as_me: failed program was:" >&5
5687
sed 's/^/| /' conftest.$ac_ext >&5
5689
ac_header_preproc=no
5691
rm -f conftest.err conftest.$ac_ext
5692
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5693
echo "${ECHO_T}$ac_header_preproc" >&6
5695
# So? What about this header?
5696
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5699
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5700
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5701
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5702
ac_header_preproc=yes
5705
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5710
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5711
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5712
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5713
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5714
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5715
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5716
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5719
## ------------------------------------------ ##
5720
## Report this to the AC_PACKAGE_NAME lists. ##
5721
## ------------------------------------------ ##
5724
sed "s/^/$as_me: WARNING: /" >&2
5727
echo "$as_me:$LINENO: checking for $ac_header" >&5
5728
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730
echo $ECHO_N "(cached) $ECHO_C" >&6
5732
eval "$as_ac_Header=\$ac_header_preproc"
5734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739
cat >>confdefs.h <<_ACEOF
5740
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748
for ac_func in getpagesize
5750
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751
echo "$as_me:$LINENO: checking for $ac_func" >&5
5752
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5753
if eval "test \"\${$as_ac_var+set}\" = set"; then
5754
echo $ECHO_N "(cached) $ECHO_C" >&6
5756
cat >conftest.$ac_ext <<_ACEOF
5759
cat confdefs.h >>conftest.$ac_ext
5760
cat >>conftest.$ac_ext <<_ACEOF
5761
/* end confdefs.h. */
5762
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5764
#define $ac_func innocuous_$ac_func
5766
/* System header to define __stub macros and hopefully few prototypes,
5767
which can conflict with char $ac_func (); below.
5768
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769
<limits.h> exists even on freestanding compilers. */
5772
# include <limits.h>
5774
# include <assert.h>
5779
/* Override any gcc2 internal prototype to avoid an error. */
5784
/* We use char because int might match the return type of a gcc2
5785
builtin and then its argument prototype would still apply. */
5787
/* The GNU C library defines this for functions which it implements
5788
to always fail with ENOSYS. Some functions are actually named
5789
something starting with __ and the normal name is an alias. */
5790
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5793
char (*f) () = $ac_func;
5802
return f != $ac_func;
5807
rm -f conftest.$ac_objext conftest$ac_exeext
5808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809
(eval $ac_link) 2>conftest.er1
5811
grep -v '^ *+' conftest.er1 >conftest.err
5813
cat conftest.err >&5
5814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815
(exit $ac_status); } &&
5816
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
(exit $ac_status); }; } &&
5822
{ ac_try='test -s conftest$ac_exeext'
5823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
(exit $ac_status); }; }; then
5828
eval "$as_ac_var=yes"
5830
echo "$as_me: failed program was:" >&5
5831
sed 's/^/| /' conftest.$ac_ext >&5
5833
eval "$as_ac_var=no"
5835
rm -f conftest.err conftest.$ac_objext \
5836
conftest$ac_exeext conftest.$ac_ext
5838
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5839
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5840
if test `eval echo '${'$as_ac_var'}'` = yes; then
5841
cat >>confdefs.h <<_ACEOF
5842
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5848
echo "$as_me:$LINENO: checking for working mmap" >&5
5849
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5850
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5851
echo $ECHO_N "(cached) $ECHO_C" >&6
5853
if test "$cross_compiling" = yes; then
5854
ac_cv_func_mmap_fixed_mapped=no
5856
cat >conftest.$ac_ext <<_ACEOF
5859
cat confdefs.h >>conftest.$ac_ext
5860
cat >>conftest.$ac_ext <<_ACEOF
5861
/* end confdefs.h. */
5862
$ac_includes_default
5863
/* malloc might have been renamed as rpl_malloc. */
5866
/* Thanks to Mike Haertel and Jim Avera for this test.
5867
Here is a matrix of mmap possibilities:
5868
mmap private not fixed
5869
mmap private fixed at somewhere currently unmapped
5870
mmap private fixed at somewhere already mapped
5871
mmap shared not fixed
5872
mmap shared fixed at somewhere currently unmapped
5873
mmap shared fixed at somewhere already mapped
5874
For private mappings, we should verify that changes cannot be read()
5875
back from the file, nor mmap's back from the file at a different
5876
address. (There have been systems where private was not correctly
5877
implemented like the infamous i386 svr4.0, and systems where the
5878
VM page cache was not coherent with the file system buffer cache
5879
like early versions of FreeBSD and possibly contemporary NetBSD.)
5880
For shared mappings, we should conversely verify that changes get
5881
propagated back to all the places they're supposed to be.
5883
Grep wants private fixed already mapped.
5884
The main things grep needs to know about mmap are:
5885
* does it exist and is it safe to write into the mmap'd area
5886
* how to use it (BSD variants) */
5889
#include <sys/mman.h>
5891
#if !STDC_HEADERS && !HAVE_STDLIB_H
5895
/* This mess was copied from the GNU getpagesize.h. */
5896
#if !HAVE_GETPAGESIZE
5897
/* Assume that all systems that can run configure have sys/param.h. */
5898
# if !HAVE_SYS_PARAM_H
5899
# define HAVE_SYS_PARAM_H 1
5902
# ifdef _SC_PAGESIZE
5903
# define getpagesize() sysconf(_SC_PAGESIZE)
5904
# else /* no _SC_PAGESIZE */
5905
# if HAVE_SYS_PARAM_H
5906
# include <sys/param.h>
5907
# ifdef EXEC_PAGESIZE
5908
# define getpagesize() EXEC_PAGESIZE
5909
# else /* no EXEC_PAGESIZE */
5911
# define getpagesize() NBPG * CLSIZE
5914
# endif /* no CLSIZE */
5915
# else /* no NBPG */
5917
# define getpagesize() NBPC
5918
# else /* no NBPC */
5920
# define getpagesize() PAGESIZE
5921
# endif /* PAGESIZE */
5922
# endif /* no NBPC */
5923
# endif /* no NBPG */
5924
# endif /* no EXEC_PAGESIZE */
5925
# else /* no HAVE_SYS_PARAM_H */
5926
# define getpagesize() 8192 /* punt totally */
5927
# endif /* no HAVE_SYS_PARAM_H */
5928
# endif /* no _SC_PAGESIZE */
5930
#endif /* no HAVE_GETPAGESIZE */
5935
char *data, *data2, *data3;
5939
pagesize = getpagesize ();
5941
/* First, make a file with some known garbage in it. */
5942
data = (char *) malloc (pagesize);
5945
for (i = 0; i < pagesize; ++i)
5946
*(data + i) = rand ();
5948
fd = creat ("conftest.mmap", 0600);
5951
if (write (fd, data, pagesize) != pagesize)
5955
/* Next, try to mmap the file at a fixed address which already has
5956
something else allocated at it. If we can, also make sure that
5957
we see the same garbage. */
5958
fd = open ("conftest.mmap", O_RDWR);
5961
data2 = (char *) malloc (2 * pagesize);
5964
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5965
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5966
MAP_PRIVATE | MAP_FIXED, fd, 0L))
5968
for (i = 0; i < pagesize; ++i)
5969
if (*(data + i) != *(data2 + i))
5972
/* Finally, make sure that changes to the mapped area do not
5973
percolate back to the file as seen by read(). (This is a bug on
5974
some variants of i386 svr4.0.) */
5975
for (i = 0; i < pagesize; ++i)
5976
*(data2 + i) = *(data2 + i) + 1;
5977
data3 = (char *) malloc (pagesize);
5980
if (read (fd, data3, pagesize) != pagesize)
5982
for (i = 0; i < pagesize; ++i)
5983
if (*(data + i) != *(data3 + i))
5989
rm -f conftest$ac_exeext
5990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5991
(eval $ac_link) 2>&5
5993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999
(exit $ac_status); }; }; then
6000
ac_cv_func_mmap_fixed_mapped=yes
6002
echo "$as_me: program exited with status $ac_status" >&5
6003
echo "$as_me: failed program was:" >&5
6004
sed 's/^/| /' conftest.$ac_ext >&5
6007
ac_cv_func_mmap_fixed_mapped=no
6009
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6012
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6013
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6014
if test $ac_cv_func_mmap_fixed_mapped = yes; then
6016
cat >>confdefs.h <<\_ACEOF
6024
echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6025
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6026
if test "${ac_cv_gnu_library_2_1+set}" = set; then
6027
echo $ECHO_N "(cached) $ECHO_C" >&6
6029
cat >conftest.$ac_ext <<_ACEOF
6032
cat confdefs.h >>conftest.$ac_ext
6033
cat >>conftest.$ac_ext <<_ACEOF
6034
/* end confdefs.h. */
6036
#include <features.h>
6037
#ifdef __GNU_LIBRARY__
6038
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6044
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
6046
ac_cv_gnu_library_2_1=yes
6048
ac_cv_gnu_library_2_1=no
6055
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6056
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6058
GLIBC21="$ac_cv_gnu_library_2_1"
6063
echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6064
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6065
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6066
echo $ECHO_N "(cached) $ECHO_C" >&6
6069
if test "$cross_compiling" = yes; then
6071
# Guess based on the CPU.
6073
alpha* | i3456786 | m68k | s390*)
6074
gt_cv_int_divbyzero_sigfpe="guessing yes";;
6076
gt_cv_int_divbyzero_sigfpe="guessing no";;
6080
cat >conftest.$ac_ext <<_ACEOF
6083
cat confdefs.h >>conftest.$ac_ext
6084
cat >>conftest.$ac_ext <<_ACEOF
6085
/* end confdefs.h. */
6092
sigfpe_handler (int sig)
6094
sigfpe_handler (sig) int sig;
6097
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6098
exit (sig != SIGFPE);
6108
signal (SIGFPE, sigfpe_handler);
6109
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6110
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6111
signal (SIGTRAP, sigfpe_handler);
6113
/* Linux/SPARC yields signal SIGILL. */
6114
#if defined (__sparc__) && defined (__linux__)
6115
signal (SIGILL, sigfpe_handler);
6124
rm -f conftest$ac_exeext
6125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126
(eval $ac_link) 2>&5
6128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134
(exit $ac_status); }; }; then
6135
gt_cv_int_divbyzero_sigfpe=yes
6137
echo "$as_me: program exited with status $ac_status" >&5
6138
echo "$as_me: failed program was:" >&5
6139
sed 's/^/| /' conftest.$ac_ext >&5
6142
gt_cv_int_divbyzero_sigfpe=no
6144
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6148
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6149
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6150
case "$gt_cv_int_divbyzero_sigfpe" in
6155
cat >>confdefs.h <<_ACEOF
6156
#define INTDIV0_RAISES_SIGFPE $value
6161
echo "$as_me:$LINENO: checking for unsigned long long" >&5
6162
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6163
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6164
echo $ECHO_N "(cached) $ECHO_C" >&6
6166
cat >conftest.$ac_ext <<_ACEOF
6169
cat confdefs.h >>conftest.$ac_ext
6170
cat >>conftest.$ac_ext <<_ACEOF
6171
/* end confdefs.h. */
6172
unsigned long long ull = 1ULL; int i = 63;
6176
unsigned long long ullmax = (unsigned long long) -1;
6177
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6182
rm -f conftest.$ac_objext conftest$ac_exeext
6183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184
(eval $ac_link) 2>conftest.er1
6186
grep -v '^ *+' conftest.er1 >conftest.err
6188
cat conftest.err >&5
6189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190
(exit $ac_status); } &&
6191
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196
(exit $ac_status); }; } &&
6197
{ ac_try='test -s conftest$ac_exeext'
6198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202
(exit $ac_status); }; }; then
6203
ac_cv_type_unsigned_long_long=yes
6205
echo "$as_me: failed program was:" >&5
6206
sed 's/^/| /' conftest.$ac_ext >&5
6208
ac_cv_type_unsigned_long_long=no
6210
rm -f conftest.err conftest.$ac_objext \
6211
conftest$ac_exeext conftest.$ac_ext
6213
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6214
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6215
if test $ac_cv_type_unsigned_long_long = yes; then
6217
cat >>confdefs.h <<\_ACEOF
6218
#define HAVE_UNSIGNED_LONG_LONG 1
6226
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6228
test $ac_cv_type_unsigned_long_long = yes \
6229
&& ac_type='unsigned long long' \
6230
|| ac_type='unsigned long'
6232
cat >>confdefs.h <<_ACEOF
6233
#define uintmax_t $ac_type
6238
cat >>confdefs.h <<\_ACEOF
6239
#define HAVE_UINTMAX_T 1
6245
echo "$as_me:$LINENO: checking for inttypes.h" >&5
6246
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6247
if test "${gt_cv_header_inttypes_h+set}" = set; then
6248
echo $ECHO_N "(cached) $ECHO_C" >&6
6251
cat >conftest.$ac_ext <<_ACEOF
6254
cat confdefs.h >>conftest.$ac_ext
6255
cat >>conftest.$ac_ext <<_ACEOF
6256
/* end confdefs.h. */
6257
#include <sys/types.h>
6258
#include <inttypes.h>
6267
rm -f conftest.$ac_objext
6268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269
(eval $ac_compile) 2>conftest.er1
6271
grep -v '^ *+' conftest.er1 >conftest.err
6273
cat conftest.err >&5
6274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275
(exit $ac_status); } &&
6276
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
(exit $ac_status); }; } &&
6282
{ ac_try='test -s conftest.$ac_objext'
6283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
(exit $ac_status); }; }; then
6288
gt_cv_header_inttypes_h=yes
6290
echo "$as_me: failed program was:" >&5
6291
sed 's/^/| /' conftest.$ac_ext >&5
6293
gt_cv_header_inttypes_h=no
6295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6299
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6300
if test $gt_cv_header_inttypes_h = yes; then
6302
cat >>confdefs.h <<_ACEOF
6303
#define HAVE_INTTYPES_H 1
6310
if test $gt_cv_header_inttypes_h = yes; then
6311
echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6312
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6313
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6314
echo $ECHO_N "(cached) $ECHO_C" >&6
6317
cat >conftest.$ac_ext <<_ACEOF
6320
cat confdefs.h >>conftest.$ac_ext
6321
cat >>conftest.$ac_ext <<_ACEOF
6322
/* end confdefs.h. */
6323
#include <inttypes.h>
6336
rm -f conftest.$ac_objext
6337
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338
(eval $ac_compile) 2>conftest.er1
6340
grep -v '^ *+' conftest.er1 >conftest.err
6342
cat conftest.err >&5
6343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344
(exit $ac_status); } &&
6345
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350
(exit $ac_status); }; } &&
6351
{ ac_try='test -s conftest.$ac_objext'
6352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356
(exit $ac_status); }; }; then
6357
gt_cv_inttypes_pri_broken=no
6359
echo "$as_me: failed program was:" >&5
6360
sed 's/^/| /' conftest.$ac_ext >&5
6362
gt_cv_inttypes_pri_broken=yes
6364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6368
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6370
if test "$gt_cv_inttypes_pri_broken" = yes; then
6372
cat >>confdefs.h <<_ACEOF
6373
#define PRI_MACROS_BROKEN 1
6380
for ac_header in stdint.h
6382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384
echo "$as_me:$LINENO: checking for $ac_header" >&5
6385
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6386
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6387
echo $ECHO_N "(cached) $ECHO_C" >&6
6389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392
# Is the header compilable?
6393
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6394
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6395
cat >conftest.$ac_ext <<_ACEOF
6398
cat confdefs.h >>conftest.$ac_ext
6399
cat >>conftest.$ac_ext <<_ACEOF
6400
/* end confdefs.h. */
6401
$ac_includes_default
6402
#include <$ac_header>
6404
rm -f conftest.$ac_objext
6405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406
(eval $ac_compile) 2>conftest.er1
6408
grep -v '^ *+' conftest.er1 >conftest.err
6410
cat conftest.err >&5
6411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
(exit $ac_status); } &&
6413
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
(exit $ac_status); }; } &&
6419
{ ac_try='test -s conftest.$ac_objext'
6420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424
(exit $ac_status); }; }; then
6425
ac_header_compiler=yes
6427
echo "$as_me: failed program was:" >&5
6428
sed 's/^/| /' conftest.$ac_ext >&5
6430
ac_header_compiler=no
6432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6434
echo "${ECHO_T}$ac_header_compiler" >&6
6436
# Is the header present?
6437
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6438
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6439
cat >conftest.$ac_ext <<_ACEOF
6442
cat confdefs.h >>conftest.$ac_ext
6443
cat >>conftest.$ac_ext <<_ACEOF
6444
/* end confdefs.h. */
6445
#include <$ac_header>
6447
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6448
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6450
grep -v '^ *+' conftest.er1 >conftest.err
6452
cat conftest.err >&5
6453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454
(exit $ac_status); } >/dev/null; then
6455
if test -s conftest.err; then
6456
ac_cpp_err=$ac_c_preproc_warn_flag
6457
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6464
if test -z "$ac_cpp_err"; then
6465
ac_header_preproc=yes
6467
echo "$as_me: failed program was:" >&5
6468
sed 's/^/| /' conftest.$ac_ext >&5
6470
ac_header_preproc=no
6472
rm -f conftest.err conftest.$ac_ext
6473
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6474
echo "${ECHO_T}$ac_header_preproc" >&6
6476
# So? What about this header?
6477
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6479
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6480
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6481
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6482
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6483
ac_header_preproc=yes
6486
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6487
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6488
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6489
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6490
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6491
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6492
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6493
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6494
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6495
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6496
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6497
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6500
## ------------------------------------------ ##
6501
## Report this to the AC_PACKAGE_NAME lists. ##
6502
## ------------------------------------------ ##
6505
sed "s/^/$as_me: WARNING: /" >&2
6508
echo "$as_me:$LINENO: checking for $ac_header" >&5
6509
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511
echo $ECHO_N "(cached) $ECHO_C" >&6
6513
eval "$as_ac_Header=\$ac_header_preproc"
6515
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6516
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520
cat >>confdefs.h <<_ACEOF
6521
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6529
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6531
cat >conftest.$ac_ext <<_ACEOF
6534
cat confdefs.h >>conftest.$ac_ext
6535
cat >>conftest.$ac_ext <<_ACEOF
6536
/* end confdefs.h. */
6547
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548
$EGREP "Found it" >/dev/null 2>&1; then
6553
if test -z "$result"; then
6554
if test "$cross_compiling" = yes; then
6555
# Depending upon the size, compute the lo and hi bounds.
6556
cat >conftest.$ac_ext <<_ACEOF
6559
cat confdefs.h >>conftest.$ac_ext
6560
cat >>conftest.$ac_ext <<_ACEOF
6561
/* end confdefs.h. */
6566
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6573
rm -f conftest.$ac_objext
6574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575
(eval $ac_compile) 2>conftest.er1
6577
grep -v '^ *+' conftest.er1 >conftest.err
6579
cat conftest.err >&5
6580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
(exit $ac_status); } &&
6582
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587
(exit $ac_status); }; } &&
6588
{ ac_try='test -s conftest.$ac_objext'
6589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593
(exit $ac_status); }; }; then
6596
cat >conftest.$ac_ext <<_ACEOF
6599
cat confdefs.h >>conftest.$ac_ext
6600
cat >>conftest.$ac_ext <<_ACEOF
6601
/* end confdefs.h. */
6606
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6613
rm -f conftest.$ac_objext
6614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615
(eval $ac_compile) 2>conftest.er1
6617
grep -v '^ *+' conftest.er1 >conftest.err
6619
cat conftest.err >&5
6620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621
(exit $ac_status); } &&
6622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
(exit $ac_status); }; } &&
6628
{ ac_try='test -s conftest.$ac_objext'
6629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633
(exit $ac_status); }; }; then
6634
ac_hi=$ac_mid; break
6636
echo "$as_me: failed program was:" >&5
6637
sed 's/^/| /' conftest.$ac_ext >&5
6639
ac_lo=`expr $ac_mid + 1`
6640
if test $ac_lo -le $ac_mid; then
6644
ac_mid=`expr 2 '*' $ac_mid + 1`
6646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649
echo "$as_me: failed program was:" >&5
6650
sed 's/^/| /' conftest.$ac_ext >&5
6652
cat >conftest.$ac_ext <<_ACEOF
6655
cat confdefs.h >>conftest.$ac_ext
6656
cat >>conftest.$ac_ext <<_ACEOF
6657
/* end confdefs.h. */
6662
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6669
rm -f conftest.$ac_objext
6670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671
(eval $ac_compile) 2>conftest.er1
6673
grep -v '^ *+' conftest.er1 >conftest.err
6675
cat conftest.err >&5
6676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677
(exit $ac_status); } &&
6678
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683
(exit $ac_status); }; } &&
6684
{ ac_try='test -s conftest.$ac_objext'
6685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689
(exit $ac_status); }; }; then
6692
cat >conftest.$ac_ext <<_ACEOF
6695
cat confdefs.h >>conftest.$ac_ext
6696
cat >>conftest.$ac_ext <<_ACEOF
6697
/* end confdefs.h. */
6702
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6709
rm -f conftest.$ac_objext
6710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711
(eval $ac_compile) 2>conftest.er1
6713
grep -v '^ *+' conftest.er1 >conftest.err
6715
cat conftest.err >&5
6716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717
(exit $ac_status); } &&
6718
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723
(exit $ac_status); }; } &&
6724
{ ac_try='test -s conftest.$ac_objext'
6725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729
(exit $ac_status); }; }; then
6730
ac_lo=$ac_mid; break
6732
echo "$as_me: failed program was:" >&5
6733
sed 's/^/| /' conftest.$ac_ext >&5
6735
ac_hi=`expr '(' $ac_mid ')' - 1`
6736
if test $ac_mid -le $ac_hi; then
6740
ac_mid=`expr 2 '*' $ac_mid`
6742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745
echo "$as_me: failed program was:" >&5
6746
sed 's/^/| /' conftest.$ac_ext >&5
6750
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6753
# Binary search between lo and hi bounds.
6754
while test "x$ac_lo" != "x$ac_hi"; do
6755
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6756
cat >conftest.$ac_ext <<_ACEOF
6759
cat confdefs.h >>conftest.$ac_ext
6760
cat >>conftest.$ac_ext <<_ACEOF
6761
/* end confdefs.h. */
6766
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6773
rm -f conftest.$ac_objext
6774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775
(eval $ac_compile) 2>conftest.er1
6777
grep -v '^ *+' conftest.er1 >conftest.err
6779
cat conftest.err >&5
6780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781
(exit $ac_status); } &&
6782
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787
(exit $ac_status); }; } &&
6788
{ ac_try='test -s conftest.$ac_objext'
6789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793
(exit $ac_status); }; }; then
6796
echo "$as_me: failed program was:" >&5
6797
sed 's/^/| /' conftest.$ac_ext >&5
6799
ac_lo=`expr '(' $ac_mid ')' + 1`
6801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808
if test "$cross_compiling" = yes; then
6809
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6810
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6811
{ (exit 1); exit 1; }; }
6813
cat >conftest.$ac_ext <<_ACEOF
6816
cat confdefs.h >>conftest.$ac_ext
6817
cat >>conftest.$ac_ext <<_ACEOF
6818
/* end confdefs.h. */
6820
long longval () { return ~(size_t)0 / 10; }
6821
unsigned long ulongval () { return ~(size_t)0 / 10; }
6828
FILE *f = fopen ("conftest.val", "w");
6831
if ((~(size_t)0 / 10) < 0)
6833
long i = longval ();
6834
if (i != (~(size_t)0 / 10))
6836
fprintf (f, "%ld\n", i);
6840
unsigned long i = ulongval ();
6841
if (i != (~(size_t)0 / 10))
6843
fprintf (f, "%lu\n", i);
6845
exit (ferror (f) || fclose (f) != 0);
6851
rm -f conftest$ac_exeext
6852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853
(eval $ac_link) 2>&5
6855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861
(exit $ac_status); }; }; then
6862
res_hi=`cat conftest.val`
6864
echo "$as_me: program exited with status $ac_status" >&5
6865
echo "$as_me: failed program was:" >&5
6866
sed 's/^/| /' conftest.$ac_ext >&5
6871
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6875
if test "$cross_compiling" = yes; then
6876
# Depending upon the size, compute the lo and hi bounds.
6877
cat >conftest.$ac_ext <<_ACEOF
6880
cat confdefs.h >>conftest.$ac_ext
6881
cat >>conftest.$ac_ext <<_ACEOF
6882
/* end confdefs.h. */
6887
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6894
rm -f conftest.$ac_objext
6895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896
(eval $ac_compile) 2>conftest.er1
6898
grep -v '^ *+' conftest.er1 >conftest.err
6900
cat conftest.err >&5
6901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902
(exit $ac_status); } &&
6903
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908
(exit $ac_status); }; } &&
6909
{ ac_try='test -s conftest.$ac_objext'
6910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914
(exit $ac_status); }; }; then
6917
cat >conftest.$ac_ext <<_ACEOF
6920
cat confdefs.h >>conftest.$ac_ext
6921
cat >>conftest.$ac_ext <<_ACEOF
6922
/* end confdefs.h. */
6927
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6934
rm -f conftest.$ac_objext
6935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936
(eval $ac_compile) 2>conftest.er1
6938
grep -v '^ *+' conftest.er1 >conftest.err
6940
cat conftest.err >&5
6941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942
(exit $ac_status); } &&
6943
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
(exit $ac_status); }; } &&
6949
{ ac_try='test -s conftest.$ac_objext'
6950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954
(exit $ac_status); }; }; then
6955
ac_hi=$ac_mid; break
6957
echo "$as_me: failed program was:" >&5
6958
sed 's/^/| /' conftest.$ac_ext >&5
6960
ac_lo=`expr $ac_mid + 1`
6961
if test $ac_lo -le $ac_mid; then
6965
ac_mid=`expr 2 '*' $ac_mid + 1`
6967
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970
echo "$as_me: failed program was:" >&5
6971
sed 's/^/| /' conftest.$ac_ext >&5
6973
cat >conftest.$ac_ext <<_ACEOF
6976
cat confdefs.h >>conftest.$ac_ext
6977
cat >>conftest.$ac_ext <<_ACEOF
6978
/* end confdefs.h. */
6983
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6990
rm -f conftest.$ac_objext
6991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992
(eval $ac_compile) 2>conftest.er1
6994
grep -v '^ *+' conftest.er1 >conftest.err
6996
cat conftest.err >&5
6997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998
(exit $ac_status); } &&
6999
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004
(exit $ac_status); }; } &&
7005
{ ac_try='test -s conftest.$ac_objext'
7006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010
(exit $ac_status); }; }; then
7013
cat >conftest.$ac_ext <<_ACEOF
7016
cat confdefs.h >>conftest.$ac_ext
7017
cat >>conftest.$ac_ext <<_ACEOF
7018
/* end confdefs.h. */
7023
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7030
rm -f conftest.$ac_objext
7031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032
(eval $ac_compile) 2>conftest.er1
7034
grep -v '^ *+' conftest.er1 >conftest.err
7036
cat conftest.err >&5
7037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038
(exit $ac_status); } &&
7039
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044
(exit $ac_status); }; } &&
7045
{ ac_try='test -s conftest.$ac_objext'
7046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
(exit $ac_status); }; }; then
7051
ac_lo=$ac_mid; break
7053
echo "$as_me: failed program was:" >&5
7054
sed 's/^/| /' conftest.$ac_ext >&5
7056
ac_hi=`expr '(' $ac_mid ')' - 1`
7057
if test $ac_mid -le $ac_hi; then
7061
ac_mid=`expr 2 '*' $ac_mid`
7063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066
echo "$as_me: failed program was:" >&5
7067
sed 's/^/| /' conftest.$ac_ext >&5
7071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074
# Binary search between lo and hi bounds.
7075
while test "x$ac_lo" != "x$ac_hi"; do
7076
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7077
cat >conftest.$ac_ext <<_ACEOF
7080
cat confdefs.h >>conftest.$ac_ext
7081
cat >>conftest.$ac_ext <<_ACEOF
7082
/* end confdefs.h. */
7087
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7094
rm -f conftest.$ac_objext
7095
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096
(eval $ac_compile) 2>conftest.er1
7098
grep -v '^ *+' conftest.er1 >conftest.err
7100
cat conftest.err >&5
7101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102
(exit $ac_status); } &&
7103
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108
(exit $ac_status); }; } &&
7109
{ ac_try='test -s conftest.$ac_objext'
7110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114
(exit $ac_status); }; }; then
7117
echo "$as_me: failed program was:" >&5
7118
sed 's/^/| /' conftest.$ac_ext >&5
7120
ac_lo=`expr '(' $ac_mid ')' + 1`
7122
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129
if test "$cross_compiling" = yes; then
7130
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7131
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7132
{ (exit 1); exit 1; }; }
7134
cat >conftest.$ac_ext <<_ACEOF
7137
cat confdefs.h >>conftest.$ac_ext
7138
cat >>conftest.$ac_ext <<_ACEOF
7139
/* end confdefs.h. */
7141
long longval () { return ~(size_t)0 % 10; }
7142
unsigned long ulongval () { return ~(size_t)0 % 10; }
7149
FILE *f = fopen ("conftest.val", "w");
7152
if ((~(size_t)0 % 10) < 0)
7154
long i = longval ();
7155
if (i != (~(size_t)0 % 10))
7157
fprintf (f, "%ld\n", i);
7161
unsigned long i = ulongval ();
7162
if (i != (~(size_t)0 % 10))
7164
fprintf (f, "%lu\n", i);
7166
exit (ferror (f) || fclose (f) != 0);
7172
rm -f conftest$ac_exeext
7173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174
(eval $ac_link) 2>&5
7176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182
(exit $ac_status); }; }; then
7183
res_lo=`cat conftest.val`
7185
echo "$as_me: program exited with status $ac_status" >&5
7186
echo "$as_me: failed program was:" >&5
7187
sed 's/^/| /' conftest.$ac_ext >&5
7192
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196
if test "$cross_compiling" = yes; then
7197
# Depending upon the size, compute the lo and hi bounds.
7198
cat >conftest.$ac_ext <<_ACEOF
7201
cat confdefs.h >>conftest.$ac_ext
7202
cat >>conftest.$ac_ext <<_ACEOF
7203
/* end confdefs.h. */
7208
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7215
rm -f conftest.$ac_objext
7216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217
(eval $ac_compile) 2>conftest.er1
7219
grep -v '^ *+' conftest.er1 >conftest.err
7221
cat conftest.err >&5
7222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223
(exit $ac_status); } &&
7224
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229
(exit $ac_status); }; } &&
7230
{ ac_try='test -s conftest.$ac_objext'
7231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235
(exit $ac_status); }; }; then
7238
cat >conftest.$ac_ext <<_ACEOF
7241
cat confdefs.h >>conftest.$ac_ext
7242
cat >>conftest.$ac_ext <<_ACEOF
7243
/* end confdefs.h. */
7248
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7255
rm -f conftest.$ac_objext
7256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257
(eval $ac_compile) 2>conftest.er1
7259
grep -v '^ *+' conftest.er1 >conftest.err
7261
cat conftest.err >&5
7262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263
(exit $ac_status); } &&
7264
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269
(exit $ac_status); }; } &&
7270
{ ac_try='test -s conftest.$ac_objext'
7271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275
(exit $ac_status); }; }; then
7276
ac_hi=$ac_mid; break
7278
echo "$as_me: failed program was:" >&5
7279
sed 's/^/| /' conftest.$ac_ext >&5
7281
ac_lo=`expr $ac_mid + 1`
7282
if test $ac_lo -le $ac_mid; then
7286
ac_mid=`expr 2 '*' $ac_mid + 1`
7288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291
echo "$as_me: failed program was:" >&5
7292
sed 's/^/| /' conftest.$ac_ext >&5
7294
cat >conftest.$ac_ext <<_ACEOF
7297
cat confdefs.h >>conftest.$ac_ext
7298
cat >>conftest.$ac_ext <<_ACEOF
7299
/* end confdefs.h. */
7304
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7311
rm -f conftest.$ac_objext
7312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313
(eval $ac_compile) 2>conftest.er1
7315
grep -v '^ *+' conftest.er1 >conftest.err
7317
cat conftest.err >&5
7318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319
(exit $ac_status); } &&
7320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325
(exit $ac_status); }; } &&
7326
{ ac_try='test -s conftest.$ac_objext'
7327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331
(exit $ac_status); }; }; then
7334
cat >conftest.$ac_ext <<_ACEOF
7337
cat confdefs.h >>conftest.$ac_ext
7338
cat >>conftest.$ac_ext <<_ACEOF
7339
/* end confdefs.h. */
7344
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7351
rm -f conftest.$ac_objext
7352
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353
(eval $ac_compile) 2>conftest.er1
7355
grep -v '^ *+' conftest.er1 >conftest.err
7357
cat conftest.err >&5
7358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359
(exit $ac_status); } &&
7360
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365
(exit $ac_status); }; } &&
7366
{ ac_try='test -s conftest.$ac_objext'
7367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371
(exit $ac_status); }; }; then
7372
ac_lo=$ac_mid; break
7374
echo "$as_me: failed program was:" >&5
7375
sed 's/^/| /' conftest.$ac_ext >&5
7377
ac_hi=`expr '(' $ac_mid ')' - 1`
7378
if test $ac_mid -le $ac_hi; then
7382
ac_mid=`expr 2 '*' $ac_mid`
7384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387
echo "$as_me: failed program was:" >&5
7388
sed 's/^/| /' conftest.$ac_ext >&5
7392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7395
# Binary search between lo and hi bounds.
7396
while test "x$ac_lo" != "x$ac_hi"; do
7397
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7398
cat >conftest.$ac_ext <<_ACEOF
7401
cat confdefs.h >>conftest.$ac_ext
7402
cat >>conftest.$ac_ext <<_ACEOF
7403
/* end confdefs.h. */
7408
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7415
rm -f conftest.$ac_objext
7416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417
(eval $ac_compile) 2>conftest.er1
7419
grep -v '^ *+' conftest.er1 >conftest.err
7421
cat conftest.err >&5
7422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423
(exit $ac_status); } &&
7424
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429
(exit $ac_status); }; } &&
7430
{ ac_try='test -s conftest.$ac_objext'
7431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435
(exit $ac_status); }; }; then
7438
echo "$as_me: failed program was:" >&5
7439
sed 's/^/| /' conftest.$ac_ext >&5
7441
ac_lo=`expr '(' $ac_mid ')' + 1`
7443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446
?*) fits_in_uint=$ac_lo;;
7450
if test "$cross_compiling" = yes; then
7451
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7452
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7453
{ (exit 1); exit 1; }; }
7455
cat >conftest.$ac_ext <<_ACEOF
7458
cat confdefs.h >>conftest.$ac_ext
7459
cat >>conftest.$ac_ext <<_ACEOF
7460
/* end confdefs.h. */
7462
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7463
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7470
FILE *f = fopen ("conftest.val", "w");
7473
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7475
long i = longval ();
7476
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7478
fprintf (f, "%ld\n", i);
7482
unsigned long i = ulongval ();
7483
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7485
fprintf (f, "%lu\n", i);
7487
exit (ferror (f) || fclose (f) != 0);
7493
rm -f conftest$ac_exeext
7494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495
(eval $ac_link) 2>&5
7497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503
(exit $ac_status); }; }; then
7504
fits_in_uint=`cat conftest.val`
7506
echo "$as_me: program exited with status $ac_status" >&5
7507
echo "$as_me: failed program was:" >&5
7508
sed 's/^/| /' conftest.$ac_ext >&5
7513
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7517
if test "$fits_in_uint" = 1; then
7518
cat >conftest.$ac_ext <<_ACEOF
7521
cat confdefs.h >>conftest.$ac_ext
7522
cat >>conftest.$ac_ext <<_ACEOF
7523
/* end confdefs.h. */
7526
extern unsigned long foo;
7536
rm -f conftest.$ac_objext
7537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7538
(eval $ac_compile) 2>conftest.er1
7540
grep -v '^ *+' conftest.er1 >conftest.err
7542
cat conftest.err >&5
7543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544
(exit $ac_status); } &&
7545
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550
(exit $ac_status); }; } &&
7551
{ ac_try='test -s conftest.$ac_objext'
7552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556
(exit $ac_status); }; }; then
7559
echo "$as_me: failed program was:" >&5
7560
sed 's/^/| /' conftest.$ac_ext >&5
7563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7565
if test -z "$result"; then
7566
if test "$fits_in_uint" = 1; then
7567
result="$res_hi$res_lo"U
7569
result="$res_hi$res_lo"UL
7575
echo "$as_me:$LINENO: result: $result" >&5
7576
echo "${ECHO_T}$result" >&6
7577
if test "$result" != yes; then
7579
cat >>confdefs.h <<_ACEOF
7580
#define SIZE_MAX $result
7588
for ac_header in stdint.h
7590
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592
echo "$as_me:$LINENO: checking for $ac_header" >&5
7593
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7594
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595
echo $ECHO_N "(cached) $ECHO_C" >&6
7597
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7598
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7600
# Is the header compilable?
7601
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7602
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7603
cat >conftest.$ac_ext <<_ACEOF
7606
cat confdefs.h >>conftest.$ac_ext
7607
cat >>conftest.$ac_ext <<_ACEOF
7608
/* end confdefs.h. */
7609
$ac_includes_default
7610
#include <$ac_header>
7612
rm -f conftest.$ac_objext
7613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614
(eval $ac_compile) 2>conftest.er1
7616
grep -v '^ *+' conftest.er1 >conftest.err
7618
cat conftest.err >&5
7619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620
(exit $ac_status); } &&
7621
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626
(exit $ac_status); }; } &&
7627
{ ac_try='test -s conftest.$ac_objext'
7628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632
(exit $ac_status); }; }; then
7633
ac_header_compiler=yes
7635
echo "$as_me: failed program was:" >&5
7636
sed 's/^/| /' conftest.$ac_ext >&5
7638
ac_header_compiler=no
7640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7641
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642
echo "${ECHO_T}$ac_header_compiler" >&6
7644
# Is the header present?
7645
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7647
cat >conftest.$ac_ext <<_ACEOF
7650
cat confdefs.h >>conftest.$ac_ext
7651
cat >>conftest.$ac_ext <<_ACEOF
7652
/* end confdefs.h. */
7653
#include <$ac_header>
7655
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7663
if test -s conftest.err; then
7664
ac_cpp_err=$ac_c_preproc_warn_flag
7665
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7672
if test -z "$ac_cpp_err"; then
7673
ac_header_preproc=yes
7675
echo "$as_me: failed program was:" >&5
7676
sed 's/^/| /' conftest.$ac_ext >&5
7678
ac_header_preproc=no
7680
rm -f conftest.err conftest.$ac_ext
7681
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682
echo "${ECHO_T}$ac_header_preproc" >&6
7684
# So? What about this header?
7685
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7687
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7691
ac_header_preproc=yes
7694
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7701
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7702
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7708
## ------------------------------------------ ##
7709
## Report this to the AC_PACKAGE_NAME lists. ##
7710
## ------------------------------------------ ##
7713
sed "s/^/$as_me: WARNING: /" >&2
7716
echo "$as_me:$LINENO: checking for $ac_header" >&5
7717
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719
echo $ECHO_N "(cached) $ECHO_C" >&6
7721
eval "$as_ac_Header=\$ac_header_preproc"
7723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7724
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7727
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7728
cat >>confdefs.h <<_ACEOF
7729
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738
if test "X$prefix" = "XNONE"; then
7739
acl_final_prefix="$ac_default_prefix"
7741
acl_final_prefix="$prefix"
7743
if test "X$exec_prefix" = "XNONE"; then
7744
acl_final_exec_prefix='${prefix}'
7746
acl_final_exec_prefix="$exec_prefix"
7748
acl_save_prefix="$prefix"
7749
prefix="$acl_final_prefix"
7750
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7751
prefix="$acl_save_prefix"
2065
7754
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2066
7755
if test "${with_gnu_ld+set}" = set; then
2104
7806
elif test "$with_gnu_ld" = yes; then
2105
echo "$as_me:2105: checking for GNU ld" >&5
2106
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2108
echo "$as_me:2108: checking for non-GNU ld" >&5
7807
echo "$as_me:$LINENO: checking for GNU ld" >&5
7808
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7810
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7811
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7813
if test "${acl_cv_path_LD+set}" = set; then
7814
echo $ECHO_N "(cached) $ECHO_C" >&6
7816
if test -z "$LD"; then
7817
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7818
for ac_dir in $PATH; do
7819
test -z "$ac_dir" && ac_dir=.
7820
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7821
acl_cv_path_LD="$ac_dir/$ac_prog"
7822
# Check to see if the program is GNU ld. I'd rather use --version,
7823
# but apparently some GNU ld's only accept -v.
7824
# Break only if it was the GNU/non-GNU ld that we prefer.
7825
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7826
*GNU* | *'with BFD'*)
7827
test "$with_gnu_ld" != no && break ;;
7829
test "$with_gnu_ld" != yes && break ;;
7835
acl_cv_path_LD="$LD" # Let the user override the test with a path.
7839
LD="$acl_cv_path_LD"
7840
if test -n "$LD"; then
7841
echo "$as_me:$LINENO: result: $LD" >&5
7842
echo "${ECHO_T}$LD" >&6
7844
echo "$as_me:$LINENO: result: no" >&5
7845
echo "${ECHO_T}no" >&6
7847
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7848
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7849
{ (exit 1); exit 1; }; }
7850
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7851
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7852
if test "${acl_cv_prog_gnu_ld+set}" = set; then
7853
echo $ECHO_N "(cached) $ECHO_C" >&6
7855
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7856
case `$LD -v 2>&1 </dev/null` in
7857
*GNU* | *'with BFD'*)
7858
acl_cv_prog_gnu_ld=yes ;;
7860
acl_cv_prog_gnu_ld=no ;;
7863
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7864
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7865
with_gnu_ld=$acl_cv_prog_gnu_ld
7869
echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7870
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7871
if test "${acl_cv_rpath+set}" = set; then
7872
echo $ECHO_N "(cached) $ECHO_C" >&6
7875
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7876
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7882
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7883
echo "${ECHO_T}$acl_cv_rpath" >&6
7885
libext="$acl_cv_libext"
7886
shlibext="$acl_cv_shlibext"
7887
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7888
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7889
hardcode_direct="$acl_cv_hardcode_direct"
7890
hardcode_minus_L="$acl_cv_hardcode_minus_L"
7891
# Check whether --enable-rpath or --disable-rpath was given.
7892
if test "${enable_rpath+set}" = set; then
7893
enableval="$enable_rpath"
7907
acl_save_prefix="$prefix"
7908
prefix="$acl_final_prefix"
7909
acl_save_exec_prefix="$exec_prefix"
7910
exec_prefix="$acl_final_exec_prefix"
7912
eval additional_includedir=\"$includedir\"
7913
eval additional_libdir=\"$libdir\"
7915
exec_prefix="$acl_save_exec_prefix"
7916
prefix="$acl_save_prefix"
7919
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7920
if test "${with_libiconv_prefix+set}" = set; then
7921
withval="$with_libiconv_prefix"
7923
if test "X$withval" = "Xno"; then
7926
if test "X$withval" = "X"; then
7928
acl_save_prefix="$prefix"
7929
prefix="$acl_final_prefix"
7930
acl_save_exec_prefix="$exec_prefix"
7931
exec_prefix="$acl_final_exec_prefix"
7933
eval additional_includedir=\"$includedir\"
7934
eval additional_libdir=\"$libdir\"
7936
exec_prefix="$acl_save_exec_prefix"
7937
prefix="$acl_save_prefix"
7940
additional_includedir="$withval/include"
7941
additional_libdir="$withval/lib"
7951
names_already_handled=
7952
names_next_round='iconv '
7953
while test -n "$names_next_round"; do
7954
names_this_round="$names_next_round"
7956
for name in $names_this_round; do
7958
for n in $names_already_handled; do
7959
if test "$n" = "$name"; then
7964
if test -z "$already_handled"; then
7965
names_already_handled="$names_already_handled $name"
7966
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7967
eval value=\"\$HAVE_LIB$uppername\"
7968
if test -n "$value"; then
7969
if test "$value" = yes; then
7970
eval value=\"\$LIB$uppername\"
7971
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7972
eval value=\"\$LTLIB$uppername\"
7973
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7982
if test $use_additional = yes; then
7983
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7984
found_dir="$additional_libdir"
7985
found_so="$additional_libdir/lib$name.$shlibext"
7986
if test -f "$additional_libdir/lib$name.la"; then
7987
found_la="$additional_libdir/lib$name.la"
7990
if test -f "$additional_libdir/lib$name.$libext"; then
7991
found_dir="$additional_libdir"
7992
found_a="$additional_libdir/lib$name.$libext"
7993
if test -f "$additional_libdir/lib$name.la"; then
7994
found_la="$additional_libdir/lib$name.la"
7999
if test "X$found_dir" = "X"; then
8000
for x in $LDFLAGS $LTLIBICONV; do
8002
acl_save_prefix="$prefix"
8003
prefix="$acl_final_prefix"
8004
acl_save_exec_prefix="$exec_prefix"
8005
exec_prefix="$acl_final_exec_prefix"
8007
exec_prefix="$acl_save_exec_prefix"
8008
prefix="$acl_save_prefix"
8012
dir=`echo "X$x" | sed -e 's/^X-L//'`
8013
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8015
found_so="$dir/lib$name.$shlibext"
8016
if test -f "$dir/lib$name.la"; then
8017
found_la="$dir/lib$name.la"
8020
if test -f "$dir/lib$name.$libext"; then
8022
found_a="$dir/lib$name.$libext"
8023
if test -f "$dir/lib$name.la"; then
8024
found_la="$dir/lib$name.la"
8030
if test "X$found_dir" != "X"; then
8035
if test "X$found_dir" != "X"; then
8036
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8037
if test "X$found_so" != "X"; then
8038
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8039
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8042
for x in $ltrpathdirs; do
8043
if test "X$x" = "X$found_dir"; then
8048
if test -z "$haveit"; then
8049
ltrpathdirs="$ltrpathdirs $found_dir"
8051
if test "$hardcode_direct" = yes; then
8052
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8054
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8055
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8057
for x in $rpathdirs; do
8058
if test "X$x" = "X$found_dir"; then
8063
if test -z "$haveit"; then
8064
rpathdirs="$rpathdirs $found_dir"
8068
for x in $LDFLAGS $LIBICONV; do
8070
acl_save_prefix="$prefix"
8071
prefix="$acl_final_prefix"
8072
acl_save_exec_prefix="$exec_prefix"
8073
exec_prefix="$acl_final_exec_prefix"
8075
exec_prefix="$acl_save_exec_prefix"
8076
prefix="$acl_save_prefix"
8078
if test "X$x" = "X-L$found_dir"; then
8083
if test -z "$haveit"; then
8084
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8086
if test "$hardcode_minus_L" != no; then
8087
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8089
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8095
if test "X$found_a" != "X"; then
8096
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8098
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8101
additional_includedir=
8102
case "$found_dir" in
8104
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8105
additional_includedir="$basedir/include"
8108
if test "X$additional_includedir" != "X"; then
8109
if test "X$additional_includedir" != "X/usr/include"; then
8111
if test "X$additional_includedir" = "X/usr/local/include"; then
8112
if test -n "$GCC"; then
8114
linux*) haveit=yes;;
8118
if test -z "$haveit"; then
8119
for x in $CPPFLAGS $INCICONV; do
8121
acl_save_prefix="$prefix"
8122
prefix="$acl_final_prefix"
8123
acl_save_exec_prefix="$exec_prefix"
8124
exec_prefix="$acl_final_exec_prefix"
8126
exec_prefix="$acl_save_exec_prefix"
8127
prefix="$acl_save_prefix"
8129
if test "X$x" = "X-I$additional_includedir"; then
8134
if test -z "$haveit"; then
8135
if test -d "$additional_includedir"; then
8136
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8142
if test -n "$found_la"; then
8143
save_libdir="$libdir"
8145
*/* | *\\*) . "$found_la" ;;
8146
*) . "./$found_la" ;;
8148
libdir="$save_libdir"
8149
for dep in $dependency_libs; do
8152
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8153
if test "X$additional_libdir" != "X/usr/lib"; then
8155
if test "X$additional_libdir" = "X/usr/local/lib"; then
8156
if test -n "$GCC"; then
8158
linux*) haveit=yes;;
8162
if test -z "$haveit"; then
8164
for x in $LDFLAGS $LIBICONV; do
8166
acl_save_prefix="$prefix"
8167
prefix="$acl_final_prefix"
8168
acl_save_exec_prefix="$exec_prefix"
8169
exec_prefix="$acl_final_exec_prefix"
8171
exec_prefix="$acl_save_exec_prefix"
8172
prefix="$acl_save_prefix"
8174
if test "X$x" = "X-L$additional_libdir"; then
8179
if test -z "$haveit"; then
8180
if test -d "$additional_libdir"; then
8181
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8185
for x in $LDFLAGS $LTLIBICONV; do
8187
acl_save_prefix="$prefix"
8188
prefix="$acl_final_prefix"
8189
acl_save_exec_prefix="$exec_prefix"
8190
exec_prefix="$acl_final_exec_prefix"
8192
exec_prefix="$acl_save_exec_prefix"
8193
prefix="$acl_save_prefix"
8195
if test "X$x" = "X-L$additional_libdir"; then
8200
if test -z "$haveit"; then
8201
if test -d "$additional_libdir"; then
8202
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8209
dir=`echo "X$dep" | sed -e 's/^X-R//'`
8210
if test "$enable_rpath" != no; then
8212
for x in $rpathdirs; do
8213
if test "X$x" = "X$dir"; then
8218
if test -z "$haveit"; then
8219
rpathdirs="$rpathdirs $dir"
8222
for x in $ltrpathdirs; do
8223
if test "X$x" = "X$dir"; then
8228
if test -z "$haveit"; then
8229
ltrpathdirs="$ltrpathdirs $dir"
8234
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8237
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8240
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8241
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8247
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8248
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8254
if test "X$rpathdirs" != "X"; then
8255
if test -n "$hardcode_libdir_separator"; then
8257
for found_dir in $rpathdirs; do
8258
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8260
acl_save_libdir="$libdir"
8262
eval flag=\"$hardcode_libdir_flag_spec\"
8263
libdir="$acl_save_libdir"
8264
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8266
for found_dir in $rpathdirs; do
8267
acl_save_libdir="$libdir"
8269
eval flag=\"$hardcode_libdir_flag_spec\"
8270
libdir="$acl_save_libdir"
8271
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8275
if test "X$ltrpathdirs" != "X"; then
8276
for found_dir in $ltrpathdirs; do
8277
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8288
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8289
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8290
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8291
echo $ECHO_N "(cached) $ECHO_C" >&6
8293
cat >conftest.$ac_ext <<_ACEOF
8296
cat confdefs.h >>conftest.$ac_ext
8297
cat >>conftest.$ac_ext <<_ACEOF
8298
/* end confdefs.h. */
8299
$ac_includes_default
8303
if ((ptrdiff_t *) 0)
8305
if (sizeof (ptrdiff_t))
8311
rm -f conftest.$ac_objext
8312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313
(eval $ac_compile) 2>conftest.er1
8315
grep -v '^ *+' conftest.er1 >conftest.err
8317
cat conftest.err >&5
8318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319
(exit $ac_status); } &&
8320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
(exit $ac_status); }; } &&
8326
{ ac_try='test -s conftest.$ac_objext'
8327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331
(exit $ac_status); }; }; then
8332
ac_cv_type_ptrdiff_t=yes
8334
echo "$as_me: failed program was:" >&5
8335
sed 's/^/| /' conftest.$ac_ext >&5
8337
ac_cv_type_ptrdiff_t=no
8339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8341
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8342
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8343
if test $ac_cv_type_ptrdiff_t = yes; then
8347
cat >>confdefs.h <<\_ACEOF
8348
#define ptrdiff_t long
8364
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8365
stdlib.h string.h unistd.h sys/param.h
8367
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8369
echo "$as_me:$LINENO: checking for $ac_header" >&5
8370
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8371
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8372
echo $ECHO_N "(cached) $ECHO_C" >&6
8374
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8375
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8377
# Is the header compilable?
8378
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8379
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8380
cat >conftest.$ac_ext <<_ACEOF
8383
cat confdefs.h >>conftest.$ac_ext
8384
cat >>conftest.$ac_ext <<_ACEOF
8385
/* end confdefs.h. */
8386
$ac_includes_default
8387
#include <$ac_header>
8389
rm -f conftest.$ac_objext
8390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403
(exit $ac_status); }; } &&
8404
{ ac_try='test -s conftest.$ac_objext'
8405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409
(exit $ac_status); }; }; then
8410
ac_header_compiler=yes
8412
echo "$as_me: failed program was:" >&5
8413
sed 's/^/| /' conftest.$ac_ext >&5
8415
ac_header_compiler=no
8417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8418
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8419
echo "${ECHO_T}$ac_header_compiler" >&6
8421
# Is the header present?
8422
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8423
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8424
cat >conftest.$ac_ext <<_ACEOF
8427
cat confdefs.h >>conftest.$ac_ext
8428
cat >>conftest.$ac_ext <<_ACEOF
8429
/* end confdefs.h. */
8430
#include <$ac_header>
8432
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8433
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8435
grep -v '^ *+' conftest.er1 >conftest.err
8437
cat conftest.err >&5
8438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439
(exit $ac_status); } >/dev/null; then
8440
if test -s conftest.err; then
8441
ac_cpp_err=$ac_c_preproc_warn_flag
8442
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8449
if test -z "$ac_cpp_err"; then
8450
ac_header_preproc=yes
8452
echo "$as_me: failed program was:" >&5
8453
sed 's/^/| /' conftest.$ac_ext >&5
8455
ac_header_preproc=no
8457
rm -f conftest.err conftest.$ac_ext
8458
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8459
echo "${ECHO_T}$ac_header_preproc" >&6
8461
# So? What about this header?
8462
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8464
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8465
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8466
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8467
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8468
ac_header_preproc=yes
8471
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8472
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8473
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8474
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8475
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8476
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8477
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8478
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8479
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8480
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8481
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8482
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8485
## ------------------------------------------ ##
8486
## Report this to the AC_PACKAGE_NAME lists. ##
8487
## ------------------------------------------ ##
8490
sed "s/^/$as_me: WARNING: /" >&2
8493
echo "$as_me:$LINENO: checking for $ac_header" >&5
8494
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8495
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496
echo $ECHO_N "(cached) $ECHO_C" >&6
8498
eval "$as_ac_Header=\$ac_header_preproc"
8500
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505
cat >>confdefs.h <<_ACEOF
8506
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8536
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8537
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8538
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8541
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542
echo "$as_me:$LINENO: checking for $ac_func" >&5
8543
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8544
if eval "test \"\${$as_ac_var+set}\" = set"; then
8545
echo $ECHO_N "(cached) $ECHO_C" >&6
8547
cat >conftest.$ac_ext <<_ACEOF
8550
cat confdefs.h >>conftest.$ac_ext
8551
cat >>conftest.$ac_ext <<_ACEOF
8552
/* end confdefs.h. */
8553
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8554
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8555
#define $ac_func innocuous_$ac_func
8557
/* System header to define __stub macros and hopefully few prototypes,
8558
which can conflict with char $ac_func (); below.
8559
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8560
<limits.h> exists even on freestanding compilers. */
8563
# include <limits.h>
8565
# include <assert.h>
8570
/* Override any gcc2 internal prototype to avoid an error. */
8575
/* We use char because int might match the return type of a gcc2
8576
builtin and then its argument prototype would still apply. */
8578
/* The GNU C library defines this for functions which it implements
8579
to always fail with ENOSYS. Some functions are actually named
8580
something starting with __ and the normal name is an alias. */
8581
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8584
char (*f) () = $ac_func;
8593
return f != $ac_func;
8598
rm -f conftest.$ac_objext conftest$ac_exeext
8599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600
(eval $ac_link) 2>conftest.er1
8602
grep -v '^ *+' conftest.er1 >conftest.err
8604
cat conftest.err >&5
8605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606
(exit $ac_status); } &&
8607
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612
(exit $ac_status); }; } &&
8613
{ ac_try='test -s conftest$ac_exeext'
8614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618
(exit $ac_status); }; }; then
8619
eval "$as_ac_var=yes"
8621
echo "$as_me: failed program was:" >&5
8622
sed 's/^/| /' conftest.$ac_ext >&5
8624
eval "$as_ac_var=no"
8626
rm -f conftest.err conftest.$ac_objext \
8627
conftest$ac_exeext conftest.$ac_ext
8629
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8630
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8631
if test `eval echo '${'$as_ac_var'}'` = yes; then
8632
cat >>confdefs.h <<_ACEOF
8633
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8641
echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8642
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8643
if test "${ac_cv_have_decl__snprintf+set}" = set; then
8644
echo $ECHO_N "(cached) $ECHO_C" >&6
8646
cat >conftest.$ac_ext <<_ACEOF
8649
cat confdefs.h >>conftest.$ac_ext
8650
cat >>conftest.$ac_ext <<_ACEOF
8651
/* end confdefs.h. */
8658
char *p = (char *) _snprintf;
8665
rm -f conftest.$ac_objext
8666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667
(eval $ac_compile) 2>conftest.er1
8669
grep -v '^ *+' conftest.er1 >conftest.err
8671
cat conftest.err >&5
8672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
(exit $ac_status); } &&
8674
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
(exit $ac_status); }; } &&
8680
{ ac_try='test -s conftest.$ac_objext'
8681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685
(exit $ac_status); }; }; then
8686
ac_cv_have_decl__snprintf=yes
8688
echo "$as_me: failed program was:" >&5
8689
sed 's/^/| /' conftest.$ac_ext >&5
8691
ac_cv_have_decl__snprintf=no
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8695
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8696
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8697
if test $ac_cv_have_decl__snprintf = yes; then
8703
cat >>confdefs.h <<_ACEOF
8704
#define HAVE_DECL__SNPRINTF $gt_value
8709
echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8710
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8711
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8712
echo $ECHO_N "(cached) $ECHO_C" >&6
8714
cat >conftest.$ac_ext <<_ACEOF
8717
cat confdefs.h >>conftest.$ac_ext
8718
cat >>conftest.$ac_ext <<_ACEOF
8719
/* end confdefs.h. */
8726
char *p = (char *) _snwprintf;
8733
rm -f conftest.$ac_objext
8734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735
(eval $ac_compile) 2>conftest.er1
8737
grep -v '^ *+' conftest.er1 >conftest.err
8739
cat conftest.err >&5
8740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
(exit $ac_status); } &&
8742
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747
(exit $ac_status); }; } &&
8748
{ ac_try='test -s conftest.$ac_objext'
8749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753
(exit $ac_status); }; }; then
8754
ac_cv_have_decl__snwprintf=yes
8756
echo "$as_me: failed program was:" >&5
8757
sed 's/^/| /' conftest.$ac_ext >&5
8759
ac_cv_have_decl__snwprintf=no
8761
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8764
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8765
if test $ac_cv_have_decl__snwprintf = yes; then
8771
cat >>confdefs.h <<_ACEOF
8772
#define HAVE_DECL__SNWPRINTF $gt_value
8778
echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8779
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8780
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8781
echo $ECHO_N "(cached) $ECHO_C" >&6
8783
cat >conftest.$ac_ext <<_ACEOF
8786
cat confdefs.h >>conftest.$ac_ext
8787
cat >>conftest.$ac_ext <<_ACEOF
8788
/* end confdefs.h. */
8794
#ifndef feof_unlocked
8795
char *p = (char *) feof_unlocked;
8802
rm -f conftest.$ac_objext
8803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8804
(eval $ac_compile) 2>conftest.er1
8806
grep -v '^ *+' conftest.er1 >conftest.err
8808
cat conftest.err >&5
8809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
(exit $ac_status); } &&
8811
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
(exit $ac_status); }; } &&
8817
{ ac_try='test -s conftest.$ac_objext'
8818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822
(exit $ac_status); }; }; then
8823
ac_cv_have_decl_feof_unlocked=yes
8825
echo "$as_me: failed program was:" >&5
8826
sed 's/^/| /' conftest.$ac_ext >&5
8828
ac_cv_have_decl_feof_unlocked=no
8830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8832
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8833
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8834
if test $ac_cv_have_decl_feof_unlocked = yes; then
8840
cat >>confdefs.h <<_ACEOF
8841
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8846
echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8847
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8848
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8849
echo $ECHO_N "(cached) $ECHO_C" >&6
8851
cat >conftest.$ac_ext <<_ACEOF
8854
cat confdefs.h >>conftest.$ac_ext
8855
cat >>conftest.$ac_ext <<_ACEOF
8856
/* end confdefs.h. */
8862
#ifndef fgets_unlocked
8863
char *p = (char *) fgets_unlocked;
8870
rm -f conftest.$ac_objext
8871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872
(eval $ac_compile) 2>conftest.er1
8874
grep -v '^ *+' conftest.er1 >conftest.err
8876
cat conftest.err >&5
8877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878
(exit $ac_status); } &&
8879
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884
(exit $ac_status); }; } &&
8885
{ ac_try='test -s conftest.$ac_objext'
8886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890
(exit $ac_status); }; }; then
8891
ac_cv_have_decl_fgets_unlocked=yes
8893
echo "$as_me: failed program was:" >&5
8894
sed 's/^/| /' conftest.$ac_ext >&5
8896
ac_cv_have_decl_fgets_unlocked=no
8898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8900
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8901
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8902
if test $ac_cv_have_decl_fgets_unlocked = yes; then
8908
cat >>confdefs.h <<_ACEOF
8909
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8914
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8915
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8916
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8917
echo $ECHO_N "(cached) $ECHO_C" >&6
8919
cat >conftest.$ac_ext <<_ACEOF
8922
cat confdefs.h >>conftest.$ac_ext
8923
cat >>conftest.$ac_ext <<_ACEOF
8924
/* end confdefs.h. */
8930
#ifndef getc_unlocked
8931
char *p = (char *) getc_unlocked;
8938
rm -f conftest.$ac_objext
8939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940
(eval $ac_compile) 2>conftest.er1
8942
grep -v '^ *+' conftest.er1 >conftest.err
8944
cat conftest.err >&5
8945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946
(exit $ac_status); } &&
8947
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
(exit $ac_status); }; } &&
8953
{ ac_try='test -s conftest.$ac_objext'
8954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958
(exit $ac_status); }; }; then
8959
ac_cv_have_decl_getc_unlocked=yes
8961
echo "$as_me: failed program was:" >&5
8962
sed 's/^/| /' conftest.$ac_ext >&5
8964
ac_cv_have_decl_getc_unlocked=no
8966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8969
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8970
if test $ac_cv_have_decl_getc_unlocked = yes; then
8976
cat >>confdefs.h <<_ACEOF
8977
#define HAVE_DECL_GETC_UNLOCKED $gt_value
8982
case $gt_cv_func_printf_posix in
8983
*yes) HAVE_POSIX_PRINTF=1 ;;
8984
*) HAVE_POSIX_PRINTF=0 ;;
8987
if test "$ac_cv_func_asprintf" = yes; then
8993
if test "$ac_cv_func_snprintf" = yes; then
8999
if test "$ac_cv_func_wprintf" = yes; then
9011
am_save_CPPFLAGS="$CPPFLAGS"
9013
for element in $INCICONV; do
9015
for x in $CPPFLAGS; do
9017
acl_save_prefix="$prefix"
9018
prefix="$acl_final_prefix"
9019
acl_save_exec_prefix="$exec_prefix"
9020
exec_prefix="$acl_final_exec_prefix"
9022
exec_prefix="$acl_save_exec_prefix"
9023
prefix="$acl_save_prefix"
9025
if test "X$x" = "X$element"; then
9030
if test -z "$haveit"; then
9031
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9036
echo "$as_me:$LINENO: checking for iconv" >&5
9037
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9038
if test "${am_cv_func_iconv+set}" = set; then
9039
echo $ECHO_N "(cached) $ECHO_C" >&6
9042
am_cv_func_iconv="no, consider installing GNU libiconv"
9044
cat >conftest.$ac_ext <<_ACEOF
9047
cat confdefs.h >>conftest.$ac_ext
9048
cat >>conftest.$ac_ext <<_ACEOF
9049
/* end confdefs.h. */
9055
iconv_t cd = iconv_open("","");
9056
iconv(cd,NULL,NULL,NULL,NULL);
9062
rm -f conftest.$ac_objext conftest$ac_exeext
9063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064
(eval $ac_link) 2>conftest.er1
9066
grep -v '^ *+' conftest.er1 >conftest.err
9068
cat conftest.err >&5
9069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070
(exit $ac_status); } &&
9071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076
(exit $ac_status); }; } &&
9077
{ ac_try='test -s conftest$ac_exeext'
9078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
(exit $ac_status); }; }; then
9083
am_cv_func_iconv=yes
9085
echo "$as_me: failed program was:" >&5
9086
sed 's/^/| /' conftest.$ac_ext >&5
9089
rm -f conftest.err conftest.$ac_objext \
9090
conftest$ac_exeext conftest.$ac_ext
9091
if test "$am_cv_func_iconv" != yes; then
9092
am_save_LIBS="$LIBS"
9093
LIBS="$LIBS $LIBICONV"
9094
cat >conftest.$ac_ext <<_ACEOF
9097
cat confdefs.h >>conftest.$ac_ext
9098
cat >>conftest.$ac_ext <<_ACEOF
9099
/* end confdefs.h. */
9105
iconv_t cd = iconv_open("","");
9106
iconv(cd,NULL,NULL,NULL,NULL);
9112
rm -f conftest.$ac_objext conftest$ac_exeext
9113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114
(eval $ac_link) 2>conftest.er1
9116
grep -v '^ *+' conftest.er1 >conftest.err
9118
cat conftest.err >&5
9119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120
(exit $ac_status); } &&
9121
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126
(exit $ac_status); }; } &&
9127
{ ac_try='test -s conftest$ac_exeext'
9128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132
(exit $ac_status); }; }; then
9134
am_cv_func_iconv=yes
9136
echo "$as_me: failed program was:" >&5
9137
sed 's/^/| /' conftest.$ac_ext >&5
9140
rm -f conftest.err conftest.$ac_objext \
9141
conftest$ac_exeext conftest.$ac_ext
9142
LIBS="$am_save_LIBS"
9146
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9147
echo "${ECHO_T}$am_cv_func_iconv" >&6
9148
if test "$am_cv_func_iconv" = yes; then
9150
cat >>confdefs.h <<\_ACEOF
9151
#define HAVE_ICONV 1
9155
if test "$am_cv_lib_iconv" = yes; then
9156
echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9157
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9158
echo "$as_me:$LINENO: result: $LIBICONV" >&5
9159
echo "${ECHO_T}$LIBICONV" >&6
9161
CPPFLAGS="$am_save_CPPFLAGS"
9168
if test "$am_cv_func_iconv" = yes; then
9169
echo "$as_me:$LINENO: checking for iconv declaration" >&5
9170
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9171
if test "${am_cv_proto_iconv+set}" = set; then
9172
echo $ECHO_N "(cached) $ECHO_C" >&6
9175
cat >conftest.$ac_ext <<_ACEOF
9178
cat confdefs.h >>conftest.$ac_ext
9179
cat >>conftest.$ac_ext <<_ACEOF
9180
/* end confdefs.h. */
9188
#if defined(__STDC__) || defined(__cplusplus)
9189
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9202
rm -f conftest.$ac_objext
9203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204
(eval $ac_compile) 2>conftest.er1
9206
grep -v '^ *+' conftest.er1 >conftest.err
9208
cat conftest.err >&5
9209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
(exit $ac_status); } &&
9211
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216
(exit $ac_status); }; } &&
9217
{ ac_try='test -s conftest.$ac_objext'
9218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222
(exit $ac_status); }; }; then
9223
am_cv_proto_iconv_arg1=""
9225
echo "$as_me: failed program was:" >&5
9226
sed 's/^/| /' conftest.$ac_ext >&5
9228
am_cv_proto_iconv_arg1="const"
9230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231
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);"
9234
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9235
echo "$as_me:$LINENO: result: ${ac_t:-
9236
}$am_cv_proto_iconv" >&5
9237
echo "${ECHO_T}${ac_t:-
9238
}$am_cv_proto_iconv" >&6
9240
cat >>confdefs.h <<_ACEOF
9241
#define ICONV_CONST $am_cv_proto_iconv_arg1
9247
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9248
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9249
if test "${am_cv_langinfo_codeset+set}" = set; then
9250
echo $ECHO_N "(cached) $ECHO_C" >&6
9252
cat >conftest.$ac_ext <<_ACEOF
9255
cat confdefs.h >>conftest.$ac_ext
9256
cat >>conftest.$ac_ext <<_ACEOF
9257
/* end confdefs.h. */
9258
#include <langinfo.h>
9262
char* cs = nl_langinfo(CODESET);
9267
rm -f conftest.$ac_objext conftest$ac_exeext
9268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269
(eval $ac_link) 2>conftest.er1
9271
grep -v '^ *+' conftest.er1 >conftest.err
9273
cat conftest.err >&5
9274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275
(exit $ac_status); } &&
9276
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281
(exit $ac_status); }; } &&
9282
{ ac_try='test -s conftest$ac_exeext'
9283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287
(exit $ac_status); }; }; then
9288
am_cv_langinfo_codeset=yes
9290
echo "$as_me: failed program was:" >&5
9291
sed 's/^/| /' conftest.$ac_ext >&5
9293
am_cv_langinfo_codeset=no
9295
rm -f conftest.err conftest.$ac_objext \
9296
conftest$ac_exeext conftest.$ac_ext
9299
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9300
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9301
if test $am_cv_langinfo_codeset = yes; then
9303
cat >>confdefs.h <<\_ACEOF
9304
#define HAVE_LANGINFO_CODESET 1
9309
if test $ac_cv_header_locale_h = yes; then
9311
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9312
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9313
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9314
echo $ECHO_N "(cached) $ECHO_C" >&6
9316
cat >conftest.$ac_ext <<_ACEOF
9319
cat confdefs.h >>conftest.$ac_ext
9320
cat >>conftest.$ac_ext <<_ACEOF
9321
/* end confdefs.h. */
9331
rm -f conftest.$ac_objext conftest$ac_exeext
9332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333
(eval $ac_link) 2>conftest.er1
9335
grep -v '^ *+' conftest.er1 >conftest.err
9337
cat conftest.err >&5
9338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339
(exit $ac_status); } &&
9340
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345
(exit $ac_status); }; } &&
9346
{ ac_try='test -s conftest$ac_exeext'
9347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351
(exit $ac_status); }; }; then
9352
am_cv_val_LC_MESSAGES=yes
9354
echo "$as_me: failed program was:" >&5
9355
sed 's/^/| /' conftest.$ac_ext >&5
9357
am_cv_val_LC_MESSAGES=no
9359
rm -f conftest.err conftest.$ac_objext \
9360
conftest$ac_exeext conftest.$ac_ext
9362
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9363
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9364
if test $am_cv_val_LC_MESSAGES = yes; then
9366
cat >>confdefs.h <<\_ACEOF
9367
#define HAVE_LC_MESSAGES 1
9374
for ac_prog in bison
9376
# Extract the first word of "$ac_prog", so it can be a program name with args.
9377
set dummy $ac_prog; ac_word=$2
9378
echo "$as_me:$LINENO: checking for $ac_word" >&5
9379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9380
if test "${ac_cv_prog_INTLBISON+set}" = set; then
9381
echo $ECHO_N "(cached) $ECHO_C" >&6
9383
if test -n "$INTLBISON"; then
9384
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390
test -z "$as_dir" && as_dir=.
9391
for ac_exec_ext in '' $ac_executable_extensions; do
9392
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393
ac_cv_prog_INTLBISON="$ac_prog"
9394
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402
INTLBISON=$ac_cv_prog_INTLBISON
9403
if test -n "$INTLBISON"; then
9404
echo "$as_me:$LINENO: result: $INTLBISON" >&5
9405
echo "${ECHO_T}$INTLBISON" >&6
9407
echo "$as_me:$LINENO: result: no" >&5
9408
echo "${ECHO_T}no" >&6
9411
test -n "$INTLBISON" && break
9414
if test -z "$INTLBISON"; then
9417
echo "$as_me:$LINENO: checking version of bison" >&5
9418
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9419
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9420
case $ac_prog_version in
9421
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9422
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9423
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9424
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9426
echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9427
echo "${ECHO_T}$ac_prog_version" >&6
9429
if test $ac_verc_fail = yes; then
9448
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9449
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9450
# Check whether --enable-nls or --disable-nls was given.
9451
if test "${enable_nls+set}" = set; then
9452
enableval="$enable_nls"
9457
echo "$as_me:$LINENO: result: $USE_NLS" >&5
9458
echo "${ECHO_T}$USE_NLS" >&6
9463
BUILD_INCLUDED_LIBINTL=no
9464
USE_INCLUDED_LIBINTL=no
9470
if test "$USE_NLS" = "yes"; then
9471
gt_use_preinstalled_gnugettext=no
9473
echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9474
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9476
# Check whether --with-included-gettext or --without-included-gettext was given.
9477
if test "${with_included_gettext+set}" = set; then
9478
withval="$with_included_gettext"
9479
nls_cv_force_use_gnu_gettext=$withval
9481
nls_cv_force_use_gnu_gettext=no
9483
echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9484
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9486
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9487
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9494
echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9495
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9496
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9497
echo $ECHO_N "(cached) $ECHO_C" >&6
9499
cat >conftest.$ac_ext <<_ACEOF
9502
cat confdefs.h >>conftest.$ac_ext
9503
cat >>conftest.$ac_ext <<_ACEOF
9504
/* end confdefs.h. */
9505
#include <libintl.h>
9506
extern int _nl_msg_cat_cntr;
9507
extern int *_nl_domain_bindings;
9511
bindtextdomain ("", "");
9512
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9517
rm -f conftest.$ac_objext conftest$ac_exeext
9518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519
(eval $ac_link) 2>conftest.er1
9521
grep -v '^ *+' conftest.er1 >conftest.err
9523
cat conftest.err >&5
9524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525
(exit $ac_status); } &&
9526
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531
(exit $ac_status); }; } &&
9532
{ ac_try='test -s conftest$ac_exeext'
9533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537
(exit $ac_status); }; }; then
9538
gt_cv_func_gnugettext1_libc=yes
9540
echo "$as_me: failed program was:" >&5
9541
sed 's/^/| /' conftest.$ac_ext >&5
9543
gt_cv_func_gnugettext1_libc=no
9545
rm -f conftest.err conftest.$ac_objext \
9546
conftest$ac_exeext conftest.$ac_ext
9548
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9549
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9551
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9557
acl_save_prefix="$prefix"
9558
prefix="$acl_final_prefix"
9559
acl_save_exec_prefix="$exec_prefix"
9560
exec_prefix="$acl_final_exec_prefix"
9562
eval additional_includedir=\"$includedir\"
9563
eval additional_libdir=\"$libdir\"
9565
exec_prefix="$acl_save_exec_prefix"
9566
prefix="$acl_save_prefix"
9569
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9570
if test "${with_libintl_prefix+set}" = set; then
9571
withval="$with_libintl_prefix"
9573
if test "X$withval" = "Xno"; then
9576
if test "X$withval" = "X"; then
9578
acl_save_prefix="$prefix"
9579
prefix="$acl_final_prefix"
9580
acl_save_exec_prefix="$exec_prefix"
9581
exec_prefix="$acl_final_exec_prefix"
9583
eval additional_includedir=\"$includedir\"
9584
eval additional_libdir=\"$libdir\"
9586
exec_prefix="$acl_save_exec_prefix"
9587
prefix="$acl_save_prefix"
9590
additional_includedir="$withval/include"
9591
additional_libdir="$withval/lib"
9601
names_already_handled=
9602
names_next_round='intl '
9603
while test -n "$names_next_round"; do
9604
names_this_round="$names_next_round"
9606
for name in $names_this_round; do
9608
for n in $names_already_handled; do
9609
if test "$n" = "$name"; then
9614
if test -z "$already_handled"; then
9615
names_already_handled="$names_already_handled $name"
9616
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9617
eval value=\"\$HAVE_LIB$uppername\"
9618
if test -n "$value"; then
9619
if test "$value" = yes; then
9620
eval value=\"\$LIB$uppername\"
9621
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9622
eval value=\"\$LTLIB$uppername\"
9623
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9632
if test $use_additional = yes; then
9633
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9634
found_dir="$additional_libdir"
9635
found_so="$additional_libdir/lib$name.$shlibext"
9636
if test -f "$additional_libdir/lib$name.la"; then
9637
found_la="$additional_libdir/lib$name.la"
9640
if test -f "$additional_libdir/lib$name.$libext"; then
9641
found_dir="$additional_libdir"
9642
found_a="$additional_libdir/lib$name.$libext"
9643
if test -f "$additional_libdir/lib$name.la"; then
9644
found_la="$additional_libdir/lib$name.la"
9649
if test "X$found_dir" = "X"; then
9650
for x in $LDFLAGS $LTLIBINTL; do
9652
acl_save_prefix="$prefix"
9653
prefix="$acl_final_prefix"
9654
acl_save_exec_prefix="$exec_prefix"
9655
exec_prefix="$acl_final_exec_prefix"
9657
exec_prefix="$acl_save_exec_prefix"
9658
prefix="$acl_save_prefix"
9662
dir=`echo "X$x" | sed -e 's/^X-L//'`
9663
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9665
found_so="$dir/lib$name.$shlibext"
9666
if test -f "$dir/lib$name.la"; then
9667
found_la="$dir/lib$name.la"
9670
if test -f "$dir/lib$name.$libext"; then
9672
found_a="$dir/lib$name.$libext"
9673
if test -f "$dir/lib$name.la"; then
9674
found_la="$dir/lib$name.la"
9680
if test "X$found_dir" != "X"; then
9685
if test "X$found_dir" != "X"; then
9686
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9687
if test "X$found_so" != "X"; then
9688
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9689
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9692
for x in $ltrpathdirs; do
9693
if test "X$x" = "X$found_dir"; then
9698
if test -z "$haveit"; then
9699
ltrpathdirs="$ltrpathdirs $found_dir"
9701
if test "$hardcode_direct" = yes; then
9702
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9704
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9705
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9707
for x in $rpathdirs; do
9708
if test "X$x" = "X$found_dir"; then
9713
if test -z "$haveit"; then
9714
rpathdirs="$rpathdirs $found_dir"
9718
for x in $LDFLAGS $LIBINTL; do
9720
acl_save_prefix="$prefix"
9721
prefix="$acl_final_prefix"
9722
acl_save_exec_prefix="$exec_prefix"
9723
exec_prefix="$acl_final_exec_prefix"
9725
exec_prefix="$acl_save_exec_prefix"
9726
prefix="$acl_save_prefix"
9728
if test "X$x" = "X-L$found_dir"; then
9733
if test -z "$haveit"; then
9734
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9736
if test "$hardcode_minus_L" != no; then
9737
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9739
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9745
if test "X$found_a" != "X"; then
9746
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9748
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9751
additional_includedir=
9752
case "$found_dir" in
9754
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9755
additional_includedir="$basedir/include"
9758
if test "X$additional_includedir" != "X"; then
9759
if test "X$additional_includedir" != "X/usr/include"; then
9761
if test "X$additional_includedir" = "X/usr/local/include"; then
9762
if test -n "$GCC"; then
9764
linux*) haveit=yes;;
9768
if test -z "$haveit"; then
9769
for x in $CPPFLAGS $INCINTL; do
9771
acl_save_prefix="$prefix"
9772
prefix="$acl_final_prefix"
9773
acl_save_exec_prefix="$exec_prefix"
9774
exec_prefix="$acl_final_exec_prefix"
9776
exec_prefix="$acl_save_exec_prefix"
9777
prefix="$acl_save_prefix"
9779
if test "X$x" = "X-I$additional_includedir"; then
9784
if test -z "$haveit"; then
9785
if test -d "$additional_includedir"; then
9786
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9792
if test -n "$found_la"; then
9793
save_libdir="$libdir"
9795
*/* | *\\*) . "$found_la" ;;
9796
*) . "./$found_la" ;;
9798
libdir="$save_libdir"
9799
for dep in $dependency_libs; do
9802
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9803
if test "X$additional_libdir" != "X/usr/lib"; then
9805
if test "X$additional_libdir" = "X/usr/local/lib"; then
9806
if test -n "$GCC"; then
9808
linux*) haveit=yes;;
9812
if test -z "$haveit"; then
9814
for x in $LDFLAGS $LIBINTL; do
9816
acl_save_prefix="$prefix"
9817
prefix="$acl_final_prefix"
9818
acl_save_exec_prefix="$exec_prefix"
9819
exec_prefix="$acl_final_exec_prefix"
9821
exec_prefix="$acl_save_exec_prefix"
9822
prefix="$acl_save_prefix"
9824
if test "X$x" = "X-L$additional_libdir"; then
9829
if test -z "$haveit"; then
9830
if test -d "$additional_libdir"; then
9831
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9835
for x in $LDFLAGS $LTLIBINTL; do
9837
acl_save_prefix="$prefix"
9838
prefix="$acl_final_prefix"
9839
acl_save_exec_prefix="$exec_prefix"
9840
exec_prefix="$acl_final_exec_prefix"
9842
exec_prefix="$acl_save_exec_prefix"
9843
prefix="$acl_save_prefix"
9845
if test "X$x" = "X-L$additional_libdir"; then
9850
if test -z "$haveit"; then
9851
if test -d "$additional_libdir"; then
9852
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9859
dir=`echo "X$dep" | sed -e 's/^X-R//'`
9860
if test "$enable_rpath" != no; then
9862
for x in $rpathdirs; do
9863
if test "X$x" = "X$dir"; then
9868
if test -z "$haveit"; then
9869
rpathdirs="$rpathdirs $dir"
9872
for x in $ltrpathdirs; do
9873
if test "X$x" = "X$dir"; then
9878
if test -z "$haveit"; then
9879
ltrpathdirs="$ltrpathdirs $dir"
9884
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9887
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9890
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9891
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9897
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9898
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9904
if test "X$rpathdirs" != "X"; then
9905
if test -n "$hardcode_libdir_separator"; then
9907
for found_dir in $rpathdirs; do
9908
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9910
acl_save_libdir="$libdir"
9912
eval flag=\"$hardcode_libdir_flag_spec\"
9913
libdir="$acl_save_libdir"
9914
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9916
for found_dir in $rpathdirs; do
9917
acl_save_libdir="$libdir"
9919
eval flag=\"$hardcode_libdir_flag_spec\"
9920
libdir="$acl_save_libdir"
9921
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9925
if test "X$ltrpathdirs" != "X"; then
9926
for found_dir in $ltrpathdirs; do
9927
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9931
echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9932
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9933
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9934
echo $ECHO_N "(cached) $ECHO_C" >&6
9936
gt_save_CPPFLAGS="$CPPFLAGS"
9937
CPPFLAGS="$CPPFLAGS $INCINTL"
9938
gt_save_LIBS="$LIBS"
9939
LIBS="$LIBS $LIBINTL"
9940
cat >conftest.$ac_ext <<_ACEOF
9943
cat confdefs.h >>conftest.$ac_ext
9944
cat >>conftest.$ac_ext <<_ACEOF
9945
/* end confdefs.h. */
9946
#include <libintl.h>
9947
extern int _nl_msg_cat_cntr;
9952
const char *_nl_expand_alias ();
9956
bindtextdomain ("", "");
9957
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9962
rm -f conftest.$ac_objext conftest$ac_exeext
9963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964
(eval $ac_link) 2>conftest.er1
9966
grep -v '^ *+' conftest.er1 >conftest.err
9968
cat conftest.err >&5
9969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970
(exit $ac_status); } &&
9971
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976
(exit $ac_status); }; } &&
9977
{ ac_try='test -s conftest$ac_exeext'
9978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); }; }; then
9983
gt_cv_func_gnugettext1_libintl=yes
9985
echo "$as_me: failed program was:" >&5
9986
sed 's/^/| /' conftest.$ac_ext >&5
9988
gt_cv_func_gnugettext1_libintl=no
9990
rm -f conftest.err conftest.$ac_objext \
9991
conftest$ac_exeext conftest.$ac_ext
9992
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9993
LIBS="$LIBS $LIBICONV"
9994
cat >conftest.$ac_ext <<_ACEOF
9997
cat confdefs.h >>conftest.$ac_ext
9998
cat >>conftest.$ac_ext <<_ACEOF
9999
/* end confdefs.h. */
10000
#include <libintl.h>
10001
extern int _nl_msg_cat_cntr;
10006
const char *_nl_expand_alias ();
10010
bindtextdomain ("", "");
10011
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10016
rm -f conftest.$ac_objext conftest$ac_exeext
10017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018
(eval $ac_link) 2>conftest.er1
10020
grep -v '^ *+' conftest.er1 >conftest.err
10022
cat conftest.err >&5
10023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024
(exit $ac_status); } &&
10025
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027
(eval $ac_try) 2>&5
10029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030
(exit $ac_status); }; } &&
10031
{ ac_try='test -s conftest$ac_exeext'
10032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033
(eval $ac_try) 2>&5
10035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036
(exit $ac_status); }; }; then
10037
LIBINTL="$LIBINTL $LIBICONV"
10038
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10039
gt_cv_func_gnugettext1_libintl=yes
10042
echo "$as_me: failed program was:" >&5
10043
sed 's/^/| /' conftest.$ac_ext >&5
10046
rm -f conftest.err conftest.$ac_objext \
10047
conftest$ac_exeext conftest.$ac_ext
10049
CPPFLAGS="$gt_save_CPPFLAGS"
10050
LIBS="$gt_save_LIBS"
10052
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10053
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10056
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10057
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10058
&& test "$PACKAGE" != gettext-runtime \
10059
&& test "$PACKAGE" != gettext-tools; }; then
10060
gt_use_preinstalled_gnugettext=yes
10068
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10069
nls_cv_use_gnu_gettext=yes
10073
if test "$nls_cv_use_gnu_gettext" = "yes"; then
10074
BUILD_INCLUDED_LIBINTL=yes
10075
USE_INCLUDED_LIBINTL=yes
10076
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10077
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10078
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10081
if test "$gt_use_preinstalled_gnugettext" = "yes" \
10082
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
10087
if test "$gt_use_preinstalled_gnugettext" = "yes" \
10088
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
10090
cat >>confdefs.h <<\_ACEOF
10091
#define ENABLE_NLS 1
10099
echo "$as_me:$LINENO: checking whether to use NLS" >&5
10100
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10101
echo "$as_me:$LINENO: result: $USE_NLS" >&5
10102
echo "${ECHO_T}$USE_NLS" >&6
10103
if test "$USE_NLS" = "yes"; then
10104
echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10105
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10106
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10107
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10108
gt_source="external libintl"
10113
gt_source="included intl directory"
10115
echo "$as_me:$LINENO: result: $gt_source" >&5
10116
echo "${ECHO_T}$gt_source" >&6
10119
if test "$USE_NLS" = "yes"; then
10121
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10122
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10123
echo "$as_me:$LINENO: checking how to link with libintl" >&5
10124
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10125
echo "$as_me:$LINENO: result: $LIBINTL" >&5
10126
echo "${ECHO_T}$LIBINTL" >&6
10128
for element in $INCINTL; do
10130
for x in $CPPFLAGS; do
10132
acl_save_prefix="$prefix"
10133
prefix="$acl_final_prefix"
10134
acl_save_exec_prefix="$exec_prefix"
10135
exec_prefix="$acl_final_exec_prefix"
10137
exec_prefix="$acl_save_exec_prefix"
10138
prefix="$acl_save_prefix"
10140
if test "X$x" = "X$element"; then
10145
if test -z "$haveit"; then
10146
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10153
cat >>confdefs.h <<\_ACEOF
10154
#define HAVE_GETTEXT 1
10158
cat >>confdefs.h <<\_ACEOF
10159
#define HAVE_DCGETTEXT 1
10168
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10169
BUILD_INCLUDED_LIBINTL=yes
10176
nls_cv_header_intl=
10177
nls_cv_header_libgt=
10188
if test "$USE_INCLUDED_LIBINTL" = yes; then
10189
INTLOBJS="\$(GETTOBJS)"
10193
INTL_LIBTOOL_SUFFIX_PREFIX=
10197
INTLLIBS="$LIBINTL"
10206
# Extract the first word of "pkg-config", so it can be a program name with args.
10207
set dummy pkg-config; ac_word=$2
10208
echo "$as_me:$LINENO: checking for $ac_word" >&5
10209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10210
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10211
echo $ECHO_N "(cached) $ECHO_C" >&6
10213
case $PKG_CONFIG in
10215
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219
for as_dir in $PATH
10222
test -z "$as_dir" && as_dir=.
10223
for ac_exec_ext in '' $ac_executable_extensions; do
10224
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10236
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10238
if test -n "$PKG_CONFIG"; then
10239
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10240
echo "${ECHO_T}$PKG_CONFIG" >&6
10242
echo "$as_me:$LINENO: result: no" >&5
10243
echo "${ECHO_T}no" >&6
10246
if test x$PKG_CONFIG = xno ; then
10247
{ { echo "$as_me:$LINENO: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" >&5
10248
echo "$as_me: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" >&2;}
10249
{ (exit 1); exit 1; }; }
10252
# checks for libraries.
10254
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10255
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10256
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10257
echo $ECHO_N "(cached) $ECHO_C" >&6
10259
ac_check_lib_save_LIBS=$LIBS
10261
cat >conftest.$ac_ext <<_ACEOF
10264
cat confdefs.h >>conftest.$ac_ext
10265
cat >>conftest.$ac_ext <<_ACEOF
10266
/* end confdefs.h. */
10268
/* Override any gcc2 internal prototype to avoid an error. */
10272
/* We use char because int might match the return type of a gcc2
10273
builtin and then its argument prototype would still apply. */
10283
rm -f conftest.$ac_objext conftest$ac_exeext
10284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285
(eval $ac_link) 2>conftest.er1
10287
grep -v '^ *+' conftest.er1 >conftest.err
10289
cat conftest.err >&5
10290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291
(exit $ac_status); } &&
10292
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294
(eval $ac_try) 2>&5
10296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297
(exit $ac_status); }; } &&
10298
{ ac_try='test -s conftest$ac_exeext'
10299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300
(eval $ac_try) 2>&5
10302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303
(exit $ac_status); }; }; then
10304
ac_cv_lib_dl_dlopen=yes
10306
echo "$as_me: failed program was:" >&5
10307
sed 's/^/| /' conftest.$ac_ext >&5
10309
ac_cv_lib_dl_dlopen=no
10311
rm -f conftest.err conftest.$ac_objext \
10312
conftest$ac_exeext conftest.$ac_ext
10313
LIBS=$ac_check_lib_save_LIBS
10315
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10316
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10317
if test $ac_cv_lib_dl_dlopen = yes; then
10318
cat >>confdefs.h <<_ACEOF
10319
#define HAVE_LIBDL 1
10327
echo "$as_me:$LINENO: checking for pow in -lm" >&5
10328
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10329
if test "${ac_cv_lib_m_pow+set}" = set; then
10330
echo $ECHO_N "(cached) $ECHO_C" >&6
10332
ac_check_lib_save_LIBS=$LIBS
10334
cat >conftest.$ac_ext <<_ACEOF
10337
cat confdefs.h >>conftest.$ac_ext
10338
cat >>conftest.$ac_ext <<_ACEOF
10339
/* end confdefs.h. */
10341
/* Override any gcc2 internal prototype to avoid an error. */
10345
/* We use char because int might match the return type of a gcc2
10346
builtin and then its argument prototype would still apply. */
10356
rm -f conftest.$ac_objext conftest$ac_exeext
10357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358
(eval $ac_link) 2>conftest.er1
10360
grep -v '^ *+' conftest.er1 >conftest.err
10362
cat conftest.err >&5
10363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364
(exit $ac_status); } &&
10365
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367
(eval $ac_try) 2>&5
10369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
(exit $ac_status); }; } &&
10371
{ ac_try='test -s conftest$ac_exeext'
10372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373
(eval $ac_try) 2>&5
10375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376
(exit $ac_status); }; }; then
10377
ac_cv_lib_m_pow=yes
10379
echo "$as_me: failed program was:" >&5
10380
sed 's/^/| /' conftest.$ac_ext >&5
10384
rm -f conftest.err conftest.$ac_objext \
10385
conftest$ac_exeext conftest.$ac_ext
10386
LIBS=$ac_check_lib_save_LIBS
10388
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10389
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10390
if test $ac_cv_lib_m_pow = yes; then
10391
cat >>confdefs.h <<_ACEOF
10392
#define HAVE_LIBM 1
10400
echo "$as_me:$LINENO: checking for jpeg_std_error in -ljpeg" >&5
10401
echo $ECHO_N "checking for jpeg_std_error in -ljpeg... $ECHO_C" >&6
10402
if test "${ac_cv_lib_jpeg_jpeg_std_error+set}" = set; then
10403
echo $ECHO_N "(cached) $ECHO_C" >&6
10405
ac_check_lib_save_LIBS=$LIBS
10406
LIBS="-ljpeg $LIBS"
10407
cat >conftest.$ac_ext <<_ACEOF
10410
cat confdefs.h >>conftest.$ac_ext
10411
cat >>conftest.$ac_ext <<_ACEOF
10412
/* end confdefs.h. */
10414
/* Override any gcc2 internal prototype to avoid an error. */
10418
/* We use char because int might match the return type of a gcc2
10419
builtin and then its argument prototype would still apply. */
10420
char jpeg_std_error ();
10429
rm -f conftest.$ac_objext conftest$ac_exeext
10430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431
(eval $ac_link) 2>conftest.er1
10433
grep -v '^ *+' conftest.er1 >conftest.err
10435
cat conftest.err >&5
10436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437
(exit $ac_status); } &&
10438
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440
(eval $ac_try) 2>&5
10442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443
(exit $ac_status); }; } &&
10444
{ ac_try='test -s conftest$ac_exeext'
10445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446
(eval $ac_try) 2>&5
10448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449
(exit $ac_status); }; }; then
10450
ac_cv_lib_jpeg_jpeg_std_error=yes
10452
echo "$as_me: failed program was:" >&5
10453
sed 's/^/| /' conftest.$ac_ext >&5
10455
ac_cv_lib_jpeg_jpeg_std_error=no
10457
rm -f conftest.err conftest.$ac_objext \
10458
conftest$ac_exeext conftest.$ac_ext
10459
LIBS=$ac_check_lib_save_LIBS
10461
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_std_error" >&5
10462
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_std_error" >&6
10463
if test $ac_cv_lib_jpeg_jpeg_std_error = yes; then
10464
cat >>confdefs.h <<_ACEOF
10465
#define HAVE_LIBJPEG 1
10468
LIBS="-ljpeg $LIBS"
10473
# checks for header files.
10474
echo "$as_me:$LINENO: checking for X" >&5
10475
echo $ECHO_N "checking for X... $ECHO_C" >&6
10477
ac_path_x_has_been_run=yes
10479
# Check whether --with-x or --without-x was given.
10480
if test "${with_x+set}" = set; then
10484
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10485
if test "x$with_x" = xno; then
10486
# The user explicitly disabled X.
10489
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10490
# Both variables are already set.
10493
if test "${ac_cv_have_x+set}" = set; then
10494
echo $ECHO_N "(cached) $ECHO_C" >&6
10496
# One or both of the vars are not set, and there is no cached value.
10497
ac_x_includes=no ac_x_libraries=no
10498
rm -fr conftest.dir
10499
if mkdir conftest.dir; then
10501
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
10502
cat >Imakefile <<'_ACEOF'
10504
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10506
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10507
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10508
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10509
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10510
for ac_extension in a so sl; do
10511
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10512
test -f $ac_im_libdir/libX11.$ac_extension; then
10513
ac_im_usrlibdir=$ac_im_libdir; break
10516
# Screen out bogus values from the imake configuration. They are
10517
# bogus both because they are the default anyway, and because
10518
# using them would break gcc on systems where it needs fixed includes.
10519
case $ac_im_incroot in
10521
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10523
case $ac_im_usrlibdir in
10524
/usr/lib | /lib) ;;
10525
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10529
rm -fr conftest.dir
10532
# Standard set of common directories for X headers.
10533
# Check X11 before X11Rn because it is often a symlink to the current release.
10545
/usr/local/X11/include
10546
/usr/local/X11R6/include
10547
/usr/local/X11R5/include
10548
/usr/local/X11R4/include
10550
/usr/local/include/X11
10551
/usr/local/include/X11R6
10552
/usr/local/include/X11R5
10553
/usr/local/include/X11R4
10557
/usr/XFree86/include/X11
10561
/usr/unsupported/include
10562
/usr/athena/include
10563
/usr/local/x11r5/include
10564
/usr/lpp/Xamples/include
10566
/usr/openwin/include
10567
/usr/openwin/share/include'
10569
if test "$ac_x_includes" = no; then
10570
# Guess where to find include files, by looking for a specified header file.
10571
# First, try using that file with no special directory specified.
10572
cat >conftest.$ac_ext <<_ACEOF
10575
cat confdefs.h >>conftest.$ac_ext
10576
cat >>conftest.$ac_ext <<_ACEOF
10577
/* end confdefs.h. */
10578
#include <X11/Intrinsic.h>
10580
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10581
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10583
grep -v '^ *+' conftest.er1 >conftest.err
10585
cat conftest.err >&5
10586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587
(exit $ac_status); } >/dev/null; then
10588
if test -s conftest.err; then
10589
ac_cpp_err=$ac_c_preproc_warn_flag
10590
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10597
if test -z "$ac_cpp_err"; then
10598
# We can compile using X headers with no special include directory.
10601
echo "$as_me: failed program was:" >&5
10602
sed 's/^/| /' conftest.$ac_ext >&5
10604
for ac_dir in $ac_x_header_dirs; do
10605
if test -r "$ac_dir/X11/Intrinsic.h"; then
10606
ac_x_includes=$ac_dir
10611
rm -f conftest.err conftest.$ac_ext
10612
fi # $ac_x_includes = no
10614
if test "$ac_x_libraries" = no; then
10615
# Check for the libraries.
10616
# See if we find them without any special options.
10617
# Don't add to $LIBS permanently.
10620
cat >conftest.$ac_ext <<_ACEOF
10623
cat confdefs.h >>conftest.$ac_ext
10624
cat >>conftest.$ac_ext <<_ACEOF
10625
/* end confdefs.h. */
10626
#include <X11/Intrinsic.h>
10635
rm -f conftest.$ac_objext conftest$ac_exeext
10636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637
(eval $ac_link) 2>conftest.er1
10639
grep -v '^ *+' conftest.er1 >conftest.err
10641
cat conftest.err >&5
10642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
(exit $ac_status); } &&
10644
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646
(eval $ac_try) 2>&5
10648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649
(exit $ac_status); }; } &&
10650
{ ac_try='test -s conftest$ac_exeext'
10651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652
(eval $ac_try) 2>&5
10654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655
(exit $ac_status); }; }; then
10657
# We can link X programs with no special library path.
10660
echo "$as_me: failed program was:" >&5
10661
sed 's/^/| /' conftest.$ac_ext >&5
10664
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10666
# Don't even attempt the hair of trying to link an X program!
10667
for ac_extension in a so sl; do
10668
if test -r $ac_dir/libXt.$ac_extension; then
10669
ac_x_libraries=$ac_dir
10675
rm -f conftest.err conftest.$ac_objext \
10676
conftest$ac_exeext conftest.$ac_ext
10677
fi # $ac_x_libraries = no
10679
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10680
# Didn't find X anywhere. Cache the known absence of X.
10681
ac_cv_have_x="have_x=no"
10683
# Record where we found X for the cache.
10684
ac_cv_have_x="have_x=yes \
10685
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10690
eval "$ac_cv_have_x"
10693
if test "$have_x" != yes; then
10694
echo "$as_me:$LINENO: result: $have_x" >&5
10695
echo "${ECHO_T}$have_x" >&6
10698
# If each of the values was on the command line, it overrides each guess.
10699
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10700
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10701
# Update the cache value to reflect the command line values.
10702
ac_cv_have_x="have_x=yes \
10703
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10704
# It might be that x_includes is empty (headers are found in the
10705
# standard search path. Then output the corresponding message
10706
ac_out_x_includes=$x_includes
10707
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
10708
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
10709
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
10717
ac_header_dirent=no
10718
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10719
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10720
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10721
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10722
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723
echo $ECHO_N "(cached) $ECHO_C" >&6
10725
cat >conftest.$ac_ext <<_ACEOF
10728
cat confdefs.h >>conftest.$ac_ext
10729
cat >>conftest.$ac_ext <<_ACEOF
10730
/* end confdefs.h. */
10731
#include <sys/types.h>
10743
rm -f conftest.$ac_objext
10744
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745
(eval $ac_compile) 2>conftest.er1
10747
grep -v '^ *+' conftest.er1 >conftest.err
10749
cat conftest.err >&5
10750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751
(exit $ac_status); } &&
10752
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754
(eval $ac_try) 2>&5
10756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757
(exit $ac_status); }; } &&
10758
{ ac_try='test -s conftest.$ac_objext'
10759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760
(eval $ac_try) 2>&5
10762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763
(exit $ac_status); }; }; then
10764
eval "$as_ac_Header=yes"
10766
echo "$as_me: failed program was:" >&5
10767
sed 's/^/| /' conftest.$ac_ext >&5
10769
eval "$as_ac_Header=no"
10771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10774
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10775
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10776
cat >>confdefs.h <<_ACEOF
10777
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10780
ac_header_dirent=$ac_hdr; break
10784
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10785
if test $ac_header_dirent = dirent.h; then
10786
echo "$as_me:$LINENO: checking for library containing opendir" >&5
10787
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10788
if test "${ac_cv_search_opendir+set}" = set; then
10789
echo $ECHO_N "(cached) $ECHO_C" >&6
10791
ac_func_search_save_LIBS=$LIBS
10792
ac_cv_search_opendir=no
10793
cat >conftest.$ac_ext <<_ACEOF
10796
cat confdefs.h >>conftest.$ac_ext
10797
cat >>conftest.$ac_ext <<_ACEOF
10798
/* end confdefs.h. */
10800
/* Override any gcc2 internal prototype to avoid an error. */
10804
/* We use char because int might match the return type of a gcc2
10805
builtin and then its argument prototype would still apply. */
10815
rm -f conftest.$ac_objext conftest$ac_exeext
10816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817
(eval $ac_link) 2>conftest.er1
10819
grep -v '^ *+' conftest.er1 >conftest.err
10821
cat conftest.err >&5
10822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823
(exit $ac_status); } &&
10824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826
(eval $ac_try) 2>&5
10828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829
(exit $ac_status); }; } &&
10830
{ ac_try='test -s conftest$ac_exeext'
10831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832
(eval $ac_try) 2>&5
10834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835
(exit $ac_status); }; }; then
10836
ac_cv_search_opendir="none required"
10838
echo "$as_me: failed program was:" >&5
10839
sed 's/^/| /' conftest.$ac_ext >&5
10842
rm -f conftest.err conftest.$ac_objext \
10843
conftest$ac_exeext conftest.$ac_ext
10844
if test "$ac_cv_search_opendir" = no; then
10845
for ac_lib in dir; do
10846
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10847
cat >conftest.$ac_ext <<_ACEOF
10850
cat confdefs.h >>conftest.$ac_ext
10851
cat >>conftest.$ac_ext <<_ACEOF
10852
/* end confdefs.h. */
10854
/* Override any gcc2 internal prototype to avoid an error. */
10858
/* We use char because int might match the return type of a gcc2
10859
builtin and then its argument prototype would still apply. */
10869
rm -f conftest.$ac_objext conftest$ac_exeext
10870
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871
(eval $ac_link) 2>conftest.er1
10873
grep -v '^ *+' conftest.er1 >conftest.err
10875
cat conftest.err >&5
10876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
(exit $ac_status); } &&
10878
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880
(eval $ac_try) 2>&5
10882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883
(exit $ac_status); }; } &&
10884
{ ac_try='test -s conftest$ac_exeext'
10885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886
(eval $ac_try) 2>&5
10888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889
(exit $ac_status); }; }; then
10890
ac_cv_search_opendir="-l$ac_lib"
10893
echo "$as_me: failed program was:" >&5
10894
sed 's/^/| /' conftest.$ac_ext >&5
10897
rm -f conftest.err conftest.$ac_objext \
10898
conftest$ac_exeext conftest.$ac_ext
10901
LIBS=$ac_func_search_save_LIBS
10903
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10904
echo "${ECHO_T}$ac_cv_search_opendir" >&6
10905
if test "$ac_cv_search_opendir" != no; then
10906
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10911
echo "$as_me:$LINENO: checking for library containing opendir" >&5
10912
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10913
if test "${ac_cv_search_opendir+set}" = set; then
10914
echo $ECHO_N "(cached) $ECHO_C" >&6
10916
ac_func_search_save_LIBS=$LIBS
10917
ac_cv_search_opendir=no
10918
cat >conftest.$ac_ext <<_ACEOF
10921
cat confdefs.h >>conftest.$ac_ext
10922
cat >>conftest.$ac_ext <<_ACEOF
10923
/* end confdefs.h. */
10925
/* Override any gcc2 internal prototype to avoid an error. */
10929
/* We use char because int might match the return type of a gcc2
10930
builtin and then its argument prototype would still apply. */
10940
rm -f conftest.$ac_objext conftest$ac_exeext
10941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942
(eval $ac_link) 2>conftest.er1
10944
grep -v '^ *+' conftest.er1 >conftest.err
10946
cat conftest.err >&5
10947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948
(exit $ac_status); } &&
10949
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951
(eval $ac_try) 2>&5
10953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
(exit $ac_status); }; } &&
10955
{ ac_try='test -s conftest$ac_exeext'
10956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957
(eval $ac_try) 2>&5
10959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960
(exit $ac_status); }; }; then
10961
ac_cv_search_opendir="none required"
10963
echo "$as_me: failed program was:" >&5
10964
sed 's/^/| /' conftest.$ac_ext >&5
10967
rm -f conftest.err conftest.$ac_objext \
10968
conftest$ac_exeext conftest.$ac_ext
10969
if test "$ac_cv_search_opendir" = no; then
10970
for ac_lib in x; do
10971
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10972
cat >conftest.$ac_ext <<_ACEOF
10975
cat confdefs.h >>conftest.$ac_ext
10976
cat >>conftest.$ac_ext <<_ACEOF
10977
/* end confdefs.h. */
10979
/* Override any gcc2 internal prototype to avoid an error. */
10983
/* We use char because int might match the return type of a gcc2
10984
builtin and then its argument prototype would still apply. */
10994
rm -f conftest.$ac_objext conftest$ac_exeext
10995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996
(eval $ac_link) 2>conftest.er1
10998
grep -v '^ *+' conftest.er1 >conftest.err
11000
cat conftest.err >&5
11001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002
(exit $ac_status); } &&
11003
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005
(eval $ac_try) 2>&5
11007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008
(exit $ac_status); }; } &&
11009
{ ac_try='test -s conftest$ac_exeext'
11010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011
(eval $ac_try) 2>&5
11013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014
(exit $ac_status); }; }; then
11015
ac_cv_search_opendir="-l$ac_lib"
11018
echo "$as_me: failed program was:" >&5
11019
sed 's/^/| /' conftest.$ac_ext >&5
11022
rm -f conftest.err conftest.$ac_objext \
11023
conftest$ac_exeext conftest.$ac_ext
11026
LIBS=$ac_func_search_save_LIBS
11028
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11029
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11030
if test "$ac_cv_search_opendir" != no; then
11031
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11037
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11038
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11039
if test "${ac_cv_header_stdc+set}" = set; then
11040
echo $ECHO_N "(cached) $ECHO_C" >&6
11042
cat >conftest.$ac_ext <<_ACEOF
11045
cat confdefs.h >>conftest.$ac_ext
11046
cat >>conftest.$ac_ext <<_ACEOF
11047
/* end confdefs.h. */
11048
#include <stdlib.h>
11049
#include <stdarg.h>
11050
#include <string.h>
11061
rm -f conftest.$ac_objext
11062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063
(eval $ac_compile) 2>conftest.er1
11065
grep -v '^ *+' conftest.er1 >conftest.err
11067
cat conftest.err >&5
11068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069
(exit $ac_status); } &&
11070
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072
(eval $ac_try) 2>&5
11074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075
(exit $ac_status); }; } &&
11076
{ ac_try='test -s conftest.$ac_objext'
11077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078
(eval $ac_try) 2>&5
11080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081
(exit $ac_status); }; }; then
11082
ac_cv_header_stdc=yes
11084
echo "$as_me: failed program was:" >&5
11085
sed 's/^/| /' conftest.$ac_ext >&5
11087
ac_cv_header_stdc=no
11089
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11091
if test $ac_cv_header_stdc = yes; then
11092
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11093
cat >conftest.$ac_ext <<_ACEOF
11096
cat confdefs.h >>conftest.$ac_ext
11097
cat >>conftest.$ac_ext <<_ACEOF
11098
/* end confdefs.h. */
11099
#include <string.h>
11102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11103
$EGREP "memchr" >/dev/null 2>&1; then
11106
ac_cv_header_stdc=no
11112
if test $ac_cv_header_stdc = yes; then
11113
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11114
cat >conftest.$ac_ext <<_ACEOF
11117
cat confdefs.h >>conftest.$ac_ext
11118
cat >>conftest.$ac_ext <<_ACEOF
11119
/* end confdefs.h. */
11120
#include <stdlib.h>
11123
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11124
$EGREP "free" >/dev/null 2>&1; then
11127
ac_cv_header_stdc=no
11133
if test $ac_cv_header_stdc = yes; then
11134
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11135
if test "$cross_compiling" = yes; then
11138
cat >conftest.$ac_ext <<_ACEOF
11141
cat confdefs.h >>conftest.$ac_ext
11142
cat >>conftest.$ac_ext <<_ACEOF
11143
/* end confdefs.h. */
11145
#if ((' ' & 0x0FF) == 0x020)
11146
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11147
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11149
# define ISLOWER(c) \
11150
(('a' <= (c) && (c) <= 'i') \
11151
|| ('j' <= (c) && (c) <= 'r') \
11152
|| ('s' <= (c) && (c) <= 'z'))
11153
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11156
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11161
for (i = 0; i < 256; i++)
11162
if (XOR (islower (i), ISLOWER (i))
11163
|| toupper (i) != TOUPPER (i))
11168
rm -f conftest$ac_exeext
11169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11170
(eval $ac_link) 2>&5
11172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175
(eval $ac_try) 2>&5
11177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178
(exit $ac_status); }; }; then
11181
echo "$as_me: program exited with status $ac_status" >&5
11182
echo "$as_me: failed program was:" >&5
11183
sed 's/^/| /' conftest.$ac_ext >&5
11185
( exit $ac_status )
11186
ac_cv_header_stdc=no
11188
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11192
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11193
echo "${ECHO_T}$ac_cv_header_stdc" >&6
11194
if test $ac_cv_header_stdc = yes; then
11196
cat >>confdefs.h <<\_ACEOF
11197
#define STDC_HEADERS 1
11202
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11203
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11204
if test "${ac_cv_header_stat_broken+set}" = set; then
11205
echo $ECHO_N "(cached) $ECHO_C" >&6
11207
cat >conftest.$ac_ext <<_ACEOF
11210
cat confdefs.h >>conftest.$ac_ext
11211
cat >>conftest.$ac_ext <<_ACEOF
11212
/* end confdefs.h. */
11213
#include <sys/types.h>
11214
#include <sys/stat.h>
11216
#if defined(S_ISBLK) && defined(S_IFDIR)
11217
# if S_ISBLK (S_IFDIR)
11222
#if defined(S_ISBLK) && defined(S_IFCHR)
11223
# if S_ISBLK (S_IFCHR)
11228
#if defined(S_ISLNK) && defined(S_IFREG)
11229
# if S_ISLNK (S_IFREG)
11234
#if defined(S_ISSOCK) && defined(S_IFREG)
11235
# if S_ISSOCK (S_IFREG)
11241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11242
$EGREP "You lose" >/dev/null 2>&1; then
11243
ac_cv_header_stat_broken=yes
11245
ac_cv_header_stat_broken=no
11250
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11251
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11252
if test $ac_cv_header_stat_broken = yes; then
11254
cat >>confdefs.h <<\_ACEOF
11255
#define STAT_MACROS_BROKEN 1
11271
for ac_header in strings.h unistd.h malloc.h sys/file.h fcntl.h direct.h alloca.h errno.h sys/time.h utime.h sys/param.h
11273
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11275
echo "$as_me:$LINENO: checking for $ac_header" >&5
11276
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11277
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11278
echo $ECHO_N "(cached) $ECHO_C" >&6
11280
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11281
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11283
# Is the header compilable?
11284
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11285
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11286
cat >conftest.$ac_ext <<_ACEOF
11289
cat confdefs.h >>conftest.$ac_ext
11290
cat >>conftest.$ac_ext <<_ACEOF
11291
/* end confdefs.h. */
11292
$ac_includes_default
11293
#include <$ac_header>
11295
rm -f conftest.$ac_objext
11296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297
(eval $ac_compile) 2>conftest.er1
11299
grep -v '^ *+' conftest.er1 >conftest.err
11301
cat conftest.err >&5
11302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303
(exit $ac_status); } &&
11304
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306
(eval $ac_try) 2>&5
11308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309
(exit $ac_status); }; } &&
11310
{ ac_try='test -s conftest.$ac_objext'
11311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312
(eval $ac_try) 2>&5
11314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315
(exit $ac_status); }; }; then
11316
ac_header_compiler=yes
11318
echo "$as_me: failed program was:" >&5
11319
sed 's/^/| /' conftest.$ac_ext >&5
11321
ac_header_compiler=no
11323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325
echo "${ECHO_T}$ac_header_compiler" >&6
11327
# Is the header present?
11328
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11330
cat >conftest.$ac_ext <<_ACEOF
11333
cat confdefs.h >>conftest.$ac_ext
11334
cat >>conftest.$ac_ext <<_ACEOF
11335
/* end confdefs.h. */
11336
#include <$ac_header>
11338
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11339
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11341
grep -v '^ *+' conftest.er1 >conftest.err
11343
cat conftest.err >&5
11344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345
(exit $ac_status); } >/dev/null; then
11346
if test -s conftest.err; then
11347
ac_cpp_err=$ac_c_preproc_warn_flag
11348
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355
if test -z "$ac_cpp_err"; then
11356
ac_header_preproc=yes
11358
echo "$as_me: failed program was:" >&5
11359
sed 's/^/| /' conftest.$ac_ext >&5
11361
ac_header_preproc=no
11363
rm -f conftest.err conftest.$ac_ext
11364
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365
echo "${ECHO_T}$ac_header_preproc" >&6
11367
# So? What about this header?
11368
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374
ac_header_preproc=yes
11377
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391
## ------------------------------------------ ##
11392
## Report this to the AC_PACKAGE_NAME lists. ##
11393
## ------------------------------------------ ##
11396
sed "s/^/$as_me: WARNING: /" >&2
11399
echo "$as_me:$LINENO: checking for $ac_header" >&5
11400
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11401
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11402
echo $ECHO_N "(cached) $ECHO_C" >&6
11404
eval "$as_ac_Header=\$ac_header_preproc"
11406
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11407
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11410
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411
cat >>confdefs.h <<_ACEOF
11412
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420
for ac_header in stdint.h
11422
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11424
echo "$as_me:$LINENO: checking for $ac_header" >&5
11425
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11426
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11427
echo $ECHO_N "(cached) $ECHO_C" >&6
11429
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11430
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11432
# Is the header compilable?
11433
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11434
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11435
cat >conftest.$ac_ext <<_ACEOF
11438
cat confdefs.h >>conftest.$ac_ext
11439
cat >>conftest.$ac_ext <<_ACEOF
11440
/* end confdefs.h. */
11441
$ac_includes_default
11442
#include <$ac_header>
11444
rm -f conftest.$ac_objext
11445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446
(eval $ac_compile) 2>conftest.er1
11448
grep -v '^ *+' conftest.er1 >conftest.err
11450
cat conftest.err >&5
11451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452
(exit $ac_status); } &&
11453
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455
(eval $ac_try) 2>&5
11457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458
(exit $ac_status); }; } &&
11459
{ ac_try='test -s conftest.$ac_objext'
11460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461
(eval $ac_try) 2>&5
11463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464
(exit $ac_status); }; }; then
11465
ac_header_compiler=yes
11467
echo "$as_me: failed program was:" >&5
11468
sed 's/^/| /' conftest.$ac_ext >&5
11470
ac_header_compiler=no
11472
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11473
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474
echo "${ECHO_T}$ac_header_compiler" >&6
11476
# Is the header present?
11477
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11479
cat >conftest.$ac_ext <<_ACEOF
11482
cat confdefs.h >>conftest.$ac_ext
11483
cat >>conftest.$ac_ext <<_ACEOF
11484
/* end confdefs.h. */
11485
#include <$ac_header>
11487
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11488
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11490
grep -v '^ *+' conftest.er1 >conftest.err
11492
cat conftest.err >&5
11493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494
(exit $ac_status); } >/dev/null; then
11495
if test -s conftest.err; then
11496
ac_cpp_err=$ac_c_preproc_warn_flag
11497
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11504
if test -z "$ac_cpp_err"; then
11505
ac_header_preproc=yes
11507
echo "$as_me: failed program was:" >&5
11508
sed 's/^/| /' conftest.$ac_ext >&5
11510
ac_header_preproc=no
11512
rm -f conftest.err conftest.$ac_ext
11513
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514
echo "${ECHO_T}$ac_header_preproc" >&6
11516
# So? What about this header?
11517
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523
ac_header_preproc=yes
11526
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11540
## ------------------------------------------ ##
11541
## Report this to the AC_PACKAGE_NAME lists. ##
11542
## ------------------------------------------ ##
11545
sed "s/^/$as_me: WARNING: /" >&2
11548
echo "$as_me:$LINENO: checking for $ac_header" >&5
11549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11550
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11551
echo $ECHO_N "(cached) $ECHO_C" >&6
11553
eval "$as_ac_Header=\$ac_header_preproc"
11555
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560
cat >>confdefs.h <<_ACEOF
11561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570
for ac_header in locale.h libintl.h
11572
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11573
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11574
echo "$as_me:$LINENO: checking for $ac_header" >&5
11575
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11576
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11577
echo $ECHO_N "(cached) $ECHO_C" >&6
11579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11580
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11582
# Is the header compilable?
11583
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11585
cat >conftest.$ac_ext <<_ACEOF
11588
cat confdefs.h >>conftest.$ac_ext
11589
cat >>conftest.$ac_ext <<_ACEOF
11590
/* end confdefs.h. */
11591
$ac_includes_default
11592
#include <$ac_header>
11594
rm -f conftest.$ac_objext
11595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596
(eval $ac_compile) 2>conftest.er1
11598
grep -v '^ *+' conftest.er1 >conftest.err
11600
cat conftest.err >&5
11601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602
(exit $ac_status); } &&
11603
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605
(eval $ac_try) 2>&5
11607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608
(exit $ac_status); }; } &&
11609
{ ac_try='test -s conftest.$ac_objext'
11610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611
(eval $ac_try) 2>&5
11613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614
(exit $ac_status); }; }; then
11615
ac_header_compiler=yes
11617
echo "$as_me: failed program was:" >&5
11618
sed 's/^/| /' conftest.$ac_ext >&5
11620
ac_header_compiler=no
11622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11623
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11624
echo "${ECHO_T}$ac_header_compiler" >&6
11626
# Is the header present?
11627
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11628
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11629
cat >conftest.$ac_ext <<_ACEOF
11632
cat confdefs.h >>conftest.$ac_ext
11633
cat >>conftest.$ac_ext <<_ACEOF
11634
/* end confdefs.h. */
11635
#include <$ac_header>
11637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11638
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11640
grep -v '^ *+' conftest.er1 >conftest.err
11642
cat conftest.err >&5
11643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644
(exit $ac_status); } >/dev/null; then
11645
if test -s conftest.err; then
11646
ac_cpp_err=$ac_c_preproc_warn_flag
11647
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11654
if test -z "$ac_cpp_err"; then
11655
ac_header_preproc=yes
11657
echo "$as_me: failed program was:" >&5
11658
sed 's/^/| /' conftest.$ac_ext >&5
11660
ac_header_preproc=no
11662
rm -f conftest.err conftest.$ac_ext
11663
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11664
echo "${ECHO_T}$ac_header_preproc" >&6
11666
# So? What about this header?
11667
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11669
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11670
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11671
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11672
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11673
ac_header_preproc=yes
11676
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11677
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11678
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11679
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11680
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11681
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11682
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11683
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11684
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11685
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11686
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11687
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11690
## ------------------------------------------ ##
11691
## Report this to the AC_PACKAGE_NAME lists. ##
11692
## ------------------------------------------ ##
11695
sed "s/^/$as_me: WARNING: /" >&2
11698
echo "$as_me:$LINENO: checking for $ac_header" >&5
11699
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11700
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11701
echo $ECHO_N "(cached) $ECHO_C" >&6
11703
eval "$as_ac_Header=\$ac_header_preproc"
11705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11709
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11710
cat >>confdefs.h <<_ACEOF
11711
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11718
if test "${ac_cv_header_jpeglib_h+set}" = set; then
11719
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
11720
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
11721
if test "${ac_cv_header_jpeglib_h+set}" = set; then
11722
echo $ECHO_N "(cached) $ECHO_C" >&6
11724
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
11725
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
11727
# Is the header compilable?
11728
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
11729
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
11730
cat >conftest.$ac_ext <<_ACEOF
11733
cat confdefs.h >>conftest.$ac_ext
11734
cat >>conftest.$ac_ext <<_ACEOF
11735
/* end confdefs.h. */
11736
$ac_includes_default
11737
#include <jpeglib.h>
11739
rm -f conftest.$ac_objext
11740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741
(eval $ac_compile) 2>conftest.er1
11743
grep -v '^ *+' conftest.er1 >conftest.err
11745
cat conftest.err >&5
11746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747
(exit $ac_status); } &&
11748
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750
(eval $ac_try) 2>&5
11752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753
(exit $ac_status); }; } &&
11754
{ ac_try='test -s conftest.$ac_objext'
11755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756
(eval $ac_try) 2>&5
11758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759
(exit $ac_status); }; }; then
11760
ac_header_compiler=yes
11762
echo "$as_me: failed program was:" >&5
11763
sed 's/^/| /' conftest.$ac_ext >&5
11765
ac_header_compiler=no
11767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11769
echo "${ECHO_T}$ac_header_compiler" >&6
11771
# Is the header present?
11772
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
11773
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
11774
cat >conftest.$ac_ext <<_ACEOF
11777
cat confdefs.h >>conftest.$ac_ext
11778
cat >>conftest.$ac_ext <<_ACEOF
11779
/* end confdefs.h. */
11780
#include <jpeglib.h>
11782
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11783
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11785
grep -v '^ *+' conftest.er1 >conftest.err
11787
cat conftest.err >&5
11788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789
(exit $ac_status); } >/dev/null; then
11790
if test -s conftest.err; then
11791
ac_cpp_err=$ac_c_preproc_warn_flag
11792
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11799
if test -z "$ac_cpp_err"; then
11800
ac_header_preproc=yes
11802
echo "$as_me: failed program was:" >&5
11803
sed 's/^/| /' conftest.$ac_ext >&5
11805
ac_header_preproc=no
11807
rm -f conftest.err conftest.$ac_ext
11808
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809
echo "${ECHO_T}$ac_header_preproc" >&6
11811
# So? What about this header?
11812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11815
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
11817
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
11818
ac_header_preproc=yes
11821
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
11822
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
11823
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
11824
echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
11825
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
11826
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
11827
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
11828
echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11829
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
11830
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
11831
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
11832
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
11835
## ------------------------------------------ ##
11836
## Report this to the AC_PACKAGE_NAME lists. ##
11837
## ------------------------------------------ ##
11840
sed "s/^/$as_me: WARNING: /" >&2
11843
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
11844
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
11845
if test "${ac_cv_header_jpeglib_h+set}" = set; then
11846
echo $ECHO_N "(cached) $ECHO_C" >&6
11848
ac_cv_header_jpeglib_h=$ac_header_preproc
11850
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
11851
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
11856
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11857
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11858
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11859
echo $ECHO_N "(cached) $ECHO_C" >&6
11861
cat >conftest.$ac_ext <<_ACEOF
11864
cat confdefs.h >>conftest.$ac_ext
11865
cat >>conftest.$ac_ext <<_ACEOF
11866
/* end confdefs.h. */
11867
$ac_includes_default
11871
static struct stat ac_aggr;
11872
if (ac_aggr.st_blksize)
11878
rm -f conftest.$ac_objext
11879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880
(eval $ac_compile) 2>conftest.er1
11882
grep -v '^ *+' conftest.er1 >conftest.err
11884
cat conftest.err >&5
11885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
(exit $ac_status); } &&
11887
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889
(eval $ac_try) 2>&5
11891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
(exit $ac_status); }; } &&
11893
{ ac_try='test -s conftest.$ac_objext'
11894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895
(eval $ac_try) 2>&5
11897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898
(exit $ac_status); }; }; then
11899
ac_cv_member_struct_stat_st_blksize=yes
11901
echo "$as_me: failed program was:" >&5
11902
sed 's/^/| /' conftest.$ac_ext >&5
11904
cat >conftest.$ac_ext <<_ACEOF
11907
cat confdefs.h >>conftest.$ac_ext
11908
cat >>conftest.$ac_ext <<_ACEOF
11909
/* end confdefs.h. */
11910
$ac_includes_default
11914
static struct stat ac_aggr;
11915
if (sizeof ac_aggr.st_blksize)
11921
rm -f conftest.$ac_objext
11922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11923
(eval $ac_compile) 2>conftest.er1
11925
grep -v '^ *+' conftest.er1 >conftest.err
11927
cat conftest.err >&5
11928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929
(exit $ac_status); } &&
11930
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932
(eval $ac_try) 2>&5
11934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935
(exit $ac_status); }; } &&
11936
{ ac_try='test -s conftest.$ac_objext'
11937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938
(eval $ac_try) 2>&5
11940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941
(exit $ac_status); }; }; then
11942
ac_cv_member_struct_stat_st_blksize=yes
11944
echo "$as_me: failed program was:" >&5
11945
sed 's/^/| /' conftest.$ac_ext >&5
11947
ac_cv_member_struct_stat_st_blksize=no
11949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11953
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11954
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11955
if test $ac_cv_member_struct_stat_st_blksize = yes; then
11957
cat >>confdefs.h <<_ACEOF
11958
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11965
# checks for typedefs, structures, and compiler characteristics.
11966
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11967
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11968
if test "${ac_cv_c_const+set}" = set; then
11969
echo $ECHO_N "(cached) $ECHO_C" >&6
11971
cat >conftest.$ac_ext <<_ACEOF
11974
cat confdefs.h >>conftest.$ac_ext
11975
cat >>conftest.$ac_ext <<_ACEOF
11976
/* end confdefs.h. */
11981
/* FIXME: Include the comments suggested by Paul. */
11982
#ifndef __cplusplus
11983
/* Ultrix mips cc rejects this. */
11984
typedef int charset[2];
11986
/* SunOS 4.1.1 cc rejects this. */
11987
char const *const *ccp;
11989
/* NEC SVR4.0.2 mips cc rejects this. */
11990
struct point {int x, y;};
11991
static struct point const zero = {0,0};
11992
/* AIX XL C 1.02.0.0 rejects this.
11993
It does not let you subtract one const X* pointer from another in
11994
an arm of an if-expression whose if-part is not a constant
11996
const char *g = "string";
11997
ccp = &g + (g ? g-g : 0);
11998
/* HPUX 7.0 cc rejects these. */
12001
ccp = (char const *const *) p;
12002
{ /* SCO 3.2v4 cc rejects this. */
12004
char const *s = 0 ? (char *) 0 : (char const *) 0;
12008
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12009
int x[] = {25, 17};
12010
const int *foo = &x[0];
12013
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12014
typedef const int *iptr;
12018
{ /* AIX XL C 1.02.0.0 rejects this saying
12019
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12020
struct s { int j; const int *ap[3]; };
12021
struct s *b; b->j = 5;
12023
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12024
const int foo = 10;
12032
rm -f conftest.$ac_objext
12033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034
(eval $ac_compile) 2>conftest.er1
12036
grep -v '^ *+' conftest.er1 >conftest.err
12038
cat conftest.err >&5
12039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040
(exit $ac_status); } &&
12041
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043
(eval $ac_try) 2>&5
12045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
(exit $ac_status); }; } &&
12047
{ ac_try='test -s conftest.$ac_objext'
12048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049
(eval $ac_try) 2>&5
12051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052
(exit $ac_status); }; }; then
12055
echo "$as_me: failed program was:" >&5
12056
sed 's/^/| /' conftest.$ac_ext >&5
12060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12062
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12063
echo "${ECHO_T}$ac_cv_c_const" >&6
12064
if test $ac_cv_c_const = no; then
12066
cat >>confdefs.h <<\_ACEOF
12072
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12073
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12074
if test "${ac_cv_type_uid_t+set}" = set; then
12075
echo $ECHO_N "(cached) $ECHO_C" >&6
12077
cat >conftest.$ac_ext <<_ACEOF
12080
cat confdefs.h >>conftest.$ac_ext
12081
cat >>conftest.$ac_ext <<_ACEOF
12082
/* end confdefs.h. */
12083
#include <sys/types.h>
12086
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12087
$EGREP "uid_t" >/dev/null 2>&1; then
12088
ac_cv_type_uid_t=yes
12090
ac_cv_type_uid_t=no
12095
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12096
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12097
if test $ac_cv_type_uid_t = no; then
12099
cat >>confdefs.h <<\_ACEOF
12104
cat >>confdefs.h <<\_ACEOF
12110
echo "$as_me:$LINENO: checking for inline" >&5
12111
echo $ECHO_N "checking for inline... $ECHO_C" >&6
12112
if test "${ac_cv_c_inline+set}" = set; then
12113
echo $ECHO_N "(cached) $ECHO_C" >&6
12116
for ac_kw in inline __inline__ __inline; do
12117
cat >conftest.$ac_ext <<_ACEOF
12120
cat confdefs.h >>conftest.$ac_ext
12121
cat >>conftest.$ac_ext <<_ACEOF
12122
/* end confdefs.h. */
12123
#ifndef __cplusplus
12125
static $ac_kw foo_t static_foo () {return 0; }
12126
$ac_kw foo_t foo () {return 0; }
12130
rm -f conftest.$ac_objext
12131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132
(eval $ac_compile) 2>conftest.er1
12134
grep -v '^ *+' conftest.er1 >conftest.err
12136
cat conftest.err >&5
12137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138
(exit $ac_status); } &&
12139
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141
(eval $ac_try) 2>&5
12143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144
(exit $ac_status); }; } &&
12145
{ ac_try='test -s conftest.$ac_objext'
12146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147
(eval $ac_try) 2>&5
12149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150
(exit $ac_status); }; }; then
12151
ac_cv_c_inline=$ac_kw; break
12153
echo "$as_me: failed program was:" >&5
12154
sed 's/^/| /' conftest.$ac_ext >&5
12157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12162
echo "${ECHO_T}$ac_cv_c_inline" >&6
12165
case $ac_cv_c_inline in
12168
case $ac_cv_c_inline in
12170
*) ac_val=$ac_cv_c_inline;;
12172
cat >>confdefs.h <<_ACEOF
12173
#ifndef __cplusplus
12174
#define inline $ac_val
12180
echo "$as_me:$LINENO: checking for mode_t" >&5
12181
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12182
if test "${ac_cv_type_mode_t+set}" = set; then
12183
echo $ECHO_N "(cached) $ECHO_C" >&6
12185
cat >conftest.$ac_ext <<_ACEOF
12188
cat confdefs.h >>conftest.$ac_ext
12189
cat >>conftest.$ac_ext <<_ACEOF
12190
/* end confdefs.h. */
12191
$ac_includes_default
12197
if (sizeof (mode_t))
12203
rm -f conftest.$ac_objext
12204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205
(eval $ac_compile) 2>conftest.er1
12207
grep -v '^ *+' conftest.er1 >conftest.err
12209
cat conftest.err >&5
12210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211
(exit $ac_status); } &&
12212
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214
(eval $ac_try) 2>&5
12216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217
(exit $ac_status); }; } &&
12218
{ ac_try='test -s conftest.$ac_objext'
12219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220
(eval $ac_try) 2>&5
12222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223
(exit $ac_status); }; }; then
12224
ac_cv_type_mode_t=yes
12226
echo "$as_me: failed program was:" >&5
12227
sed 's/^/| /' conftest.$ac_ext >&5
12229
ac_cv_type_mode_t=no
12231
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12234
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12235
if test $ac_cv_type_mode_t = yes; then
12239
cat >>confdefs.h <<_ACEOF
12245
echo "$as_me:$LINENO: checking for off_t" >&5
12246
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12247
if test "${ac_cv_type_off_t+set}" = set; then
12248
echo $ECHO_N "(cached) $ECHO_C" >&6
12250
cat >conftest.$ac_ext <<_ACEOF
12253
cat confdefs.h >>conftest.$ac_ext
12254
cat >>conftest.$ac_ext <<_ACEOF
12255
/* end confdefs.h. */
12256
$ac_includes_default
12262
if (sizeof (off_t))
12268
rm -f conftest.$ac_objext
12269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270
(eval $ac_compile) 2>conftest.er1
12272
grep -v '^ *+' conftest.er1 >conftest.err
12274
cat conftest.err >&5
12275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276
(exit $ac_status); } &&
12277
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279
(eval $ac_try) 2>&5
12281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282
(exit $ac_status); }; } &&
12283
{ ac_try='test -s conftest.$ac_objext'
12284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285
(eval $ac_try) 2>&5
12287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288
(exit $ac_status); }; }; then
12289
ac_cv_type_off_t=yes
12291
echo "$as_me: failed program was:" >&5
12292
sed 's/^/| /' conftest.$ac_ext >&5
12294
ac_cv_type_off_t=no
12296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12299
echo "${ECHO_T}$ac_cv_type_off_t" >&6
12300
if test $ac_cv_type_off_t = yes; then
12304
cat >>confdefs.h <<_ACEOF
12310
echo "$as_me:$LINENO: checking for size_t" >&5
12311
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12312
if test "${ac_cv_type_size_t+set}" = set; then
12313
echo $ECHO_N "(cached) $ECHO_C" >&6
12315
cat >conftest.$ac_ext <<_ACEOF
12318
cat confdefs.h >>conftest.$ac_ext
12319
cat >>conftest.$ac_ext <<_ACEOF
12320
/* end confdefs.h. */
12321
$ac_includes_default
12327
if (sizeof (size_t))
12333
rm -f conftest.$ac_objext
12334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335
(eval $ac_compile) 2>conftest.er1
12337
grep -v '^ *+' conftest.er1 >conftest.err
12339
cat conftest.err >&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); } &&
12342
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
(eval $ac_try) 2>&5
12346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
(exit $ac_status); }; } &&
12348
{ ac_try='test -s conftest.$ac_objext'
12349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350
(eval $ac_try) 2>&5
12352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
(exit $ac_status); }; }; then
12354
ac_cv_type_size_t=yes
12356
echo "$as_me: failed program was:" >&5
12357
sed 's/^/| /' conftest.$ac_ext >&5
12359
ac_cv_type_size_t=no
12361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12363
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12364
echo "${ECHO_T}$ac_cv_type_size_t" >&6
12365
if test $ac_cv_type_size_t = yes; then
12369
cat >>confdefs.h <<_ACEOF
12370
#define size_t unsigned
12375
echo "$as_me:$LINENO: checking for pid_t" >&5
12376
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12377
if test "${ac_cv_type_pid_t+set}" = set; then
12378
echo $ECHO_N "(cached) $ECHO_C" >&6
12380
cat >conftest.$ac_ext <<_ACEOF
12383
cat confdefs.h >>conftest.$ac_ext
12384
cat >>conftest.$ac_ext <<_ACEOF
12385
/* end confdefs.h. */
12386
$ac_includes_default
12392
if (sizeof (pid_t))
12398
rm -f conftest.$ac_objext
12399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400
(eval $ac_compile) 2>conftest.er1
12402
grep -v '^ *+' conftest.er1 >conftest.err
12404
cat conftest.err >&5
12405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406
(exit $ac_status); } &&
12407
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409
(eval $ac_try) 2>&5
12411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412
(exit $ac_status); }; } &&
12413
{ ac_try='test -s conftest.$ac_objext'
12414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415
(eval $ac_try) 2>&5
12417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418
(exit $ac_status); }; }; then
12419
ac_cv_type_pid_t=yes
12421
echo "$as_me: failed program was:" >&5
12422
sed 's/^/| /' conftest.$ac_ext >&5
12424
ac_cv_type_pid_t=no
12426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12428
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12429
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12430
if test $ac_cv_type_pid_t = yes; then
12434
cat >>confdefs.h <<_ACEOF
12440
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12441
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12442
if test "${ac_cv_type_signal+set}" = set; then
12443
echo $ECHO_N "(cached) $ECHO_C" >&6
12445
cat >conftest.$ac_ext <<_ACEOF
12448
cat confdefs.h >>conftest.$ac_ext
12449
cat >>conftest.$ac_ext <<_ACEOF
12450
/* end confdefs.h. */
12451
#include <sys/types.h>
12452
#include <signal.h>
12457
extern "C" void (*signal (int, void (*)(int)))(int);
12459
void (*signal ()) ();
12470
rm -f conftest.$ac_objext
12471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472
(eval $ac_compile) 2>conftest.er1
12474
grep -v '^ *+' conftest.er1 >conftest.err
12476
cat conftest.err >&5
12477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478
(exit $ac_status); } &&
12479
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481
(eval $ac_try) 2>&5
12483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484
(exit $ac_status); }; } &&
12485
{ ac_try='test -s conftest.$ac_objext'
12486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487
(eval $ac_try) 2>&5
12489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490
(exit $ac_status); }; }; then
12491
ac_cv_type_signal=void
12493
echo "$as_me: failed program was:" >&5
12494
sed 's/^/| /' conftest.$ac_ext >&5
12496
ac_cv_type_signal=int
12498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12500
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12501
echo "${ECHO_T}$ac_cv_type_signal" >&6
12503
cat >>confdefs.h <<_ACEOF
12504
#define RETSIGTYPE $ac_cv_type_signal
12508
echo "$as_me:$LINENO: checking for error_at_line" >&5
12509
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
12510
if test "${ac_cv_lib_error_at_line+set}" = set; then
12511
echo $ECHO_N "(cached) $ECHO_C" >&6
12513
cat >conftest.$ac_ext <<_ACEOF
12516
cat confdefs.h >>conftest.$ac_ext
12517
cat >>conftest.$ac_ext <<_ACEOF
12518
/* end confdefs.h. */
12519
$ac_includes_default
12523
error_at_line (0, 0, "", 0, "");
12528
rm -f conftest.$ac_objext conftest$ac_exeext
12529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530
(eval $ac_link) 2>conftest.er1
12532
grep -v '^ *+' conftest.er1 >conftest.err
12534
cat conftest.err >&5
12535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536
(exit $ac_status); } &&
12537
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539
(eval $ac_try) 2>&5
12541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542
(exit $ac_status); }; } &&
12543
{ ac_try='test -s conftest$ac_exeext'
12544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545
(eval $ac_try) 2>&5
12547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548
(exit $ac_status); }; }; then
12549
ac_cv_lib_error_at_line=yes
12551
echo "$as_me: failed program was:" >&5
12552
sed 's/^/| /' conftest.$ac_ext >&5
12554
ac_cv_lib_error_at_line=no
12556
rm -f conftest.err conftest.$ac_objext \
12557
conftest$ac_exeext conftest.$ac_ext
12559
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12560
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
12561
if test $ac_cv_lib_error_at_line = no; then
12563
"error.$ac_objext" | \
12564
*" error.$ac_objext" | \
12565
"error.$ac_objext "* | \
12566
*" error.$ac_objext "* ) ;;
12567
*) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
12572
echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
12573
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
12574
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
12575
echo $ECHO_N "(cached) $ECHO_C" >&6
12577
cat >conftest.$ac_ext <<_ACEOF
12580
cat confdefs.h >>conftest.$ac_ext
12581
cat >>conftest.$ac_ext <<_ACEOF
12582
/* end confdefs.h. */
12583
#include <sys/types.h>
12587
return makedev(0, 0);
12592
rm -f conftest.$ac_objext conftest$ac_exeext
12593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594
(eval $ac_link) 2>conftest.er1
12596
grep -v '^ *+' conftest.er1 >conftest.err
12598
cat conftest.err >&5
12599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600
(exit $ac_status); } &&
12601
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603
(eval $ac_try) 2>&5
12605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606
(exit $ac_status); }; } &&
12607
{ ac_try='test -s conftest$ac_exeext'
12608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609
(eval $ac_try) 2>&5
12611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612
(exit $ac_status); }; }; then
12613
ac_cv_header_sys_types_h_makedev=yes
12615
echo "$as_me: failed program was:" >&5
12616
sed 's/^/| /' conftest.$ac_ext >&5
12618
ac_cv_header_sys_types_h_makedev=no
12620
rm -f conftest.err conftest.$ac_objext \
12621
conftest$ac_exeext conftest.$ac_ext
12624
echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
12625
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
12627
if test $ac_cv_header_sys_types_h_makedev = no; then
12628
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12629
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
12630
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
12631
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12632
echo $ECHO_N "(cached) $ECHO_C" >&6
12634
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
12635
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
12637
# Is the header compilable?
12638
echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
12639
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
12640
cat >conftest.$ac_ext <<_ACEOF
12643
cat confdefs.h >>conftest.$ac_ext
12644
cat >>conftest.$ac_ext <<_ACEOF
12645
/* end confdefs.h. */
12646
$ac_includes_default
12647
#include <sys/mkdev.h>
12649
rm -f conftest.$ac_objext
12650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651
(eval $ac_compile) 2>conftest.er1
12653
grep -v '^ *+' conftest.er1 >conftest.err
12655
cat conftest.err >&5
12656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
(exit $ac_status); } &&
12658
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660
(eval $ac_try) 2>&5
12662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663
(exit $ac_status); }; } &&
12664
{ ac_try='test -s conftest.$ac_objext'
12665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666
(eval $ac_try) 2>&5
12668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669
(exit $ac_status); }; }; then
12670
ac_header_compiler=yes
12672
echo "$as_me: failed program was:" >&5
12673
sed 's/^/| /' conftest.$ac_ext >&5
12675
ac_header_compiler=no
12677
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12679
echo "${ECHO_T}$ac_header_compiler" >&6
12681
# Is the header present?
12682
echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
12683
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
12684
cat >conftest.$ac_ext <<_ACEOF
12687
cat confdefs.h >>conftest.$ac_ext
12688
cat >>conftest.$ac_ext <<_ACEOF
12689
/* end confdefs.h. */
12690
#include <sys/mkdev.h>
12692
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12693
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12695
grep -v '^ *+' conftest.er1 >conftest.err
12697
cat conftest.err >&5
12698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699
(exit $ac_status); } >/dev/null; then
12700
if test -s conftest.err; then
12701
ac_cpp_err=$ac_c_preproc_warn_flag
12702
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12709
if test -z "$ac_cpp_err"; then
12710
ac_header_preproc=yes
12712
echo "$as_me: failed program was:" >&5
12713
sed 's/^/| /' conftest.$ac_ext >&5
12715
ac_header_preproc=no
12717
rm -f conftest.err conftest.$ac_ext
12718
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12719
echo "${ECHO_T}$ac_header_preproc" >&6
12721
# So? What about this header?
12722
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12724
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
12725
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12726
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
12727
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
12728
ac_header_preproc=yes
12731
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
12732
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
12733
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
12734
echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
12735
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
12736
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
12737
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
12738
echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
12739
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
12740
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
12741
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
12742
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
12745
## ------------------------------------------ ##
12746
## Report this to the AC_PACKAGE_NAME lists. ##
12747
## ------------------------------------------ ##
12750
sed "s/^/$as_me: WARNING: /" >&2
12753
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
12754
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
12755
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12756
echo $ECHO_N "(cached) $ECHO_C" >&6
12758
ac_cv_header_sys_mkdev_h=$ac_header_preproc
12760
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
12761
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
12764
if test $ac_cv_header_sys_mkdev_h = yes; then
12766
cat >>confdefs.h <<\_ACEOF
12767
#define MAJOR_IN_MKDEV 1
12774
if test $ac_cv_header_sys_mkdev_h = no; then
12775
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12776
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
12777
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
12778
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12779
echo $ECHO_N "(cached) $ECHO_C" >&6
12781
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
12782
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
12784
# Is the header compilable?
12785
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
12786
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
12787
cat >conftest.$ac_ext <<_ACEOF
12790
cat confdefs.h >>conftest.$ac_ext
12791
cat >>conftest.$ac_ext <<_ACEOF
12792
/* end confdefs.h. */
12793
$ac_includes_default
12794
#include <sys/sysmacros.h>
12796
rm -f conftest.$ac_objext
12797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798
(eval $ac_compile) 2>conftest.er1
12800
grep -v '^ *+' conftest.er1 >conftest.err
12802
cat conftest.err >&5
12803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804
(exit $ac_status); } &&
12805
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807
(eval $ac_try) 2>&5
12809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810
(exit $ac_status); }; } &&
12811
{ ac_try='test -s conftest.$ac_objext'
12812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813
(eval $ac_try) 2>&5
12815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816
(exit $ac_status); }; }; then
12817
ac_header_compiler=yes
12819
echo "$as_me: failed program was:" >&5
12820
sed 's/^/| /' conftest.$ac_ext >&5
12822
ac_header_compiler=no
12824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12825
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826
echo "${ECHO_T}$ac_header_compiler" >&6
12828
# Is the header present?
12829
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
12830
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
12831
cat >conftest.$ac_ext <<_ACEOF
12834
cat confdefs.h >>conftest.$ac_ext
12835
cat >>conftest.$ac_ext <<_ACEOF
12836
/* end confdefs.h. */
12837
#include <sys/sysmacros.h>
12839
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12840
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12842
grep -v '^ *+' conftest.er1 >conftest.err
12844
cat conftest.err >&5
12845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846
(exit $ac_status); } >/dev/null; then
12847
if test -s conftest.err; then
12848
ac_cpp_err=$ac_c_preproc_warn_flag
12849
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12856
if test -z "$ac_cpp_err"; then
12857
ac_header_preproc=yes
12859
echo "$as_me: failed program was:" >&5
12860
sed 's/^/| /' conftest.$ac_ext >&5
12862
ac_header_preproc=no
12864
rm -f conftest.err conftest.$ac_ext
12865
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12866
echo "${ECHO_T}$ac_header_preproc" >&6
12868
# So? What about this header?
12869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12871
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
12872
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12873
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
12874
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
12875
ac_header_preproc=yes
12878
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
12879
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
12880
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
12881
echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
12882
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
12883
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
12884
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
12885
echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
12886
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
12887
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
12888
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
12889
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
12892
## ------------------------------------------ ##
12893
## Report this to the AC_PACKAGE_NAME lists. ##
12894
## ------------------------------------------ ##
12897
sed "s/^/$as_me: WARNING: /" >&2
12900
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
12901
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
12902
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12903
echo $ECHO_N "(cached) $ECHO_C" >&6
12905
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
12907
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
12908
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
12911
if test $ac_cv_header_sys_sysmacros_h = yes; then
12913
cat >>confdefs.h <<\_ACEOF
12914
#define MAJOR_IN_SYSMACROS 1
12923
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12924
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12925
if test "${ac_cv_struct_tm+set}" = set; then
12926
echo $ECHO_N "(cached) $ECHO_C" >&6
12928
cat >conftest.$ac_ext <<_ACEOF
12931
cat confdefs.h >>conftest.$ac_ext
12932
cat >>conftest.$ac_ext <<_ACEOF
12933
/* end confdefs.h. */
12934
#include <sys/types.h>
12940
struct tm *tp; tp->tm_sec;
12945
rm -f conftest.$ac_objext
12946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947
(eval $ac_compile) 2>conftest.er1
12949
grep -v '^ *+' conftest.er1 >conftest.err
12951
cat conftest.err >&5
12952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953
(exit $ac_status); } &&
12954
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956
(eval $ac_try) 2>&5
12958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959
(exit $ac_status); }; } &&
12960
{ ac_try='test -s conftest.$ac_objext'
12961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962
(eval $ac_try) 2>&5
12964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965
(exit $ac_status); }; }; then
12966
ac_cv_struct_tm=time.h
12968
echo "$as_me: failed program was:" >&5
12969
sed 's/^/| /' conftest.$ac_ext >&5
12971
ac_cv_struct_tm=sys/time.h
12973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12976
echo "${ECHO_T}$ac_cv_struct_tm" >&6
12977
if test $ac_cv_struct_tm = sys/time.h; then
12979
cat >>confdefs.h <<\_ACEOF
12980
#define TM_IN_SYS_TIME 1
12986
# checks for library functions.
12987
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12988
# for constant arguments. Useless!
12989
echo "$as_me:$LINENO: checking for working alloca.h" >&5
12990
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12991
if test "${ac_cv_working_alloca_h+set}" = set; then
12992
echo $ECHO_N "(cached) $ECHO_C" >&6
12994
cat >conftest.$ac_ext <<_ACEOF
12997
cat confdefs.h >>conftest.$ac_ext
12998
cat >>conftest.$ac_ext <<_ACEOF
12999
/* end confdefs.h. */
13000
#include <alloca.h>
13004
char *p = (char *) alloca (2 * sizeof (int));
13009
rm -f conftest.$ac_objext conftest$ac_exeext
13010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011
(eval $ac_link) 2>conftest.er1
13013
grep -v '^ *+' conftest.er1 >conftest.err
13015
cat conftest.err >&5
13016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017
(exit $ac_status); } &&
13018
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020
(eval $ac_try) 2>&5
13022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023
(exit $ac_status); }; } &&
13024
{ ac_try='test -s conftest$ac_exeext'
13025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026
(eval $ac_try) 2>&5
13028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029
(exit $ac_status); }; }; then
13030
ac_cv_working_alloca_h=yes
13032
echo "$as_me: failed program was:" >&5
13033
sed 's/^/| /' conftest.$ac_ext >&5
13035
ac_cv_working_alloca_h=no
13037
rm -f conftest.err conftest.$ac_objext \
13038
conftest$ac_exeext conftest.$ac_ext
13040
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13041
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13042
if test $ac_cv_working_alloca_h = yes; then
13044
cat >>confdefs.h <<\_ACEOF
13045
#define HAVE_ALLOCA_H 1
13050
echo "$as_me:$LINENO: checking for alloca" >&5
13051
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13052
if test "${ac_cv_func_alloca_works+set}" = set; then
13053
echo $ECHO_N "(cached) $ECHO_C" >&6
13055
cat >conftest.$ac_ext <<_ACEOF
13058
cat confdefs.h >>conftest.$ac_ext
13059
cat >>conftest.$ac_ext <<_ACEOF
13060
/* end confdefs.h. */
13062
# define alloca __builtin_alloca
13065
# include <malloc.h>
13066
# define alloca _alloca
13069
# include <alloca.h>
13074
# ifndef alloca /* predefined by HP cc +Olibcalls */
13085
char *p = (char *) alloca (1);
13090
rm -f conftest.$ac_objext conftest$ac_exeext
13091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092
(eval $ac_link) 2>conftest.er1
13094
grep -v '^ *+' conftest.er1 >conftest.err
13096
cat conftest.err >&5
13097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098
(exit $ac_status); } &&
13099
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101
(eval $ac_try) 2>&5
13103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104
(exit $ac_status); }; } &&
13105
{ ac_try='test -s conftest$ac_exeext'
13106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107
(eval $ac_try) 2>&5
13109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110
(exit $ac_status); }; }; then
13111
ac_cv_func_alloca_works=yes
13113
echo "$as_me: failed program was:" >&5
13114
sed 's/^/| /' conftest.$ac_ext >&5
13116
ac_cv_func_alloca_works=no
13118
rm -f conftest.err conftest.$ac_objext \
13119
conftest$ac_exeext conftest.$ac_ext
13121
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13122
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13124
if test $ac_cv_func_alloca_works = yes; then
13126
cat >>confdefs.h <<\_ACEOF
13127
#define HAVE_ALLOCA 1
13131
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
13132
# that cause trouble. Some versions do not even contain alloca or
13133
# contain a buggy version. If you still want to use their alloca,
13134
# use ar to extract alloca.o from them instead of compiling alloca.c.
13136
ALLOCA=alloca.$ac_objext
13138
cat >>confdefs.h <<\_ACEOF
13143
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13144
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13145
if test "${ac_cv_os_cray+set}" = set; then
13146
echo $ECHO_N "(cached) $ECHO_C" >&6
13148
cat >conftest.$ac_ext <<_ACEOF
13151
cat confdefs.h >>conftest.$ac_ext
13152
cat >>conftest.$ac_ext <<_ACEOF
13153
/* end confdefs.h. */
13154
#if defined(CRAY) && ! defined(CRAY2)
13161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13162
$EGREP "webecray" >/dev/null 2>&1; then
13170
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13171
echo "${ECHO_T}$ac_cv_os_cray" >&6
13172
if test $ac_cv_os_cray = yes; then
13173
for ac_func in _getb67 GETB67 getb67; do
13174
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175
echo "$as_me:$LINENO: checking for $ac_func" >&5
13176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13177
if eval "test \"\${$as_ac_var+set}\" = set"; then
13178
echo $ECHO_N "(cached) $ECHO_C" >&6
13180
cat >conftest.$ac_ext <<_ACEOF
13183
cat confdefs.h >>conftest.$ac_ext
13184
cat >>conftest.$ac_ext <<_ACEOF
13185
/* end confdefs.h. */
13186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13188
#define $ac_func innocuous_$ac_func
13190
/* System header to define __stub macros and hopefully few prototypes,
13191
which can conflict with char $ac_func (); below.
13192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13193
<limits.h> exists even on freestanding compilers. */
13196
# include <limits.h>
13198
# include <assert.h>
13203
/* Override any gcc2 internal prototype to avoid an error. */
13208
/* We use char because int might match the return type of a gcc2
13209
builtin and then its argument prototype would still apply. */
13211
/* The GNU C library defines this for functions which it implements
13212
to always fail with ENOSYS. Some functions are actually named
13213
something starting with __ and the normal name is an alias. */
13214
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13217
char (*f) () = $ac_func;
13226
return f != $ac_func;
13231
rm -f conftest.$ac_objext conftest$ac_exeext
13232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13233
(eval $ac_link) 2>conftest.er1
13235
grep -v '^ *+' conftest.er1 >conftest.err
13237
cat conftest.err >&5
13238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239
(exit $ac_status); } &&
13240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242
(eval $ac_try) 2>&5
13244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245
(exit $ac_status); }; } &&
13246
{ ac_try='test -s conftest$ac_exeext'
13247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248
(eval $ac_try) 2>&5
13250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251
(exit $ac_status); }; }; then
13252
eval "$as_ac_var=yes"
13254
echo "$as_me: failed program was:" >&5
13255
sed 's/^/| /' conftest.$ac_ext >&5
13257
eval "$as_ac_var=no"
13259
rm -f conftest.err conftest.$ac_objext \
13260
conftest$ac_exeext conftest.$ac_ext
13262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13263
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13264
if test `eval echo '${'$as_ac_var'}'` = yes; then
13266
cat >>confdefs.h <<_ACEOF
13267
#define CRAY_STACKSEG_END $ac_func
13276
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13277
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13278
if test "${ac_cv_c_stack_direction+set}" = set; then
13279
echo $ECHO_N "(cached) $ECHO_C" >&6
13281
if test "$cross_compiling" = yes; then
13282
ac_cv_c_stack_direction=0
13284
cat >conftest.$ac_ext <<_ACEOF
13287
cat confdefs.h >>conftest.$ac_ext
13288
cat >>conftest.$ac_ext <<_ACEOF
13289
/* end confdefs.h. */
13291
find_stack_direction ()
13293
static char *addr = 0;
13298
return find_stack_direction ();
13301
return (&dummy > addr) ? 1 : -1;
13307
exit (find_stack_direction () < 0);
13310
rm -f conftest$ac_exeext
13311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312
(eval $ac_link) 2>&5
13314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317
(eval $ac_try) 2>&5
13319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320
(exit $ac_status); }; }; then
13321
ac_cv_c_stack_direction=1
13323
echo "$as_me: program exited with status $ac_status" >&5
13324
echo "$as_me: failed program was:" >&5
13325
sed 's/^/| /' conftest.$ac_ext >&5
13327
( exit $ac_status )
13328
ac_cv_c_stack_direction=-1
13330
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13334
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13336
cat >>confdefs.h <<_ACEOF
13337
#define STACK_DIRECTION $ac_cv_c_stack_direction
13344
for ac_func in vprintf
13346
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13347
echo "$as_me:$LINENO: checking for $ac_func" >&5
13348
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13349
if eval "test \"\${$as_ac_var+set}\" = set"; then
13350
echo $ECHO_N "(cached) $ECHO_C" >&6
13352
cat >conftest.$ac_ext <<_ACEOF
13355
cat confdefs.h >>conftest.$ac_ext
13356
cat >>conftest.$ac_ext <<_ACEOF
13357
/* end confdefs.h. */
13358
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13359
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13360
#define $ac_func innocuous_$ac_func
13362
/* System header to define __stub macros and hopefully few prototypes,
13363
which can conflict with char $ac_func (); below.
13364
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13365
<limits.h> exists even on freestanding compilers. */
13368
# include <limits.h>
13370
# include <assert.h>
13375
/* Override any gcc2 internal prototype to avoid an error. */
13380
/* We use char because int might match the return type of a gcc2
13381
builtin and then its argument prototype would still apply. */
13383
/* The GNU C library defines this for functions which it implements
13384
to always fail with ENOSYS. Some functions are actually named
13385
something starting with __ and the normal name is an alias. */
13386
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13389
char (*f) () = $ac_func;
13398
return f != $ac_func;
13403
rm -f conftest.$ac_objext conftest$ac_exeext
13404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405
(eval $ac_link) 2>conftest.er1
13407
grep -v '^ *+' conftest.er1 >conftest.err
13409
cat conftest.err >&5
13410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411
(exit $ac_status); } &&
13412
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414
(eval $ac_try) 2>&5
13416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417
(exit $ac_status); }; } &&
13418
{ ac_try='test -s conftest$ac_exeext'
13419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420
(eval $ac_try) 2>&5
13422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423
(exit $ac_status); }; }; then
13424
eval "$as_ac_var=yes"
13426
echo "$as_me: failed program was:" >&5
13427
sed 's/^/| /' conftest.$ac_ext >&5
13429
eval "$as_ac_var=no"
13431
rm -f conftest.err conftest.$ac_objext \
13432
conftest$ac_exeext conftest.$ac_ext
13434
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13435
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13436
if test `eval echo '${'$as_ac_var'}'` = yes; then
13437
cat >>confdefs.h <<_ACEOF
13438
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13441
echo "$as_me:$LINENO: checking for _doprnt" >&5
13442
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13443
if test "${ac_cv_func__doprnt+set}" = set; then
13444
echo $ECHO_N "(cached) $ECHO_C" >&6
13446
cat >conftest.$ac_ext <<_ACEOF
13449
cat confdefs.h >>conftest.$ac_ext
13450
cat >>conftest.$ac_ext <<_ACEOF
13451
/* end confdefs.h. */
13452
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13453
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13454
#define _doprnt innocuous__doprnt
13456
/* System header to define __stub macros and hopefully few prototypes,
13457
which can conflict with char _doprnt (); below.
13458
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13459
<limits.h> exists even on freestanding compilers. */
13462
# include <limits.h>
13464
# include <assert.h>
13469
/* Override any gcc2 internal prototype to avoid an error. */
13474
/* We use char because int might match the return type of a gcc2
13475
builtin and then its argument prototype would still apply. */
13477
/* The GNU C library defines this for functions which it implements
13478
to always fail with ENOSYS. Some functions are actually named
13479
something starting with __ and the normal name is an alias. */
13480
#if defined (__stub__doprnt) || defined (__stub____doprnt)
13483
char (*f) () = _doprnt;
13492
return f != _doprnt;
13497
rm -f conftest.$ac_objext conftest$ac_exeext
13498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499
(eval $ac_link) 2>conftest.er1
13501
grep -v '^ *+' conftest.er1 >conftest.err
13503
cat conftest.err >&5
13504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505
(exit $ac_status); } &&
13506
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508
(eval $ac_try) 2>&5
13510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511
(exit $ac_status); }; } &&
13512
{ ac_try='test -s conftest$ac_exeext'
13513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514
(eval $ac_try) 2>&5
13516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517
(exit $ac_status); }; }; then
13518
ac_cv_func__doprnt=yes
13520
echo "$as_me: failed program was:" >&5
13521
sed 's/^/| /' conftest.$ac_ext >&5
13523
ac_cv_func__doprnt=no
13525
rm -f conftest.err conftest.$ac_objext \
13526
conftest$ac_exeext conftest.$ac_ext
13528
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13529
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13530
if test $ac_cv_func__doprnt = yes; then
13532
cat >>confdefs.h <<\_ACEOF
13533
#define HAVE_DOPRNT 1
13543
for ac_header in stdlib.h
13545
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547
echo "$as_me:$LINENO: checking for $ac_header" >&5
13548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550
echo $ECHO_N "(cached) $ECHO_C" >&6
13552
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555
# Is the header compilable?
13556
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558
cat >conftest.$ac_ext <<_ACEOF
13561
cat confdefs.h >>conftest.$ac_ext
13562
cat >>conftest.$ac_ext <<_ACEOF
13563
/* end confdefs.h. */
13564
$ac_includes_default
13565
#include <$ac_header>
13567
rm -f conftest.$ac_objext
13568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569
(eval $ac_compile) 2>conftest.er1
13571
grep -v '^ *+' conftest.er1 >conftest.err
13573
cat conftest.err >&5
13574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575
(exit $ac_status); } &&
13576
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578
(eval $ac_try) 2>&5
13580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581
(exit $ac_status); }; } &&
13582
{ ac_try='test -s conftest.$ac_objext'
13583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584
(eval $ac_try) 2>&5
13586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587
(exit $ac_status); }; }; then
13588
ac_header_compiler=yes
13590
echo "$as_me: failed program was:" >&5
13591
sed 's/^/| /' conftest.$ac_ext >&5
13593
ac_header_compiler=no
13595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13597
echo "${ECHO_T}$ac_header_compiler" >&6
13599
# Is the header present?
13600
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13601
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13602
cat >conftest.$ac_ext <<_ACEOF
13605
cat confdefs.h >>conftest.$ac_ext
13606
cat >>conftest.$ac_ext <<_ACEOF
13607
/* end confdefs.h. */
13608
#include <$ac_header>
13610
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13611
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13613
grep -v '^ *+' conftest.er1 >conftest.err
13615
cat conftest.err >&5
13616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617
(exit $ac_status); } >/dev/null; then
13618
if test -s conftest.err; then
13619
ac_cpp_err=$ac_c_preproc_warn_flag
13620
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13627
if test -z "$ac_cpp_err"; then
13628
ac_header_preproc=yes
13630
echo "$as_me: failed program was:" >&5
13631
sed 's/^/| /' conftest.$ac_ext >&5
13633
ac_header_preproc=no
13635
rm -f conftest.err conftest.$ac_ext
13636
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13637
echo "${ECHO_T}$ac_header_preproc" >&6
13639
# So? What about this header?
13640
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13642
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13643
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13644
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13645
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13646
ac_header_preproc=yes
13649
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13650
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13651
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13652
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13653
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13654
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13655
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13656
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13657
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13658
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13659
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13660
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13663
## ------------------------------------------ ##
13664
## Report this to the AC_PACKAGE_NAME lists. ##
13665
## ------------------------------------------ ##
13668
sed "s/^/$as_me: WARNING: /" >&2
13671
echo "$as_me:$LINENO: checking for $ac_header" >&5
13672
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13673
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13674
echo $ECHO_N "(cached) $ECHO_C" >&6
13676
eval "$as_ac_Header=\$ac_header_preproc"
13678
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13679
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13682
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13683
cat >>confdefs.h <<_ACEOF
13684
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13691
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13692
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13693
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13694
echo $ECHO_N "(cached) $ECHO_C" >&6
13696
if test "$cross_compiling" = yes; then
13697
ac_cv_func_malloc_0_nonnull=no
13699
cat >conftest.$ac_ext <<_ACEOF
13702
cat confdefs.h >>conftest.$ac_ext
13703
cat >>conftest.$ac_ext <<_ACEOF
13704
/* end confdefs.h. */
13705
#if STDC_HEADERS || HAVE_STDLIB_H
13706
# include <stdlib.h>
13714
exit (malloc (0) ? 0 : 1);
13719
rm -f conftest$ac_exeext
13720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721
(eval $ac_link) 2>&5
13723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726
(eval $ac_try) 2>&5
13728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729
(exit $ac_status); }; }; then
13730
ac_cv_func_malloc_0_nonnull=yes
13732
echo "$as_me: program exited with status $ac_status" >&5
13733
echo "$as_me: failed program was:" >&5
13734
sed 's/^/| /' conftest.$ac_ext >&5
13736
( exit $ac_status )
13737
ac_cv_func_malloc_0_nonnull=no
13739
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13742
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13743
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13744
if test $ac_cv_func_malloc_0_nonnull = yes; then
13746
cat >>confdefs.h <<\_ACEOF
13747
#define HAVE_MALLOC 1
13751
cat >>confdefs.h <<\_ACEOF
13752
#define HAVE_MALLOC 0
13756
"malloc.$ac_objext" | \
13757
*" malloc.$ac_objext" | \
13758
"malloc.$ac_objext "* | \
13759
*" malloc.$ac_objext "* ) ;;
13760
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13764
cat >>confdefs.h <<\_ACEOF
13765
#define malloc rpl_malloc
13772
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13773
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
13774
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13775
echo $ECHO_N "(cached) $ECHO_C" >&6
13777
rm -f conftest.sym conftest.file
13778
echo >conftest.file
13779
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13780
if test "$cross_compiling" = yes; then
13781
ac_cv_func_lstat_dereferences_slashed_symlink=no
13783
cat >conftest.$ac_ext <<_ACEOF
13786
cat confdefs.h >>conftest.$ac_ext
13787
cat >>conftest.$ac_ext <<_ACEOF
13788
/* end confdefs.h. */
13789
$ac_includes_default
13794
/* Linux will dereference the symlink and fail.
13795
That is better in the sense that it means we will not
13796
have to compile and use the lstat wrapper. */
13797
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
13802
rm -f conftest$ac_exeext
13803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804
(eval $ac_link) 2>&5
13806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809
(eval $ac_try) 2>&5
13811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812
(exit $ac_status); }; }; then
13813
ac_cv_func_lstat_dereferences_slashed_symlink=yes
13815
echo "$as_me: program exited with status $ac_status" >&5
13816
echo "$as_me: failed program was:" >&5
13817
sed 's/^/| /' conftest.$ac_ext >&5
13819
( exit $ac_status )
13820
ac_cv_func_lstat_dereferences_slashed_symlink=no
13822
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13825
# If the `ln -s' command failed, then we probably don't even
13826
# have an lstat function.
13827
ac_cv_func_lstat_dereferences_slashed_symlink=no
13829
rm -f conftest.sym conftest.file
13832
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13833
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
13835
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13837
cat >>confdefs.h <<_ACEOF
13838
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13842
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13844
"lstat.$ac_objext" | \
13845
*" lstat.$ac_objext" | \
13846
"lstat.$ac_objext "* | \
13847
*" lstat.$ac_objext "* ) ;;
13848
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
13853
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13854
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13855
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13856
echo $ECHO_N "(cached) $ECHO_C" >&6
13858
if test "$cross_compiling" = yes; then
13859
ac_cv_func_stat_empty_string_bug=yes
13861
cat >conftest.$ac_ext <<_ACEOF
13864
cat confdefs.h >>conftest.$ac_ext
13865
cat >>conftest.$ac_ext <<_ACEOF
13866
/* end confdefs.h. */
13867
$ac_includes_default
13872
exit (stat ("", &sbuf) ? 1 : 0);
13877
rm -f conftest$ac_exeext
13878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879
(eval $ac_link) 2>&5
13881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884
(eval $ac_try) 2>&5
13886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887
(exit $ac_status); }; }; then
13888
ac_cv_func_stat_empty_string_bug=yes
13890
echo "$as_me: program exited with status $ac_status" >&5
13891
echo "$as_me: failed program was:" >&5
13892
sed 's/^/| /' conftest.$ac_ext >&5
13894
( exit $ac_status )
13895
ac_cv_func_stat_empty_string_bug=no
13897
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13900
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13901
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13902
if test $ac_cv_func_stat_empty_string_bug = yes; then
13904
"stat.$ac_objext" | \
13905
*" stat.$ac_objext" | \
13906
"stat.$ac_objext "* | \
13907
*" stat.$ac_objext "* ) ;;
13908
*) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13912
cat >>confdefs.h <<_ACEOF
13913
#define HAVE_STAT_EMPTY_STRING_BUG 1
13931
for ac_func in getcwd mkdir strstr strtol dup2 getwd memchr memset strrchr pow setlocale strcasecmp strchr
13933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13934
echo "$as_me:$LINENO: checking for $ac_func" >&5
13935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13936
if eval "test \"\${$as_ac_var+set}\" = set"; then
13937
echo $ECHO_N "(cached) $ECHO_C" >&6
13939
cat >conftest.$ac_ext <<_ACEOF
13942
cat confdefs.h >>conftest.$ac_ext
13943
cat >>conftest.$ac_ext <<_ACEOF
13944
/* end confdefs.h. */
13945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13946
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13947
#define $ac_func innocuous_$ac_func
13949
/* System header to define __stub macros and hopefully few prototypes,
13950
which can conflict with char $ac_func (); below.
13951
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13952
<limits.h> exists even on freestanding compilers. */
13955
# include <limits.h>
13957
# include <assert.h>
13962
/* Override any gcc2 internal prototype to avoid an error. */
13967
/* We use char because int might match the return type of a gcc2
13968
builtin and then its argument prototype would still apply. */
13970
/* The GNU C library defines this for functions which it implements
13971
to always fail with ENOSYS. Some functions are actually named
13972
something starting with __ and the normal name is an alias. */
13973
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13976
char (*f) () = $ac_func;
13985
return f != $ac_func;
13990
rm -f conftest.$ac_objext conftest$ac_exeext
13991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13992
(eval $ac_link) 2>conftest.er1
13994
grep -v '^ *+' conftest.er1 >conftest.err
13996
cat conftest.err >&5
13997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998
(exit $ac_status); } &&
13999
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001
(eval $ac_try) 2>&5
14003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004
(exit $ac_status); }; } &&
14005
{ ac_try='test -s conftest$ac_exeext'
14006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007
(eval $ac_try) 2>&5
14009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010
(exit $ac_status); }; }; then
14011
eval "$as_ac_var=yes"
14013
echo "$as_me: failed program was:" >&5
14014
sed 's/^/| /' conftest.$ac_ext >&5
14016
eval "$as_ac_var=no"
14018
rm -f conftest.err conftest.$ac_objext \
14019
conftest$ac_exeext conftest.$ac_ext
14021
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14022
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14023
if test `eval echo '${'$as_ac_var'}'` = yes; then
14024
cat >>confdefs.h <<_ACEOF
14025
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14033
echo "$as_me:$LINENO: checking for Win32" >&5
14034
echo $ECHO_N "checking for Win32... $ECHO_C" >&6
14036
*-*-mingw*) tilp_native_win32=yes ;;
14037
*-*-cygwin) tilp_native_win32=yes ;;
14038
*) tilp_native_win32=no ;;
14040
echo "$as_me:$LINENO: result: $tilp_native_win32" >&5
14041
echo "${ECHO_T}$tilp_native_win32" >&6
14044
if test "$tilp_native_win32" = "yes"; then
14052
# Ensure MSVC-compatible struct packing convention is used when
14053
# compiling for Win32 with gcc.
14054
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
14055
# gcc2 uses "-fnative-struct".
14056
if test x"$tilp_native_win32" = xyes; then
14057
if test x"$GCC" = xyes; then
14059
echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
14060
echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
14061
if test -z "$ac_cv_prog_CC"; then
14064
our_gcc="$ac_cv_prog_CC"
14066
case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
14068
if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
14069
msnative_struct='-fnative-struct'
14073
if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
14074
msnative_struct='-mms-bitfields'
14078
if test x"$msnative_struct" = x ; then
14079
echo "$as_me:$LINENO: result: no way" >&5
14080
echo "${ECHO_T}no way" >&6
14081
{ echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
14082
echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
14084
CFLAGS="$CFLAGS $msnative_struct"
14085
echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
14086
echo "${ECHO_T}${msnative_struct}" >&6
14095
*-*-mingw*) ARCH="-D__WIN32__ -D__MINGW32__ -Os -s" ;;
14096
*-*-cygwin) ARCH="-D__WIN32__ -D__CYGWIN__ -mno-cygwin" ;;
14097
*-*-*bsd*) ARCH="-D__BSD__" ;;
14098
*) ARCH="-D__LINUX__" ;;
14101
# check for ticables presence
14105
if test -z "$PKG_CONFIG"; then
14106
# Extract the first word of "pkg-config", so it can be a program name with args.
14107
set dummy pkg-config; ac_word=$2
14108
echo "$as_me:$LINENO: checking for $ac_word" >&5
14109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14110
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14111
echo $ECHO_N "(cached) $ECHO_C" >&6
14113
case $PKG_CONFIG in
14115
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119
for as_dir in $PATH
14122
test -z "$as_dir" && as_dir=.
14123
for ac_exec_ext in '' $ac_executable_extensions; do
14124
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14125
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14126
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14132
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14136
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14138
if test -n "$PKG_CONFIG"; then
14139
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14140
echo "${ECHO_T}$PKG_CONFIG" >&6
14142
echo "$as_me:$LINENO: result: no" >&5
14143
echo "${ECHO_T}no" >&6
14148
if test "$PKG_CONFIG" = "no" ; then
14149
echo "*** The pkg-config script could not be found. Make sure it is"
14150
echo "*** in your path, or set the PKG_CONFIG environment variable"
14151
echo "*** to the full path to pkg-config."
14152
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14154
PKG_CONFIG_MIN_VERSION=0.9.0
14155
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14156
echo "$as_me:$LINENO: checking for ticables >= 3.8.0" >&5
14157
echo $ECHO_N "checking for ticables >= 3.8.0... $ECHO_C" >&6
14159
if $PKG_CONFIG --exists "ticables >= 3.8.0" ; then
14160
echo "$as_me:$LINENO: result: yes" >&5
14161
echo "${ECHO_T}yes" >&6
14164
echo "$as_me:$LINENO: checking TICABLES_CFLAGS" >&5
14165
echo $ECHO_N "checking TICABLES_CFLAGS... $ECHO_C" >&6
14166
TICABLES_CFLAGS=`$PKG_CONFIG --cflags "ticables >= 3.8.0"`
14167
echo "$as_me:$LINENO: result: $TICABLES_CFLAGS" >&5
14168
echo "${ECHO_T}$TICABLES_CFLAGS" >&6
14170
echo "$as_me:$LINENO: checking TICABLES_LIBS" >&5
14171
echo $ECHO_N "checking TICABLES_LIBS... $ECHO_C" >&6
14172
TICABLES_LIBS=`$PKG_CONFIG --libs "ticables >= 3.8.0"`
14173
echo "$as_me:$LINENO: result: $TICABLES_LIBS" >&5
14174
echo "${ECHO_T}$TICABLES_LIBS" >&6
14178
## If we have a custom action on failure, don't print errors, but
14179
## do set a variable so people can do so.
14180
TICABLES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ticables >= 3.8.0"`
14181
echo $TICABLES_PKG_ERRORS
14187
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14188
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14192
if test $succeeded = yes; then
14195
{ { echo "$as_me:$LINENO: error: Library requirements (ticables >= 3.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14196
echo "$as_me: error: Library requirements (ticables >= 3.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14197
{ (exit 1); exit 1; }; }
14203
# check for tifiles presence
14207
if test -z "$PKG_CONFIG"; then
14208
# Extract the first word of "pkg-config", so it can be a program name with args.
14209
set dummy pkg-config; ac_word=$2
14210
echo "$as_me:$LINENO: checking for $ac_word" >&5
14211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14212
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14213
echo $ECHO_N "(cached) $ECHO_C" >&6
14215
case $PKG_CONFIG in
14217
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221
for as_dir in $PATH
14224
test -z "$as_dir" && as_dir=.
14225
for ac_exec_ext in '' $ac_executable_extensions; do
14226
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14227
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14234
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14238
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14240
if test -n "$PKG_CONFIG"; then
14241
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14242
echo "${ECHO_T}$PKG_CONFIG" >&6
14244
echo "$as_me:$LINENO: result: no" >&5
14245
echo "${ECHO_T}no" >&6
14250
if test "$PKG_CONFIG" = "no" ; then
14251
echo "*** The pkg-config script could not be found. Make sure it is"
14252
echo "*** in your path, or set the PKG_CONFIG environment variable"
14253
echo "*** to the full path to pkg-config."
14254
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14256
PKG_CONFIG_MIN_VERSION=0.9.0
14257
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14258
echo "$as_me:$LINENO: checking for tifiles >= 0.5.7" >&5
14259
echo $ECHO_N "checking for tifiles >= 0.5.7... $ECHO_C" >&6
14261
if $PKG_CONFIG --exists "tifiles >= 0.5.7" ; then
14262
echo "$as_me:$LINENO: result: yes" >&5
14263
echo "${ECHO_T}yes" >&6
14266
echo "$as_me:$LINENO: checking TIFILES_CFLAGS" >&5
14267
echo $ECHO_N "checking TIFILES_CFLAGS... $ECHO_C" >&6
14268
TIFILES_CFLAGS=`$PKG_CONFIG --cflags "tifiles >= 0.5.7"`
14269
echo "$as_me:$LINENO: result: $TIFILES_CFLAGS" >&5
14270
echo "${ECHO_T}$TIFILES_CFLAGS" >&6
14272
echo "$as_me:$LINENO: checking TIFILES_LIBS" >&5
14273
echo $ECHO_N "checking TIFILES_LIBS... $ECHO_C" >&6
14274
TIFILES_LIBS=`$PKG_CONFIG --libs "tifiles >= 0.5.7"`
14275
echo "$as_me:$LINENO: result: $TIFILES_LIBS" >&5
14276
echo "${ECHO_T}$TIFILES_LIBS" >&6
14280
## If we have a custom action on failure, don't print errors, but
14281
## do set a variable so people can do so.
14282
TIFILES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tifiles >= 0.5.7"`
14283
echo $TIFILES_PKG_ERRORS
14289
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14290
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14294
if test $succeeded = yes; then
14297
{ { echo "$as_me:$LINENO: error: Library requirements (tifiles >= 0.5.7) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14298
echo "$as_me: error: Library requirements (tifiles >= 0.5.7) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14299
{ (exit 1); exit 1; }; }
14305
# check for ticalcs presence
14309
if test -z "$PKG_CONFIG"; then
14310
# Extract the first word of "pkg-config", so it can be a program name with args.
14311
set dummy pkg-config; ac_word=$2
14312
echo "$as_me:$LINENO: checking for $ac_word" >&5
14313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14314
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14315
echo $ECHO_N "(cached) $ECHO_C" >&6
14317
case $PKG_CONFIG in
14319
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323
for as_dir in $PATH
14326
test -z "$as_dir" && as_dir=.
14327
for ac_exec_ext in '' $ac_executable_extensions; do
14328
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14329
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14330
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14336
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14340
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14342
if test -n "$PKG_CONFIG"; then
14343
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14344
echo "${ECHO_T}$PKG_CONFIG" >&6
14346
echo "$as_me:$LINENO: result: no" >&5
14347
echo "${ECHO_T}no" >&6
14352
if test "$PKG_CONFIG" = "no" ; then
14353
echo "*** The pkg-config script could not be found. Make sure it is"
14354
echo "*** in your path, or set the PKG_CONFIG environment variable"
14355
echo "*** to the full path to pkg-config."
14356
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14358
PKG_CONFIG_MIN_VERSION=0.9.0
14359
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14360
echo "$as_me:$LINENO: checking for ticalcs >= 4.5.2" >&5
14361
echo $ECHO_N "checking for ticalcs >= 4.5.2... $ECHO_C" >&6
14363
if $PKG_CONFIG --exists "ticalcs >= 4.5.2" ; then
14364
echo "$as_me:$LINENO: result: yes" >&5
14365
echo "${ECHO_T}yes" >&6
14368
echo "$as_me:$LINENO: checking TICALCS_CFLAGS" >&5
14369
echo $ECHO_N "checking TICALCS_CFLAGS... $ECHO_C" >&6
14370
TICALCS_CFLAGS=`$PKG_CONFIG --cflags "ticalcs >= 4.5.2"`
14371
echo "$as_me:$LINENO: result: $TICALCS_CFLAGS" >&5
14372
echo "${ECHO_T}$TICALCS_CFLAGS" >&6
14374
echo "$as_me:$LINENO: checking TICALCS_LIBS" >&5
14375
echo $ECHO_N "checking TICALCS_LIBS... $ECHO_C" >&6
14376
TICALCS_LIBS=`$PKG_CONFIG --libs "ticalcs >= 4.5.2"`
14377
echo "$as_me:$LINENO: result: $TICALCS_LIBS" >&5
14378
echo "${ECHO_T}$TICALCS_LIBS" >&6
14382
## If we have a custom action on failure, don't print errors, but
14383
## do set a variable so people can do so.
14384
TICALCS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ticalcs >= 4.5.2"`
14385
echo $TICALCS_PKG_ERRORS
14391
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14392
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14396
if test $succeeded = yes; then
14399
{ { echo "$as_me:$LINENO: error: Library requirements (ticalcs >= 4.5.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14400
echo "$as_me: error: Library requirements (ticalcs >= 4.5.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14401
{ (exit 1); exit 1; }; }
14407
# check for glib presence
14411
if test -z "$PKG_CONFIG"; then
14412
# Extract the first word of "pkg-config", so it can be a program name with args.
14413
set dummy pkg-config; ac_word=$2
14414
echo "$as_me:$LINENO: checking for $ac_word" >&5
14415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14416
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14417
echo $ECHO_N "(cached) $ECHO_C" >&6
14419
case $PKG_CONFIG in
14421
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425
for as_dir in $PATH
14428
test -z "$as_dir" && as_dir=.
14429
for ac_exec_ext in '' $ac_executable_extensions; do
14430
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14431
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14432
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14438
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14442
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14444
if test -n "$PKG_CONFIG"; then
14445
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14446
echo "${ECHO_T}$PKG_CONFIG" >&6
14448
echo "$as_me:$LINENO: result: no" >&5
14449
echo "${ECHO_T}no" >&6
14454
if test "$PKG_CONFIG" = "no" ; then
14455
echo "*** The pkg-config script could not be found. Make sure it is"
14456
echo "*** in your path, or set the PKG_CONFIG environment variable"
14457
echo "*** to the full path to pkg-config."
14458
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14460
PKG_CONFIG_MIN_VERSION=0.9.0
14461
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14462
echo "$as_me:$LINENO: checking for glib-2.0 >= 2.0.0" >&5
14463
echo $ECHO_N "checking for glib-2.0 >= 2.0.0... $ECHO_C" >&6
14465
if $PKG_CONFIG --exists "glib-2.0 >= 2.0.0" ; then
14466
echo "$as_me:$LINENO: result: yes" >&5
14467
echo "${ECHO_T}yes" >&6
14470
echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14471
echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14472
GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.0"`
14473
echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14474
echo "${ECHO_T}$GLIB_CFLAGS" >&6
14476
echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14477
echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14478
GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.0"`
14479
echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14480
echo "${ECHO_T}$GLIB_LIBS" >&6
14484
## If we have a custom action on failure, don't print errors, but
14485
## do set a variable so people can do so.
14486
GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
14487
echo $GLIB_PKG_ERRORS
14493
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14494
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14498
if test $succeeded = yes; then
14501
{ { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14502
echo "$as_me: error: Library requirements (glib-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14503
{ (exit 1); exit 1; }; }
14509
# check for gdk-pixbuf presence
14510
#PKG_CHECK_MODULES(GLIB, gdk_pixbuf-2.0 >= 2.0.0)
14511
#AC_SUBST(GLIB_CFLAGS)
14512
#AC_SUBST(GLIB_LIBS)
14514
# check for gtk presence
14518
if test -z "$PKG_CONFIG"; then
14519
# Extract the first word of "pkg-config", so it can be a program name with args.
14520
set dummy pkg-config; ac_word=$2
14521
echo "$as_me:$LINENO: checking for $ac_word" >&5
14522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14523
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14524
echo $ECHO_N "(cached) $ECHO_C" >&6
14526
case $PKG_CONFIG in
14528
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14532
for as_dir in $PATH
14535
test -z "$as_dir" && as_dir=.
14536
for ac_exec_ext in '' $ac_executable_extensions; do
14537
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14538
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14539
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14545
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14549
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14551
if test -n "$PKG_CONFIG"; then
14552
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14553
echo "${ECHO_T}$PKG_CONFIG" >&6
14555
echo "$as_me:$LINENO: result: no" >&5
14556
echo "${ECHO_T}no" >&6
14561
if test "$PKG_CONFIG" = "no" ; then
14562
echo "*** The pkg-config script could not be found. Make sure it is"
14563
echo "*** in your path, or set the PKG_CONFIG environment variable"
14564
echo "*** to the full path to pkg-config."
14565
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14567
PKG_CONFIG_MIN_VERSION=0.9.0
14568
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14569
echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0" >&5
14570
echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0... $ECHO_C" >&6
14572
if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0" ; then
14573
echo "$as_me:$LINENO: result: yes" >&5
14574
echo "${ECHO_T}yes" >&6
14577
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14578
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14579
GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"`
14580
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14581
echo "${ECHO_T}$GTK_CFLAGS" >&6
14583
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14584
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14585
GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"`
14586
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14587
echo "${ECHO_T}$GTK_LIBS" >&6
14591
## If we have a custom action on failure, don't print errors, but
14592
## do set a variable so people can do so.
14593
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
14594
echo $GTK_PKG_ERRORS
14600
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14601
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14605
if test $succeeded = yes; then
14608
{ { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14609
echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14610
{ (exit 1); exit 1; }; }
14616
# check for libglade presence
14620
if test -z "$PKG_CONFIG"; then
14621
# Extract the first word of "pkg-config", so it can be a program name with args.
14622
set dummy pkg-config; ac_word=$2
14623
echo "$as_me:$LINENO: checking for $ac_word" >&5
14624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14625
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14626
echo $ECHO_N "(cached) $ECHO_C" >&6
14628
case $PKG_CONFIG in
14630
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634
for as_dir in $PATH
14637
test -z "$as_dir" && as_dir=.
14638
for ac_exec_ext in '' $ac_executable_extensions; do
14639
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14641
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14647
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14651
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14653
if test -n "$PKG_CONFIG"; then
14654
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14655
echo "${ECHO_T}$PKG_CONFIG" >&6
14657
echo "$as_me:$LINENO: result: no" >&5
14658
echo "${ECHO_T}no" >&6
14663
if test "$PKG_CONFIG" = "no" ; then
14664
echo "*** The pkg-config script could not be found. Make sure it is"
14665
echo "*** in your path, or set the PKG_CONFIG environment variable"
14666
echo "*** to the full path to pkg-config."
14667
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14669
PKG_CONFIG_MIN_VERSION=0.9.0
14670
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14671
echo "$as_me:$LINENO: checking for libglade-2.0 >= 1.99.0" >&5
14672
echo $ECHO_N "checking for libglade-2.0 >= 1.99.0... $ECHO_C" >&6
14674
if $PKG_CONFIG --exists "libglade-2.0 >= 1.99.0" ; then
14675
echo "$as_me:$LINENO: result: yes" >&5
14676
echo "${ECHO_T}yes" >&6
14679
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14680
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14681
GTK_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 1.99.0"`
14682
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14683
echo "${ECHO_T}$GTK_CFLAGS" >&6
14685
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14686
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14687
GTK_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 1.99.0"`
14688
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14689
echo "${ECHO_T}$GTK_LIBS" >&6
14693
## If we have a custom action on failure, don't print errors, but
14694
## do set a variable so people can do so.
14695
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 1.99.0"`
14696
echo $GTK_PKG_ERRORS
14702
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14703
echo "*** See http://www.freedesktop.org/software/pkgconfig"
14707
if test $succeeded = yes; then
14710
{ { echo "$as_me:$LINENO: error: Library requirements (libglade-2.0 >= 1.99.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14711
echo "$as_me: error: Library requirements (libglade-2.0 >= 1.99.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14712
{ (exit 1); exit 1; }; }
14718
CFLAGS="$CFLAGS $TICABLES_CFLAGS $TIFILES_CFLAGS $TICALCS_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS"
14719
LDFLAGS="$LDFLAGS $TICABLES_LIBS $TIFILES_LIBS $TICALCS_LIBS $GLIB_LIBS $GTK_LIBS"
14721
# initialize libtool
14722
# Check whether --enable-static or --disable-static was given.
14723
if test "${enable_static+set}" = set; then
14724
enableval="$enable_static"
14725
p=${PACKAGE-default}
14727
yes) enable_static=yes ;;
14728
no) enable_static=no ;;
14731
# Look at the argument we got. We use all the common list separators.
14732
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14733
for pkg in $enableval; do
14735
if test "X$pkg" = "X$p"; then
14749
# Check whether --enable-shared or --disable-shared was given.
14750
if test "${enable_shared+set}" = set; then
14751
enableval="$enable_shared"
14752
p=${PACKAGE-default}
14754
yes) enable_shared=yes ;;
14755
no) enable_shared=no ;;
14758
# Look at the argument we got. We use all the common list separators.
14759
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14760
for pkg in $enableval; do
14762
if test "X$pkg" = "X$p"; then
14773
# Check whether --enable-fast-install or --disable-fast-install was given.
14774
if test "${enable_fast_install+set}" = set; then
14775
enableval="$enable_fast_install"
14776
p=${PACKAGE-default}
14778
yes) enable_fast_install=yes ;;
14779
no) enable_fast_install=no ;;
14781
enable_fast_install=no
14782
# Look at the argument we got. We use all the common list separators.
14783
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14784
for pkg in $enableval; do
14786
if test "X$pkg" = "X$p"; then
14787
enable_fast_install=yes
14794
enable_fast_install=yes
14797
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14798
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14799
if test "${lt_cv_path_SED+set}" = set; then
14800
echo $ECHO_N "(cached) $ECHO_C" >&6
14802
# Loop through the user's path and test for sed and gsed.
14803
# Then use that list of sed's as ones to test for truncation.
14804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805
for as_dir in $PATH
14808
test -z "$as_dir" && as_dir=.
14809
for lt_ac_prog in sed gsed; do
14810
for ac_exec_ext in '' $ac_executable_extensions; do
14811
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14812
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14819
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
14820
# along with /bin/sed that truncates output.
14821
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14822
test ! -f $lt_ac_sed && break
14823
cat /dev/null > conftest.in
14825
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14826
# Check for GNU sed and select it if it is found.
14827
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14828
lt_cv_path_SED=$lt_ac_sed
14832
cat conftest.in conftest.in >conftest.tmp
14833
mv conftest.tmp conftest.in
14834
cp conftest.in conftest.nl
14836
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14837
cmp -s conftest.out conftest.nl || break
14838
# 10000 chars as input seems more than enough
14839
test $lt_ac_count -gt 10 && break
14840
lt_ac_count=`expr $lt_ac_count + 1`
14841
if test $lt_ac_count -gt $lt_ac_max; then
14842
lt_ac_max=$lt_ac_count
14843
lt_cv_path_SED=$lt_ac_sed
14847
SED=$lt_cv_path_SED
14851
echo "$as_me:$LINENO: result: $SED" >&5
14852
echo "${ECHO_T}$SED" >&6
14855
# Check whether --with-gnu-ld or --without-gnu-ld was given.
14856
if test "${with_gnu_ld+set}" = set; then
14857
withval="$with_gnu_ld"
14858
test "$withval" = no || with_gnu_ld=yes
14863
if test "$GCC" = yes; then
14864
# Check if gcc -print-prog-name=ld gives a path.
14865
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14866
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14869
# gcc leaves a trailing carriage return which upsets mingw
14870
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14872
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14875
# Accept absolute paths.
14877
re_direlt='/[^/][^/]*/\.\./'
14878
# Canonicalize the pathname of ld
14879
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14880
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14881
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14883
test -z "$LD" && LD="$ac_prog"
14886
# If it fails, then pretend we aren't using GCC.
14890
# If it is relative, then search for the first ld in PATH.
14891
with_gnu_ld=unknown
14894
elif test "$with_gnu_ld" = yes; then
14895
echo "$as_me:$LINENO: checking for GNU ld" >&5
14896
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14898
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2109
14899
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2111
14901
if test "${lt_cv_path_LD+set}" = set; then
2112
14902
echo $ECHO_N "(cached) $ECHO_C" >&6
2114
14904
if test -z "$LD"; then
2115
IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14905
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2116
14906
for ac_dir in $PATH; do
2117
14907
IFS="$lt_save_ifs"
2118
14908
test -z "$ac_dir" && ac_dir=.
9538
# If there is no Makefile yet, we rely on a make rule to execute
9539
# `config.status --recheck' to rerun these tests and create the
9540
# libtool script then.
9541
test -f Makefile && make "$ltmain"
23902
# If there is no Makefile yet, we rely on a make rule to execute
23903
# `config.status --recheck' to rerun these tests and create the
23904
# libtool script then.
23905
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23906
if test -f "$ltmain_in"; then
23907
test -f Makefile && make "$ltmain"
23913
ac_cpp='$CPP $CPPFLAGS'
23914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23922
with_gnu_ldcxx=$with_gnu_ld
23923
with_gnu_ld=$lt_save_with_gnu_ld
23924
lt_cv_path_LDCXX=$lt_cv_path_LD
23925
lt_cv_path_LD=$lt_save_path_LD
23926
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23927
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23935
if test -n "$F77" && test "X$F77" != "Xno"; then
23938
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23939
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23943
archive_cmds_need_lc_F77=no
23944
allow_undefined_flag_F77=
23945
always_export_symbols_F77=no
23946
archive_expsym_cmds_F77=
23947
export_dynamic_flag_spec_F77=
23948
hardcode_direct_F77=no
23949
hardcode_libdir_flag_spec_F77=
23950
hardcode_libdir_flag_spec_ld_F77=
23951
hardcode_libdir_separator_F77=
23952
hardcode_minus_L_F77=no
23953
hardcode_automatic_F77=no
23955
module_expsym_cmds_F77=
23956
link_all_deplibs_F77=unknown
23957
old_archive_cmds_F77=$old_archive_cmds
23958
no_undefined_flag_F77=
23959
whole_archive_flag_spec_F77=
23960
enable_shared_with_static_runtimes_F77=no
23962
# Source file extension for f77 test sources.
23965
# Object file extension for compiled f77 test sources.
23969
# Code to be used in simple compile tests
23970
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
23972
# Code to be used in simple link tests
23973
lt_simple_link_test_code=" program t\n end\n"
23975
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23977
# If no C compiler was specified, use CC.
23980
# Allow CC to be a program name with arguments.
23984
# Allow CC to be a program name with arguments.
23989
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
23991
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23992
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23993
echo "$as_me:$LINENO: result: $can_build_shared" >&5
23994
echo "${ECHO_T}$can_build_shared" >&6
23996
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23997
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23998
test "$can_build_shared" = "no" && enable_shared=no
24000
# On AIX, shared libraries and static libraries use the same namespace, and
24001
# are all built from PIC.
24004
test "$enable_shared" = yes && enable_static=no
24005
if test -n "$RANLIB"; then
24006
archive_cmds="$archive_cmds~\$RANLIB \$lib"
24007
postinstall_cmds='$RANLIB $lib'
24011
test "$enable_shared" = yes && enable_static=no
24014
echo "$as_me:$LINENO: result: $enable_shared" >&5
24015
echo "${ECHO_T}$enable_shared" >&6
24017
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24018
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24019
# Make sure either enable_shared or enable_static is yes.
24020
test "$enable_shared" = yes || enable_static=yes
24021
echo "$as_me:$LINENO: result: $enable_static" >&5
24022
echo "${ECHO_T}$enable_static" >&6
24024
test "$ld_shlibs_F77" = no && can_build_shared=no
24029
lt_prog_compiler_wl_F77=
24030
lt_prog_compiler_pic_F77=
24031
lt_prog_compiler_static_F77=
24033
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24034
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24036
if test "$GCC" = yes; then
24037
lt_prog_compiler_wl_F77='-Wl,'
24038
lt_prog_compiler_static_F77='-static'
24042
# All AIX code is PIC.
24043
if test "$host_cpu" = ia64; then
24044
# AIX 5 now supports IA64 processor
24045
lt_prog_compiler_static_F77='-Bstatic'
24050
# FIXME: we need at least 68020 code to build shared libraries, but
24051
# adding the `-m68020' flag to GCC prevents building anything better,
24053
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24056
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24057
# PIC is the default for these OSes.
24060
mingw* | pw32* | os2*)
24061
# This hack is so that the source file can tell whether it is being
24062
# built for inclusion in a dll (and should export symbols for example).
24063
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24066
darwin* | rhapsody*)
24067
# PIC is the default on this platform
24068
# Common symbols not allowed in MH_DYLIB files
24069
lt_prog_compiler_pic_F77='-fno-common'
24073
# Just because we use GCC doesn't mean we suddenly get shared libraries
24074
# on systems that don't support them.
24075
lt_prog_compiler_can_build_shared_F77=no
24080
if test -d /usr/nec; then
24081
lt_prog_compiler_pic_F77=-Kconform_pic
24086
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24087
# not for PA HP-UX.
24088
case "$host_cpu" in
24093
lt_prog_compiler_pic_F77='-fPIC'
24099
lt_prog_compiler_pic_F77='-fPIC'
24103
# PORTME Check for flag to pass linker flags through the system compiler.
24106
lt_prog_compiler_wl_F77='-Wl,'
24107
if test "$host_cpu" = ia64; then
24108
# AIX 5 now supports IA64 processor
24109
lt_prog_compiler_static_F77='-Bstatic'
24111
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24115
mingw* | pw32* | os2*)
24116
# This hack is so that the source file can tell whether it is being
24117
# built for inclusion in a dll (and should export symbols for example).
24118
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24121
hpux9* | hpux10* | hpux11*)
24122
lt_prog_compiler_wl_F77='-Wl,'
24123
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24124
# not for PA HP-UX.
24125
case "$host_cpu" in
24130
lt_prog_compiler_pic_F77='+Z'
24133
# Is there a better lt_prog_compiler_static that works with the bundled CC?
24134
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24137
irix5* | irix6* | nonstopux*)
24138
lt_prog_compiler_wl_F77='-Wl,'
24139
# PIC (with -KPIC) is the default.
24140
lt_prog_compiler_static_F77='-non_shared'
24144
lt_prog_compiler_pic_F77='-KPIC'
24145
lt_prog_compiler_static_F77='-Bstatic'
24151
lt_prog_compiler_wl_F77='-Wl,'
24152
lt_prog_compiler_pic_F77='-KPIC'
24153
lt_prog_compiler_static_F77='-static'
24156
lt_prog_compiler_wl_F77='-Wl,'
24157
# All Alpha code is PIC.
24158
lt_prog_compiler_static_F77='-non_shared'
24163
osf3* | osf4* | osf5*)
24164
lt_prog_compiler_wl_F77='-Wl,'
24165
# All OSF/1 code is PIC.
24166
lt_prog_compiler_static_F77='-non_shared'
24170
lt_prog_compiler_pic_F77='-Kpic'
24171
lt_prog_compiler_static_F77='-dn'
24175
lt_prog_compiler_wl_F77='-Wl,'
24176
lt_prog_compiler_pic_F77='-KPIC'
24177
lt_prog_compiler_static_F77='-Bstatic'
24181
lt_prog_compiler_wl_F77='-Qoption ld '
24182
lt_prog_compiler_pic_F77='-PIC'
24183
lt_prog_compiler_static_F77='-Bstatic'
24186
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24187
lt_prog_compiler_wl_F77='-Wl,'
24188
lt_prog_compiler_pic_F77='-KPIC'
24189
lt_prog_compiler_static_F77='-Bstatic'
24193
if test -d /usr/nec ;then
24194
lt_prog_compiler_pic_F77='-Kconform_pic'
24195
lt_prog_compiler_static_F77='-Bstatic'
24200
lt_prog_compiler_pic_F77='-pic'
24201
lt_prog_compiler_static_F77='-Bstatic'
24205
lt_prog_compiler_can_build_shared_F77=no
24210
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24211
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24214
# Check to make sure the PIC flag actually works.
24216
if test -n "$lt_prog_compiler_pic_F77"; then
24218
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24219
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24220
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24221
echo $ECHO_N "(cached) $ECHO_C" >&6
24223
lt_prog_compiler_pic_works_F77=no
24224
ac_outfile=conftest.$ac_objext
24225
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24226
lt_compiler_flag="$lt_prog_compiler_pic_F77"
24227
# Insert the option either (1) after the last *FLAGS variable, or
24228
# (2) before a word containing "conftest.", or (3) at the end.
24229
# Note that $ac_compile itself does not contain backslashes and begins
24230
# with a dollar sign (not a hyphen), so the echo should work correctly.
24231
# The option is referenced via a variable to avoid confusing sed.
24232
lt_compile=`echo "$ac_compile" | $SED \
24233
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
24234
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24235
-e 's:$: $lt_compiler_flag:'`
24236
(eval echo "\"\$as_me:24236: $lt_compile\"" >&5)
24237
(eval "$lt_compile" 2>conftest.err)
24239
cat conftest.err >&5
24240
echo "$as_me:24240: \$? = $ac_status" >&5
24241
if (exit $ac_status) && test -s "$ac_outfile"; then
24242
# The compiler can only warn and ignore the option if not recognized
24243
# So say no if there are warnings
24244
if test ! -s conftest.err; then
24245
lt_prog_compiler_pic_works_F77=yes
24251
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24252
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24254
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24255
case $lt_prog_compiler_pic_F77 in
24257
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24260
lt_prog_compiler_pic_F77=
24261
lt_prog_compiler_can_build_shared_F77=no
24266
# For platforms which do not support PIC, -DPIC is meaningless:
24268
lt_prog_compiler_pic_F77=
24271
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24275
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24276
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24277
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24278
echo $ECHO_N "(cached) $ECHO_C" >&6
24280
lt_cv_prog_compiler_c_o_F77=no
24281
$rm -r conftest 2>/dev/null
24285
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24287
lt_compiler_flag="-o out/conftest2.$ac_objext"
24288
# Insert the option either (1) after the last *FLAGS variable, or
24289
# (2) before a word containing "conftest.", or (3) at the end.
24290
# Note that $ac_compile itself does not contain backslashes and begins
24291
# with a dollar sign (not a hyphen), so the echo should work correctly.
24292
lt_compile=`echo "$ac_compile" | $SED \
24293
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
24294
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24295
-e 's:$: $lt_compiler_flag:'`
24296
(eval echo "\"\$as_me:24296: $lt_compile\"" >&5)
24297
(eval "$lt_compile" 2>out/conftest.err)
24299
cat out/conftest.err >&5
24300
echo "$as_me:24300: \$? = $ac_status" >&5
24301
if (exit $ac_status) && test -s out/conftest2.$ac_objext
24303
# The compiler can only warn and ignore the option if not recognized
24304
# So say no if there are warnings
24305
if test ! -s out/conftest.err; then
24306
lt_cv_prog_compiler_c_o_F77=yes
24311
# SGI C++ compiler will create directory out/ii_files/ for
24312
# template instantiation
24313
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24314
$rm out/* && rmdir out
24320
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24321
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24324
hard_links="nottested"
24325
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24326
# do not overwrite the value of need_locks provided by the user
24327
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24328
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24331
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24333
ln conftest.a conftest.b 2>&5 || hard_links=no
24334
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24335
echo "$as_me:$LINENO: result: $hard_links" >&5
24336
echo "${ECHO_T}$hard_links" >&6
24337
if test "$hard_links" = no; then
24338
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24339
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24346
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24347
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24350
allow_undefined_flag_F77=
24351
enable_shared_with_static_runtimes_F77=no
24353
archive_expsym_cmds_F77=
24354
old_archive_From_new_cmds_F77=
24355
old_archive_from_expsyms_cmds_F77=
24356
export_dynamic_flag_spec_F77=
24357
whole_archive_flag_spec_F77=
24358
thread_safe_flag_spec_F77=
24359
hardcode_libdir_flag_spec_F77=
24360
hardcode_libdir_flag_spec_ld_F77=
24361
hardcode_libdir_separator_F77=
24362
hardcode_direct_F77=no
24363
hardcode_minus_L_F77=no
24364
hardcode_shlibpath_var_F77=unsupported
24365
link_all_deplibs_F77=unknown
24366
hardcode_automatic_F77=no
24368
module_expsym_cmds_F77=
24369
always_export_symbols_F77=no
24370
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24371
# include_expsyms should be a list of space-separated symbols to be *always*
24372
# included in the symbol list
24373
include_expsyms_F77=
24374
# exclude_expsyms can be an extended regexp of symbols to exclude
24375
# it will be wrapped by ` (' and `)$', so one must not match beginning or
24376
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24377
# as well as any symbol that contains `d'.
24378
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24379
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24380
# platforms (ab)use it in PIC code, but their linkers get confused if
24381
# the symbol is explicitly referenced. Since portable code cannot
24382
# rely on this symbol name, it's probably fine to never include it in
24383
# preloaded symbol tables.
24384
extract_expsyms_cmds=
24387
cygwin* | mingw* | pw32*)
24388
# FIXME: the MSVC++ port hasn't been tested in a loooong time
24389
# When not using gcc, we currently assume that we are using
24390
# Microsoft Visual C++.
24391
if test "$GCC" != yes; then
24401
if test "$with_gnu_ld" = yes; then
24402
# If archive_cmds runs LD, not CC, wlarc should be empty
24405
# See if GNU ld supports shared libraries.
24407
aix3* | aix4* | aix5*)
24408
# On AIX/PPC, the GNU linker is very broken
24409
if test "$host_cpu" != ia64; then
24413
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24414
*** to be unable to reliably create shared libraries on AIX.
24415
*** Therefore, libtool is disabling shared libraries support. If you
24416
*** really care for shared libraries, you may want to modify your PATH
24417
*** so that a non-GNU linker is found, and then restart.
24424
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24425
hardcode_libdir_flag_spec_F77='-L$libdir'
24426
hardcode_minus_L_F77=yes
24428
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24429
# that the semantics of dynamic libraries on AmigaOS, at least up
24430
# to version 4, is to share data among multiple programs linked
24431
# with the same dynamic library. Since this doesn't match the
24432
# behavior of shared libraries on other platforms, we can't use
24438
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24439
allow_undefined_flag_F77=unsupported
24440
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24441
# support --undefined. This deserves some investigation. FIXME
24442
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24448
cygwin* | mingw* | pw32*)
24449
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24450
# as there is no search path for DLLs.
24451
hardcode_libdir_flag_spec_F77='-L$libdir'
24452
allow_undefined_flag_F77=unsupported
24453
always_export_symbols_F77=no
24454
enable_shared_with_static_runtimes_F77=yes
24455
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24457
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24458
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24459
# If the export-symbols file already is a .def file (1st line
24460
# is EXPORTS), use it as is; otherwise, prepend...
24461
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24462
cp $export_symbols $output_objdir/$soname.def;
24464
echo EXPORTS > $output_objdir/$soname.def;
24465
cat $export_symbols >> $output_objdir/$soname.def;
24467
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24473
netbsd* | knetbsd*-gnu)
24474
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24475
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24478
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24484
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24488
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24489
*** create shared libraries on Solaris systems. Therefore, libtool
24490
*** is disabling shared libraries support. We urge you to upgrade GNU
24491
*** binutils to release 2.9.1 or newer. Another option is to modify
24492
*** your PATH or compiler configuration so that the native linker is
24493
*** used, and then restart.
24496
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24505
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24507
hardcode_direct_F77=yes
24508
hardcode_shlibpath_var_F77=no
24512
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24513
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24514
archive_cmds_F77="$tmp_archive_cmds"
24515
supports_anon_versioning=no
24516
case `$LD -v 2>/dev/null` in
24517
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24518
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24519
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24520
*\ 2.11.*) ;; # other 2.11 versions
24521
*) supports_anon_versioning=yes ;;
24523
if test $supports_anon_versioning = yes; then
24524
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24525
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24526
$echo "local: *; };" >> $output_objdir/$libname.ver~
24527
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24529
archive_expsym_cmds_F77="$tmp_archive_cmds"
24531
link_all_deplibs_F77=no
24538
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24539
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24540
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24547
if test "$ld_shlibs_F77" = yes; then
24548
runpath_var=LD_RUN_PATH
24549
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24550
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24551
# ancient GNU ld didn't support --whole-archive et. al.
24552
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24553
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24555
whole_archive_flag_spec_F77=
24559
# PORTME fill in a description of your system's linker (not GNU ld)
24562
allow_undefined_flag_F77=unsupported
24563
always_export_symbols_F77=yes
24564
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24565
# Note: this linker hardcodes the directories in LIBPATH if there
24566
# are no directories specified by -L.
24567
hardcode_minus_L_F77=yes
24568
if test "$GCC" = yes && test -z "$link_static_flag"; then
24569
# Neither direct hardcoding nor static linking is supported with a
24571
hardcode_direct_F77=unsupported
24576
if test "$host_cpu" = ia64; then
24577
# On IA64, the linker does run time linking by default, so we don't
24578
# have to do anything special.
24579
aix_use_runtimelinking=no
24580
exp_sym_flag='-Bexport'
24583
# If we're using GNU nm, then we don't want the "-C" option.
24584
# -C means demangle to AIX nm, but means don't demangle with GNU nm
24585
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24586
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24588
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24590
aix_use_runtimelinking=no
24592
# Test if we are trying to use run time linking or normal
24593
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24594
# need to do runtime linking.
24595
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24596
for ld_flag in $LDFLAGS; do
24597
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24598
aix_use_runtimelinking=yes
24604
exp_sym_flag='-bexport'
24605
no_entry_flag='-bnoentry'
24608
# When large executables or shared objects are built, AIX ld can
24609
# have problems creating the table of contents. If linking a library
24610
# or program results in "error TOC overflow" add -mminimal-toc to
24611
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24612
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24614
archive_cmds_F77=''
24615
hardcode_direct_F77=yes
24616
hardcode_libdir_separator_F77=':'
24617
link_all_deplibs_F77=yes
24619
if test "$GCC" = yes; then
24620
case $host_os in aix4.012|aix4.012.*)
24621
# We only want to do this on AIX 4.2 and lower, the check
24622
# below for broken collect2 doesn't work under 4.3+
24623
collect2name=`${CC} -print-prog-name=collect2`
24624
if test -f "$collect2name" && \
24625
strings "$collect2name" | grep resolve_lib_name >/dev/null
24627
# We have reworked collect2
24628
hardcode_direct_F77=yes
24630
# We have old collect2
24631
hardcode_direct_F77=unsupported
24632
# It fails to find uninstalled libraries when the uninstalled
24633
# path is not listed in the libpath. Setting hardcode_minus_L
24634
# to unsupported forces relinking
24635
hardcode_minus_L_F77=yes
24636
hardcode_libdir_flag_spec_F77='-L$libdir'
24637
hardcode_libdir_separator_F77=
24640
shared_flag='-shared'
24643
if test "$host_cpu" = ia64; then
24644
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24645
# chokes on -Wl,-G. The following line is correct:
24648
if test "$aix_use_runtimelinking" = yes; then
24649
shared_flag='${wl}-G'
24651
shared_flag='${wl}-bM:SRE'
24656
# It seems that -bexpall does not export symbols beginning with
24657
# underscore (_), so it is better to generate a list of symbols to export.
24658
always_export_symbols_F77=yes
24659
if test "$aix_use_runtimelinking" = yes; then
24660
# Warning - without using the other runtime loading flags (-brtl),
24661
# -berok will link without error, but may produce a broken library.
24662
allow_undefined_flag_F77='-berok'
24663
# Determine the default libpath from the value encoded in an empty executable.
24664
cat >conftest.$ac_ext <<_ACEOF
24669
rm -f conftest.$ac_objext conftest$ac_exeext
24670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24671
(eval $ac_link) 2>conftest.er1
24673
grep -v '^ *+' conftest.er1 >conftest.err
24675
cat conftest.err >&5
24676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677
(exit $ac_status); } &&
24678
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
24679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680
(eval $ac_try) 2>&5
24682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683
(exit $ac_status); }; } &&
24684
{ ac_try='test -s conftest$ac_exeext'
24685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686
(eval $ac_try) 2>&5
24688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689
(exit $ac_status); }; }; then
24691
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24693
# Check for a 64-bit object if we didn't find anything.
24694
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24697
echo "$as_me: failed program was:" >&5
24698
sed 's/^/| /' conftest.$ac_ext >&5
24701
rm -f conftest.err conftest.$ac_objext \
24702
conftest$ac_exeext conftest.$ac_ext
24703
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24705
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24706
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24708
if test "$host_cpu" = ia64; then
24709
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24710
allow_undefined_flag_F77="-z nodefs"
24711
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
24713
# Determine the default libpath from the value encoded in an empty executable.
24714
cat >conftest.$ac_ext <<_ACEOF
24719
rm -f conftest.$ac_objext conftest$ac_exeext
24720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721
(eval $ac_link) 2>conftest.er1
24723
grep -v '^ *+' conftest.er1 >conftest.err
24725
cat conftest.err >&5
24726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727
(exit $ac_status); } &&
24728
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
24729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730
(eval $ac_try) 2>&5
24732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733
(exit $ac_status); }; } &&
24734
{ ac_try='test -s conftest$ac_exeext'
24735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736
(eval $ac_try) 2>&5
24738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739
(exit $ac_status); }; }; then
24741
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24743
# Check for a 64-bit object if we didn't find anything.
24744
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24747
echo "$as_me: failed program was:" >&5
24748
sed 's/^/| /' conftest.$ac_ext >&5
24751
rm -f conftest.err conftest.$ac_objext \
24752
conftest$ac_exeext conftest.$ac_ext
24753
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24755
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24756
# Warning - without using the other run time loading flags,
24757
# -berok will link without error, but may produce a broken library.
24758
no_undefined_flag_F77=' ${wl}-bernotok'
24759
allow_undefined_flag_F77=' ${wl}-berok'
24760
# -bexpall does not export symbols beginning with underscore (_)
24761
always_export_symbols_F77=yes
24762
# Exported symbols can be pulled into shared objects from archives
24763
whole_archive_flag_spec_F77=' '
24764
archive_cmds_need_lc_F77=yes
24765
# This is similar to how AIX traditionally builds it's shared libraries.
24766
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24772
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24773
hardcode_libdir_flag_spec_F77='-L$libdir'
24774
hardcode_minus_L_F77=yes
24775
# see comment about different semantics on the GNU ld section
24780
export_dynamic_flag_spec_F77=-rdynamic
24783
cygwin* | mingw* | pw32*)
24784
# When not using gcc, we currently assume that we are using
24785
# Microsoft Visual C++.
24786
# hardcode_libdir_flag_spec is actually meaningless, as there is
24787
# no search path for DLLs.
24788
hardcode_libdir_flag_spec_F77=' '
24789
allow_undefined_flag_F77=unsupported
24790
# Tell ltmain to make .lib files, not .a files.
24792
# Tell ltmain to make .dll files, not .so files.
24794
# FIXME: Setting linknames here is a bad hack.
24795
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24796
# The linker will automatically build a .lib file if we build a DLL.
24797
old_archive_From_new_cmds_F77='true'
24798
# FIXME: Should let the user specify the lib program.
24799
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24800
fix_srcfile_path='`cygpath -w "$srcfile"`'
24801
enable_shared_with_static_runtimes_F77=yes
24804
darwin* | rhapsody*)
24805
if test "$GXX" = yes ; then
24806
archive_cmds_need_lc_F77=no
24808
rhapsody* | darwin1.[012])
24809
allow_undefined_flag_F77='-undefined suppress'
24812
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24813
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24815
case ${MACOSX_DEPLOYMENT_TARGET} in
24817
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24820
allow_undefined_flag_F77='-undefined dynamic_lookup'
24826
lt_int_apple_cc_single_mod=no
24827
output_verbose_link_cmd='echo'
24828
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
24829
lt_int_apple_cc_single_mod=yes
24831
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24832
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24834
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24836
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24837
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
24838
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24839
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24841
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24843
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24844
hardcode_direct_F77=no
24845
hardcode_automatic_F77=yes
24846
hardcode_shlibpath_var_F77=unsupported
24847
whole_archive_flag_spec_F77='-all_load $convenience'
24848
link_all_deplibs_F77=yes
24855
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24856
hardcode_libdir_flag_spec_F77='-L$libdir'
24857
hardcode_shlibpath_var_F77=no
24864
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24865
# support. Future versions do this automatically, but an explicit c++rt0.o
24866
# does not break anything, and helps significantly (at the cost of a little
24869
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24870
hardcode_libdir_flag_spec_F77='-R$libdir'
24871
hardcode_direct_F77=yes
24872
hardcode_shlibpath_var_F77=no
24875
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
24877
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24878
hardcode_direct_F77=yes
24879
hardcode_minus_L_F77=yes
24880
hardcode_shlibpath_var_F77=no
24883
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24884
freebsd* | kfreebsd*-gnu)
24885
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24886
hardcode_libdir_flag_spec_F77='-R$libdir'
24887
hardcode_direct_F77=yes
24888
hardcode_shlibpath_var_F77=no
24892
if test "$GCC" = yes; then
24893
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24895
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24897
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24898
hardcode_libdir_separator_F77=:
24899
hardcode_direct_F77=yes
24901
# hardcode_minus_L: Not really in the search PATH,
24902
# but as the default location of the library.
24903
hardcode_minus_L_F77=yes
24904
export_dynamic_flag_spec_F77='${wl}-E'
24908
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24909
case "$host_cpu" in
24911
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24914
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24918
case "$host_cpu" in
24920
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
24923
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24927
if test "$with_gnu_ld" = no; then
24928
case "$host_cpu" in
24930
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24931
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24932
hardcode_libdir_separator_F77=:
24933
hardcode_direct_F77=no
24934
hardcode_shlibpath_var_F77=no
24937
hardcode_libdir_flag_spec_F77='-L$libdir'
24938
hardcode_direct_F77=no
24939
hardcode_shlibpath_var_F77=no
24941
# hardcode_minus_L: Not really in the search PATH,
24942
# but as the default location of the library.
24943
hardcode_minus_L_F77=yes
24946
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24947
hardcode_libdir_separator_F77=:
24948
hardcode_direct_F77=yes
24949
export_dynamic_flag_spec_F77='${wl}-E'
24951
# hardcode_minus_L: Not really in the search PATH,
24952
# but as the default location of the library.
24953
hardcode_minus_L_F77=yes
24959
irix5* | irix6* | nonstopux*)
24960
if test "$GCC" = yes; then
24961
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24963
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24964
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
24966
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24967
hardcode_libdir_separator_F77=:
24968
link_all_deplibs_F77=yes
24971
netbsd* | knetbsd*-gnu)
24972
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24973
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24975
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24977
hardcode_libdir_flag_spec_F77='-R$libdir'
24978
hardcode_direct_F77=yes
24979
hardcode_shlibpath_var_F77=no
24983
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24984
hardcode_direct_F77=yes
24985
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24986
hardcode_libdir_separator_F77=:
24987
hardcode_shlibpath_var_F77=no
24991
hardcode_direct_F77=yes
24992
hardcode_shlibpath_var_F77=no
24993
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24994
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24995
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24996
export_dynamic_flag_spec_F77='${wl}-E'
24999
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25000
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25001
hardcode_libdir_flag_spec_F77='-R$libdir'
25004
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25005
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25012
hardcode_libdir_flag_spec_F77='-L$libdir'
25013
hardcode_minus_L_F77=yes
25014
allow_undefined_flag_F77=unsupported
25015
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
25016
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25020
if test "$GCC" = yes; then
25021
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25022
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25024
allow_undefined_flag_F77=' -expect_unresolved \*'
25025
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25027
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25028
hardcode_libdir_separator_F77=:
25031
osf4* | osf5*) # as osf3* with the addition of -msym flag
25032
if test "$GCC" = yes; then
25033
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25034
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25035
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25037
allow_undefined_flag_F77=' -expect_unresolved \*'
25038
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25039
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25040
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
25042
# Both c and cxx compiler support -rpath directly
25043
hardcode_libdir_flag_spec_F77='-rpath $libdir'
25045
hardcode_libdir_separator_F77=:
25049
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25050
hardcode_shlibpath_var_F77=no
25051
export_dynamic_flag_spec_F77='${wl}-Bexport'
25052
runpath_var=LD_RUN_PATH
25053
hardcode_runpath_var=yes
25057
no_undefined_flag_F77=' -z text'
25058
if test "$GCC" = yes; then
25059
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25060
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25061
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25063
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25065
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25067
hardcode_libdir_flag_spec_F77='-R$libdir'
25068
hardcode_shlibpath_var_F77=no
25070
solaris2.[0-5] | solaris2.[0-5].*) ;;
25071
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
25072
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25074
link_all_deplibs_F77=yes
25078
if test "x$host_vendor" = xsequent; then
25079
# Use $CC to link under sequent, because it throws in some extra .o
25080
# files that make .init and .fini sections work.
25081
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25083
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25085
hardcode_libdir_flag_spec_F77='-L$libdir'
25086
hardcode_direct_F77=yes
25087
hardcode_minus_L_F77=yes
25088
hardcode_shlibpath_var_F77=no
25092
case $host_vendor in
25094
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095
hardcode_direct_F77=yes # is this really true???
25098
## LD is ld it makes a PLAMLIB
25099
## CC just makes a GrossModule.
25100
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25101
reload_cmds_F77='$CC -r -o $output$reload_objs'
25102
hardcode_direct_F77=no
25105
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25106
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25109
runpath_var='LD_RUN_PATH'
25110
hardcode_shlibpath_var_F77=no
25114
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25115
hardcode_shlibpath_var_F77=no
25116
export_dynamic_flag_spec_F77='-Bexport'
25120
if test -d /usr/nec; then
25121
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122
hardcode_shlibpath_var_F77=no
25123
runpath_var=LD_RUN_PATH
25124
hardcode_runpath_var=yes
25130
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25131
hardcode_direct_F77=yes
25132
hardcode_minus_L_F77=no
25133
hardcode_shlibpath_var_F77=no
25134
hardcode_runpath_var=yes
25135
runpath_var=LD_RUN_PATH
25138
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
25139
no_undefined_flag_F77='${wl}-z ${wl}text'
25140
if test "$GCC" = yes; then
25141
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25143
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25145
runpath_var='LD_RUN_PATH'
25146
hardcode_shlibpath_var_F77=no
25150
no_undefined_flag_F77=' -z text'
25151
# $CC -shared without GNU ld will not create a library from C++
25152
# object files and a static libstdc++, better avoid it by now
25153
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25155
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25156
hardcode_libdir_flag_spec_F77=
25157
hardcode_shlibpath_var_F77=no
25158
runpath_var='LD_RUN_PATH'
25162
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25163
hardcode_libdir_flag_spec_F77='-L$libdir'
25164
hardcode_shlibpath_var_F77=no
25173
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25174
echo "${ECHO_T}$ld_shlibs_F77" >&6
25175
test "$ld_shlibs_F77" = no && can_build_shared=no
25177
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25178
if test "$GCC" = yes; then
25179
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25183
# Do we need to explicitly link libc?
25185
case "x$archive_cmds_need_lc_F77" in
25187
# Assume -lc should be added
25188
archive_cmds_need_lc_F77=yes
25190
if test "$enable_shared" = yes && test "$GCC" = yes; then
25191
case $archive_cmds_F77 in
25193
# FIXME: we may have to deal with multi-command sequences.
25196
# Test whether the compiler implicitly links with -lc since on some
25197
# systems, -lgcc has to come before -lc. If gcc already passes -lc
25198
# to ld, don't add -lc before -lgcc.
25199
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25200
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25202
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25205
(eval $ac_compile) 2>&5
25207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208
(exit $ac_status); } 2>conftest.err; then
25211
libobjs=conftest.$ac_objext
25213
wl=$lt_prog_compiler_wl_F77
25219
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25220
allow_undefined_flag_F77=
25221
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25222
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225
(exit $ac_status); }
25227
archive_cmds_need_lc_F77=no
25229
archive_cmds_need_lc_F77=yes
25231
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25233
cat conftest.err 1>&5
25236
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25237
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25244
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25245
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25246
library_names_spec=
25247
libname_spec='lib$name'
25251
postuninstall_cmds=
25255
shlibpath_overrides_runpath=unknown
25257
dynamic_linker="$host_os ld.so"
25258
sys_lib_dlsearch_path_spec="/lib /usr/lib"
25259
if test "$GCC" = yes; then
25260
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25261
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25262
# if the path contains ";" then we assume it to be the separator
25263
# otherwise default to the standard path separator (i.e. ":") - it is
25264
# assumed that no part of a normal pathname contains ";" but that should
25265
# okay in the real world where ";" in dirpaths is itself problematic.
25266
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25268
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25271
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25273
need_lib_prefix=unknown
25274
hardcode_into_libs=no
25276
# when you set need_version to no, make sure it does not cause -set_version
25277
# flags to be left without arguments
25278
need_version=unknown
25283
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25284
shlibpath_var=LIBPATH
25286
# AIX 3 has no versioning support, so we append a major version to the name.
25287
soname_spec='${libname}${release}${shared_ext}$major'
25294
hardcode_into_libs=yes
25295
if test "$host_cpu" = ia64; then
25296
# AIX 5 supports IA64
25297
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25298
shlibpath_var=LD_LIBRARY_PATH
25300
# With GCC up to 2.95.x, collect2 would create an import file
25301
# for dependence libraries. The import file would start with
25302
# the line `#! .'. This would cause the generated library to
25303
# depend on `.', always an invalid library. This was fixed in
25304
# development snapshots of GCC prior to 3.0.
25306
aix4 | aix4.[01] | aix4.[01].*)
25307
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25309
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25312
can_build_shared=no
25316
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25317
# soname into executable. Probably we can add versioning support to
25318
# collect2, so additional links can be useful in future.
25319
if test "$aix_use_runtimelinking" = yes; then
25320
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
25321
# instead of lib<name>.a to let people know that these are not
25322
# typical AIX shared libraries.
25323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325
# We preserve .a as extension for shared libraries through AIX4.2
25326
# and later when we are not doing run time linking.
25327
library_names_spec='${libname}${release}.a $libname.a'
25328
soname_spec='${libname}${release}${shared_ext}$major'
25330
shlibpath_var=LIBPATH
25335
library_names_spec='$libname.ixlibrary $libname.a'
25336
# Create ${libname}_ixlibrary.a entries in /sys/libs.
25337
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
25341
library_names_spec='${libname}${shared_ext}'
25342
dynamic_linker="$host_os ld.so"
25343
shlibpath_var=LIBRARY_PATH
25349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25350
soname_spec='${libname}${release}${shared_ext}$major'
25351
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25352
shlibpath_var=LD_LIBRARY_PATH
25353
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25354
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25355
# the default ld.so.conf also contains /usr/contrib/lib and
25356
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25357
# libtool to hard-code these into programs
25360
cygwin* | mingw* | pw32*)
25361
version_type=windows
25366
case $GCC,$host_os in
25367
yes,cygwin* | yes,mingw* | yes,pw32*)
25368
library_names_spec='$libname.dll.a'
25369
# DLL is installed to $(libdir)/../bin by postinstall_cmds
25370
postinstall_cmds='base_file=`basename \${file}`~
25371
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25372
dldir=$destdir/`dirname \$dlpath`~
25373
test -d \$dldir || mkdir -p \$dldir~
25374
$install_prog $dir/$dlname \$dldir/$dlname'
25375
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25376
dlpath=$dir/\$dldll~
25378
shlibpath_overrides_runpath=yes
25382
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
25383
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25384
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25387
# MinGW DLLs use traditional 'lib' prefix
25388
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25389
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25390
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25391
# It is most probably a Windows format PATH printed by
25392
# mingw gcc, but we are running on Cygwin. Gcc prints its search
25393
# path with ; separators, and with drive letters. We can handle the
25394
# drive letters (cygwin fileutils understands them), so leave them,
25395
# especially as we might pass files found there to a mingw objdump,
25396
# which wouldn't understand a cygwinified path. Ahh.
25397
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25399
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25403
# pw32 DLLs use 'pw' prefix rather than 'lib'
25404
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
25410
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25413
dynamic_linker='Win32 ld.exe'
25414
# FIXME: first we should search . and the directory the executable is in
25418
darwin* | rhapsody*)
25419
dynamic_linker="$host_os dyld"
25420
version_type=darwin
25423
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25424
soname_spec='${libname}${release}${major}$shared_ext'
25425
shlibpath_overrides_runpath=yes
25426
shlibpath_var=DYLD_LIBRARY_PATH
25427
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
25428
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25429
if test "$GCC" = yes; then
25430
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25432
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25434
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25442
soname_spec='${libname}${release}${shared_ext}$major'
25443
shlibpath_var=LD_LIBRARY_PATH
25454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25455
soname_spec='${libname}${release}${shared_ext}$major'
25456
shlibpath_var=LD_LIBRARY_PATH
25457
shlibpath_overrides_runpath=no
25458
hardcode_into_libs=yes
25459
dynamic_linker='GNU ld.so'
25463
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
25464
version_type=freebsd-$objformat
25465
case $version_type in
25467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25472
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25476
shlibpath_var=LD_LIBRARY_PATH
25479
shlibpath_overrides_runpath=yes
25481
freebsd3.01* | freebsdelf3.01*)
25482
shlibpath_overrides_runpath=yes
25483
hardcode_into_libs=yes
25486
shlibpath_overrides_runpath=no
25487
hardcode_into_libs=yes
25496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25497
soname_spec='${libname}${release}${shared_ext}$major'
25498
shlibpath_var=LD_LIBRARY_PATH
25499
hardcode_into_libs=yes
25502
hpux9* | hpux10* | hpux11*)
25503
# Give a soname corresponding to the major version so that dld.sl refuses to
25504
# link against other versions.
25508
case "$host_cpu" in
25511
hardcode_into_libs=yes
25512
dynamic_linker="$host_os dld.so"
25513
shlibpath_var=LD_LIBRARY_PATH
25514
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25516
soname_spec='${libname}${release}${shared_ext}$major'
25517
if test "X$HPUX_IA64_MODE" = X32; then
25518
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25520
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25522
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25526
hardcode_into_libs=yes
25527
dynamic_linker="$host_os dld.sl"
25528
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25529
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25531
soname_spec='${libname}${release}${shared_ext}$major'
25532
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25533
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25537
dynamic_linker="$host_os dld.sl"
25538
shlibpath_var=SHLIB_PATH
25539
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25541
soname_spec='${libname}${release}${shared_ext}$major'
25544
# HP-UX runs *really* slowly unless shared libraries are mode 555.
25545
postinstall_cmds='chmod 555 $lib'
25548
irix5* | irix6* | nonstopux*)
25550
nonstopux*) version_type=nonstopux ;;
25552
if test "$lt_cv_prog_gnu_ld" = yes; then
25560
soname_spec='${libname}${release}${shared_ext}$major'
25561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25563
irix5* | nonstopux*)
25564
libsuff= shlibsuff=
25567
case $LD in # libtool.m4 will add one of these switches to LD
25568
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25569
libsuff= shlibsuff= libmagic=32-bit;;
25570
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25571
libsuff=32 shlibsuff=N32 libmagic=N32;;
25572
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25573
libsuff=64 shlibsuff=64 libmagic=64-bit;;
25574
*) libsuff= shlibsuff= libmagic=never-match;;
25578
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25579
shlibpath_overrides_runpath=no
25580
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25581
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25582
hardcode_into_libs=yes
25585
# No shared lib support for Linux oldld, aout, or coff.
25586
linux*oldld* | linux*aout* | linux*coff*)
25590
# This must be Linux ELF.
25595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596
soname_spec='${libname}${release}${shared_ext}$major'
25597
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25598
shlibpath_var=LD_LIBRARY_PATH
25599
shlibpath_overrides_runpath=no
25600
# This implies no fast_install, which is unacceptable.
25601
# Some rework will be needed to allow for fast_install
25602
# before this can be enabled.
25603
hardcode_into_libs=yes
25605
# Append ld.so.conf contents to the search path
25606
if test -f /etc/ld.so.conf; then
25607
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
25608
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25611
# We used to test for /lib/ld.so.1 and disable shared libraries on
25612
# powerpc, because MkLinux only supported shared libraries with the
25613
# GNU dynamic linker. Since this was broken with cross compilers,
25614
# most powerpc-linux boxes support dynamic linking these days and
25615
# people can always --disable-shared, the test was removed, and we
25616
# assume the GNU/Linux dynamic linker is in use.
25617
dynamic_linker='GNU/Linux ld.so'
25624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25625
soname_spec='${libname}${release}${shared_ext}$major'
25626
shlibpath_var=LD_LIBRARY_PATH
25627
shlibpath_overrides_runpath=no
25628
hardcode_into_libs=yes
25629
dynamic_linker='GNU ld.so'
25636
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25638
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25639
dynamic_linker='NetBSD (a.out) ld.so'
25641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642
soname_spec='${libname}${release}${shared_ext}$major'
25643
dynamic_linker='NetBSD ld.elf_so'
25645
shlibpath_var=LD_LIBRARY_PATH
25646
shlibpath_overrides_runpath=yes
25647
hardcode_into_libs=yes
25652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653
shlibpath_var=LD_LIBRARY_PATH
25654
shlibpath_overrides_runpath=yes
25661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662
soname_spec='${libname}${release}${shared_ext}$major'
25663
shlibpath_var=LD_LIBRARY_PATH
25664
shlibpath_overrides_runpath=yes
25671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25672
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25673
shlibpath_var=LD_LIBRARY_PATH
25674
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25676
openbsd2.[89] | openbsd2.[89].*)
25677
shlibpath_overrides_runpath=no
25680
shlibpath_overrides_runpath=yes
25684
shlibpath_overrides_runpath=yes
25689
libname_spec='$name'
25692
library_names_spec='$libname${shared_ext} $libname.a'
25693
dynamic_linker='OS/2 ld.exe'
25694
shlibpath_var=LIBPATH
25697
osf3* | osf4* | osf5*)
25701
soname_spec='${libname}${release}${shared_ext}$major'
25702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25703
shlibpath_var=LD_LIBRARY_PATH
25704
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25705
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25710
soname_spec='${libname}${release}${shared_ext}$major'
25711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25712
shlibpath_var=LD_LIBRARY_PATH
25719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25720
soname_spec='${libname}${release}${shared_ext}$major'
25721
shlibpath_var=LD_LIBRARY_PATH
25722
shlibpath_overrides_runpath=yes
25723
hardcode_into_libs=yes
25724
# ldd complains unless libraries are executable
25725
postinstall_cmds='chmod +x $lib'
25730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25731
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25732
shlibpath_var=LD_LIBRARY_PATH
25733
shlibpath_overrides_runpath=yes
25734
if test "$with_gnu_ld" = yes; then
25740
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25743
soname_spec='${libname}${release}${shared_ext}$major'
25744
shlibpath_var=LD_LIBRARY_PATH
25745
case $host_vendor in
25747
shlibpath_overrides_runpath=no
25749
export_dynamic_flag_spec='${wl}-Blargedynsym'
25750
runpath_var=LD_RUN_PATH
25758
shlibpath_overrides_runpath=no
25759
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25765
if test -d /usr/nec ;then
25767
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25768
soname_spec='$libname${shared_ext}.$major'
25769
shlibpath_var=LD_LIBRARY_PATH
25775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776
soname_spec='${libname}${release}${shared_ext}$major'
25777
shlibpath_var=LD_LIBRARY_PATH
25784
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25785
echo "${ECHO_T}$dynamic_linker" >&6
25786
test "$dynamic_linker" = no && can_build_shared=no
25788
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25789
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
25790
hardcode_action_F77=
25791
if test -n "$hardcode_libdir_flag_spec_F77" || \
25792
test -n "$runpath_var F77" || \
25793
test "X$hardcode_automatic_F77"="Xyes" ; then
25795
# We can hardcode non-existant directories.
25796
if test "$hardcode_direct_F77" != no &&
25797
# If the only mechanism to avoid hardcoding is shlibpath_var, we
25798
# have to relink, otherwise we might link with an installed library
25799
# when we should be linking with a yet-to-be-installed one
25800
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
25801
test "$hardcode_minus_L_F77" != no; then
25802
# Linking always hardcodes the temporary library directory.
25803
hardcode_action_F77=relink
25805
# We can link without hardcoding, and we can hardcode nonexisting dirs.
25806
hardcode_action_F77=immediate
25809
# We cannot hardcode anything, or else we can only hardcode existing
25811
hardcode_action_F77=unsupported
25813
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
25814
echo "${ECHO_T}$hardcode_action_F77" >&6
25816
if test "$hardcode_action_F77" = relink; then
25817
# Fast installation is not supported
25818
enable_fast_install=no
25819
elif test "$shlibpath_overrides_runpath" = yes ||
25820
test "$enable_shared" = no; then
25821
# Fast installation is not necessary
25822
enable_fast_install=needless
25827
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
25828
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
25829
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
25830
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
25831
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
25832
echo "$as_me:$LINENO: result: yes" >&5
25833
echo "${ECHO_T}yes" >&6
25835
# FIXME - insert some real tests, host_os isn't really good enough
25838
if test -n "$STRIP" ; then
25839
striplib="$STRIP -x"
25840
echo "$as_me:$LINENO: result: yes" >&5
25841
echo "${ECHO_T}yes" >&6
25843
echo "$as_me:$LINENO: result: no" >&5
25844
echo "${ECHO_T}no" >&6
25848
echo "$as_me:$LINENO: result: no" >&5
25849
echo "${ECHO_T}no" >&6
25856
# The else clause should only fire when bootstrapping the
25857
# libtool distribution, otherwise you forgot to ship ltmain.sh
25858
# with your package, and you will get complaints that there are
25859
# no rules to generate ltmain.sh.
25860
if test -f "$ltmain"; then
25861
# See if we are running on zsh, and set the options which allow our commands through
25862
# without removal of \ escapes.
25863
if test -n "${ZSH_VERSION+set}" ; then
25864
setopt NO_GLOB_SUBST
25866
# Now quote all the things that may contain metacharacters while being
25867
# careful not to overquote the AC_SUBSTed values. We take copies of the
25868
# variables and quote the copies for generation of the libtool script.
25869
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25871
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25872
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25873
deplibs_check_method reload_flag reload_cmds need_locks \
25874
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25875
lt_cv_sys_global_symbol_to_c_name_address \
25876
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25877
old_postinstall_cmds old_postuninstall_cmds \
25881
lt_prog_compiler_wl_F77 \
25882
lt_prog_compiler_pic_F77 \
25883
lt_prog_compiler_static_F77 \
25884
lt_prog_compiler_no_builtin_flag_F77 \
25885
export_dynamic_flag_spec_F77 \
25886
thread_safe_flag_spec_F77 \
25887
whole_archive_flag_spec_F77 \
25888
enable_shared_with_static_runtimes_F77 \
25889
old_archive_cmds_F77 \
25890
old_archive_from_new_cmds_F77 \
25891
predep_objects_F77 \
25892
postdep_objects_F77 \
25895
compiler_lib_search_path_F77 \
25897
archive_expsym_cmds_F77 \
25898
postinstall_cmds_F77 \
25899
postuninstall_cmds_F77 \
25900
old_archive_from_expsyms_cmds_F77 \
25901
allow_undefined_flag_F77 \
25902
no_undefined_flag_F77 \
25903
export_symbols_cmds_F77 \
25904
hardcode_libdir_flag_spec_F77 \
25905
hardcode_libdir_flag_spec_ld_F77 \
25906
hardcode_libdir_separator_F77 \
25907
hardcode_automatic_F77 \
25909
module_expsym_cmds_F77 \
25910
lt_cv_prog_compiler_c_o_F77 \
25911
exclude_expsyms_F77 \
25912
include_expsyms_F77; do
25915
old_archive_cmds_F77 | \
25916
old_archive_from_new_cmds_F77 | \
25917
archive_cmds_F77 | \
25918
archive_expsym_cmds_F77 | \
25919
module_cmds_F77 | \
25920
module_expsym_cmds_F77 | \
25921
old_archive_from_expsyms_cmds_F77 | \
25922
export_symbols_cmds_F77 | \
25923
extract_expsyms_cmds | reload_cmds | finish_cmds | \
25924
postinstall_cmds | postuninstall_cmds | \
25925
old_postinstall_cmds | old_postuninstall_cmds | \
25926
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25927
# Double-quote double-evaled strings.
25928
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25931
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25937
*'\$0 --fallback-echo"')
25938
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25944
cat <<__EOF__ >> "$cfgfile"
25945
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25947
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25949
# Shell to use when invoking shell scripts.
25952
# Whether or not to build shared libraries.
25953
build_libtool_libs=$enable_shared
25955
# Whether or not to build static libraries.
25956
build_old_libs=$enable_static
25958
# Whether or not to add -lc for building shared libraries.
25959
build_libtool_need_lc=$archive_cmds_need_lc_F77
25961
# Whether or not to disallow shared libs when runtime libs are static
25962
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
25964
# Whether or not to optimize for fast installation.
25965
fast_install=$enable_fast_install
25968
host_alias=$host_alias
25971
# An echo program that does not interpret backslashes.
25976
AR_FLAGS=$lt_AR_FLAGS
25981
# A language-specific compiler.
25982
CC=$lt_compiler_F77
25984
# Is the compiler the GNU C compiler?
25990
# The linker used to build libraries.
25993
# Whether we need hard or soft links.
25996
# A BSD-compatible nm program.
25999
# A symbol stripping program
26002
# Used to examine libraries when file_magic_cmd begins "file"
26003
MAGIC_CMD=$MAGIC_CMD
26005
# Used on cygwin: DLL creation program.
26008
# Used on cygwin: object dumper.
26011
# Used on cygwin: assembler.
26014
# The name of the directory that contains temporary libtool files.
26017
# How to create reloadable object files.
26018
reload_flag=$lt_reload_flag
26019
reload_cmds=$lt_reload_cmds
26021
# How to pass a linker flag through the compiler.
26022
wl=$lt_lt_prog_compiler_wl_F77
26024
# Object file suffix (normally "o").
26025
objext="$ac_objext"
26027
# Old archive suffix (normally "a").
26030
# Shared library suffix (normally ".so").
26031
shrext_cmds='$shrext_cmds'
26033
# Executable file suffix (normally "").
26036
# Additional compiler flags for building library objects.
26037
pic_flag=$lt_lt_prog_compiler_pic_F77
26040
# What is the maximum length of a command?
26041
max_cmd_len=$lt_cv_sys_max_cmd_len
26043
# Does compiler simultaneously support -c and -o options?
26044
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26046
# Must we lock files when doing compilation ?
26047
need_locks=$lt_need_locks
26049
# Do we need the lib prefix for modules?
26050
need_lib_prefix=$need_lib_prefix
26052
# Do we need a version for libraries?
26053
need_version=$need_version
26055
# Whether dlopen is supported.
26056
dlopen_support=$enable_dlopen
26058
# Whether dlopen of programs is supported.
26059
dlopen_self=$enable_dlopen_self
26061
# Whether dlopen of statically linked programs is supported.
26062
dlopen_self_static=$enable_dlopen_self_static
26064
# Compiler flag to prevent dynamic linking.
26065
link_static_flag=$lt_lt_prog_compiler_static_F77
26067
# Compiler flag to turn off builtin functions.
26068
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26070
# Compiler flag to allow reflexive dlopens.
26071
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26073
# Compiler flag to generate shared objects directly from archives.
26074
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26076
# Compiler flag to generate thread-safe objects.
26077
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26079
# Library versioning type.
26080
version_type=$version_type
26082
# Format of library name prefix.
26083
libname_spec=$lt_libname_spec
26085
# List of archive names. First name is the real one, the rest are links.
26086
# The last name is the one that the linker finds with -lNAME.
26087
library_names_spec=$lt_library_names_spec
26089
# The coded name of the library, if different from the real name.
26090
soname_spec=$lt_soname_spec
26092
# Commands used to build and install an old-style archive.
26094
old_archive_cmds=$lt_old_archive_cmds_F77
26095
old_postinstall_cmds=$lt_old_postinstall_cmds
26096
old_postuninstall_cmds=$lt_old_postuninstall_cmds
26098
# Create an old-style archive from a shared archive.
26099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26101
# Create a temporary old-style archive to link instead of a shared archive.
26102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26104
# Commands used to build and install a shared archive.
26105
archive_cmds=$lt_archive_cmds_F77
26106
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26107
postinstall_cmds=$lt_postinstall_cmds
26108
postuninstall_cmds=$lt_postuninstall_cmds
26110
# Commands used to build a loadable module (assumed same as above if empty)
26111
module_cmds=$lt_module_cmds_F77
26112
module_expsym_cmds=$lt_module_expsym_cmds_F77
26114
# Commands to strip libraries.
26115
old_striplib=$lt_old_striplib
26116
striplib=$lt_striplib
26118
# Dependencies to place before the objects being linked to create a
26120
predep_objects=$lt_predep_objects_F77
26122
# Dependencies to place after the objects being linked to create a
26124
postdep_objects=$lt_postdep_objects_F77
26126
# Dependencies to place before the objects being linked to create a
26128
predeps=$lt_predeps_F77
26130
# Dependencies to place after the objects being linked to create a
26132
postdeps=$lt_postdeps_F77
26134
# The library search path used internally by the compiler when linking
26135
# a shared library.
26136
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26138
# Method to check whether dependent libraries are shared objects.
26139
deplibs_check_method=$lt_deplibs_check_method
26141
# Command to use when deplibs_check_method == file_magic.
26142
file_magic_cmd=$lt_file_magic_cmd
26144
# Flag that allows shared libraries with undefined symbols to be built.
26145
allow_undefined_flag=$lt_allow_undefined_flag_F77
26147
# Flag that forces no undefined symbols.
26148
no_undefined_flag=$lt_no_undefined_flag_F77
26150
# Commands used to finish a libtool library installation in a directory.
26151
finish_cmds=$lt_finish_cmds
26153
# Same as above, but a single script fragment to be evaled but not shown.
26154
finish_eval=$lt_finish_eval
26156
# Take the output of nm and produce a listing of raw symbols and C names.
26157
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26159
# Transform the output of nm in a proper C declaration
26160
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26162
# Transform the output of nm in a C name address pair
26163
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26165
# This is the shared library runtime path variable.
26166
runpath_var=$runpath_var
26168
# This is the shared library path variable.
26169
shlibpath_var=$shlibpath_var
26171
# Is shlibpath searched before the hard-coded library search path?
26172
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26174
# How to hardcode a shared library path into an executable.
26175
hardcode_action=$hardcode_action_F77
26177
# Whether we should hardcode library paths into libraries.
26178
hardcode_into_libs=$hardcode_into_libs
26180
# Flag to hardcode \$libdir into a binary during linking.
26181
# This must work even if \$libdir does not exist.
26182
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26184
# If ld is used when linking, flag to hardcode \$libdir into
26185
# a binary during linking. This must work even if \$libdir does
26187
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26189
# Whether we need a single -rpath flag with a separated argument.
26190
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26192
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26193
# resulting binary.
26194
hardcode_direct=$hardcode_direct_F77
26196
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26197
# resulting binary.
26198
hardcode_minus_L=$hardcode_minus_L_F77
26200
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26201
# the resulting binary.
26202
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26204
# Set to yes if building a shared library automatically hardcodes DIR into the library
26205
# and all subsequent libraries and executables linked against it.
26206
hardcode_automatic=$hardcode_automatic_F77
26208
# Variables whose values should be saved in libtool wrapper scripts and
26209
# restored at relink time.
26210
variables_saved_for_relink="$variables_saved_for_relink"
26212
# Whether libtool must link a program against all its dependency libraries.
26213
link_all_deplibs=$link_all_deplibs_F77
26215
# Compile-time system search path for libraries
26216
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26218
# Run-time system search path for libraries
26219
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26221
# Fix the shell variable \$srcfile for the compiler.
26222
fix_srcfile_path="$fix_srcfile_path_F77"
26224
# Set to yes if exported symbols are required.
26225
always_export_symbols=$always_export_symbols_F77
26227
# The commands to list exported symbols.
26228
export_symbols_cmds=$lt_export_symbols_cmds_F77
26230
# The commands to extract the exported symbol list from a shared archive.
26231
extract_expsyms_cmds=$lt_extract_expsyms_cmds
26233
# Symbols that should not be listed in the preloaded symbols.
26234
exclude_expsyms=$lt_exclude_expsyms_F77
26236
# Symbols that must always be exported.
26237
include_expsyms=$lt_include_expsyms_F77
26239
# ### END LIBTOOL TAG CONFIG: $tagname
26245
# If there is no Makefile yet, we rely on a make rule to execute
26246
# `config.status --recheck' to rerun these tests and create the
26247
# libtool script then.
26248
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26249
if test -f "$ltmain_in"; then
26250
test -f Makefile && make "$ltmain"
9545
26256
ac_cpp='$CPP $CPPFLAGS'
12144
29889
# Prevent multiple expansion
12146
# Find a good install program. We prefer a C program (faster),
12147
# so one script is as good as another. But avoid the broken or
12148
# incompatible versions:
12149
# SysV /etc/install, /usr/sbin/install
12150
# SunOS /usr/etc/install
12151
# IRIX /sbin/install
12153
# AmigaOS /C/install, which installs bootblocks on floppy discs
12154
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12155
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12156
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12157
# ./install, which can be erroneously created by make from ./install.sh.
12158
echo "$as_me:12158: checking for a BSD compatible install" >&5
12159
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
12160
if test -z "$INSTALL"; then
12161
if test "${ac_cv_path_install+set}" = set; then
12162
echo $ECHO_N "(cached) $ECHO_C" >&6
12164
ac_save_IFS=$IFS; IFS=$ac_path_separator
12165
for ac_dir in $PATH; do
12167
# Account for people who put trailing slashes in PATH elements.
12169
/ | ./ | .// | /cC/* \
12170
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
12173
# OSF1 and SCO ODT 3.0 have their own names for install.
12174
# Don't use installbsd from OSF since it installs stuff as root
12176
for ac_prog in ginstall scoinst install; do
12177
if $as_executable_p "$ac_dir/$ac_prog"; then
12178
if test $ac_prog = install &&
12179
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12180
# AIX install. It has an incompatible calling convention.
12182
elif test $ac_prog = install &&
12183
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12184
# program-specific install script used by HP pwplus--don't use.
12187
ac_cv_path_install="$ac_dir/$ac_prog -c"
12197
if test "${ac_cv_path_install+set}" = set; then
12198
INSTALL=$ac_cv_path_install
12200
# As a last resort, use the slow shell script. We don't cache a
12201
# path for INSTALL within a source directory, because that will
12202
# break other packages using the cache if that directory is
12203
# removed, or if the path is relative.
12204
INSTALL=$ac_install_sh
12207
echo "$as_me:12207: result: $INSTALL" >&5
12208
echo "${ECHO_T}$INSTALL" >&6
12210
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12211
# It thinks the first close brace ends the variable substitution.
12212
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12214
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12216
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12218
echo "$as_me:12218: checking whether build environment is sane" >&5
12219
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12222
echo timestamp > conftest.file
12223
# Do `set' in a subshell so we don't clobber the current shell's
12224
# arguments. Must try -L first in case configure is actually a
12225
# symlink; some systems play weird games with the mod time of symlinks
12226
# (eg FreeBSD returns the mod time of the symlink's containing
12229
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12230
if test "$*" = "X"; then
12232
set X `ls -t $srcdir/configure conftest.file`
12234
rm -f conftest.file
12235
if test "$*" != "X $srcdir/configure conftest.file" \
12236
&& test "$*" != "X conftest.file $srcdir/configure"; then
12238
# If neither matched, then we have a broken ls. This can happen
12239
# if, for instance, CONFIG_SHELL is bash and it inherits a
12240
# broken ls alias from the environment. This has actually
12241
# happened. Such a system could not be considered "sane".
12242
{ { echo "$as_me:12242: error: ls -t appears to fail. Make sure there is not a broken
12243
alias in your environment" >&5
12244
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
12245
alias in your environment" >&2;}
12246
{ (exit 1); exit 1; }; }
12249
test "$2" = conftest.file
12255
{ { echo "$as_me:12255: error: newly created file is older than distributed files!
12256
Check your system clock" >&5
12257
echo "$as_me: error: newly created file is older than distributed files!
12258
Check your system clock" >&2;}
12259
{ (exit 1); exit 1; }; }
12261
echo "$as_me:12261: result: yes" >&5
12262
echo "${ECHO_T}yes" >&6
12263
test "$program_prefix" != NONE &&
12264
program_transform_name="s,^,$program_prefix,;$program_transform_name"
12265
# Use a double $ so make ignores it.
12266
test "$program_suffix" != NONE &&
12267
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12268
# Double any \ or $. echo might interpret backslashes.
12269
# By default was `s,x,x', remove it if useless.
12270
cat <<\_ACEOF >conftest.sed
12271
s/[\\$]/&&/g;s/;s,x,x,$//
12273
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12276
# expand $ac_aux_dir to an absolute path
12277
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
12279
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
12280
# Use eval to expand $SHELL
12281
if eval "$MISSING --run true"; then
12282
am_missing_run="$MISSING --run "
12286
{ echo "$as_me:12286: WARNING: ${am_backtick}missing' script is too old or missing" >&5
12287
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
12290
for ac_prog in mawk gawk nawk awk
12292
# Extract the first word of "$ac_prog", so it can be a program name with args.
12293
set dummy $ac_prog; ac_word=$2
12294
echo "$as_me:12294: checking for $ac_word" >&5
12295
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12296
if test "${ac_cv_prog_AWK+set}" = set; then
12297
echo $ECHO_N "(cached) $ECHO_C" >&6
12299
if test -n "$AWK"; then
12300
ac_cv_prog_AWK="$AWK" # Let the user override the test.
12302
ac_save_IFS=$IFS; IFS=$ac_path_separator
12304
for ac_dir in $ac_dummy; do
12306
test -z "$ac_dir" && ac_dir=.
12307
$as_executable_p "$ac_dir/$ac_word" || continue
12308
ac_cv_prog_AWK="$ac_prog"
12309
echo "$as_me:12309: found $ac_dir/$ac_word" >&5
12315
AWK=$ac_cv_prog_AWK
12316
if test -n "$AWK"; then
12317
echo "$as_me:12317: result: $AWK" >&5
12318
echo "${ECHO_T}$AWK" >&6
12320
echo "$as_me:12320: result: no" >&5
12321
echo "${ECHO_T}no" >&6
12324
test -n "$AWK" && break
12327
echo "$as_me:12327: checking whether ${MAKE-make} sets \${MAKE}" >&5
12328
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
12329
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
12330
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12331
echo $ECHO_N "(cached) $ECHO_C" >&6
12333
cat >conftest.make <<\EOF
12335
@echo 'ac_maketemp="${MAKE}"'
12337
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12338
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12339
if test -n "$ac_maketemp"; then
12340
eval ac_cv_prog_make_${ac_make}_set=yes
12342
eval ac_cv_prog_make_${ac_make}_set=no
12344
rm -f conftest.make
12346
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12347
echo "$as_me:12347: result: yes" >&5
12348
echo "${ECHO_T}yes" >&6
12351
echo "$as_me:12351: result: no" >&5
12352
echo "${ECHO_T}no" >&6
12353
SET_MAKE="MAKE=${MAKE-make}"
12356
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
12357
if test "${enable_dependency_tracking+set}" = set; then
12358
enableval="$enable_dependency_tracking"
12361
if test "x$enable_dependency_tracking" != xno; then
12362
am_depcomp="$ac_aux_dir/depcomp"
12366
if test "x$enable_dependency_tracking" != xno; then
12374
rm -f .deps 2>/dev/null
12375
mkdir .deps 2>/dev/null
12376
if test -d .deps; then
12379
# MS-DOS does not allow filenames that begin with a dot.
12382
rmdir .deps 2>/dev/null
12384
ac_config_commands="$ac_config_commands default-1"
12386
am_make=${MAKE-make}
12387
cat > confinc << 'END'
12391
# If we don't find an include directive, just comment out the code.
12392
echo "$as_me:12392: checking for style of include used by $am_make" >&5
12393
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
12397
# First try GNU make style include.
12398
echo "include confinc" > confmf
12399
# We grep out `Entering directory' and `Leaving directory'
12400
# messages which can occur if `w' ends up in MAKEFLAGS.
12401
# In particular we don't look at `^make:' because GNU make might
12402
# be invoked under some other name (usually "gmake"), in which
12403
# case it prints its new name instead of `make'.
12404
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
12405
am__include=include
12409
# Now try BSD make style include.
12410
if test "$am__include" = "#"; then
12411
echo '.include "confinc"' > confmf
12412
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
12413
am__include=.include
12419
echo "$as_me:12419: result: $_am_result" >&5
12420
echo "${ECHO_T}$_am_result" >&6
12421
rm -f confinc confmf
12423
# test to see if srcdir already configured
12424
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
12425
test -f $srcdir/config.status; then
12426
{ { echo "$as_me:12426: error: source directory already configured; run \"make distclean\" there first" >&5
12427
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12428
{ (exit 1); exit 1; }; }
12431
# Define the identity of the package.
12435
cat >>confdefs.h <<EOF
12436
#define PACKAGE "$PACKAGE"
12439
cat >>confdefs.h <<EOF
12440
#define VERSION "$VERSION"
12443
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
12444
# the ones we care about.
12446
# Autoconf 2.50 always computes EXEEXT. However we need to be
12447
# compatible with 2.13, for now. So we always define EXEEXT, but we
12448
# don't compute it.
12450
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
12451
# requests that it be used. This is a bit dumb.
12454
# Some tools Automake needs.
12456
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12458
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12460
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12462
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12464
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12466
AMTAR=${AMTAR-"${am_missing_run}tar"}
12468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
12470
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
12472
# We need awk for the "check" target. The system "awk" is bad on
12475
depcc="$CC" am_compiler_list=
12477
echo "$as_me:12477: checking dependency style of $depcc" >&5
12478
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12479
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12480
echo $ECHO_N "(cached) $ECHO_C" >&6
12482
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12483
# We make a subdir and do the tests there. Otherwise we can end up
12484
# making bogus files that we don't know about and never remove. For
12485
# instance it was reported that on HP-UX the gcc test will end up
12486
# making a dummy file named `D' -- because `-MD' means `put the output
12489
# Copy depcomp to subdir because otherwise we won't find it if we're
12490
# using a relative directory.
12491
cp "$am_depcomp" conftest.dir
12494
am_cv_CC_dependencies_compiler_type=none
12495
if test "$am_compiler_list" = ""; then
12496
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12498
for depmode in $am_compiler_list; do
12499
# We need to recreate these files for each test, as the compiler may
12500
# overwrite some of them when testing with obscure command lines.
12501
# This happens at least with the AIX C compiler.
12502
echo '#include "conftest.h"' > conftest.c
12503
echo 'int i;' > conftest.h
12504
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12508
# after this tag, mechanisms are not by side-effect, so they'll
12509
# only be used when explicitly requested
12510
if test "x$enable_dependency_tracking" = xyes; then
12518
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12519
# mode. It turns out that the SunPro C++ compiler does not properly
12520
# handle `-M -o', and we need to detect this.
12521
if depmode=$depmode \
12522
source=conftest.c object=conftest.o \
12523
depfile=conftest.Po tmpdepfile=conftest.TPo \
12524
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12525
grep conftest.h conftest.Po > /dev/null 2>&1 &&
12526
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12527
am_cv_CC_dependencies_compiler_type=$depmode
12533
rm -rf conftest.dir
12535
am_cv_CC_dependencies_compiler_type=none
12539
echo "$as_me:12539: result: $am_cv_CC_dependencies_compiler_type" >&5
12540
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12541
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
12543
depcc="$CXX" am_compiler_list=
12545
echo "$as_me:12545: checking dependency style of $depcc" >&5
12546
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12547
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12548
echo $ECHO_N "(cached) $ECHO_C" >&6
12550
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12551
# We make a subdir and do the tests there. Otherwise we can end up
12552
# making bogus files that we don't know about and never remove. For
12553
# instance it was reported that on HP-UX the gcc test will end up
12554
# making a dummy file named `D' -- because `-MD' means `put the output
12557
# Copy depcomp to subdir because otherwise we won't find it if we're
12558
# using a relative directory.
12559
cp "$am_depcomp" conftest.dir
12562
am_cv_CXX_dependencies_compiler_type=none
12563
if test "$am_compiler_list" = ""; then
12564
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12566
for depmode in $am_compiler_list; do
12567
# We need to recreate these files for each test, as the compiler may
12568
# overwrite some of them when testing with obscure command lines.
12569
# This happens at least with the AIX C compiler.
12570
echo '#include "conftest.h"' > conftest.c
12571
echo 'int i;' > conftest.h
12572
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12576
# after this tag, mechanisms are not by side-effect, so they'll
12577
# only be used when explicitly requested
12578
if test "x$enable_dependency_tracking" = xyes; then
12586
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12587
# mode. It turns out that the SunPro C++ compiler does not properly
12588
# handle `-M -o', and we need to detect this.
12589
if depmode=$depmode \
12590
source=conftest.c object=conftest.o \
12591
depfile=conftest.Po tmpdepfile=conftest.TPo \
12592
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12593
grep conftest.h conftest.Po > /dev/null 2>&1 &&
12594
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12595
am_cv_CXX_dependencies_compiler_type=$depmode
12601
rm -rf conftest.dir
12603
am_cv_CXX_dependencies_compiler_type=none
12607
echo "$as_me:12607: result: $am_cv_CXX_dependencies_compiler_type" >&5
12608
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12609
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
12611
ac_config_headers="$ac_config_headers config.h"
12613
# Build time sanity check...
12614
echo "$as_me:12614: checking whether build environment is sane" >&5
12615
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12618
echo timestamp > conftest.file
12619
# Do `set' in a subshell so we don't clobber the current shell's
12620
# arguments. Must try -L first in case configure is actually a
12621
# symlink; some systems play weird games with the mod time of symlinks
12622
# (eg FreeBSD returns the mod time of the symlink's containing
12625
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12626
if test "$*" = "X"; then
12628
set X `ls -t $srcdir/configure conftest.file`
12630
rm -f conftest.file
12631
if test "$*" != "X $srcdir/configure conftest.file" \
12632
&& test "$*" != "X conftest.file $srcdir/configure"; then
12634
# If neither matched, then we have a broken ls. This can happen
12635
# if, for instance, CONFIG_SHELL is bash and it inherits a
12636
# broken ls alias from the environment. This has actually
12637
# happened. Such a system could not be considered "sane".
12638
{ { echo "$as_me:12638: error: ls -t appears to fail. Make sure there is not a broken
12639
alias in your environment" >&5
12640
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
12641
alias in your environment" >&2;}
12642
{ (exit 1); exit 1; }; }
12645
test "$2" = conftest.file
12651
{ { echo "$as_me:12651: error: newly created file is older than distributed files!
12652
Check your system clock" >&5
12653
echo "$as_me: error: newly created file is older than distributed files!
12654
Check your system clock" >&2;}
12655
{ (exit 1); exit 1; }; }
12657
echo "$as_me:12657: result: yes" >&5
12658
echo "${ECHO_T}yes" >&6
12660
echo -n "checking for something to drink while compiling..."
12661
echo " err: no fridge found"
12664
ac_cpp='$CPP $CPPFLAGS'
12665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12668
if test -n "$ac_tool_prefix"; then
12669
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12670
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12671
echo "$as_me:12671: checking for $ac_word" >&5
12672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12673
if test "${ac_cv_prog_CC+set}" = set; then
12674
echo $ECHO_N "(cached) $ECHO_C" >&6
12676
if test -n "$CC"; then
12677
ac_cv_prog_CC="$CC" # Let the user override the test.
12679
ac_save_IFS=$IFS; IFS=$ac_path_separator
12681
for ac_dir in $ac_dummy; do
12683
test -z "$ac_dir" && ac_dir=.
12684
$as_executable_p "$ac_dir/$ac_word" || continue
12685
ac_cv_prog_CC="${ac_tool_prefix}gcc"
12686
echo "$as_me:12686: found $ac_dir/$ac_word" >&5
12693
if test -n "$CC"; then
12694
echo "$as_me:12694: result: $CC" >&5
12695
echo "${ECHO_T}$CC" >&6
12697
echo "$as_me:12697: result: no" >&5
12698
echo "${ECHO_T}no" >&6
12702
if test -z "$ac_cv_prog_CC"; then
12704
# Extract the first word of "gcc", so it can be a program name with args.
12705
set dummy gcc; ac_word=$2
12706
echo "$as_me:12706: checking for $ac_word" >&5
12707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12708
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12709
echo $ECHO_N "(cached) $ECHO_C" >&6
12711
if test -n "$ac_ct_CC"; then
12712
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12714
ac_save_IFS=$IFS; IFS=$ac_path_separator
12716
for ac_dir in $ac_dummy; do
12718
test -z "$ac_dir" && ac_dir=.
12719
$as_executable_p "$ac_dir/$ac_word" || continue
12720
ac_cv_prog_ac_ct_CC="gcc"
12721
echo "$as_me:12721: found $ac_dir/$ac_word" >&5
12727
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12728
if test -n "$ac_ct_CC"; then
12729
echo "$as_me:12729: result: $ac_ct_CC" >&5
12730
echo "${ECHO_T}$ac_ct_CC" >&6
12732
echo "$as_me:12732: result: no" >&5
12733
echo "${ECHO_T}no" >&6
12738
CC="$ac_cv_prog_CC"
12741
if test -z "$CC"; then
12742
if test -n "$ac_tool_prefix"; then
12743
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12744
set dummy ${ac_tool_prefix}cc; ac_word=$2
12745
echo "$as_me:12745: checking for $ac_word" >&5
12746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12747
if test "${ac_cv_prog_CC+set}" = set; then
12748
echo $ECHO_N "(cached) $ECHO_C" >&6
12750
if test -n "$CC"; then
12751
ac_cv_prog_CC="$CC" # Let the user override the test.
12753
ac_save_IFS=$IFS; IFS=$ac_path_separator
12755
for ac_dir in $ac_dummy; do
12757
test -z "$ac_dir" && ac_dir=.
12758
$as_executable_p "$ac_dir/$ac_word" || continue
12759
ac_cv_prog_CC="${ac_tool_prefix}cc"
12760
echo "$as_me:12760: found $ac_dir/$ac_word" >&5
12767
if test -n "$CC"; then
12768
echo "$as_me:12768: result: $CC" >&5
12769
echo "${ECHO_T}$CC" >&6
12771
echo "$as_me:12771: result: no" >&5
12772
echo "${ECHO_T}no" >&6
12776
if test -z "$ac_cv_prog_CC"; then
12778
# Extract the first word of "cc", so it can be a program name with args.
12779
set dummy cc; ac_word=$2
12780
echo "$as_me:12780: checking for $ac_word" >&5
12781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12782
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12783
echo $ECHO_N "(cached) $ECHO_C" >&6
12785
if test -n "$ac_ct_CC"; then
12786
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12788
ac_save_IFS=$IFS; IFS=$ac_path_separator
12790
for ac_dir in $ac_dummy; do
12792
test -z "$ac_dir" && ac_dir=.
12793
$as_executable_p "$ac_dir/$ac_word" || continue
12794
ac_cv_prog_ac_ct_CC="cc"
12795
echo "$as_me:12795: found $ac_dir/$ac_word" >&5
12801
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12802
if test -n "$ac_ct_CC"; then
12803
echo "$as_me:12803: result: $ac_ct_CC" >&5
12804
echo "${ECHO_T}$ac_ct_CC" >&6
12806
echo "$as_me:12806: result: no" >&5
12807
echo "${ECHO_T}no" >&6
12812
CC="$ac_cv_prog_CC"
12816
if test -z "$CC"; then
12817
# Extract the first word of "cc", so it can be a program name with args.
12818
set dummy cc; ac_word=$2
12819
echo "$as_me:12819: checking for $ac_word" >&5
12820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12821
if test "${ac_cv_prog_CC+set}" = set; then
12822
echo $ECHO_N "(cached) $ECHO_C" >&6
12824
if test -n "$CC"; then
12825
ac_cv_prog_CC="$CC" # Let the user override the test.
12827
ac_prog_rejected=no
12828
ac_save_IFS=$IFS; IFS=$ac_path_separator
12830
for ac_dir in $ac_dummy; do
12832
test -z "$ac_dir" && ac_dir=.
12833
$as_executable_p "$ac_dir/$ac_word" || continue
12834
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
12835
ac_prog_rejected=yes
12839
echo "$as_me:12839: found $ac_dir/$ac_word" >&5
12843
if test $ac_prog_rejected = yes; then
12844
# We found a bogon in the path, so make sure we never use it.
12845
set dummy $ac_cv_prog_CC
12847
if test $# != 0; then
12848
# We chose a different compiler from the bogus one.
12849
# However, it has the same basename, so the bogon will be chosen
12850
# first if we set CC to just the basename; use the full file name.
12852
set dummy "$ac_dir/$ac_word" ${1+"$@"}
12860
if test -n "$CC"; then
12861
echo "$as_me:12861: result: $CC" >&5
12862
echo "${ECHO_T}$CC" >&6
12864
echo "$as_me:12864: result: no" >&5
12865
echo "${ECHO_T}no" >&6
12869
if test -z "$CC"; then
12870
if test -n "$ac_tool_prefix"; then
12873
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12874
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12875
echo "$as_me:12875: checking for $ac_word" >&5
12876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12877
if test "${ac_cv_prog_CC+set}" = set; then
12878
echo $ECHO_N "(cached) $ECHO_C" >&6
12880
if test -n "$CC"; then
12881
ac_cv_prog_CC="$CC" # Let the user override the test.
12883
ac_save_IFS=$IFS; IFS=$ac_path_separator
12885
for ac_dir in $ac_dummy; do
12887
test -z "$ac_dir" && ac_dir=.
12888
$as_executable_p "$ac_dir/$ac_word" || continue
12889
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12890
echo "$as_me:12890: found $ac_dir/$ac_word" >&5
12897
if test -n "$CC"; then
12898
echo "$as_me:12898: result: $CC" >&5
12899
echo "${ECHO_T}$CC" >&6
12901
echo "$as_me:12901: result: no" >&5
12902
echo "${ECHO_T}no" >&6
12905
test -n "$CC" && break
12908
if test -z "$CC"; then
12912
# Extract the first word of "$ac_prog", so it can be a program name with args.
12913
set dummy $ac_prog; ac_word=$2
12914
echo "$as_me:12914: checking for $ac_word" >&5
12915
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12916
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12917
echo $ECHO_N "(cached) $ECHO_C" >&6
12919
if test -n "$ac_ct_CC"; then
12920
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12922
ac_save_IFS=$IFS; IFS=$ac_path_separator
12924
for ac_dir in $ac_dummy; do
12926
test -z "$ac_dir" && ac_dir=.
12927
$as_executable_p "$ac_dir/$ac_word" || continue
12928
ac_cv_prog_ac_ct_CC="$ac_prog"
12929
echo "$as_me:12929: found $ac_dir/$ac_word" >&5
12935
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12936
if test -n "$ac_ct_CC"; then
12937
echo "$as_me:12937: result: $ac_ct_CC" >&5
12938
echo "${ECHO_T}$ac_ct_CC" >&6
12940
echo "$as_me:12940: result: no" >&5
12941
echo "${ECHO_T}no" >&6
12944
test -n "$ac_ct_CC" && break
12952
test -z "$CC" && { { echo "$as_me:12952: error: no acceptable cc found in \$PATH" >&5
12953
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
12954
{ (exit 1); exit 1; }; }
12956
# Provide some information about the compiler.
12957
echo "$as_me:12957:" \
12958
"checking for C compiler version" >&5
12959
ac_compiler=`set X $ac_compile; echo $2`
12960
{ (eval echo "$as_me:12960: \"$ac_compiler --version </dev/null >&5\"") >&5
12961
(eval $ac_compiler --version </dev/null >&5) 2>&5
12963
echo "$as_me:12963: \$? = $ac_status" >&5
12964
(exit $ac_status); }
12965
{ (eval echo "$as_me:12965: \"$ac_compiler -v </dev/null >&5\"") >&5
12966
(eval $ac_compiler -v </dev/null >&5) 2>&5
12968
echo "$as_me:12968: \$? = $ac_status" >&5
12969
(exit $ac_status); }
12970
{ (eval echo "$as_me:12970: \"$ac_compiler -V </dev/null >&5\"") >&5
12971
(eval $ac_compiler -V </dev/null >&5) 2>&5
12973
echo "$as_me:12973: \$? = $ac_status" >&5
12974
(exit $ac_status); }
12976
echo "$as_me:12976: checking whether we are using the GNU C compiler" >&5
12977
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12978
if test "${ac_cv_c_compiler_gnu+set}" = set; then
12979
echo $ECHO_N "(cached) $ECHO_C" >&6
12981
cat >conftest.$ac_ext <<_ACEOF
12982
#line 12982 "configure"
12983
#include "confdefs.h"
12996
rm -f conftest.$ac_objext
12997
if { (eval echo "$as_me:12997: \"$ac_compile\"") >&5
12998
(eval $ac_compile) 2>&5
13000
echo "$as_me:13000: \$? = $ac_status" >&5
13001
(exit $ac_status); } &&
13002
{ ac_try='test -s conftest.$ac_objext'
13003
{ (eval echo "$as_me:13003: \"$ac_try\"") >&5
13004
(eval $ac_try) 2>&5
13006
echo "$as_me:13006: \$? = $ac_status" >&5
13007
(exit $ac_status); }; }; then
13008
ac_compiler_gnu=yes
13010
echo "$as_me: failed program was:" >&5
13011
cat conftest.$ac_ext >&5
13014
rm -f conftest.$ac_objext conftest.$ac_ext
13015
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13018
echo "$as_me:13018: result: $ac_cv_c_compiler_gnu" >&5
13019
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
13020
GCC=`test $ac_compiler_gnu = yes && echo yes`
13021
ac_test_CFLAGS=${CFLAGS+set}
13022
ac_save_CFLAGS=$CFLAGS
13024
echo "$as_me:13024: checking whether $CC accepts -g" >&5
13025
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13026
if test "${ac_cv_prog_cc_g+set}" = set; then
13027
echo $ECHO_N "(cached) $ECHO_C" >&6
13029
cat >conftest.$ac_ext <<_ACEOF
13030
#line 13030 "configure"
13031
#include "confdefs.h"
13041
rm -f conftest.$ac_objext
13042
if { (eval echo "$as_me:13042: \"$ac_compile\"") >&5
13043
(eval $ac_compile) 2>&5
13045
echo "$as_me:13045: \$? = $ac_status" >&5
13046
(exit $ac_status); } &&
13047
{ ac_try='test -s conftest.$ac_objext'
13048
{ (eval echo "$as_me:13048: \"$ac_try\"") >&5
13049
(eval $ac_try) 2>&5
13051
echo "$as_me:13051: \$? = $ac_status" >&5
13052
(exit $ac_status); }; }; then
13053
ac_cv_prog_cc_g=yes
13055
echo "$as_me: failed program was:" >&5
13056
cat conftest.$ac_ext >&5
13059
rm -f conftest.$ac_objext conftest.$ac_ext
13061
echo "$as_me:13061: result: $ac_cv_prog_cc_g" >&5
13062
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13063
if test "$ac_test_CFLAGS" = set; then
13064
CFLAGS=$ac_save_CFLAGS
13065
elif test $ac_cv_prog_cc_g = yes; then
13066
if test "$GCC" = yes; then
13072
if test "$GCC" = yes; then
13078
# Some people use a C++ compiler to compile C. Since we use `exit',
13079
# in C++ we need to declare it. In case someone uses the same compiler
13080
# for both compiling C and C++ we need to have the C++ compiler decide
13081
# the declaration of exit, since it's the most demanding environment.
13082
cat >conftest.$ac_ext <<_ACEOF
13083
#ifndef __cplusplus
13087
rm -f conftest.$ac_objext
13088
if { (eval echo "$as_me:13088: \"$ac_compile\"") >&5
13089
(eval $ac_compile) 2>&5
13091
echo "$as_me:13091: \$? = $ac_status" >&5
13092
(exit $ac_status); } &&
13093
{ ac_try='test -s conftest.$ac_objext'
13094
{ (eval echo "$as_me:13094: \"$ac_try\"") >&5
13095
(eval $ac_try) 2>&5
13097
echo "$as_me:13097: \$? = $ac_status" >&5
13098
(exit $ac_status); }; }; then
13099
for ac_declaration in \
13101
'#include <stdlib.h>' \
13102
'extern "C" void std::exit (int) throw (); using std::exit;' \
13103
'extern "C" void std::exit (int); using std::exit;' \
13104
'extern "C" void exit (int) throw ();' \
13105
'extern "C" void exit (int);' \
13108
cat >conftest.$ac_ext <<_ACEOF
13109
#line 13109 "configure"
13110
#include "confdefs.h"
13111
#include <stdlib.h>
13121
rm -f conftest.$ac_objext
13122
if { (eval echo "$as_me:13122: \"$ac_compile\"") >&5
13123
(eval $ac_compile) 2>&5
13125
echo "$as_me:13125: \$? = $ac_status" >&5
13126
(exit $ac_status); } &&
13127
{ ac_try='test -s conftest.$ac_objext'
13128
{ (eval echo "$as_me:13128: \"$ac_try\"") >&5
13129
(eval $ac_try) 2>&5
13131
echo "$as_me:13131: \$? = $ac_status" >&5
13132
(exit $ac_status); }; }; then
13135
echo "$as_me: failed program was:" >&5
13136
cat conftest.$ac_ext >&5
13139
rm -f conftest.$ac_objext conftest.$ac_ext
13140
cat >conftest.$ac_ext <<_ACEOF
13141
#line 13141 "configure"
13142
#include "confdefs.h"
13152
rm -f conftest.$ac_objext
13153
if { (eval echo "$as_me:13153: \"$ac_compile\"") >&5
13154
(eval $ac_compile) 2>&5
13156
echo "$as_me:13156: \$? = $ac_status" >&5
13157
(exit $ac_status); } &&
13158
{ ac_try='test -s conftest.$ac_objext'
13159
{ (eval echo "$as_me:13159: \"$ac_try\"") >&5
13160
(eval $ac_try) 2>&5
13162
echo "$as_me:13162: \$? = $ac_status" >&5
13163
(exit $ac_status); }; }; then
13166
echo "$as_me: failed program was:" >&5
13167
cat conftest.$ac_ext >&5
13169
rm -f conftest.$ac_objext conftest.$ac_ext
13172
if test -n "$ac_declaration"; then
13173
echo '#ifdef __cplusplus' >>confdefs.h
13174
echo $ac_declaration >>confdefs.h
13175
echo '#endif' >>confdefs.h
13179
echo "$as_me: failed program was:" >&5
13180
cat conftest.$ac_ext >&5
13182
rm -f conftest.$ac_objext conftest.$ac_ext
13184
ac_cpp='$CPP $CPPFLAGS'
13185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13189
# Find a good install program. We prefer a C program (faster),
13190
# so one script is as good as another. But avoid the broken or
13191
# incompatible versions:
13192
# SysV /etc/install, /usr/sbin/install
13193
# SunOS /usr/etc/install
13194
# IRIX /sbin/install
13196
# AmigaOS /C/install, which installs bootblocks on floppy discs
13197
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13198
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13199
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13200
# ./install, which can be erroneously created by make from ./install.sh.
13201
echo "$as_me:13201: checking for a BSD compatible install" >&5
13202
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
13203
if test -z "$INSTALL"; then
13204
if test "${ac_cv_path_install+set}" = set; then
13205
echo $ECHO_N "(cached) $ECHO_C" >&6
13207
ac_save_IFS=$IFS; IFS=$ac_path_separator
13208
for ac_dir in $PATH; do
13210
# Account for people who put trailing slashes in PATH elements.
13212
/ | ./ | .// | /cC/* \
13213
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
13216
# OSF1 and SCO ODT 3.0 have their own names for install.
13217
# Don't use installbsd from OSF since it installs stuff as root
13219
for ac_prog in ginstall scoinst install; do
13220
if $as_executable_p "$ac_dir/$ac_prog"; then
13221
if test $ac_prog = install &&
13222
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
13223
# AIX install. It has an incompatible calling convention.
13225
elif test $ac_prog = install &&
13226
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
13227
# program-specific install script used by HP pwplus--don't use.
13230
ac_cv_path_install="$ac_dir/$ac_prog -c"
13240
if test "${ac_cv_path_install+set}" = set; then
13241
INSTALL=$ac_cv_path_install
13243
# As a last resort, use the slow shell script. We don't cache a
13244
# path for INSTALL within a source directory, because that will
13245
# break other packages using the cache if that directory is
13246
# removed, or if the path is relative.
13247
INSTALL=$ac_install_sh
13250
echo "$as_me:13250: result: $INSTALL" >&5
13251
echo "${ECHO_T}$INSTALL" >&6
13253
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13254
# It thinks the first close brace ends the variable substitution.
13255
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13257
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13259
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13261
echo "$as_me:13261: checking whether ${MAKE-make} sets \${MAKE}" >&5
13262
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
13263
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
13264
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
13265
echo $ECHO_N "(cached) $ECHO_C" >&6
13267
cat >conftest.make <<\EOF
13269
@echo 'ac_maketemp="${MAKE}"'
13271
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13272
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
13273
if test -n "$ac_maketemp"; then
13274
eval ac_cv_prog_make_${ac_make}_set=yes
13276
eval ac_cv_prog_make_${ac_make}_set=no
13278
rm -f conftest.make
13280
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13281
echo "$as_me:13281: result: yes" >&5
13282
echo "${ECHO_T}yes" >&6
13285
echo "$as_me:13285: result: no" >&5
13286
echo "${ECHO_T}no" >&6
13287
SET_MAKE="MAKE=${MAKE-make}"
13290
echo "$as_me:13290: checking whether ln -s works" >&5
13291
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13293
if test "$LN_S" = "ln -s"; then
13294
echo "$as_me:13294: result: yes" >&5
13295
echo "${ECHO_T}yes" >&6
13297
echo "$as_me:13297: result: no, using $LN_S" >&5
13298
echo "${ECHO_T}no, using $LN_S" >&6
13301
echo "$as_me:13301: checking for strerror in -lcposix" >&5
13302
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
13303
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
13304
echo $ECHO_N "(cached) $ECHO_C" >&6
13306
ac_check_lib_save_LIBS=$LIBS
13307
LIBS="-lcposix $LIBS"
13308
cat >conftest.$ac_ext <<_ACEOF
13309
#line 13309 "configure"
13310
#include "confdefs.h"
13312
/* Override any gcc2 internal prototype to avoid an error. */
13316
/* We use char because int might match the return type of a gcc2
13317
builtin and then its argument prototype would still apply. */
13327
rm -f conftest.$ac_objext conftest$ac_exeext
13328
if { (eval echo "$as_me:13328: \"$ac_link\"") >&5
13329
(eval $ac_link) 2>&5
13331
echo "$as_me:13331: \$? = $ac_status" >&5
13332
(exit $ac_status); } &&
13333
{ ac_try='test -s conftest$ac_exeext'
13334
{ (eval echo "$as_me:13334: \"$ac_try\"") >&5
13335
(eval $ac_try) 2>&5
13337
echo "$as_me:13337: \$? = $ac_status" >&5
13338
(exit $ac_status); }; }; then
13339
ac_cv_lib_cposix_strerror=yes
13341
echo "$as_me: failed program was:" >&5
13342
cat conftest.$ac_ext >&5
13343
ac_cv_lib_cposix_strerror=no
13345
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13346
LIBS=$ac_check_lib_save_LIBS
13348
echo "$as_me:13348: result: $ac_cv_lib_cposix_strerror" >&5
13349
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
13350
if test $ac_cv_lib_cposix_strerror = yes; then
13351
LIBS="$LIBS -lcposix"
13354
echo "$as_me:13354: checking for dlopen in -ldl" >&5
13355
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13356
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13357
echo $ECHO_N "(cached) $ECHO_C" >&6
13359
ac_check_lib_save_LIBS=$LIBS
13361
cat >conftest.$ac_ext <<_ACEOF
13362
#line 13362 "configure"
13363
#include "confdefs.h"
13365
/* Override any gcc2 internal prototype to avoid an error. */
13369
/* We use char because int might match the return type of a gcc2
13370
builtin and then its argument prototype would still apply. */
13380
rm -f conftest.$ac_objext conftest$ac_exeext
13381
if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
13382
(eval $ac_link) 2>&5
13384
echo "$as_me:13384: \$? = $ac_status" >&5
13385
(exit $ac_status); } &&
13386
{ ac_try='test -s conftest$ac_exeext'
13387
{ (eval echo "$as_me:13387: \"$ac_try\"") >&5
13388
(eval $ac_try) 2>&5
13390
echo "$as_me:13390: \$? = $ac_status" >&5
13391
(exit $ac_status); }; }; then
13392
ac_cv_lib_dl_dlopen=yes
13394
echo "$as_me: failed program was:" >&5
13395
cat conftest.$ac_ext >&5
13396
ac_cv_lib_dl_dlopen=no
13398
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13399
LIBS=$ac_check_lib_save_LIBS
13401
echo "$as_me:13401: result: $ac_cv_lib_dl_dlopen" >&5
13402
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13403
if test $ac_cv_lib_dl_dlopen = yes; then
13404
cat >>confdefs.h <<EOF
13405
#define HAVE_LIBDL 1
13412
echo "$as_me:13412: checking for initscr in -lcurses" >&5
13413
echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13414
if test "${ac_cv_lib_curses_initscr+set}" = set; then
13415
echo $ECHO_N "(cached) $ECHO_C" >&6
13417
ac_check_lib_save_LIBS=$LIBS
13418
LIBS="-lcurses $LIBS"
13419
cat >conftest.$ac_ext <<_ACEOF
13420
#line 13420 "configure"
13421
#include "confdefs.h"
13423
/* Override any gcc2 internal prototype to avoid an error. */
13427
/* We use char because int might match the return type of a gcc2
13428
builtin and then its argument prototype would still apply. */
13438
rm -f conftest.$ac_objext conftest$ac_exeext
13439
if { (eval echo "$as_me:13439: \"$ac_link\"") >&5
13440
(eval $ac_link) 2>&5
13442
echo "$as_me:13442: \$? = $ac_status" >&5
13443
(exit $ac_status); } &&
13444
{ ac_try='test -s conftest$ac_exeext'
13445
{ (eval echo "$as_me:13445: \"$ac_try\"") >&5
13446
(eval $ac_try) 2>&5
13448
echo "$as_me:13448: \$? = $ac_status" >&5
13449
(exit $ac_status); }; }; then
13450
ac_cv_lib_curses_initscr=yes
13452
echo "$as_me: failed program was:" >&5
13453
cat conftest.$ac_ext >&5
13454
ac_cv_lib_curses_initscr=no
13456
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457
LIBS=$ac_check_lib_save_LIBS
13459
echo "$as_me:13459: result: $ac_cv_lib_curses_initscr" >&5
13460
echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13461
if test $ac_cv_lib_curses_initscr = yes; then
13462
cat >>confdefs.h <<EOF
13463
#define HAVE_LIBCURSES 1
13466
LIBS="-lcurses $LIBS"
13470
echo "$as_me:13470: checking for ticable_get_version in -lticables" >&5
13471
echo $ECHO_N "checking for ticable_get_version in -lticables... $ECHO_C" >&6
13472
if test "${ac_cv_lib_ticables_ticable_get_version+set}" = set; then
13473
echo $ECHO_N "(cached) $ECHO_C" >&6
13475
ac_check_lib_save_LIBS=$LIBS
13476
LIBS="-lticables $LIBS"
13477
cat >conftest.$ac_ext <<_ACEOF
13478
#line 13478 "configure"
13479
#include "confdefs.h"
13481
/* Override any gcc2 internal prototype to avoid an error. */
13485
/* We use char because int might match the return type of a gcc2
13486
builtin and then its argument prototype would still apply. */
13487
char ticable_get_version ();
13491
ticable_get_version ();
13496
rm -f conftest.$ac_objext conftest$ac_exeext
13497
if { (eval echo "$as_me:13497: \"$ac_link\"") >&5
13498
(eval $ac_link) 2>&5
13500
echo "$as_me:13500: \$? = $ac_status" >&5
13501
(exit $ac_status); } &&
13502
{ ac_try='test -s conftest$ac_exeext'
13503
{ (eval echo "$as_me:13503: \"$ac_try\"") >&5
13504
(eval $ac_try) 2>&5
13506
echo "$as_me:13506: \$? = $ac_status" >&5
13507
(exit $ac_status); }; }; then
13508
ac_cv_lib_ticables_ticable_get_version=yes
13510
echo "$as_me: failed program was:" >&5
13511
cat conftest.$ac_ext >&5
13512
ac_cv_lib_ticables_ticable_get_version=no
13514
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13515
LIBS=$ac_check_lib_save_LIBS
13517
echo "$as_me:13517: result: $ac_cv_lib_ticables_ticable_get_version" >&5
13518
echo "${ECHO_T}$ac_cv_lib_ticables_ticable_get_version" >&6
13519
if test $ac_cv_lib_ticables_ticable_get_version = yes; then
13520
cat >>confdefs.h <<EOF
13521
#define HAVE_LIBTICABLES 1
13524
LIBS="-lticables $LIBS"
13528
echo "$as_me:13528: checking for ticalc_get_version in -lticalcs" >&5
13529
echo $ECHO_N "checking for ticalc_get_version in -lticalcs... $ECHO_C" >&6
13530
if test "${ac_cv_lib_ticalcs_ticalc_get_version+set}" = set; then
13531
echo $ECHO_N "(cached) $ECHO_C" >&6
13533
ac_check_lib_save_LIBS=$LIBS
13534
LIBS="-lticalcs $LIBS"
13535
cat >conftest.$ac_ext <<_ACEOF
13536
#line 13536 "configure"
13537
#include "confdefs.h"
13539
/* Override any gcc2 internal prototype to avoid an error. */
13543
/* We use char because int might match the return type of a gcc2
13544
builtin and then its argument prototype would still apply. */
13545
char ticalc_get_version ();
13549
ticalc_get_version ();
13554
rm -f conftest.$ac_objext conftest$ac_exeext
13555
if { (eval echo "$as_me:13555: \"$ac_link\"") >&5
13556
(eval $ac_link) 2>&5
13558
echo "$as_me:13558: \$? = $ac_status" >&5
13559
(exit $ac_status); } &&
13560
{ ac_try='test -s conftest$ac_exeext'
13561
{ (eval echo "$as_me:13561: \"$ac_try\"") >&5
13562
(eval $ac_try) 2>&5
13564
echo "$as_me:13564: \$? = $ac_status" >&5
13565
(exit $ac_status); }; }; then
13566
ac_cv_lib_ticalcs_ticalc_get_version=yes
13568
echo "$as_me: failed program was:" >&5
13569
cat conftest.$ac_ext >&5
13570
ac_cv_lib_ticalcs_ticalc_get_version=no
13572
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13573
LIBS=$ac_check_lib_save_LIBS
13575
echo "$as_me:13575: result: $ac_cv_lib_ticalcs_ticalc_get_version" >&5
13576
echo "${ECHO_T}$ac_cv_lib_ticalcs_ticalc_get_version" >&6
13577
if test $ac_cv_lib_ticalcs_ticalc_get_version = yes; then
13578
cat >>confdefs.h <<EOF
13579
#define HAVE_LIBTICALCS 1
13582
LIBS="-lticalcs $LIBS"
13586
echo "$as_me:13586: checking for tiffep_get_version in -ltiffep" >&5
13587
echo $ECHO_N "checking for tiffep_get_version in -ltiffep... $ECHO_C" >&6
13588
if test "${ac_cv_lib_tiffep_tiffep_get_version+set}" = set; then
13589
echo $ECHO_N "(cached) $ECHO_C" >&6
13591
ac_check_lib_save_LIBS=$LIBS
13592
LIBS="-ltiffep $LIBS"
13593
cat >conftest.$ac_ext <<_ACEOF
13594
#line 13594 "configure"
13595
#include "confdefs.h"
13597
/* Override any gcc2 internal prototype to avoid an error. */
13601
/* We use char because int might match the return type of a gcc2
13602
builtin and then its argument prototype would still apply. */
13603
char tiffep_get_version ();
13607
tiffep_get_version ();
13612
rm -f conftest.$ac_objext conftest$ac_exeext
13613
if { (eval echo "$as_me:13613: \"$ac_link\"") >&5
13614
(eval $ac_link) 2>&5
13616
echo "$as_me:13616: \$? = $ac_status" >&5
13617
(exit $ac_status); } &&
13618
{ ac_try='test -s conftest$ac_exeext'
13619
{ (eval echo "$as_me:13619: \"$ac_try\"") >&5
13620
(eval $ac_try) 2>&5
13622
echo "$as_me:13622: \$? = $ac_status" >&5
13623
(exit $ac_status); }; }; then
13624
ac_cv_lib_tiffep_tiffep_get_version=yes
13626
echo "$as_me: failed program was:" >&5
13627
cat conftest.$ac_ext >&5
13628
ac_cv_lib_tiffep_tiffep_get_version=no
13630
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13631
LIBS=$ac_check_lib_save_LIBS
13633
echo "$as_me:13633: result: $ac_cv_lib_tiffep_tiffep_get_version" >&5
13634
echo "${ECHO_T}$ac_cv_lib_tiffep_tiffep_get_version" >&6
13635
if test $ac_cv_lib_tiffep_tiffep_get_version = yes; then
13636
cat >>confdefs.h <<EOF
13637
#define HAVE_LIBTIFFEP 1
13640
LIBS="-ltiffep $LIBS"
13644
echo "$as_me:13644: checking for jpeg_std_error in -ljpeg" >&5
13645
echo $ECHO_N "checking for jpeg_std_error in -ljpeg... $ECHO_C" >&6
13646
if test "${ac_cv_lib_jpeg_jpeg_std_error+set}" = set; then
13647
echo $ECHO_N "(cached) $ECHO_C" >&6
13649
ac_check_lib_save_LIBS=$LIBS
13650
LIBS="-ljpeg $LIBS"
13651
cat >conftest.$ac_ext <<_ACEOF
13652
#line 13652 "configure"
13653
#include "confdefs.h"
13655
/* Override any gcc2 internal prototype to avoid an error. */
13659
/* We use char because int might match the return type of a gcc2
13660
builtin and then its argument prototype would still apply. */
13661
char jpeg_std_error ();
13670
rm -f conftest.$ac_objext conftest$ac_exeext
13671
if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672
(eval $ac_link) 2>&5
13674
echo "$as_me:13674: \$? = $ac_status" >&5
13675
(exit $ac_status); } &&
13676
{ ac_try='test -s conftest$ac_exeext'
13677
{ (eval echo "$as_me:13677: \"$ac_try\"") >&5
13678
(eval $ac_try) 2>&5
13680
echo "$as_me:13680: \$? = $ac_status" >&5
13681
(exit $ac_status); }; }; then
13682
ac_cv_lib_jpeg_jpeg_std_error=yes
13684
echo "$as_me: failed program was:" >&5
13685
cat conftest.$ac_ext >&5
13686
ac_cv_lib_jpeg_jpeg_std_error=no
13688
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13689
LIBS=$ac_check_lib_save_LIBS
13691
echo "$as_me:13691: result: $ac_cv_lib_jpeg_jpeg_std_error" >&5
13692
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_std_error" >&6
13693
if test $ac_cv_lib_jpeg_jpeg_std_error = yes; then
13694
cat >>confdefs.h <<EOF
13695
#define HAVE_LIBJPEG 1
13698
LIBS="-ljpeg $LIBS"
13702
echo "$as_me:13702: checking for ICreateImage in -lIlib" >&5
13703
echo $ECHO_N "checking for ICreateImage in -lIlib... $ECHO_C" >&6
13704
if test "${ac_cv_lib_Ilib_ICreateImage+set}" = set; then
13705
echo $ECHO_N "(cached) $ECHO_C" >&6
13707
ac_check_lib_save_LIBS=$LIBS
13708
LIBS="-lIlib $LIBS"
13709
cat >conftest.$ac_ext <<_ACEOF
13710
#line 13710 "configure"
13711
#include "confdefs.h"
13713
/* Override any gcc2 internal prototype to avoid an error. */
13717
/* We use char because int might match the return type of a gcc2
13718
builtin and then its argument prototype would still apply. */
13719
char ICreateImage ();
13728
rm -f conftest.$ac_objext conftest$ac_exeext
13729
if { (eval echo "$as_me:13729: \"$ac_link\"") >&5
13730
(eval $ac_link) 2>&5
13732
echo "$as_me:13732: \$? = $ac_status" >&5
13733
(exit $ac_status); } &&
13734
{ ac_try='test -s conftest$ac_exeext'
13735
{ (eval echo "$as_me:13735: \"$ac_try\"") >&5
13736
(eval $ac_try) 2>&5
13738
echo "$as_me:13738: \$? = $ac_status" >&5
13739
(exit $ac_status); }; }; then
13740
ac_cv_lib_Ilib_ICreateImage=yes
13742
echo "$as_me: failed program was:" >&5
13743
cat conftest.$ac_ext >&5
13744
ac_cv_lib_Ilib_ICreateImage=no
13746
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13747
LIBS=$ac_check_lib_save_LIBS
13749
echo "$as_me:13749: result: $ac_cv_lib_Ilib_ICreateImage" >&5
13750
echo "${ECHO_T}$ac_cv_lib_Ilib_ICreateImage" >&6
13751
if test $ac_cv_lib_Ilib_ICreateImage = yes; then
13752
cat >>confdefs.h <<EOF
13753
#define HAVE_LIBILIB 1
13756
LIBS="-lIlib $LIBS"
13760
echo "$as_me:13760: checking for pow in -lm" >&5
13761
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13762
if test "${ac_cv_lib_m_pow+set}" = set; then
13763
echo $ECHO_N "(cached) $ECHO_C" >&6
13765
ac_check_lib_save_LIBS=$LIBS
13767
cat >conftest.$ac_ext <<_ACEOF
13768
#line 13768 "configure"
13769
#include "confdefs.h"
13771
/* Override any gcc2 internal prototype to avoid an error. */
13775
/* We use char because int might match the return type of a gcc2
13776
builtin and then its argument prototype would still apply. */
13786
rm -f conftest.$ac_objext conftest$ac_exeext
13787
if { (eval echo "$as_me:13787: \"$ac_link\"") >&5
13788
(eval $ac_link) 2>&5
13790
echo "$as_me:13790: \$? = $ac_status" >&5
13791
(exit $ac_status); } &&
13792
{ ac_try='test -s conftest$ac_exeext'
13793
{ (eval echo "$as_me:13793: \"$ac_try\"") >&5
13794
(eval $ac_try) 2>&5
13796
echo "$as_me:13796: \$? = $ac_status" >&5
13797
(exit $ac_status); }; }; then
13798
ac_cv_lib_m_pow=yes
13800
echo "$as_me: failed program was:" >&5
13801
cat conftest.$ac_ext >&5
13804
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13805
LIBS=$ac_check_lib_save_LIBS
13807
echo "$as_me:13807: result: $ac_cv_lib_m_pow" >&5
13808
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13809
if test $ac_cv_lib_m_pow = yes; then
13810
cat >>confdefs.h <<EOF
13811
#define HAVE_LIBM 1
13818
# Extract the first word of "ticables-config", so it can be a program name with args.
13819
set dummy ticables-config; ac_word=$2
13820
echo "$as_me:13820: checking for $ac_word" >&5
13821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13822
if test "${ac_cv_prog_TICABLES_CONFIG+set}" = set; then
13823
echo $ECHO_N "(cached) $ECHO_C" >&6
13825
if test -n "$TICABLES_CONFIG"; then
13826
ac_cv_prog_TICABLES_CONFIG="$TICABLES_CONFIG" # Let the user override the test.
13828
ac_save_IFS=$IFS; IFS=$ac_path_separator
13830
for ac_dir in $ac_dummy; do
13832
test -z "$ac_dir" && ac_dir=.
13833
$as_executable_p "$ac_dir/$ac_word" || continue
13834
ac_cv_prog_TICABLES_CONFIG="yes"
13835
echo "$as_me:13835: found $ac_dir/$ac_word" >&5
13839
test -z "$ac_cv_prog_TICABLES_CONFIG" && ac_cv_prog_TICABLES_CONFIG="no"
13842
TICABLES_CONFIG=$ac_cv_prog_TICABLES_CONFIG
13843
if test -n "$TICABLES_CONFIG"; then
13844
echo "$as_me:13844: result: $TICABLES_CONFIG" >&5
13845
echo "${ECHO_T}$TICABLES_CONFIG" >&6
13847
echo "$as_me:13847: result: no" >&5
13848
echo "${ECHO_T}no" >&6
13851
if test "$TICABLES_CONFIG" = "no"; then
13853
echo "Error: cannot find ticables-config. Do you have libticables installed ?" ;
13854
echo "You can download it from" ;
13855
echo "<http://lpg.ticalc.org/prj_tilp/download-en.html> ..." ;
13859
TICABLES_LIBS=`ticables-config --libs`
13860
TICABLES_CFLAGS=`ticables-config --cflags`
13861
TICABLES_VERSION=`ticables-config --version`
13863
LIBS="$LIBS $TICABLES_LIBS"
13864
CFLAGS="$CFLAGS $TICABLES_CFLAGS"
13869
# Extract the first word of "ticalcs-config", so it can be a program name with args.
13870
set dummy ticalcs-config; ac_word=$2
13871
echo "$as_me:13871: checking for $ac_word" >&5
13872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13873
if test "${ac_cv_prog_TICALCS_CONFIG+set}" = set; then
13874
echo $ECHO_N "(cached) $ECHO_C" >&6
13876
if test -n "$TICALCS_CONFIG"; then
13877
ac_cv_prog_TICALCS_CONFIG="$TICALCS_CONFIG" # Let the user override the test.
13879
ac_save_IFS=$IFS; IFS=$ac_path_separator
13881
for ac_dir in $ac_dummy; do
13883
test -z "$ac_dir" && ac_dir=.
13884
$as_executable_p "$ac_dir/$ac_word" || continue
13885
ac_cv_prog_TICALCS_CONFIG="yes"
13886
echo "$as_me:13886: found $ac_dir/$ac_word" >&5
13890
test -z "$ac_cv_prog_TICALCS_CONFIG" && ac_cv_prog_TICALCS_CONFIG="no"
13893
TICALCS_CONFIG=$ac_cv_prog_TICALCS_CONFIG
13894
if test -n "$TICALCS_CONFIG"; then
13895
echo "$as_me:13895: result: $TICALCS_CONFIG" >&5
13896
echo "${ECHO_T}$TICALCS_CONFIG" >&6
13898
echo "$as_me:13898: result: no" >&5
13899
echo "${ECHO_T}no" >&6
13902
if test "$TICALCS_CONFIG" = "no"; then
13904
echo "Error: cannot find ticables-config. Do you have libticables installed ?" ;
13905
echo "You can download it from" ;
13906
echo "<http://lpg.ticalc.org/prj_tilp/download-en.html> ..." ;
13910
TICALCS_LIBS=`ticalcs-config --libs`
13911
TICALCS_CFLAGS=`ticalcs-config --cflags`
13912
TICALCS_VERSION=`ticalcs-config --version`
13914
LIBS="$LIBS $TICALCS_LIBS"
13915
CFLAGS="$CFLAGS $TICALCS_CFLAGS"
13920
# Extract the first word of "tiffep-config", so it can be a program name with args.
13921
set dummy tiffep-config; ac_word=$2
13922
echo "$as_me:13922: checking for $ac_word" >&5
13923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13924
if test "${ac_cv_prog_TIFFEP_CONFIG+set}" = set; then
13925
echo $ECHO_N "(cached) $ECHO_C" >&6
13927
if test -n "$TIFFEP_CONFIG"; then
13928
ac_cv_prog_TIFFEP_CONFIG="$TIFFEP_CONFIG" # Let the user override the test.
13930
ac_save_IFS=$IFS; IFS=$ac_path_separator
13932
for ac_dir in $ac_dummy; do
13934
test -z "$ac_dir" && ac_dir=.
13935
$as_executable_p "$ac_dir/$ac_word" || continue
13936
ac_cv_prog_TIFFEP_CONFIG="yes"
13937
echo "$as_me:13937: found $ac_dir/$ac_word" >&5
13941
test -z "$ac_cv_prog_TIFFEP_CONFIG" && ac_cv_prog_TIFFEP_CONFIG="no"
13944
TIFFEP_CONFIG=$ac_cv_prog_TIFFEP_CONFIG
13945
if test -n "$TIFFEP_CONFIG"; then
13946
echo "$as_me:13946: result: $TIFFEP_CONFIG" >&5
13947
echo "${ECHO_T}$TIFFEP_CONFIG" >&6
13949
echo "$as_me:13949: result: no" >&5
13950
echo "${ECHO_T}no" >&6
13953
if test "$TIFFEP_CONFIG" = "no"; then
13955
echo "Warning: cannot find tiffep-config. Do you have libtiffep installed ?" ;
13956
echo "Some new functionnalities of TiLP (such as GFM) will not be available." ;
13957
echo "You can download it from" ;
13958
echo "<http://lpg.ticalc.org/prj_tiffep/index.html> ..." ;
13961
TIFFEP_LIBS=`tiffep-config --libs`
13962
TIFFEP_CFLAGS=`tiffep-config --cflags`
13963
TIFFEP_VERSION=`tiffep-config --version`
13965
LIBS="$LIBS $TIFFEP_LIBS"
13966
CFLAGS="$CFLAGS $TIFFEP_CFLAGS"
13971
# Extract the first word of "gtk-config", so it can be a program name with args.
13972
set dummy gtk-config; ac_word=$2
13973
echo "$as_me:13973: checking for $ac_word" >&5
13974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13975
if test "${ac_cv_prog_GTK_CONFIG+set}" = set; then
13976
echo $ECHO_N "(cached) $ECHO_C" >&6
13978
if test -n "$GTK_CONFIG"; then
13979
ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
13981
ac_save_IFS=$IFS; IFS=$ac_path_separator
13983
for ac_dir in $ac_dummy; do
13985
test -z "$ac_dir" && ac_dir=.
13986
$as_executable_p "$ac_dir/$ac_word" || continue
13987
ac_cv_prog_GTK_CONFIG="yes"
13988
echo "$as_me:13988: found $ac_dir/$ac_word" >&5
13992
test -z "$ac_cv_prog_GTK_CONFIG" && ac_cv_prog_GTK_CONFIG="no"
13995
GTK_CONFIG=$ac_cv_prog_GTK_CONFIG
13996
if test -n "$GTK_CONFIG"; then
13997
echo "$as_me:13997: result: $GTK_CONFIG" >&5
13998
echo "${ECHO_T}$GTK_CONFIG" >&6
14000
echo "$as_me:14000: result: no" >&5
14001
echo "${ECHO_T}no" >&6
14004
if test "$GTK_CONFIG" = "no"; then
14006
echo "Error: cannot find gtk-config. Do you have gtk installed ?";
14007
echo "You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2";
14008
echo "Make sure to also download the same version" ;
14009
echo "of glib too from that same directory" ;
14013
GTK_LIBS=`gtk-config --libs`
14014
GTK_CFLAGS=`gtk-config --cflags`
14015
GTK_VERSION=`gtk-config --version`
14017
LIBS="$LIBS $GTK_LIBS"
14018
CFLAGS="$CFLAGS $GTK_CFLAGS"
14023
echo "$as_me:14023: checking version of gtk+..." >&5
14024
echo $ECHO_N "checking version of gtk+...... $ECHO_C" >&6
14025
gtk_maj_rev=`echo $GTK_VERSION | cut -f1-2 -d.`
14026
if test "$gtk_maj_rev" = "1.2" ; then
14027
echo "$as_me:14027: result: ($GTK_VERSION)" >&5
14028
echo "${ECHO_T}($GTK_VERSION)" >&6
14030
echo "$as_me:14030: result: ($GTK_VERSION)" >&5
14031
echo "${ECHO_T}($GTK_VERSION)" >&6
14032
if test "$gtk_maj_rev" = "1.1" ; then
14033
{ echo "$as_me:14033: WARNING: You have gtk+ 1.1 installed on your machine. I would" >&5
14034
echo "$as_me: WARNING: You have gtk+ 1.1 installed on your machine. I would" >&2;}
14035
{ echo "$as_me:14035: WARNING: recommend upgrading to the stable 1.2 series" >&5
14036
echo "$as_me: WARNING: recommend upgrading to the stable 1.2 series" >&2;}
14037
{ echo "$as_me:14037: WARNING: You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2" >&5
14038
echo "$as_me: WARNING: You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2" >&2;}
14039
{ echo "$as_me:14039: WARNING: Make sure to also download the same version of glib too" >&5
14040
echo "$as_me: WARNING: Make sure to also download the same version of glib too" >&2;}
14043
echo "Error: You need gtk+ 1.1.x or higher to install tilp. You can dow\nload it from" ;
14044
echo "ftp://ftp.gtk.org/pub/gtk/v1.2 I would recommend downloading the \stable 1.2" ;
14045
echo "series. Make sure to also download the same version of glib too f\rom that same" ;
14052
CFLAGS="$CFLAGS -Wall"
14054
echo "$as_me:14054: checking for X" >&5
14055
echo $ECHO_N "checking for X... $ECHO_C" >&6
14057
# Check whether --with-x or --without-x was given.
14058
if test "${with_x+set}" = set; then
14062
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14063
if test "x$with_x" = xno; then
14064
# The user explicitly disabled X.
14067
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
14068
# Both variables are already set.
14071
if test "${ac_cv_have_x+set}" = set; then
14072
echo $ECHO_N "(cached) $ECHO_C" >&6
14074
# One or both of the vars are not set, and there is no cached value.
14075
ac_x_includes=no ac_x_libraries=no
14076
rm -fr conftest.dir
14077
if mkdir conftest.dir; then
14079
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
14080
cat >Imakefile <<'EOF'
14082
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
14084
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
14085
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14086
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
14087
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14088
for ac_extension in a so sl; do
14089
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
14090
test -f $ac_im_libdir/libX11.$ac_extension; then
14091
ac_im_usrlibdir=$ac_im_libdir; break
14094
# Screen out bogus values from the imake configuration. They are
14095
# bogus both because they are the default anyway, and because
14096
# using them would break gcc on systems where it needs fixed includes.
14097
case $ac_im_incroot in
14099
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14101
case $ac_im_usrlibdir in
14102
/usr/lib | /lib) ;;
14103
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14107
rm -fr conftest.dir
14110
# Standard set of common directories for X headers.
14111
# Check X11 before X11Rn because it is often a symlink to the current release.
14123
/usr/local/X11/include
14124
/usr/local/X11R6/include
14125
/usr/local/X11R5/include
14126
/usr/local/X11R4/include
14128
/usr/local/include/X11
14129
/usr/local/include/X11R6
14130
/usr/local/include/X11R5
14131
/usr/local/include/X11R4
14135
/usr/XFree86/include/X11
14139
/usr/unsupported/include
14140
/usr/athena/include
14141
/usr/local/x11r5/include
14142
/usr/lpp/Xamples/include
14144
/usr/openwin/include
14145
/usr/openwin/share/include'
14147
if test "$ac_x_includes" = no; then
14148
# Guess where to find include files, by looking for Intrinsic.h.
14149
# First, try using that file with no special directory specified.
14150
cat >conftest.$ac_ext <<_ACEOF
14151
#line 14151 "configure"
14152
#include "confdefs.h"
14153
#include <X11/Intrinsic.h>
14155
if { (eval echo "$as_me:14155: \"$ac_cpp conftest.$ac_ext\"") >&5
14156
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14158
egrep -v '^ *\+' conftest.er1 >conftest.err
14160
cat conftest.err >&5
14161
echo "$as_me:14161: \$? = $ac_status" >&5
14162
(exit $ac_status); } >/dev/null; then
14163
if test -s conftest.err; then
14164
ac_cpp_err=$ac_c_preproc_warn_flag
14171
if test -z "$ac_cpp_err"; then
14172
# We can compile using X headers with no special include directory.
14175
echo "$as_me: failed program was:" >&5
14176
cat conftest.$ac_ext >&5
14177
for ac_dir in $ac_x_header_dirs; do
14178
if test -r "$ac_dir/X11/Intrinsic.h"; then
14179
ac_x_includes=$ac_dir
14184
rm -f conftest.err conftest.$ac_ext
14185
fi # $ac_x_includes = no
14187
if test "$ac_x_libraries" = no; then
14188
# Check for the libraries.
14189
# See if we find them without any special options.
14190
# Don't add to $LIBS permanently.
14193
cat >conftest.$ac_ext <<_ACEOF
14194
#line 14194 "configure"
14195
#include "confdefs.h"
14196
#include <X11/Intrinsic.h>
14205
rm -f conftest.$ac_objext conftest$ac_exeext
14206
if { (eval echo "$as_me:14206: \"$ac_link\"") >&5
14207
(eval $ac_link) 2>&5
14209
echo "$as_me:14209: \$? = $ac_status" >&5
14210
(exit $ac_status); } &&
14211
{ ac_try='test -s conftest$ac_exeext'
14212
{ (eval echo "$as_me:14212: \"$ac_try\"") >&5
14213
(eval $ac_try) 2>&5
14215
echo "$as_me:14215: \$? = $ac_status" >&5
14216
(exit $ac_status); }; }; then
14218
# We can link X programs with no special library path.
14221
echo "$as_me: failed program was:" >&5
14222
cat conftest.$ac_ext >&5
14224
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14226
# Don't even attempt the hair of trying to link an X program!
14227
for ac_extension in a so sl; do
14228
if test -r $ac_dir/libXt.$ac_extension; then
14229
ac_x_libraries=$ac_dir
14235
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14236
fi # $ac_x_libraries = no
14238
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
14239
# Didn't find X anywhere. Cache the known absence of X.
14240
ac_cv_have_x="have_x=no"
14242
# Record where we found X for the cache.
14243
ac_cv_have_x="have_x=yes \
14244
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
14249
eval "$ac_cv_have_x"
14252
if test "$have_x" != yes; then
14253
echo "$as_me:14253: result: $have_x" >&5
14254
echo "${ECHO_T}$have_x" >&6
14257
# If each of the values was on the command line, it overrides each guess.
14258
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14259
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14260
# Update the cache value to reflect the command line values.
14261
ac_cv_have_x="have_x=yes \
14262
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
14263
echo "$as_me:14263: result: libraries $x_libraries, headers $x_includes" >&5
14264
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
14267
ac_header_dirent=no
14268
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14269
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14270
echo "$as_me:14270: checking for $ac_hdr that defines DIR" >&5
14271
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14272
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14273
echo $ECHO_N "(cached) $ECHO_C" >&6
14275
cat >conftest.$ac_ext <<_ACEOF
14276
#line 14276 "configure"
14277
#include "confdefs.h"
14278
#include <sys/types.h>
14290
rm -f conftest.$ac_objext
14291
if { (eval echo "$as_me:14291: \"$ac_compile\"") >&5
14292
(eval $ac_compile) 2>&5
14294
echo "$as_me:14294: \$? = $ac_status" >&5
14295
(exit $ac_status); } &&
14296
{ ac_try='test -s conftest.$ac_objext'
14297
{ (eval echo "$as_me:14297: \"$ac_try\"") >&5
14298
(eval $ac_try) 2>&5
14300
echo "$as_me:14300: \$? = $ac_status" >&5
14301
(exit $ac_status); }; }; then
14302
eval "$as_ac_Header=yes"
14304
echo "$as_me: failed program was:" >&5
14305
cat conftest.$ac_ext >&5
14306
eval "$as_ac_Header=no"
14308
rm -f conftest.$ac_objext conftest.$ac_ext
14310
echo "$as_me:14310: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14313
cat >>confdefs.h <<EOF
14314
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14317
ac_header_dirent=$ac_hdr; break
14321
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14322
if test $ac_header_dirent = dirent.h; then
14323
echo "$as_me:14323: checking for opendir in -ldir" >&5
14324
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14325
if test "${ac_cv_lib_dir_opendir+set}" = set; then
14326
echo $ECHO_N "(cached) $ECHO_C" >&6
14328
ac_check_lib_save_LIBS=$LIBS
14330
cat >conftest.$ac_ext <<_ACEOF
14331
#line 14331 "configure"
14332
#include "confdefs.h"
14334
/* Override any gcc2 internal prototype to avoid an error. */
14338
/* We use char because int might match the return type of a gcc2
14339
builtin and then its argument prototype would still apply. */
14349
rm -f conftest.$ac_objext conftest$ac_exeext
14350
if { (eval echo "$as_me:14350: \"$ac_link\"") >&5
14351
(eval $ac_link) 2>&5
14353
echo "$as_me:14353: \$? = $ac_status" >&5
14354
(exit $ac_status); } &&
14355
{ ac_try='test -s conftest$ac_exeext'
14356
{ (eval echo "$as_me:14356: \"$ac_try\"") >&5
14357
(eval $ac_try) 2>&5
14359
echo "$as_me:14359: \$? = $ac_status" >&5
14360
(exit $ac_status); }; }; then
14361
ac_cv_lib_dir_opendir=yes
14363
echo "$as_me: failed program was:" >&5
14364
cat conftest.$ac_ext >&5
14365
ac_cv_lib_dir_opendir=no
14367
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14368
LIBS=$ac_check_lib_save_LIBS
14370
echo "$as_me:14370: result: $ac_cv_lib_dir_opendir" >&5
14371
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14372
if test $ac_cv_lib_dir_opendir = yes; then
14377
echo "$as_me:14377: checking for opendir in -lx" >&5
14378
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14379
if test "${ac_cv_lib_x_opendir+set}" = set; then
14380
echo $ECHO_N "(cached) $ECHO_C" >&6
14382
ac_check_lib_save_LIBS=$LIBS
14384
cat >conftest.$ac_ext <<_ACEOF
14385
#line 14385 "configure"
14386
#include "confdefs.h"
14388
/* Override any gcc2 internal prototype to avoid an error. */
14392
/* We use char because int might match the return type of a gcc2
14393
builtin and then its argument prototype would still apply. */
14403
rm -f conftest.$ac_objext conftest$ac_exeext
14404
if { (eval echo "$as_me:14404: \"$ac_link\"") >&5
14405
(eval $ac_link) 2>&5
14407
echo "$as_me:14407: \$? = $ac_status" >&5
14408
(exit $ac_status); } &&
14409
{ ac_try='test -s conftest$ac_exeext'
14410
{ (eval echo "$as_me:14410: \"$ac_try\"") >&5
14411
(eval $ac_try) 2>&5
14413
echo "$as_me:14413: \$? = $ac_status" >&5
14414
(exit $ac_status); }; }; then
14415
ac_cv_lib_x_opendir=yes
14417
echo "$as_me: failed program was:" >&5
14418
cat conftest.$ac_ext >&5
14419
ac_cv_lib_x_opendir=no
14421
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14422
LIBS=$ac_check_lib_save_LIBS
14424
echo "$as_me:14424: result: $ac_cv_lib_x_opendir" >&5
14425
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14426
if test $ac_cv_lib_x_opendir = yes; then
14432
echo "$as_me:14432: checking for ANSI C header files" >&5
14433
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14434
if test "${ac_cv_header_stdc+set}" = set; then
14435
echo $ECHO_N "(cached) $ECHO_C" >&6
14437
cat >conftest.$ac_ext <<_ACEOF
14438
#line 14438 "configure"
14439
#include "confdefs.h"
14440
#include <stdlib.h>
14441
#include <stdarg.h>
14442
#include <string.h>
14446
if { (eval echo "$as_me:14446: \"$ac_cpp conftest.$ac_ext\"") >&5
14447
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14449
egrep -v '^ *\+' conftest.er1 >conftest.err
14451
cat conftest.err >&5
14452
echo "$as_me:14452: \$? = $ac_status" >&5
14453
(exit $ac_status); } >/dev/null; then
14454
if test -s conftest.err; then
14455
ac_cpp_err=$ac_c_preproc_warn_flag
14462
if test -z "$ac_cpp_err"; then
14463
ac_cv_header_stdc=yes
14465
echo "$as_me: failed program was:" >&5
14466
cat conftest.$ac_ext >&5
14467
ac_cv_header_stdc=no
14469
rm -f conftest.err conftest.$ac_ext
14471
if test $ac_cv_header_stdc = yes; then
14472
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14473
cat >conftest.$ac_ext <<_ACEOF
14474
#line 14474 "configure"
14475
#include "confdefs.h"
14476
#include <string.h>
14479
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14480
egrep "memchr" >/dev/null 2>&1; then
14483
ac_cv_header_stdc=no
14489
if test $ac_cv_header_stdc = yes; then
14490
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14491
cat >conftest.$ac_ext <<_ACEOF
14492
#line 14492 "configure"
14493
#include "confdefs.h"
14494
#include <stdlib.h>
14497
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14498
egrep "free" >/dev/null 2>&1; then
14501
ac_cv_header_stdc=no
14507
if test $ac_cv_header_stdc = yes; then
14508
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14509
if test "$cross_compiling" = yes; then
14512
cat >conftest.$ac_ext <<_ACEOF
14513
#line 14513 "configure"
14514
#include "confdefs.h"
14516
#if ((' ' & 0x0FF) == 0x020)
14517
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14518
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14520
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14521
|| ('j' <= (c) && (c) <= 'r') \
14522
|| ('s' <= (c) && (c) <= 'z'))
14523
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14526
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14531
for (i = 0; i < 256; i++)
14532
if (XOR (islower (i), ISLOWER (i))
14533
|| toupper (i) != TOUPPER (i))
14538
rm -f conftest$ac_exeext
14539
if { (eval echo "$as_me:14539: \"$ac_link\"") >&5
14540
(eval $ac_link) 2>&5
14542
echo "$as_me:14542: \$? = $ac_status" >&5
14543
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14544
{ (eval echo "$as_me:14544: \"$ac_try\"") >&5
14545
(eval $ac_try) 2>&5
14547
echo "$as_me:14547: \$? = $ac_status" >&5
14548
(exit $ac_status); }; }; then
14551
echo "$as_me: program exited with status $ac_status" >&5
14552
echo "$as_me: failed program was:" >&5
14553
cat conftest.$ac_ext >&5
14554
ac_cv_header_stdc=no
14556
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14560
echo "$as_me:14560: result: $ac_cv_header_stdc" >&5
14561
echo "${ECHO_T}$ac_cv_header_stdc" >&6
14562
if test $ac_cv_header_stdc = yes; then
14564
cat >>confdefs.h <<\EOF
14565
#define STDC_HEADERS 1
14570
for ac_header in strings.h unistd.h malloc.h sys/file.h fcntl.h direct.h alloca.h errno.h sys/time.h utime.h
14572
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573
echo "$as_me:14573: checking for $ac_header" >&5
14574
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14575
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14576
echo $ECHO_N "(cached) $ECHO_C" >&6
14578
cat >conftest.$ac_ext <<_ACEOF
14579
#line 14579 "configure"
14580
#include "confdefs.h"
14581
#include <$ac_header>
14583
if { (eval echo "$as_me:14583: \"$ac_cpp conftest.$ac_ext\"") >&5
14584
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14586
egrep -v '^ *\+' conftest.er1 >conftest.err
14588
cat conftest.err >&5
14589
echo "$as_me:14589: \$? = $ac_status" >&5
14590
(exit $ac_status); } >/dev/null; then
14591
if test -s conftest.err; then
14592
ac_cpp_err=$ac_c_preproc_warn_flag
14599
if test -z "$ac_cpp_err"; then
14600
eval "$as_ac_Header=yes"
14602
echo "$as_me: failed program was:" >&5
14603
cat conftest.$ac_ext >&5
14604
eval "$as_ac_Header=no"
14606
rm -f conftest.err conftest.$ac_ext
14608
echo "$as_me:14608: result: `eval echo '${'$as_ac_Header'}'`" >&5
14609
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14610
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14611
cat >>confdefs.h <<EOF
14612
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14618
for ac_header in tilp/macros.h tilp/typedefs.h tilp/export.h tilp/cabl_def.h tilp/cabl_int.h tilp/calc_def.h tilp/calc_int.h
14620
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14621
echo "$as_me:14621: checking for $ac_header" >&5
14622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14623
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14624
echo $ECHO_N "(cached) $ECHO_C" >&6
14626
cat >conftest.$ac_ext <<_ACEOF
14627
#line 14627 "configure"
14628
#include "confdefs.h"
14629
#include <$ac_header>
14631
if { (eval echo "$as_me:14631: \"$ac_cpp conftest.$ac_ext\"") >&5
14632
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14634
egrep -v '^ *\+' conftest.er1 >conftest.err
14636
cat conftest.err >&5
14637
echo "$as_me:14637: \$? = $ac_status" >&5
14638
(exit $ac_status); } >/dev/null; then
14639
if test -s conftest.err; then
14640
ac_cpp_err=$ac_c_preproc_warn_flag
14647
if test -z "$ac_cpp_err"; then
14648
eval "$as_ac_Header=yes"
14650
echo "$as_me: failed program was:" >&5
14651
cat conftest.$ac_ext >&5
14652
eval "$as_ac_Header=no"
14654
rm -f conftest.err conftest.$ac_ext
14656
echo "$as_me:14656: result: `eval echo '${'$as_ac_Header'}'`" >&5
14657
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14658
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14659
cat >>confdefs.h <<EOF
14660
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14666
for ac_header in tiffep/tiffep.h
14668
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14669
echo "$as_me:14669: checking for $ac_header" >&5
14670
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672
echo $ECHO_N "(cached) $ECHO_C" >&6
14674
cat >conftest.$ac_ext <<_ACEOF
14675
#line 14675 "configure"
14676
#include "confdefs.h"
14677
#include <$ac_header>
14679
if { (eval echo "$as_me:14679: \"$ac_cpp conftest.$ac_ext\"") >&5
14680
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14682
egrep -v '^ *\+' conftest.er1 >conftest.err
14684
cat conftest.err >&5
14685
echo "$as_me:14685: \$? = $ac_status" >&5
14686
(exit $ac_status); } >/dev/null; then
14687
if test -s conftest.err; then
14688
ac_cpp_err=$ac_c_preproc_warn_flag
14695
if test -z "$ac_cpp_err"; then
14696
eval "$as_ac_Header=yes"
14698
echo "$as_me: failed program was:" >&5
14699
cat conftest.$ac_ext >&5
14700
eval "$as_ac_Header=no"
14702
rm -f conftest.err conftest.$ac_ext
14704
echo "$as_me:14704: result: `eval echo '${'$as_ac_Header'}'`" >&5
14705
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14706
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14707
cat >>confdefs.h <<EOF
14708
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14714
for ac_header in locale.h libintl.h
14716
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14717
echo "$as_me:14717: checking for $ac_header" >&5
14718
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14719
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14720
echo $ECHO_N "(cached) $ECHO_C" >&6
14722
cat >conftest.$ac_ext <<_ACEOF
14723
#line 14723 "configure"
14724
#include "confdefs.h"
14725
#include <$ac_header>
14727
if { (eval echo "$as_me:14727: \"$ac_cpp conftest.$ac_ext\"") >&5
14728
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14730
egrep -v '^ *\+' conftest.er1 >conftest.err
14732
cat conftest.err >&5
14733
echo "$as_me:14733: \$? = $ac_status" >&5
14734
(exit $ac_status); } >/dev/null; then
14735
if test -s conftest.err; then
14736
ac_cpp_err=$ac_c_preproc_warn_flag
14743
if test -z "$ac_cpp_err"; then
14744
eval "$as_ac_Header=yes"
14746
echo "$as_me: failed program was:" >&5
14747
cat conftest.$ac_ext >&5
14748
eval "$as_ac_Header=no"
14750
rm -f conftest.err conftest.$ac_ext
14752
echo "$as_me:14752: result: `eval echo '${'$as_ac_Header'}'`" >&5
14753
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14754
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14755
cat >>confdefs.h <<EOF
14756
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14762
echo "$as_me:14762: checking for jpeglib.h" >&5
14763
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
14764
if test "${ac_cv_header_jpeglib_h+set}" = set; then
14765
echo $ECHO_N "(cached) $ECHO_C" >&6
14767
cat >conftest.$ac_ext <<_ACEOF
14768
#line 14768 "configure"
14769
#include "confdefs.h"
14770
#include <jpeglib.h>
14772
if { (eval echo "$as_me:14772: \"$ac_cpp conftest.$ac_ext\"") >&5
14773
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14775
egrep -v '^ *\+' conftest.er1 >conftest.err
14777
cat conftest.err >&5
14778
echo "$as_me:14778: \$? = $ac_status" >&5
14779
(exit $ac_status); } >/dev/null; then
14780
if test -s conftest.err; then
14781
ac_cpp_err=$ac_c_preproc_warn_flag
14788
if test -z "$ac_cpp_err"; then
14789
ac_cv_header_jpeglib_h=yes
14791
echo "$as_me: failed program was:" >&5
14792
cat conftest.$ac_ext >&5
14793
ac_cv_header_jpeglib_h=no
14795
rm -f conftest.err conftest.$ac_ext
14797
echo "$as_me:14797: result: $ac_cv_header_jpeglib_h" >&5
14798
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
14800
echo "$as_me:14800: checking for Ilib.h" >&5
14801
echo $ECHO_N "checking for Ilib.h... $ECHO_C" >&6
14802
if test "${ac_cv_header_Ilib_h+set}" = set; then
14803
echo $ECHO_N "(cached) $ECHO_C" >&6
14805
cat >conftest.$ac_ext <<_ACEOF
14806
#line 14806 "configure"
14807
#include "confdefs.h"
14810
if { (eval echo "$as_me:14810: \"$ac_cpp conftest.$ac_ext\"") >&5
14811
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14813
egrep -v '^ *\+' conftest.er1 >conftest.err
14815
cat conftest.err >&5
14816
echo "$as_me:14816: \$? = $ac_status" >&5
14817
(exit $ac_status); } >/dev/null; then
14818
if test -s conftest.err; then
14819
ac_cpp_err=$ac_c_preproc_warn_flag
14826
if test -z "$ac_cpp_err"; then
14827
ac_cv_header_Ilib_h=yes
14829
echo "$as_me: failed program was:" >&5
14830
cat conftest.$ac_ext >&5
14831
ac_cv_header_Ilib_h=no
14833
rm -f conftest.err conftest.$ac_ext
14835
echo "$as_me:14835: result: $ac_cv_header_Ilib_h" >&5
14836
echo "${ECHO_T}$ac_cv_header_Ilib_h" >&6
14838
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14840
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14841
inttypes.h stdint.h unistd.h
14843
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844
echo "$as_me:14844: checking for $ac_header" >&5
14845
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14847
echo $ECHO_N "(cached) $ECHO_C" >&6
14849
cat >conftest.$ac_ext <<_ACEOF
14850
#line 14850 "configure"
14851
#include "confdefs.h"
14852
$ac_includes_default
14853
#include <$ac_header>
14855
rm -f conftest.$ac_objext
14856
if { (eval echo "$as_me:14856: \"$ac_compile\"") >&5
14857
(eval $ac_compile) 2>&5
14859
echo "$as_me:14859: \$? = $ac_status" >&5
14860
(exit $ac_status); } &&
14861
{ ac_try='test -s conftest.$ac_objext'
14862
{ (eval echo "$as_me:14862: \"$ac_try\"") >&5
14863
(eval $ac_try) 2>&5
14865
echo "$as_me:14865: \$? = $ac_status" >&5
14866
(exit $ac_status); }; }; then
14867
eval "$as_ac_Header=yes"
14869
echo "$as_me: failed program was:" >&5
14870
cat conftest.$ac_ext >&5
14871
eval "$as_ac_Header=no"
14873
rm -f conftest.$ac_objext conftest.$ac_ext
14875
echo "$as_me:14875: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14877
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14878
cat >>confdefs.h <<EOF
14879
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14885
echo "$as_me:14885: checking for struct stat.st_blksize" >&5
14886
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14887
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14888
echo $ECHO_N "(cached) $ECHO_C" >&6
14890
cat >conftest.$ac_ext <<_ACEOF
14891
#line 14891 "configure"
14892
#include "confdefs.h"
14893
$ac_includes_default
14897
static struct stat ac_aggr;
14898
if (ac_aggr.st_blksize)
14904
rm -f conftest.$ac_objext
14905
if { (eval echo "$as_me:14905: \"$ac_compile\"") >&5
14906
(eval $ac_compile) 2>&5
14908
echo "$as_me:14908: \$? = $ac_status" >&5
14909
(exit $ac_status); } &&
14910
{ ac_try='test -s conftest.$ac_objext'
14911
{ (eval echo "$as_me:14911: \"$ac_try\"") >&5
14912
(eval $ac_try) 2>&5
14914
echo "$as_me:14914: \$? = $ac_status" >&5
14915
(exit $ac_status); }; }; then
14916
ac_cv_member_struct_stat_st_blksize=yes
14918
echo "$as_me: failed program was:" >&5
14919
cat conftest.$ac_ext >&5
14920
ac_cv_member_struct_stat_st_blksize=no
14922
rm -f conftest.$ac_objext conftest.$ac_ext
14924
echo "$as_me:14924: result: $ac_cv_member_struct_stat_st_blksize" >&5
14925
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14926
if test $ac_cv_member_struct_stat_st_blksize = yes; then
14928
cat >>confdefs.h <<EOF
14929
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14934
echo "$as_me:14934: checking for $CC option to accept ANSI C" >&5
14935
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14936
if test "${ac_cv_prog_cc_stdc+set}" = set; then
14937
echo $ECHO_N "(cached) $ECHO_C" >&6
14939
ac_cv_prog_cc_stdc=no
14941
cat >conftest.$ac_ext <<_ACEOF
14942
#line 14942 "configure"
14943
#include "confdefs.h"
14944
#include <stdarg.h>
14946
#include <sys/types.h>
14947
#include <sys/stat.h>
14948
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14949
struct buf { int x; };
14950
FILE * (*rcsopen) (struct buf *, struct stat *, int);
14951
static char *e (p, i)
14957
static char *f (char * (*g) (char **, int), char **p, ...)
14962
s = g (p, va_arg (v,int));
14966
int test (int i, double x);
14967
struct s1 {int (*f) (int a);};
14968
struct s2 {int (*f) (double a);};
14969
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14975
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14980
# Don't try gcc -ansi; that turns off useful extensions and
14981
# breaks some systems' header files.
14982
# AIX -qlanglvl=ansi
14983
# Ultrix and OSF/1 -std1
14984
# HP-UX 10.20 and later -Ae
14985
# HP-UX older versions -Aa -D_HPUX_SOURCE
14986
# SVR4 -Xc -D__EXTENSIONS__
14987
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14989
CC="$ac_save_CC $ac_arg"
14990
rm -f conftest.$ac_objext
14991
if { (eval echo "$as_me:14991: \"$ac_compile\"") >&5
14992
(eval $ac_compile) 2>&5
14994
echo "$as_me:14994: \$? = $ac_status" >&5
14995
(exit $ac_status); } &&
14996
{ ac_try='test -s conftest.$ac_objext'
14997
{ (eval echo "$as_me:14997: \"$ac_try\"") >&5
14998
(eval $ac_try) 2>&5
15000
echo "$as_me:15000: \$? = $ac_status" >&5
15001
(exit $ac_status); }; }; then
15002
ac_cv_prog_cc_stdc=$ac_arg
15005
echo "$as_me: failed program was:" >&5
15006
cat conftest.$ac_ext >&5
15008
rm -f conftest.$ac_objext
15010
rm -f conftest.$ac_ext conftest.$ac_objext
15015
case "x$ac_cv_prog_cc_stdc" in
15017
echo "$as_me:15017: result: none needed" >&5
15018
echo "${ECHO_T}none needed" >&6 ;;
15020
echo "$as_me:15020: result: $ac_cv_prog_cc_stdc" >&5
15021
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
15022
CC="$CC $ac_cv_prog_cc_stdc" ;;
15025
echo "$as_me:15025: checking for an ANSI C-conforming const" >&5
15026
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15027
if test "${ac_cv_c_const+set}" = set; then
15028
echo $ECHO_N "(cached) $ECHO_C" >&6
15030
cat >conftest.$ac_ext <<_ACEOF
15031
#line 15031 "configure"
15032
#include "confdefs.h"
15037
/* FIXME: Include the comments suggested by Paul. */
15038
#ifndef __cplusplus
15039
/* Ultrix mips cc rejects this. */
15040
typedef int charset[2];
15042
/* SunOS 4.1.1 cc rejects this. */
15043
char const *const *ccp;
15045
/* NEC SVR4.0.2 mips cc rejects this. */
15046
struct point {int x, y;};
15047
static struct point const zero = {0,0};
15048
/* AIX XL C 1.02.0.0 rejects this.
15049
It does not let you subtract one const X* pointer from another in
15050
an arm of an if-expression whose if-part is not a constant
15052
const char *g = "string";
15053
ccp = &g + (g ? g-g : 0);
15054
/* HPUX 7.0 cc rejects these. */
15057
ccp = (char const *const *) p;
15058
{ /* SCO 3.2v4 cc rejects this. */
15060
char const *s = 0 ? (char *) 0 : (char const *) 0;
15064
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15065
int x[] = {25, 17};
15066
const int *foo = &x[0];
15069
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15070
typedef const int *iptr;
15074
{ /* AIX XL C 1.02.0.0 rejects this saying
15075
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15076
struct s { int j; const int *ap[3]; };
15077
struct s *b; b->j = 5;
15079
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15080
const int foo = 10;
15088
rm -f conftest.$ac_objext
15089
if { (eval echo "$as_me:15089: \"$ac_compile\"") >&5
15090
(eval $ac_compile) 2>&5
15092
echo "$as_me:15092: \$? = $ac_status" >&5
15093
(exit $ac_status); } &&
15094
{ ac_try='test -s conftest.$ac_objext'
15095
{ (eval echo "$as_me:15095: \"$ac_try\"") >&5
15096
(eval $ac_try) 2>&5
15098
echo "$as_me:15098: \$? = $ac_status" >&5
15099
(exit $ac_status); }; }; then
15102
echo "$as_me: failed program was:" >&5
15103
cat conftest.$ac_ext >&5
15106
rm -f conftest.$ac_objext conftest.$ac_ext
15108
echo "$as_me:15108: result: $ac_cv_c_const" >&5
15109
echo "${ECHO_T}$ac_cv_c_const" >&6
15110
if test $ac_cv_c_const = no; then
15112
cat >>confdefs.h <<\EOF
15118
echo "$as_me:15118: checking for uid_t in sys/types.h" >&5
15119
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15120
if test "${ac_cv_type_uid_t+set}" = set; then
15121
echo $ECHO_N "(cached) $ECHO_C" >&6
15123
cat >conftest.$ac_ext <<_ACEOF
15124
#line 15124 "configure"
15125
#include "confdefs.h"
15126
#include <sys/types.h>
15129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15130
egrep "uid_t" >/dev/null 2>&1; then
15131
ac_cv_type_uid_t=yes
15133
ac_cv_type_uid_t=no
15138
echo "$as_me:15138: result: $ac_cv_type_uid_t" >&5
15139
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15140
if test $ac_cv_type_uid_t = no; then
15142
cat >>confdefs.h <<\EOF
15146
cat >>confdefs.h <<\EOF
15152
echo "$as_me:15152: checking for inline" >&5
15153
echo $ECHO_N "checking for inline... $ECHO_C" >&6
15154
if test "${ac_cv_c_inline+set}" = set; then
15155
echo $ECHO_N "(cached) $ECHO_C" >&6
15158
for ac_kw in inline __inline__ __inline; do
15159
cat >conftest.$ac_ext <<_ACEOF
15160
#line 15160 "configure"
15161
#include "confdefs.h"
15162
#ifndef __cplusplus
15163
static $ac_kw int static_foo () {return 0; }
15164
$ac_kw int foo () {return 0; }
15168
rm -f conftest.$ac_objext
15169
if { (eval echo "$as_me:15169: \"$ac_compile\"") >&5
15170
(eval $ac_compile) 2>&5
15172
echo "$as_me:15172: \$? = $ac_status" >&5
15173
(exit $ac_status); } &&
15174
{ ac_try='test -s conftest.$ac_objext'
15175
{ (eval echo "$as_me:15175: \"$ac_try\"") >&5
15176
(eval $ac_try) 2>&5
15178
echo "$as_me:15178: \$? = $ac_status" >&5
15179
(exit $ac_status); }; }; then
15180
ac_cv_c_inline=$ac_kw; break
15182
echo "$as_me: failed program was:" >&5
15183
cat conftest.$ac_ext >&5
15185
rm -f conftest.$ac_objext conftest.$ac_ext
15189
echo "$as_me:15189: result: $ac_cv_c_inline" >&5
15190
echo "${ECHO_T}$ac_cv_c_inline" >&6
15191
case $ac_cv_c_inline in
15194
cat >>confdefs.h <<\EOF
15198
*) cat >>confdefs.h <<EOF
15199
#define inline $ac_cv_c_inline
15204
echo "$as_me:15204: checking for mode_t" >&5
15205
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15206
if test "${ac_cv_type_mode_t+set}" = set; then
15207
echo $ECHO_N "(cached) $ECHO_C" >&6
15209
cat >conftest.$ac_ext <<_ACEOF
15210
#line 15210 "configure"
15211
#include "confdefs.h"
15212
$ac_includes_default
15218
if (sizeof (mode_t))
15224
rm -f conftest.$ac_objext
15225
if { (eval echo "$as_me:15225: \"$ac_compile\"") >&5
15226
(eval $ac_compile) 2>&5
15228
echo "$as_me:15228: \$? = $ac_status" >&5
15229
(exit $ac_status); } &&
15230
{ ac_try='test -s conftest.$ac_objext'
15231
{ (eval echo "$as_me:15231: \"$ac_try\"") >&5
15232
(eval $ac_try) 2>&5
15234
echo "$as_me:15234: \$? = $ac_status" >&5
15235
(exit $ac_status); }; }; then
15236
ac_cv_type_mode_t=yes
15238
echo "$as_me: failed program was:" >&5
15239
cat conftest.$ac_ext >&5
15240
ac_cv_type_mode_t=no
15242
rm -f conftest.$ac_objext conftest.$ac_ext
15244
echo "$as_me:15244: result: $ac_cv_type_mode_t" >&5
15245
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15246
if test $ac_cv_type_mode_t = yes; then
15250
cat >>confdefs.h <<EOF
15256
echo "$as_me:15256: checking for off_t" >&5
15257
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15258
if test "${ac_cv_type_off_t+set}" = set; then
15259
echo $ECHO_N "(cached) $ECHO_C" >&6
15261
cat >conftest.$ac_ext <<_ACEOF
15262
#line 15262 "configure"
15263
#include "confdefs.h"
15264
$ac_includes_default
15270
if (sizeof (off_t))
15276
rm -f conftest.$ac_objext
15277
if { (eval echo "$as_me:15277: \"$ac_compile\"") >&5
15278
(eval $ac_compile) 2>&5
15280
echo "$as_me:15280: \$? = $ac_status" >&5
15281
(exit $ac_status); } &&
15282
{ ac_try='test -s conftest.$ac_objext'
15283
{ (eval echo "$as_me:15283: \"$ac_try\"") >&5
15284
(eval $ac_try) 2>&5
15286
echo "$as_me:15286: \$? = $ac_status" >&5
15287
(exit $ac_status); }; }; then
15288
ac_cv_type_off_t=yes
15290
echo "$as_me: failed program was:" >&5
15291
cat conftest.$ac_ext >&5
15292
ac_cv_type_off_t=no
15294
rm -f conftest.$ac_objext conftest.$ac_ext
15296
echo "$as_me:15296: result: $ac_cv_type_off_t" >&5
15297
echo "${ECHO_T}$ac_cv_type_off_t" >&6
15298
if test $ac_cv_type_off_t = yes; then
15302
cat >>confdefs.h <<EOF
15308
echo "$as_me:15308: checking for size_t" >&5
15309
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15310
if test "${ac_cv_type_size_t+set}" = set; then
15311
echo $ECHO_N "(cached) $ECHO_C" >&6
15313
cat >conftest.$ac_ext <<_ACEOF
15314
#line 15314 "configure"
15315
#include "confdefs.h"
15316
$ac_includes_default
15322
if (sizeof (size_t))
15328
rm -f conftest.$ac_objext
15329
if { (eval echo "$as_me:15329: \"$ac_compile\"") >&5
15330
(eval $ac_compile) 2>&5
15332
echo "$as_me:15332: \$? = $ac_status" >&5
15333
(exit $ac_status); } &&
15334
{ ac_try='test -s conftest.$ac_objext'
15335
{ (eval echo "$as_me:15335: \"$ac_try\"") >&5
15336
(eval $ac_try) 2>&5
15338
echo "$as_me:15338: \$? = $ac_status" >&5
15339
(exit $ac_status); }; }; then
15340
ac_cv_type_size_t=yes
15342
echo "$as_me: failed program was:" >&5
15343
cat conftest.$ac_ext >&5
15344
ac_cv_type_size_t=no
15346
rm -f conftest.$ac_objext conftest.$ac_ext
15348
echo "$as_me:15348: result: $ac_cv_type_size_t" >&5
15349
echo "${ECHO_T}$ac_cv_type_size_t" >&6
15350
if test $ac_cv_type_size_t = yes; then
15354
cat >>confdefs.h <<EOF
15355
#define size_t unsigned
15360
echo "$as_me:15360: checking for pid_t" >&5
15361
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15362
if test "${ac_cv_type_pid_t+set}" = set; then
15363
echo $ECHO_N "(cached) $ECHO_C" >&6
15365
cat >conftest.$ac_ext <<_ACEOF
15366
#line 15366 "configure"
15367
#include "confdefs.h"
15368
$ac_includes_default
15374
if (sizeof (pid_t))
15380
rm -f conftest.$ac_objext
15381
if { (eval echo "$as_me:15381: \"$ac_compile\"") >&5
15382
(eval $ac_compile) 2>&5
15384
echo "$as_me:15384: \$? = $ac_status" >&5
15385
(exit $ac_status); } &&
15386
{ ac_try='test -s conftest.$ac_objext'
15387
{ (eval echo "$as_me:15387: \"$ac_try\"") >&5
15388
(eval $ac_try) 2>&5
15390
echo "$as_me:15390: \$? = $ac_status" >&5
15391
(exit $ac_status); }; }; then
15392
ac_cv_type_pid_t=yes
15394
echo "$as_me: failed program was:" >&5
15395
cat conftest.$ac_ext >&5
15396
ac_cv_type_pid_t=no
15398
rm -f conftest.$ac_objext conftest.$ac_ext
15400
echo "$as_me:15400: result: $ac_cv_type_pid_t" >&5
15401
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15402
if test $ac_cv_type_pid_t = yes; then
15406
cat >>confdefs.h <<EOF
15412
echo "$as_me:15412: checking return type of signal handlers" >&5
15413
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15414
if test "${ac_cv_type_signal+set}" = set; then
15415
echo $ECHO_N "(cached) $ECHO_C" >&6
15417
cat >conftest.$ac_ext <<_ACEOF
15418
#line 15418 "configure"
15419
#include "confdefs.h"
15420
#include <sys/types.h>
15421
#include <signal.h>
15426
extern "C" void (*signal (int, void (*)(int)))(int);
15428
void (*signal ()) ();
15439
rm -f conftest.$ac_objext
15440
if { (eval echo "$as_me:15440: \"$ac_compile\"") >&5
15441
(eval $ac_compile) 2>&5
15443
echo "$as_me:15443: \$? = $ac_status" >&5
15444
(exit $ac_status); } &&
15445
{ ac_try='test -s conftest.$ac_objext'
15446
{ (eval echo "$as_me:15446: \"$ac_try\"") >&5
15447
(eval $ac_try) 2>&5
15449
echo "$as_me:15449: \$? = $ac_status" >&5
15450
(exit $ac_status); }; }; then
15451
ac_cv_type_signal=void
15453
echo "$as_me: failed program was:" >&5
15454
cat conftest.$ac_ext >&5
15455
ac_cv_type_signal=int
15457
rm -f conftest.$ac_objext conftest.$ac_ext
15459
echo "$as_me:15459: result: $ac_cv_type_signal" >&5
15460
echo "${ECHO_T}$ac_cv_type_signal" >&6
15462
cat >>confdefs.h <<EOF
15463
#define RETSIGTYPE $ac_cv_type_signal
15466
echo "$as_me:15466: checking for error_at_line" >&5
15467
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
15468
if test "${ac_cv_lib_error_at_line+set}" = set; then
15469
echo $ECHO_N "(cached) $ECHO_C" >&6
15471
cat >conftest.$ac_ext <<_ACEOF
15472
#line 15472 "configure"
15473
#include "confdefs.h"
15478
error_at_line (0, 0, "", 0, "");
15483
rm -f conftest.$ac_objext conftest$ac_exeext
15484
if { (eval echo "$as_me:15484: \"$ac_link\"") >&5
15485
(eval $ac_link) 2>&5
15487
echo "$as_me:15487: \$? = $ac_status" >&5
15488
(exit $ac_status); } &&
15489
{ ac_try='test -s conftest$ac_exeext'
15490
{ (eval echo "$as_me:15490: \"$ac_try\"") >&5
15491
(eval $ac_try) 2>&5
15493
echo "$as_me:15493: \$? = $ac_status" >&5
15494
(exit $ac_status); }; }; then
15495
ac_cv_lib_error_at_line=yes
15497
echo "$as_me: failed program was:" >&5
15498
cat conftest.$ac_ext >&5
15499
ac_cv_lib_error_at_line=no
15501
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15503
echo "$as_me:15503: result: $ac_cv_lib_error_at_line" >&5
15504
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
15505
if test $ac_cv_lib_error_at_line = no; then
15506
LIBOBJS="$LIBOBJS error.$ac_objext"
15509
echo "$as_me:15509: checking whether sys/types.h defines makedev" >&5
15510
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
15511
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
15512
echo $ECHO_N "(cached) $ECHO_C" >&6
15514
cat >conftest.$ac_ext <<_ACEOF
15515
#line 15515 "configure"
15516
#include "confdefs.h"
15517
#include <sys/types.h>
15522
return makedev(0, 0);
15527
rm -f conftest.$ac_objext conftest$ac_exeext
15528
if { (eval echo "$as_me:15528: \"$ac_link\"") >&5
15529
(eval $ac_link) 2>&5
15531
echo "$as_me:15531: \$? = $ac_status" >&5
15532
(exit $ac_status); } &&
15533
{ ac_try='test -s conftest$ac_exeext'
15534
{ (eval echo "$as_me:15534: \"$ac_try\"") >&5
15535
(eval $ac_try) 2>&5
15537
echo "$as_me:15537: \$? = $ac_status" >&5
15538
(exit $ac_status); }; }; then
15539
ac_cv_header_sys_types_h_makedev=yes
15541
echo "$as_me: failed program was:" >&5
15542
cat conftest.$ac_ext >&5
15543
ac_cv_header_sys_types_h_makedev=no
15545
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15548
echo "$as_me:15548: result: $ac_cv_header_sys_types_h_makedev" >&5
15549
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
15551
if test $ac_cv_header_sys_types_h_makedev = no; then
15552
echo "$as_me:15552: checking for sys/mkdev.h" >&5
15553
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
15554
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
15555
echo $ECHO_N "(cached) $ECHO_C" >&6
15557
cat >conftest.$ac_ext <<_ACEOF
15558
#line 15558 "configure"
15559
#include "confdefs.h"
15560
#include <sys/mkdev.h>
15562
if { (eval echo "$as_me:15562: \"$ac_cpp conftest.$ac_ext\"") >&5
15563
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15565
egrep -v '^ *\+' conftest.er1 >conftest.err
15567
cat conftest.err >&5
15568
echo "$as_me:15568: \$? = $ac_status" >&5
15569
(exit $ac_status); } >/dev/null; then
15570
if test -s conftest.err; then
15571
ac_cpp_err=$ac_c_preproc_warn_flag
15578
if test -z "$ac_cpp_err"; then
15579
ac_cv_header_sys_mkdev_h=yes
15581
echo "$as_me: failed program was:" >&5
15582
cat conftest.$ac_ext >&5
15583
ac_cv_header_sys_mkdev_h=no
15585
rm -f conftest.err conftest.$ac_ext
15587
echo "$as_me:15587: result: $ac_cv_header_sys_mkdev_h" >&5
15588
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
15589
if test $ac_cv_header_sys_mkdev_h = yes; then
15591
cat >>confdefs.h <<\EOF
15592
#define MAJOR_IN_MKDEV 1
15597
if test $ac_cv_header_sys_mkdev_h = no; then
15598
echo "$as_me:15598: checking for sys/sysmacros.h" >&5
15599
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
15600
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
15601
echo $ECHO_N "(cached) $ECHO_C" >&6
15603
cat >conftest.$ac_ext <<_ACEOF
15604
#line 15604 "configure"
15605
#include "confdefs.h"
15606
#include <sys/sysmacros.h>
15608
if { (eval echo "$as_me:15608: \"$ac_cpp conftest.$ac_ext\"") >&5
15609
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15611
egrep -v '^ *\+' conftest.er1 >conftest.err
15613
cat conftest.err >&5
15614
echo "$as_me:15614: \$? = $ac_status" >&5
15615
(exit $ac_status); } >/dev/null; then
15616
if test -s conftest.err; then
15617
ac_cpp_err=$ac_c_preproc_warn_flag
15624
if test -z "$ac_cpp_err"; then
15625
ac_cv_header_sys_sysmacros_h=yes
15627
echo "$as_me: failed program was:" >&5
15628
cat conftest.$ac_ext >&5
15629
ac_cv_header_sys_sysmacros_h=no
15631
rm -f conftest.err conftest.$ac_ext
15633
echo "$as_me:15633: result: $ac_cv_header_sys_sysmacros_h" >&5
15634
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
15635
if test $ac_cv_header_sys_sysmacros_h = yes; then
15637
cat >>confdefs.h <<\EOF
15638
#define MAJOR_IN_SYSMACROS 1
15646
for ac_func in vprintf
15648
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15649
echo "$as_me:15649: checking for $ac_func" >&5
15650
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15651
if eval "test \"\${$as_ac_var+set}\" = set"; then
15652
echo $ECHO_N "(cached) $ECHO_C" >&6
15654
cat >conftest.$ac_ext <<_ACEOF
15655
#line 15655 "configure"
15656
#include "confdefs.h"
15657
/* System header to define __stub macros and hopefully few prototypes,
15658
which can conflict with char $ac_func (); below. */
15659
#include <assert.h>
15660
/* Override any gcc2 internal prototype to avoid an error. */
15664
/* We use char because int might match the return type of a gcc2
15665
builtin and then its argument prototype would still apply. */
15672
/* The GNU C library defines this for functions which it implements
15673
to always fail with ENOSYS. Some functions are actually named
15674
something starting with __ and the normal name is an alias. */
15675
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15685
rm -f conftest.$ac_objext conftest$ac_exeext
15686
if { (eval echo "$as_me:15686: \"$ac_link\"") >&5
15687
(eval $ac_link) 2>&5
15689
echo "$as_me:15689: \$? = $ac_status" >&5
15690
(exit $ac_status); } &&
15691
{ ac_try='test -s conftest$ac_exeext'
15692
{ (eval echo "$as_me:15692: \"$ac_try\"") >&5
15693
(eval $ac_try) 2>&5
15695
echo "$as_me:15695: \$? = $ac_status" >&5
15696
(exit $ac_status); }; }; then
15697
eval "$as_ac_var=yes"
15699
echo "$as_me: failed program was:" >&5
15700
cat conftest.$ac_ext >&5
15701
eval "$as_ac_var=no"
15703
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15705
echo "$as_me:15705: result: `eval echo '${'$as_ac_var'}'`" >&5
15706
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15707
if test `eval echo '${'$as_ac_var'}'` = yes; then
15708
cat >>confdefs.h <<EOF
15709
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15712
echo "$as_me:15712: checking for _doprnt" >&5
15713
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15714
if test "${ac_cv_func__doprnt+set}" = set; then
15715
echo $ECHO_N "(cached) $ECHO_C" >&6
15717
cat >conftest.$ac_ext <<_ACEOF
15718
#line 15718 "configure"
15719
#include "confdefs.h"
15720
/* System header to define __stub macros and hopefully few prototypes,
15721
which can conflict with char _doprnt (); below. */
15722
#include <assert.h>
15723
/* Override any gcc2 internal prototype to avoid an error. */
15727
/* We use char because int might match the return type of a gcc2
15728
builtin and then its argument prototype would still apply. */
15735
/* The GNU C library defines this for functions which it implements
15736
to always fail with ENOSYS. Some functions are actually named
15737
something starting with __ and the normal name is an alias. */
15738
#if defined (__stub__doprnt) || defined (__stub____doprnt)
15748
rm -f conftest.$ac_objext conftest$ac_exeext
15749
if { (eval echo "$as_me:15749: \"$ac_link\"") >&5
15750
(eval $ac_link) 2>&5
15752
echo "$as_me:15752: \$? = $ac_status" >&5
15753
(exit $ac_status); } &&
15754
{ ac_try='test -s conftest$ac_exeext'
15755
{ (eval echo "$as_me:15755: \"$ac_try\"") >&5
15756
(eval $ac_try) 2>&5
15758
echo "$as_me:15758: \$? = $ac_status" >&5
15759
(exit $ac_status); }; }; then
15760
ac_cv_func__doprnt=yes
15762
echo "$as_me: failed program was:" >&5
15763
cat conftest.$ac_ext >&5
15764
ac_cv_func__doprnt=no
15766
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15768
echo "$as_me:15768: result: $ac_cv_func__doprnt" >&5
15769
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15770
if test $ac_cv_func__doprnt = yes; then
15772
cat >>confdefs.h <<\EOF
15773
#define HAVE_DOPRNT 1
15781
for ac_header in stdlib.h
15783
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15784
echo "$as_me:15784: checking for $ac_header" >&5
15785
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15786
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15787
echo $ECHO_N "(cached) $ECHO_C" >&6
15789
cat >conftest.$ac_ext <<_ACEOF
15790
#line 15790 "configure"
15791
#include "confdefs.h"
15792
#include <$ac_header>
15794
if { (eval echo "$as_me:15794: \"$ac_cpp conftest.$ac_ext\"") >&5
15795
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15797
egrep -v '^ *\+' conftest.er1 >conftest.err
15799
cat conftest.err >&5
15800
echo "$as_me:15800: \$? = $ac_status" >&5
15801
(exit $ac_status); } >/dev/null; then
15802
if test -s conftest.err; then
15803
ac_cpp_err=$ac_c_preproc_warn_flag
15810
if test -z "$ac_cpp_err"; then
15811
eval "$as_ac_Header=yes"
15813
echo "$as_me: failed program was:" >&5
15814
cat conftest.$ac_ext >&5
15815
eval "$as_ac_Header=no"
15817
rm -f conftest.err conftest.$ac_ext
15819
echo "$as_me:15819: result: `eval echo '${'$as_ac_Header'}'`" >&5
15820
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15821
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15822
cat >>confdefs.h <<EOF
15823
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15829
echo "$as_me:15829: checking for working malloc" >&5
15830
echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
15831
if test "${ac_cv_func_malloc_works+set}" = set; then
15832
echo $ECHO_N "(cached) $ECHO_C" >&6
15834
if test "$cross_compiling" = yes; then
15835
ac_cv_func_malloc_works=no
15837
cat >conftest.$ac_ext <<_ACEOF
15838
#line 15838 "configure"
15839
#include "confdefs.h"
15840
#if STDC_HEADERS || HAVE_STDLIB_H
15841
# include <stdlib.h>
15849
exit (malloc (0) ? 0 : 1);
15854
rm -f conftest$ac_exeext
15855
if { (eval echo "$as_me:15855: \"$ac_link\"") >&5
15856
(eval $ac_link) 2>&5
15858
echo "$as_me:15858: \$? = $ac_status" >&5
15859
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15860
{ (eval echo "$as_me:15860: \"$ac_try\"") >&5
15861
(eval $ac_try) 2>&5
15863
echo "$as_me:15863: \$? = $ac_status" >&5
15864
(exit $ac_status); }; }; then
15865
ac_cv_func_malloc_works=yes
15867
echo "$as_me: program exited with status $ac_status" >&5
15868
echo "$as_me: failed program was:" >&5
15869
cat conftest.$ac_ext >&5
15870
ac_cv_func_malloc_works=no
15872
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15875
echo "$as_me:15875: result: $ac_cv_func_malloc_works" >&5
15876
echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
15877
if test $ac_cv_func_malloc_works = yes; then
15879
cat >>confdefs.h <<\EOF
15880
#define HAVE_MALLOC 1
15885
echo "$as_me:15885: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15886
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15887
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15888
echo $ECHO_N "(cached) $ECHO_C" >&6
15890
rm -f conftest.sym conftest.file
15891
echo >conftest.file
15892
if ln -s conftest.file conftest.sym; then
15893
if test "$cross_compiling" = yes; then
15894
ac_cv_func_lstat_dereferences_slashed_symlink=no
15896
cat >conftest.$ac_ext <<_ACEOF
15897
#line 15897 "configure"
15898
#include "confdefs.h"
15899
$ac_includes_default
15904
/* Linux will dereference the symlink and fail.
15905
That is better in the sense that it means we will not
15906
have to compile and use the lstat wrapper. */
15907
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15912
rm -f conftest$ac_exeext
15913
if { (eval echo "$as_me:15913: \"$ac_link\"") >&5
15914
(eval $ac_link) 2>&5
15916
echo "$as_me:15916: \$? = $ac_status" >&5
15917
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15918
{ (eval echo "$as_me:15918: \"$ac_try\"") >&5
15919
(eval $ac_try) 2>&5
15921
echo "$as_me:15921: \$? = $ac_status" >&5
15922
(exit $ac_status); }; }; then
15923
ac_cv_func_lstat_dereferences_slashed_symlink=yes
15925
echo "$as_me: program exited with status $ac_status" >&5
15926
echo "$as_me: failed program was:" >&5
15927
cat conftest.$ac_ext >&5
15928
ac_cv_func_lstat_dereferences_slashed_symlink=no
15930
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15933
# If the `ln -s' command failed, then we probably don't even
15934
# have an lstat function.
15935
ac_cv_func_lstat_dereferences_slashed_symlink=no
15937
rm -f conftest.sym conftest.file
15940
echo "$as_me:15940: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15941
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15943
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15945
cat >>confdefs.h <<EOF
15946
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15949
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15950
LIBOBJS="$LIBOBJS lstat.$ac_objext"
15953
echo "$as_me:15953: checking whether stat accepts an empty string" >&5
15954
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
15955
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
15956
echo $ECHO_N "(cached) $ECHO_C" >&6
15958
if test "$cross_compiling" = yes; then
15959
ac_cv_func_stat_empty_string_bug=yes
15961
cat >conftest.$ac_ext <<_ACEOF
15962
#line 15962 "configure"
15963
#include "confdefs.h"
15964
$ac_includes_default
15969
exit (stat ("", &sbuf) ? 1 : 0);
15974
rm -f conftest$ac_exeext
15975
if { (eval echo "$as_me:15975: \"$ac_link\"") >&5
15976
(eval $ac_link) 2>&5
15978
echo "$as_me:15978: \$? = $ac_status" >&5
15979
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15980
{ (eval echo "$as_me:15980: \"$ac_try\"") >&5
15981
(eval $ac_try) 2>&5
15983
echo "$as_me:15983: \$? = $ac_status" >&5
15984
(exit $ac_status); }; }; then
15985
ac_cv_func_stat_empty_string_bug=yes
15987
echo "$as_me: program exited with status $ac_status" >&5
15988
echo "$as_me: failed program was:" >&5
15989
cat conftest.$ac_ext >&5
15990
ac_cv_func_stat_empty_string_bug=no
15992
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15995
echo "$as_me:15995: result: $ac_cv_func_stat_empty_string_bug" >&5
15996
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
15997
if test $ac_cv_func_stat_empty_string_bug = yes; then
15998
LIBOBJS="$LIBOBJS stat.$ac_objext"
16000
cat >>confdefs.h <<EOF
16001
#define HAVE_STAT_EMPTY_STRING_BUG 1
16006
for ac_func in getcwd mkdir strstr strtol dup2 getwd memchr memset strrchr pow
16008
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16009
echo "$as_me:16009: checking for $ac_func" >&5
16010
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16011
if eval "test \"\${$as_ac_var+set}\" = set"; then
16012
echo $ECHO_N "(cached) $ECHO_C" >&6
16014
cat >conftest.$ac_ext <<_ACEOF
16015
#line 16015 "configure"
16016
#include "confdefs.h"
16017
/* System header to define __stub macros and hopefully few prototypes,
16018
which can conflict with char $ac_func (); below. */
16019
#include <assert.h>
16020
/* Override any gcc2 internal prototype to avoid an error. */
16024
/* We use char because int might match the return type of a gcc2
16025
builtin and then its argument prototype would still apply. */
16032
/* The GNU C library defines this for functions which it implements
16033
to always fail with ENOSYS. Some functions are actually named
16034
something starting with __ and the normal name is an alias. */
16035
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16045
rm -f conftest.$ac_objext conftest$ac_exeext
16046
if { (eval echo "$as_me:16046: \"$ac_link\"") >&5
16047
(eval $ac_link) 2>&5
16049
echo "$as_me:16049: \$? = $ac_status" >&5
16050
(exit $ac_status); } &&
16051
{ ac_try='test -s conftest$ac_exeext'
16052
{ (eval echo "$as_me:16052: \"$ac_try\"") >&5
16053
(eval $ac_try) 2>&5
16055
echo "$as_me:16055: \$? = $ac_status" >&5
16056
(exit $ac_status); }; }; then
16057
eval "$as_ac_var=yes"
16059
echo "$as_me: failed program was:" >&5
16060
cat conftest.$ac_ext >&5
16061
eval "$as_ac_var=no"
16063
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16065
echo "$as_me:16065: result: `eval echo '${'$as_ac_var'}'`" >&5
16066
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16067
if test `eval echo '${'$as_ac_var'}'` = yes; then
16068
cat >>confdefs.h <<EOF
16069
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16075
ALL_LINGUAS="fr de it es nl"
16076
if test -n "$ac_tool_prefix"; then
16077
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16078
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16079
echo "$as_me:16079: checking for $ac_word" >&5
16080
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16081
if test "${ac_cv_prog_RANLIB+set}" = set; then
16082
echo $ECHO_N "(cached) $ECHO_C" >&6
16084
if test -n "$RANLIB"; then
16085
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16087
ac_save_IFS=$IFS; IFS=$ac_path_separator
16089
for ac_dir in $ac_dummy; do
16091
test -z "$ac_dir" && ac_dir=.
16092
$as_executable_p "$ac_dir/$ac_word" || continue
16093
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16094
echo "$as_me:16094: found $ac_dir/$ac_word" >&5
16100
RANLIB=$ac_cv_prog_RANLIB
16101
if test -n "$RANLIB"; then
16102
echo "$as_me:16102: result: $RANLIB" >&5
16103
echo "${ECHO_T}$RANLIB" >&6
16105
echo "$as_me:16105: result: no" >&5
16106
echo "${ECHO_T}no" >&6
16110
if test -z "$ac_cv_prog_RANLIB"; then
16111
ac_ct_RANLIB=$RANLIB
16112
# Extract the first word of "ranlib", so it can be a program name with args.
16113
set dummy ranlib; ac_word=$2
16114
echo "$as_me:16114: checking for $ac_word" >&5
16115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16116
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16117
echo $ECHO_N "(cached) $ECHO_C" >&6
16119
if test -n "$ac_ct_RANLIB"; then
16120
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16122
ac_save_IFS=$IFS; IFS=$ac_path_separator
16124
for ac_dir in $ac_dummy; do
16126
test -z "$ac_dir" && ac_dir=.
16127
$as_executable_p "$ac_dir/$ac_word" || continue
16128
ac_cv_prog_ac_ct_RANLIB="ranlib"
16129
echo "$as_me:16129: found $ac_dir/$ac_word" >&5
16133
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16136
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16137
if test -n "$ac_ct_RANLIB"; then
16138
echo "$as_me:16138: result: $ac_ct_RANLIB" >&5
16139
echo "${ECHO_T}$ac_ct_RANLIB" >&6
16141
echo "$as_me:16141: result: no" >&5
16142
echo "${ECHO_T}no" >&6
16145
RANLIB=$ac_ct_RANLIB
16147
RANLIB="$ac_cv_prog_RANLIB"
16150
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16151
# for constant arguments. Useless!
16152
echo "$as_me:16152: checking for working alloca.h" >&5
16153
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16154
if test "${ac_cv_working_alloca_h+set}" = set; then
16155
echo $ECHO_N "(cached) $ECHO_C" >&6
16157
cat >conftest.$ac_ext <<_ACEOF
16158
#line 16158 "configure"
16159
#include "confdefs.h"
16160
#include <alloca.h>
16164
char *p = (char *) alloca (2 * sizeof (int));
16169
rm -f conftest.$ac_objext conftest$ac_exeext
16170
if { (eval echo "$as_me:16170: \"$ac_link\"") >&5
16171
(eval $ac_link) 2>&5
16173
echo "$as_me:16173: \$? = $ac_status" >&5
16174
(exit $ac_status); } &&
16175
{ ac_try='test -s conftest$ac_exeext'
16176
{ (eval echo "$as_me:16176: \"$ac_try\"") >&5
16177
(eval $ac_try) 2>&5
16179
echo "$as_me:16179: \$? = $ac_status" >&5
16180
(exit $ac_status); }; }; then
16181
ac_cv_working_alloca_h=yes
16183
echo "$as_me: failed program was:" >&5
16184
cat conftest.$ac_ext >&5
16185
ac_cv_working_alloca_h=no
16187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16189
echo "$as_me:16189: result: $ac_cv_working_alloca_h" >&5
16190
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16191
if test $ac_cv_working_alloca_h = yes; then
16193
cat >>confdefs.h <<\EOF
16194
#define HAVE_ALLOCA_H 1
16199
echo "$as_me:16199: checking for alloca" >&5
16200
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16201
if test "${ac_cv_func_alloca_works+set}" = set; then
16202
echo $ECHO_N "(cached) $ECHO_C" >&6
16204
cat >conftest.$ac_ext <<_ACEOF
16205
#line 16205 "configure"
16206
#include "confdefs.h"
16208
# define alloca __builtin_alloca
16211
# include <malloc.h>
16212
# define alloca _alloca
16215
# include <alloca.h>
16220
# ifndef alloca /* predefined by HP cc +Olibcalls */
16231
char *p = (char *) alloca (1);
16236
rm -f conftest.$ac_objext conftest$ac_exeext
16237
if { (eval echo "$as_me:16237: \"$ac_link\"") >&5
16238
(eval $ac_link) 2>&5
16240
echo "$as_me:16240: \$? = $ac_status" >&5
16241
(exit $ac_status); } &&
16242
{ ac_try='test -s conftest$ac_exeext'
16243
{ (eval echo "$as_me:16243: \"$ac_try\"") >&5
16244
(eval $ac_try) 2>&5
16246
echo "$as_me:16246: \$? = $ac_status" >&5
16247
(exit $ac_status); }; }; then
16248
ac_cv_func_alloca_works=yes
16250
echo "$as_me: failed program was:" >&5
16251
cat conftest.$ac_ext >&5
16252
ac_cv_func_alloca_works=no
16254
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16256
echo "$as_me:16256: result: $ac_cv_func_alloca_works" >&5
16257
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16259
if test $ac_cv_func_alloca_works = yes; then
16261
cat >>confdefs.h <<\EOF
16262
#define HAVE_ALLOCA 1
16266
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
16267
# that cause trouble. Some versions do not even contain alloca or
16268
# contain a buggy version. If you still want to use their alloca,
16269
# use ar to extract alloca.o from them instead of compiling alloca.c.
16271
ALLOCA=alloca.$ac_objext
16273
cat >>confdefs.h <<\EOF
16277
echo "$as_me:16277: checking whether \`alloca.c' needs Cray hooks" >&5
16278
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16279
if test "${ac_cv_os_cray+set}" = set; then
16280
echo $ECHO_N "(cached) $ECHO_C" >&6
16282
cat >conftest.$ac_ext <<_ACEOF
16283
#line 16283 "configure"
16284
#include "confdefs.h"
16285
#if defined(CRAY) && ! defined(CRAY2)
16292
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16293
egrep "webecray" >/dev/null 2>&1; then
16301
echo "$as_me:16301: result: $ac_cv_os_cray" >&5
16302
echo "${ECHO_T}$ac_cv_os_cray" >&6
16303
if test $ac_cv_os_cray = yes; then
16304
for ac_func in _getb67 GETB67 getb67; do
16305
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16306
echo "$as_me:16306: checking for $ac_func" >&5
16307
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16308
if eval "test \"\${$as_ac_var+set}\" = set"; then
16309
echo $ECHO_N "(cached) $ECHO_C" >&6
16311
cat >conftest.$ac_ext <<_ACEOF
16312
#line 16312 "configure"
16313
#include "confdefs.h"
16314
/* System header to define __stub macros and hopefully few prototypes,
16315
which can conflict with char $ac_func (); below. */
16316
#include <assert.h>
16317
/* Override any gcc2 internal prototype to avoid an error. */
16321
/* We use char because int might match the return type of a gcc2
16322
builtin and then its argument prototype would still apply. */
16329
/* The GNU C library defines this for functions which it implements
16330
to always fail with ENOSYS. Some functions are actually named
16331
something starting with __ and the normal name is an alias. */
16332
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342
rm -f conftest.$ac_objext conftest$ac_exeext
16343
if { (eval echo "$as_me:16343: \"$ac_link\"") >&5
16344
(eval $ac_link) 2>&5
16346
echo "$as_me:16346: \$? = $ac_status" >&5
16347
(exit $ac_status); } &&
16348
{ ac_try='test -s conftest$ac_exeext'
16349
{ (eval echo "$as_me:16349: \"$ac_try\"") >&5
16350
(eval $ac_try) 2>&5
16352
echo "$as_me:16352: \$? = $ac_status" >&5
16353
(exit $ac_status); }; }; then
16354
eval "$as_ac_var=yes"
16356
echo "$as_me: failed program was:" >&5
16357
cat conftest.$ac_ext >&5
16358
eval "$as_ac_var=no"
16360
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16362
echo "$as_me:16362: result: `eval echo '${'$as_ac_var'}'`" >&5
16363
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16364
if test `eval echo '${'$as_ac_var'}'` = yes; then
16366
cat >>confdefs.h <<EOF
16367
#define CRAY_STACKSEG_END $ac_func
16376
echo "$as_me:16376: checking stack direction for C alloca" >&5
16377
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16378
if test "${ac_cv_c_stack_direction+set}" = set; then
16379
echo $ECHO_N "(cached) $ECHO_C" >&6
16381
if test "$cross_compiling" = yes; then
16382
ac_cv_c_stack_direction=0
16384
cat >conftest.$ac_ext <<_ACEOF
16385
#line 16385 "configure"
16386
#include "confdefs.h"
16388
find_stack_direction ()
16390
static char *addr = 0;
16395
return find_stack_direction ();
16398
return (&dummy > addr) ? 1 : -1;
16404
exit (find_stack_direction () < 0);
16407
rm -f conftest$ac_exeext
16408
if { (eval echo "$as_me:16408: \"$ac_link\"") >&5
16409
(eval $ac_link) 2>&5
16411
echo "$as_me:16411: \$? = $ac_status" >&5
16412
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16413
{ (eval echo "$as_me:16413: \"$ac_try\"") >&5
16414
(eval $ac_try) 2>&5
16416
echo "$as_me:16416: \$? = $ac_status" >&5
16417
(exit $ac_status); }; }; then
16418
ac_cv_c_stack_direction=1
16420
echo "$as_me: program exited with status $ac_status" >&5
16421
echo "$as_me: failed program was:" >&5
16422
cat conftest.$ac_ext >&5
16423
ac_cv_c_stack_direction=-1
16425
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16428
echo "$as_me:16428: result: $ac_cv_c_stack_direction" >&5
16429
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16431
cat >>confdefs.h <<EOF
16432
#define STACK_DIRECTION $ac_cv_c_stack_direction
16437
for ac_header in stdlib.h unistd.h
16439
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440
echo "$as_me:16440: checking for $ac_header" >&5
16441
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16442
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443
echo $ECHO_N "(cached) $ECHO_C" >&6
16445
cat >conftest.$ac_ext <<_ACEOF
16446
#line 16446 "configure"
16447
#include "confdefs.h"
16448
#include <$ac_header>
16450
if { (eval echo "$as_me:16450: \"$ac_cpp conftest.$ac_ext\"") >&5
16451
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16453
egrep -v '^ *\+' conftest.er1 >conftest.err
16455
cat conftest.err >&5
16456
echo "$as_me:16456: \$? = $ac_status" >&5
16457
(exit $ac_status); } >/dev/null; then
16458
if test -s conftest.err; then
16459
ac_cpp_err=$ac_c_preproc_warn_flag
16466
if test -z "$ac_cpp_err"; then
16467
eval "$as_ac_Header=yes"
16469
echo "$as_me: failed program was:" >&5
16470
cat conftest.$ac_ext >&5
16471
eval "$as_ac_Header=no"
16473
rm -f conftest.err conftest.$ac_ext
16475
echo "$as_me:16475: result: `eval echo '${'$as_ac_Header'}'`" >&5
16476
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478
cat >>confdefs.h <<EOF
16479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16485
for ac_func in getpagesize
16487
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488
echo "$as_me:16488: checking for $ac_func" >&5
16489
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16490
if eval "test \"\${$as_ac_var+set}\" = set"; then
16491
echo $ECHO_N "(cached) $ECHO_C" >&6
16493
cat >conftest.$ac_ext <<_ACEOF
16494
#line 16494 "configure"
16495
#include "confdefs.h"
16496
/* System header to define __stub macros and hopefully few prototypes,
16497
which can conflict with char $ac_func (); below. */
16498
#include <assert.h>
16499
/* Override any gcc2 internal prototype to avoid an error. */
16503
/* We use char because int might match the return type of a gcc2
16504
builtin and then its argument prototype would still apply. */
16511
/* The GNU C library defines this for functions which it implements
16512
to always fail with ENOSYS. Some functions are actually named
16513
something starting with __ and the normal name is an alias. */
16514
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16524
rm -f conftest.$ac_objext conftest$ac_exeext
16525
if { (eval echo "$as_me:16525: \"$ac_link\"") >&5
16526
(eval $ac_link) 2>&5
16528
echo "$as_me:16528: \$? = $ac_status" >&5
16529
(exit $ac_status); } &&
16530
{ ac_try='test -s conftest$ac_exeext'
16531
{ (eval echo "$as_me:16531: \"$ac_try\"") >&5
16532
(eval $ac_try) 2>&5
16534
echo "$as_me:16534: \$? = $ac_status" >&5
16535
(exit $ac_status); }; }; then
16536
eval "$as_ac_var=yes"
16538
echo "$as_me: failed program was:" >&5
16539
cat conftest.$ac_ext >&5
16540
eval "$as_ac_var=no"
16542
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16544
echo "$as_me:16544: result: `eval echo '${'$as_ac_var'}'`" >&5
16545
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16546
if test `eval echo '${'$as_ac_var'}'` = yes; then
16547
cat >>confdefs.h <<EOF
16548
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16554
echo "$as_me:16554: checking for working mmap" >&5
16555
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16556
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16557
echo $ECHO_N "(cached) $ECHO_C" >&6
16559
if test "$cross_compiling" = yes; then
16560
ac_cv_func_mmap_fixed_mapped=no
16562
cat >conftest.$ac_ext <<_ACEOF
16563
#line 16563 "configure"
16564
#include "confdefs.h"
16565
$ac_includes_default
16566
/* Thanks to Mike Haertel and Jim Avera for this test.
16567
Here is a matrix of mmap possibilities:
16568
mmap private not fixed
16569
mmap private fixed at somewhere currently unmapped
16570
mmap private fixed at somewhere already mapped
16571
mmap shared not fixed
16572
mmap shared fixed at somewhere currently unmapped
16573
mmap shared fixed at somewhere already mapped
16574
For private mappings, we should verify that changes cannot be read()
16575
back from the file, nor mmap's back from the file at a different
16576
address. (There have been systems where private was not correctly
16577
implemented like the infamous i386 svr4.0, and systems where the
16578
VM page cache was not coherent with the file system buffer cache
16579
like early versions of FreeBSD and possibly contemporary NetBSD.)
16580
For shared mappings, we should conversely verify that changes get
16581
propogated back to all the places they're supposed to be.
16583
Grep wants private fixed already mapped.
16584
The main things grep needs to know about mmap are:
16585
* does it exist and is it safe to write into the mmap'd area
16586
* how to use it (BSD variants) */
16589
#include <sys/mman.h>
16591
#if !STDC_HEADERS && !HAVE_STDLIB_H
16595
/* This mess was copied from the GNU getpagesize.h. */
16596
#if !HAVE_GETPAGESIZE
16597
/* Assume that all systems that can run configure have sys/param.h. */
16598
# if !HAVE_SYS_PARAM_H
16599
# define HAVE_SYS_PARAM_H 1
16602
# ifdef _SC_PAGESIZE
16603
# define getpagesize() sysconf(_SC_PAGESIZE)
16604
# else /* no _SC_PAGESIZE */
16605
# if HAVE_SYS_PARAM_H
16606
# include <sys/param.h>
16607
# ifdef EXEC_PAGESIZE
16608
# define getpagesize() EXEC_PAGESIZE
16609
# else /* no EXEC_PAGESIZE */
16611
# define getpagesize() NBPG * CLSIZE
16614
# endif /* no CLSIZE */
16615
# else /* no NBPG */
16617
# define getpagesize() NBPC
16618
# else /* no NBPC */
16620
# define getpagesize() PAGESIZE
16621
# endif /* PAGESIZE */
16622
# endif /* no NBPC */
16623
# endif /* no NBPG */
16624
# endif /* no EXEC_PAGESIZE */
16625
# else /* no HAVE_SYS_PARAM_H */
16626
# define getpagesize() 8192 /* punt totally */
16627
# endif /* no HAVE_SYS_PARAM_H */
16628
# endif /* no _SC_PAGESIZE */
16630
#endif /* no HAVE_GETPAGESIZE */
16635
char *data, *data2, *data3;
16639
pagesize = getpagesize ();
16641
/* First, make a file with some known garbage in it. */
16642
data = (char *) malloc (pagesize);
16645
for (i = 0; i < pagesize; ++i)
16646
*(data + i) = rand ();
16648
fd = creat ("conftest.mmap", 0600);
16651
if (write (fd, data, pagesize) != pagesize)
16655
/* Next, try to mmap the file at a fixed address which already has
16656
something else allocated at it. If we can, also make sure that
16657
we see the same garbage. */
16658
fd = open ("conftest.mmap", O_RDWR);
16661
data2 = (char *) malloc (2 * pagesize);
16664
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16665
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16666
MAP_PRIVATE | MAP_FIXED, fd, 0L))
16668
for (i = 0; i < pagesize; ++i)
16669
if (*(data + i) != *(data2 + i))
16672
/* Finally, make sure that changes to the mapped area do not
16673
percolate back to the file as seen by read(). (This is a bug on
16674
some variants of i386 svr4.0.) */
16675
for (i = 0; i < pagesize; ++i)
16676
*(data2 + i) = *(data2 + i) + 1;
16677
data3 = (char *) malloc (pagesize);
16680
if (read (fd, data3, pagesize) != pagesize)
16682
for (i = 0; i < pagesize; ++i)
16683
if (*(data + i) != *(data3 + i))
16689
rm -f conftest$ac_exeext
16690
if { (eval echo "$as_me:16690: \"$ac_link\"") >&5
16691
(eval $ac_link) 2>&5
16693
echo "$as_me:16693: \$? = $ac_status" >&5
16694
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695
{ (eval echo "$as_me:16695: \"$ac_try\"") >&5
16696
(eval $ac_try) 2>&5
16698
echo "$as_me:16698: \$? = $ac_status" >&5
16699
(exit $ac_status); }; }; then
16700
ac_cv_func_mmap_fixed_mapped=yes
16702
echo "$as_me: program exited with status $ac_status" >&5
16703
echo "$as_me: failed program was:" >&5
16704
cat conftest.$ac_ext >&5
16705
ac_cv_func_mmap_fixed_mapped=no
16707
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16710
echo "$as_me:16710: result: $ac_cv_func_mmap_fixed_mapped" >&5
16711
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16712
if test $ac_cv_func_mmap_fixed_mapped = yes; then
16714
cat >>confdefs.h <<\EOF
16715
#define HAVE_MMAP 1
16719
rm -f conftest.mmap
16721
echo "$as_me:16721: checking whether we are using the GNU C Library 2.1 or newer" >&5
16722
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
16723
if test "${ac_cv_gnu_library_2_1+set}" = set; then
16724
echo $ECHO_N "(cached) $ECHO_C" >&6
16726
cat >conftest.$ac_ext <<_ACEOF
16727
#line 16727 "configure"
16728
#include "confdefs.h"
16730
#include <features.h>
16731
#ifdef __GNU_LIBRARY__
16732
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16738
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16739
egrep "Lucky GNU user" >/dev/null 2>&1; then
16740
ac_cv_gnu_library_2_1=yes
16742
ac_cv_gnu_library_2_1=no
16747
echo "$as_me:16747: result: $ac_cv_gnu_library_2_1" >&5
16748
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
16750
GLIBC21="$ac_cv_gnu_library_2_1"
16752
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16753
stdlib.h string.h unistd.h sys/param.h
16755
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16756
echo "$as_me:16756: checking for $ac_header" >&5
16757
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16758
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16759
echo $ECHO_N "(cached) $ECHO_C" >&6
16761
cat >conftest.$ac_ext <<_ACEOF
16762
#line 16762 "configure"
16763
#include "confdefs.h"
16764
#include <$ac_header>
16766
if { (eval echo "$as_me:16766: \"$ac_cpp conftest.$ac_ext\"") >&5
16767
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16769
egrep -v '^ *\+' conftest.er1 >conftest.err
16771
cat conftest.err >&5
16772
echo "$as_me:16772: \$? = $ac_status" >&5
16773
(exit $ac_status); } >/dev/null; then
16774
if test -s conftest.err; then
16775
ac_cpp_err=$ac_c_preproc_warn_flag
16782
if test -z "$ac_cpp_err"; then
16783
eval "$as_ac_Header=yes"
16785
echo "$as_me: failed program was:" >&5
16786
cat conftest.$ac_ext >&5
16787
eval "$as_ac_Header=no"
16789
rm -f conftest.err conftest.$ac_ext
16791
echo "$as_me:16791: result: `eval echo '${'$as_ac_Header'}'`" >&5
16792
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16793
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794
cat >>confdefs.h <<EOF
16795
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801
for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
16802
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
16803
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16805
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806
echo "$as_me:16806: checking for $ac_func" >&5
16807
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16808
if eval "test \"\${$as_ac_var+set}\" = set"; then
16809
echo $ECHO_N "(cached) $ECHO_C" >&6
16811
cat >conftest.$ac_ext <<_ACEOF
16812
#line 16812 "configure"
16813
#include "confdefs.h"
16814
/* System header to define __stub macros and hopefully few prototypes,
16815
which can conflict with char $ac_func (); below. */
16816
#include <assert.h>
16817
/* Override any gcc2 internal prototype to avoid an error. */
16821
/* We use char because int might match the return type of a gcc2
16822
builtin and then its argument prototype would still apply. */
16829
/* The GNU C library defines this for functions which it implements
16830
to always fail with ENOSYS. Some functions are actually named
16831
something starting with __ and the normal name is an alias. */
16832
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16842
rm -f conftest.$ac_objext conftest$ac_exeext
16843
if { (eval echo "$as_me:16843: \"$ac_link\"") >&5
16844
(eval $ac_link) 2>&5
16846
echo "$as_me:16846: \$? = $ac_status" >&5
16847
(exit $ac_status); } &&
16848
{ ac_try='test -s conftest$ac_exeext'
16849
{ (eval echo "$as_me:16849: \"$ac_try\"") >&5
16850
(eval $ac_try) 2>&5
16852
echo "$as_me:16852: \$? = $ac_status" >&5
16853
(exit $ac_status); }; }; then
16854
eval "$as_ac_var=yes"
16856
echo "$as_me: failed program was:" >&5
16857
cat conftest.$ac_ext >&5
16858
eval "$as_ac_var=no"
16860
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16862
echo "$as_me:16862: result: `eval echo '${'$as_ac_var'}'`" >&5
16863
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16864
if test `eval echo '${'$as_ac_var'}'` = yes; then
16865
cat >>confdefs.h <<EOF
16866
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16872
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16873
if test "${with_libiconv_prefix+set}" = set; then
16874
withval="$with_libiconv_prefix"
16876
for dir in `echo "$withval" | tr : ' '`; do
16877
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16878
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16883
echo "$as_me:16883: checking for iconv" >&5
16884
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16885
if test "${am_cv_func_iconv+set}" = set; then
16886
echo $ECHO_N "(cached) $ECHO_C" >&6
16889
am_cv_func_iconv="no, consider installing GNU libiconv"
16891
cat >conftest.$ac_ext <<_ACEOF
16892
#line 16892 "configure"
16893
#include "confdefs.h"
16894
#include <stdlib.h>
16899
iconv_t cd = iconv_open("","");
16900
iconv(cd,NULL,NULL,NULL,NULL);
16906
rm -f conftest.$ac_objext conftest$ac_exeext
16907
if { (eval echo "$as_me:16907: \"$ac_link\"") >&5
16908
(eval $ac_link) 2>&5
16910
echo "$as_me:16910: \$? = $ac_status" >&5
16911
(exit $ac_status); } &&
16912
{ ac_try='test -s conftest$ac_exeext'
16913
{ (eval echo "$as_me:16913: \"$ac_try\"") >&5
16914
(eval $ac_try) 2>&5
16916
echo "$as_me:16916: \$? = $ac_status" >&5
16917
(exit $ac_status); }; }; then
16918
am_cv_func_iconv=yes
16920
echo "$as_me: failed program was:" >&5
16921
cat conftest.$ac_ext >&5
16923
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924
if test "$am_cv_func_iconv" != yes; then
16925
am_save_LIBS="$LIBS"
16926
LIBS="$LIBS -liconv"
16927
cat >conftest.$ac_ext <<_ACEOF
16928
#line 16928 "configure"
16929
#include "confdefs.h"
16930
#include <stdlib.h>
16935
iconv_t cd = iconv_open("","");
16936
iconv(cd,NULL,NULL,NULL,NULL);
16942
rm -f conftest.$ac_objext conftest$ac_exeext
16943
if { (eval echo "$as_me:16943: \"$ac_link\"") >&5
16944
(eval $ac_link) 2>&5
16946
echo "$as_me:16946: \$? = $ac_status" >&5
16947
(exit $ac_status); } &&
16948
{ ac_try='test -s conftest$ac_exeext'
16949
{ (eval echo "$as_me:16949: \"$ac_try\"") >&5
16950
(eval $ac_try) 2>&5
16952
echo "$as_me:16952: \$? = $ac_status" >&5
16953
(exit $ac_status); }; }; then
16954
am_cv_lib_iconv=yes
16955
am_cv_func_iconv=yes
16957
echo "$as_me: failed program was:" >&5
16958
cat conftest.$ac_ext >&5
16960
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16961
LIBS="$am_save_LIBS"
16965
echo "$as_me:16965: result: $am_cv_func_iconv" >&5
16966
echo "${ECHO_T}$am_cv_func_iconv" >&6
16967
if test "$am_cv_func_iconv" = yes; then
16969
cat >>confdefs.h <<\EOF
16970
#define HAVE_ICONV 1
16973
echo "$as_me:16973: checking for iconv declaration" >&5
16974
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16975
if test "${am_cv_proto_iconv+set}" = set; then
16976
echo $ECHO_N "(cached) $ECHO_C" >&6
16979
cat >conftest.$ac_ext <<_ACEOF
16980
#line 16980 "configure"
16981
#include "confdefs.h"
16983
#include <stdlib.h>
16989
#if defined(__STDC__) || defined(__cplusplus)
16990
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17003
rm -f conftest.$ac_objext
17004
if { (eval echo "$as_me:17004: \"$ac_compile\"") >&5
17005
(eval $ac_compile) 2>&5
17007
echo "$as_me:17007: \$? = $ac_status" >&5
17008
(exit $ac_status); } &&
17009
{ ac_try='test -s conftest.$ac_objext'
17010
{ (eval echo "$as_me:17010: \"$ac_try\"") >&5
17011
(eval $ac_try) 2>&5
17013
echo "$as_me:17013: \$? = $ac_status" >&5
17014
(exit $ac_status); }; }; then
17015
am_cv_proto_iconv_arg1=""
17017
echo "$as_me: failed program was:" >&5
17018
cat conftest.$ac_ext >&5
17019
am_cv_proto_iconv_arg1="const"
17021
rm -f conftest.$ac_objext conftest.$ac_ext
17022
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);"
17025
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17026
echo "$as_me:17026: result: ${ac_t:-
17027
}$am_cv_proto_iconv" >&5
17028
echo "${ECHO_T}${ac_t:-
17029
}$am_cv_proto_iconv" >&6
17031
cat >>confdefs.h <<EOF
17032
#define ICONV_CONST $am_cv_proto_iconv_arg1
17037
if test "$am_cv_lib_iconv" = yes; then
17041
echo "$as_me:17041: checking for nl_langinfo and CODESET" >&5
17042
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17043
if test "${am_cv_langinfo_codeset+set}" = set; then
17044
echo $ECHO_N "(cached) $ECHO_C" >&6
17046
cat >conftest.$ac_ext <<_ACEOF
17047
#line 17047 "configure"
17048
#include "confdefs.h"
17049
#include <langinfo.h>
17053
char* cs = nl_langinfo(CODESET);
17058
rm -f conftest.$ac_objext conftest$ac_exeext
17059
if { (eval echo "$as_me:17059: \"$ac_link\"") >&5
17060
(eval $ac_link) 2>&5
17062
echo "$as_me:17062: \$? = $ac_status" >&5
17063
(exit $ac_status); } &&
17064
{ ac_try='test -s conftest$ac_exeext'
17065
{ (eval echo "$as_me:17065: \"$ac_try\"") >&5
17066
(eval $ac_try) 2>&5
17068
echo "$as_me:17068: \$? = $ac_status" >&5
17069
(exit $ac_status); }; }; then
17070
am_cv_langinfo_codeset=yes
17072
echo "$as_me: failed program was:" >&5
17073
cat conftest.$ac_ext >&5
17074
am_cv_langinfo_codeset=no
17076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17079
echo "$as_me:17079: result: $am_cv_langinfo_codeset" >&5
17080
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17081
if test $am_cv_langinfo_codeset = yes; then
17083
cat >>confdefs.h <<\EOF
17084
#define HAVE_LANGINFO_CODESET 1
17089
if test $ac_cv_header_locale_h = yes; then
17090
echo "$as_me:17090: checking for LC_MESSAGES" >&5
17091
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17092
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17093
echo $ECHO_N "(cached) $ECHO_C" >&6
17095
cat >conftest.$ac_ext <<_ACEOF
17096
#line 17096 "configure"
17097
#include "confdefs.h"
17098
#include <locale.h>
17107
rm -f conftest.$ac_objext conftest$ac_exeext
17108
if { (eval echo "$as_me:17108: \"$ac_link\"") >&5
17109
(eval $ac_link) 2>&5
17111
echo "$as_me:17111: \$? = $ac_status" >&5
17112
(exit $ac_status); } &&
17113
{ ac_try='test -s conftest$ac_exeext'
17114
{ (eval echo "$as_me:17114: \"$ac_try\"") >&5
17115
(eval $ac_try) 2>&5
17117
echo "$as_me:17117: \$? = $ac_status" >&5
17118
(exit $ac_status); }; }; then
17119
am_cv_val_LC_MESSAGES=yes
17121
echo "$as_me: failed program was:" >&5
17122
cat conftest.$ac_ext >&5
17123
am_cv_val_LC_MESSAGES=no
17125
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17127
echo "$as_me:17127: result: $am_cv_val_LC_MESSAGES" >&5
17128
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17129
if test $am_cv_val_LC_MESSAGES = yes; then
17131
cat >>confdefs.h <<\EOF
17132
#define HAVE_LC_MESSAGES 1
17137
echo "$as_me:17137: checking whether NLS is requested" >&5
17138
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17139
# Check whether --enable-nls or --disable-nls was given.
17140
if test "${enable_nls+set}" = set; then
17141
enableval="$enable_nls"
17146
echo "$as_me:17146: result: $USE_NLS" >&5
17147
echo "${ECHO_T}$USE_NLS" >&6
17149
BUILD_INCLUDED_LIBINTL=no
17150
USE_INCLUDED_LIBINTL=no
17153
if test "$USE_NLS" = "yes"; then
17155
cat >>confdefs.h <<\EOF
17156
#define ENABLE_NLS 1
17159
echo "$as_me:17159: checking whether included gettext is requested" >&5
17160
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17162
# Check whether --with-included-gettext or --without-included-gettext was given.
17163
if test "${with_included_gettext+set}" = set; then
17164
withval="$with_included_gettext"
17165
nls_cv_force_use_gnu_gettext=$withval
17167
nls_cv_force_use_gnu_gettext=no
17169
echo "$as_me:17169: result: $nls_cv_force_use_gnu_gettext" >&5
17170
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17172
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17173
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17176
echo "$as_me:17176: checking for libintl.h" >&5
17177
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17178
if test "${ac_cv_header_libintl_h+set}" = set; then
17179
echo $ECHO_N "(cached) $ECHO_C" >&6
17181
cat >conftest.$ac_ext <<_ACEOF
17182
#line 17182 "configure"
17183
#include "confdefs.h"
17184
#include <libintl.h>
17186
if { (eval echo "$as_me:17186: \"$ac_cpp conftest.$ac_ext\"") >&5
17187
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17189
egrep -v '^ *\+' conftest.er1 >conftest.err
17191
cat conftest.err >&5
17192
echo "$as_me:17192: \$? = $ac_status" >&5
17193
(exit $ac_status); } >/dev/null; then
17194
if test -s conftest.err; then
17195
ac_cpp_err=$ac_c_preproc_warn_flag
17202
if test -z "$ac_cpp_err"; then
17203
ac_cv_header_libintl_h=yes
17205
echo "$as_me: failed program was:" >&5
17206
cat conftest.$ac_ext >&5
17207
ac_cv_header_libintl_h=no
17209
rm -f conftest.err conftest.$ac_ext
17211
echo "$as_me:17211: result: $ac_cv_header_libintl_h" >&5
17212
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17213
if test $ac_cv_header_libintl_h = yes; then
17214
echo "$as_me:17214: checking for GNU gettext in libc" >&5
17215
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17216
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17217
echo $ECHO_N "(cached) $ECHO_C" >&6
17219
cat >conftest.$ac_ext <<_ACEOF
17220
#line 17220 "configure"
17221
#include "confdefs.h"
17222
#include <libintl.h>
17223
extern int _nl_msg_cat_cntr;
17227
bindtextdomain ("", "");
17228
return (int) gettext ("") + _nl_msg_cat_cntr
17233
rm -f conftest.$ac_objext conftest$ac_exeext
17234
if { (eval echo "$as_me:17234: \"$ac_link\"") >&5
17235
(eval $ac_link) 2>&5
17237
echo "$as_me:17237: \$? = $ac_status" >&5
17238
(exit $ac_status); } &&
17239
{ ac_try='test -s conftest$ac_exeext'
17240
{ (eval echo "$as_me:17240: \"$ac_try\"") >&5
17241
(eval $ac_try) 2>&5
17243
echo "$as_me:17243: \$? = $ac_status" >&5
17244
(exit $ac_status); }; }; then
17245
gt_cv_func_gnugettext1_libc=yes
17247
echo "$as_me: failed program was:" >&5
17248
cat conftest.$ac_ext >&5
17249
gt_cv_func_gnugettext1_libc=no
17251
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253
echo "$as_me:17253: result: $gt_cv_func_gnugettext1_libc" >&5
17254
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
17256
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17257
echo "$as_me:17257: checking for GNU gettext in libintl" >&5
17258
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17259
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17260
echo $ECHO_N "(cached) $ECHO_C" >&6
17262
gt_save_LIBS="$LIBS"
17263
LIBS="$LIBS -lintl $LIBICONV"
17264
cat >conftest.$ac_ext <<_ACEOF
17265
#line 17265 "configure"
17266
#include "confdefs.h"
17267
#include <libintl.h>
17268
extern int _nl_msg_cat_cntr;
17272
bindtextdomain ("", "");
17273
return (int) gettext ("") + _nl_msg_cat_cntr
17278
rm -f conftest.$ac_objext conftest$ac_exeext
17279
if { (eval echo "$as_me:17279: \"$ac_link\"") >&5
17280
(eval $ac_link) 2>&5
17282
echo "$as_me:17282: \$? = $ac_status" >&5
17283
(exit $ac_status); } &&
17284
{ ac_try='test -s conftest$ac_exeext'
17285
{ (eval echo "$as_me:17285: \"$ac_try\"") >&5
17286
(eval $ac_try) 2>&5
17288
echo "$as_me:17288: \$? = $ac_status" >&5
17289
(exit $ac_status); }; }; then
17290
gt_cv_func_gnugettext1_libintl=yes
17292
echo "$as_me: failed program was:" >&5
17293
cat conftest.$ac_ext >&5
17294
gt_cv_func_gnugettext1_libintl=no
17296
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297
LIBS="$gt_save_LIBS"
17299
echo "$as_me:17299: result: $gt_cv_func_gnugettext1_libintl" >&5
17300
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
17303
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17304
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17305
&& test "$PACKAGE" != gettext; }; then
17307
cat >>confdefs.h <<\EOF
17308
#define HAVE_GETTEXT 1
17311
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17312
INTLLIBS="-lintl $LIBICONV"
17315
gt_save_LIBS="$LIBS"
17316
LIBS="$LIBS $INTLLIBS"
17318
for ac_func in dcgettext
17320
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321
echo "$as_me:17321: checking for $ac_func" >&5
17322
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17323
if eval "test \"\${$as_ac_var+set}\" = set"; then
17324
echo $ECHO_N "(cached) $ECHO_C" >&6
17326
cat >conftest.$ac_ext <<_ACEOF
17327
#line 17327 "configure"
17328
#include "confdefs.h"
17329
/* System header to define __stub macros and hopefully few prototypes,
17330
which can conflict with char $ac_func (); below. */
17331
#include <assert.h>
17332
/* Override any gcc2 internal prototype to avoid an error. */
17336
/* We use char because int might match the return type of a gcc2
17337
builtin and then its argument prototype would still apply. */
17344
/* The GNU C library defines this for functions which it implements
17345
to always fail with ENOSYS. Some functions are actually named
17346
something starting with __ and the normal name is an alias. */
17347
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17357
rm -f conftest.$ac_objext conftest$ac_exeext
17358
if { (eval echo "$as_me:17358: \"$ac_link\"") >&5
17359
(eval $ac_link) 2>&5
17361
echo "$as_me:17361: \$? = $ac_status" >&5
17362
(exit $ac_status); } &&
17363
{ ac_try='test -s conftest$ac_exeext'
17364
{ (eval echo "$as_me:17364: \"$ac_try\"") >&5
17365
(eval $ac_try) 2>&5
17367
echo "$as_me:17367: \$? = $ac_status" >&5
17368
(exit $ac_status); }; }; then
17369
eval "$as_ac_var=yes"
17371
echo "$as_me: failed program was:" >&5
17372
cat conftest.$ac_ext >&5
17373
eval "$as_ac_var=no"
17375
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17377
echo "$as_me:17377: result: `eval echo '${'$as_ac_var'}'`" >&5
17378
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17379
if test `eval echo '${'$as_ac_var'}'` = yes; then
17380
cat >>confdefs.h <<EOF
17381
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17387
LIBS="$gt_save_LIBS"
17389
# Extract the first word of "msgfmt", so it can be a program name with args.
17390
set dummy msgfmt; ac_word=$2
17391
echo "$as_me:17391: checking for $ac_word" >&5
17392
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17393
if test "${ac_cv_path_MSGFMT+set}" = set; then
17394
echo $ECHO_N "(cached) $ECHO_C" >&6
17398
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17401
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17402
for ac_dir in $PATH; do
17403
test -z "$ac_dir" && ac_dir=.
17404
if test -f $ac_dir/$ac_word; then
17405
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
17406
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17412
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17416
MSGFMT="$ac_cv_path_MSGFMT"
17417
if test "$MSGFMT" != ":"; then
17418
echo "$as_me:17418: result: $MSGFMT" >&5
17419
echo "${ECHO_T}$MSGFMT" >&6
17421
echo "$as_me:17421: result: no" >&5
17422
echo "${ECHO_T}no" >&6
17425
# Extract the first word of "gmsgfmt", so it can be a program name with args.
17426
set dummy gmsgfmt; ac_word=$2
17427
echo "$as_me:17427: checking for $ac_word" >&5
17428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17429
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17430
echo $ECHO_N "(cached) $ECHO_C" >&6
17434
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17437
ac_save_IFS=$IFS; IFS=$ac_path_separator
17439
for ac_dir in $ac_dummy; do
17441
test -z "$ac_dir" && ac_dir=.
17442
if $as_executable_p "$ac_dir/$ac_word"; then
17443
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17444
echo "$as_me:17444: found $ac_dir/$ac_word" >&5
17449
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17453
GMSGFMT=$ac_cv_path_GMSGFMT
17455
if test -n "$GMSGFMT"; then
17456
echo "$as_me:17456: result: $GMSGFMT" >&5
17457
echo "${ECHO_T}$GMSGFMT" >&6
17459
echo "$as_me:17459: result: no" >&5
17460
echo "${ECHO_T}no" >&6
17463
# Extract the first word of "xgettext", so it can be a program name with args.
17464
set dummy xgettext; ac_word=$2
17465
echo "$as_me:17465: checking for $ac_word" >&5
17466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17467
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17468
echo $ECHO_N "(cached) $ECHO_C" >&6
17470
case "$XGETTEXT" in
17472
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17475
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17476
for ac_dir in $PATH; do
17477
test -z "$ac_dir" && ac_dir=.
17478
if test -f $ac_dir/$ac_word; then
17479
if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
17480
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17486
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17490
XGETTEXT="$ac_cv_path_XGETTEXT"
17491
if test "$XGETTEXT" != ":"; then
17492
echo "$as_me:17492: result: $XGETTEXT" >&5
17493
echo "${ECHO_T}$XGETTEXT" >&6
17495
echo "$as_me:17495: result: no" >&5
17496
echo "${ECHO_T}no" >&6
17504
if test "$CATOBJEXT" = "NONE"; then
17505
nls_cv_use_gnu_gettext=yes
17509
if test "$nls_cv_use_gnu_gettext" = "yes"; then
17510
INTLOBJS="\$(GETTOBJS)"
17511
# Extract the first word of "msgfmt", so it can be a program name with args.
17512
set dummy msgfmt; ac_word=$2
17513
echo "$as_me:17513: checking for $ac_word" >&5
17514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17515
if test "${ac_cv_path_MSGFMT+set}" = set; then
17516
echo $ECHO_N "(cached) $ECHO_C" >&6
17520
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17523
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17524
for ac_dir in $PATH; do
17525
test -z "$ac_dir" && ac_dir=.
17526
if test -f $ac_dir/$ac_word; then
17527
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
17528
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17534
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17538
MSGFMT="$ac_cv_path_MSGFMT"
17539
if test "$MSGFMT" != ":"; then
17540
echo "$as_me:17540: result: $MSGFMT" >&5
17541
echo "${ECHO_T}$MSGFMT" >&6
17543
echo "$as_me:17543: result: no" >&5
17544
echo "${ECHO_T}no" >&6
17547
# Extract the first word of "gmsgfmt", so it can be a program name with args.
17548
set dummy gmsgfmt; ac_word=$2
17549
echo "$as_me:17549: checking for $ac_word" >&5
17550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17551
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17552
echo $ECHO_N "(cached) $ECHO_C" >&6
17556
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17559
ac_save_IFS=$IFS; IFS=$ac_path_separator
17561
for ac_dir in $ac_dummy; do
17563
test -z "$ac_dir" && ac_dir=.
17564
if $as_executable_p "$ac_dir/$ac_word"; then
17565
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17566
echo "$as_me:17566: found $ac_dir/$ac_word" >&5
17571
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17575
GMSGFMT=$ac_cv_path_GMSGFMT
17577
if test -n "$GMSGFMT"; then
17578
echo "$as_me:17578: result: $GMSGFMT" >&5
17579
echo "${ECHO_T}$GMSGFMT" >&6
17581
echo "$as_me:17581: result: no" >&5
17582
echo "${ECHO_T}no" >&6
17585
# Extract the first word of "xgettext", so it can be a program name with args.
17586
set dummy xgettext; ac_word=$2
17587
echo "$as_me:17587: checking for $ac_word" >&5
17588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17589
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17590
echo $ECHO_N "(cached) $ECHO_C" >&6
17592
case "$XGETTEXT" in
17594
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17597
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17598
for ac_dir in $PATH; do
17599
test -z "$ac_dir" && ac_dir=.
17600
if test -f $ac_dir/$ac_word; then
17601
if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
17602
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17608
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17612
XGETTEXT="$ac_cv_path_XGETTEXT"
17613
if test "$XGETTEXT" != ":"; then
17614
echo "$as_me:17614: result: $XGETTEXT" >&5
17615
echo "${ECHO_T}$XGETTEXT" >&6
17617
echo "$as_me:17617: result: no" >&5
17618
echo "${ECHO_T}no" >&6
17621
BUILD_INCLUDED_LIBINTL=yes
17622
USE_INCLUDED_LIBINTL=yes
17624
INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
17625
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17628
if test "$GMSGFMT" != ":"; then
17629
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
17632
echo "$as_me:17632: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
17633
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
17638
if test "$XGETTEXT" != ":"; then
17639
if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
17642
echo "$as_me:17642: result: found xgettext program is not GNU xgettext; ignore it" >&5
17643
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17650
ac_config_commands="$ac_config_commands default-2"
17652
if test "$PACKAGE" = gettext; then
17653
BUILD_INCLUDED_LIBINTL=yes
17656
for ac_prog in bison
17658
# Extract the first word of "$ac_prog", so it can be a program name with args.
17659
set dummy $ac_prog; ac_word=$2
17660
echo "$as_me:17660: checking for $ac_word" >&5
17661
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17662
if test "${ac_cv_prog_INTLBISON+set}" = set; then
17663
echo $ECHO_N "(cached) $ECHO_C" >&6
17665
if test -n "$INTLBISON"; then
17666
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17668
ac_save_IFS=$IFS; IFS=$ac_path_separator
17670
for ac_dir in $ac_dummy; do
17672
test -z "$ac_dir" && ac_dir=.
17673
$as_executable_p "$ac_dir/$ac_word" || continue
17674
ac_cv_prog_INTLBISON="$ac_prog"
17675
echo "$as_me:17675: found $ac_dir/$ac_word" >&5
17681
INTLBISON=$ac_cv_prog_INTLBISON
17682
if test -n "$INTLBISON"; then
17683
echo "$as_me:17683: result: $INTLBISON" >&5
17684
echo "${ECHO_T}$INTLBISON" >&6
17686
echo "$as_me:17686: result: no" >&5
17687
echo "${ECHO_T}no" >&6
17690
test -n "$INTLBISON" && break
17693
if test -z "$INTLBISON"; then
17696
echo "$as_me:17696: checking version of bison" >&5
17697
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17698
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17699
case $ac_prog_version in
17700
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17701
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17702
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17703
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17705
echo "$as_me:17705: result: $ac_prog_version" >&5
17706
echo "${ECHO_T}$ac_prog_version" >&6
17708
if test $ac_verc_fail = yes; then
17712
for lang in $ALL_LINGUAS; do
17713
GMOFILES="$GMOFILES $lang.gmo"
17714
POFILES="$POFILES $lang.po"
17717
nls_cv_header_intl=
17718
nls_cv_header_libgt=
17726
if test "x$CATOBJEXT" != "x"; then
17727
if test "x$ALL_LINGUAS" = "x"; then
17730
echo "$as_me:17730: checking for catalogs to be installed" >&5
17731
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17733
for presentlang in $ALL_LINGUAS; do
17735
for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
17736
# Use the presentlang catalog if desiredlang is
17737
# a. equal to presentlang, or
17738
# b. a variant of presentlang (because in this case,
17739
# presentlang can be used as a fallback for messages
17740
# which are not translated in the desiredlang catalog).
17741
case "$desiredlang" in
17742
"$presentlang"*) useit=yes;;
17745
if test $useit = yes; then
17746
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
17749
LINGUAS=$NEW_LINGUAS
17750
echo "$as_me:17750: result: $LINGUAS" >&5
17751
echo "${ECHO_T}$LINGUAS" >&6
17754
if test -n "$LINGUAS"; then
17755
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
17760
if test -n "$ac_aux_dir"; then
17761
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
17763
if test -z "$MKINSTALLDIRS"; then
17764
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17767
INTL_LIBTOOL_SUFFIX_PREFIX=
17769
PACKAGE_LOCALE_DIR=${datadir}/locale
17771
ENABLE_EXIT_HOMEDIR=no
17772
# Check whether --enable-exit-homedir or --disable-exit-homedir was given.
29912
# pass some variables to plugins
29913
tilp_plugin_dir=$libdir/$PACKAGE
29915
tilp_help_dir=$datadir/$PACKAGE/help
29917
tilp_pixmap_dir=$datadir/$PACKAGE/pixmaps
29919
tilp_icon_dir=$datadir/$PACKAGE/icons
29921
tilp_glade_dir=$datadir/$PACKAGE/glade
29924
# exit HOME dir facility
29925
# Check whether --enable-exit_homedir or --disable-exit_homedir was given.
17773
29926
if test "${enable_exit_homedir+set}" = set; then
17774
29927
enableval="$enable_exit_homedir"
17775
case "x${enableval}" in
17776
xyes) ENABLE_EXIT_HOMEDIR=yes ;;
17777
xno) ENABLE_EXIT_HOMEDIR=no ;;
17778
*) ENABLE_EXIT_HOMEDIR=no ;;
29930
enable_exit_homedir=yes
17781
if test "x$ENABLE_EXIT_HOMEDIR" = "xyes" ;
17783
cat >>confdefs.h <<\EOF
29933
echo "$as_me:$LINENO: checking whether authorizing user to go outside the HOME dir" >&5
29934
echo $ECHO_N "checking whether authorizing user to go outside the HOME dir... $ECHO_C" >&6
29935
if test "x$enable_exit_homedir" = "xyes"; then
29937
cat >>confdefs.h <<\_ACEOF
17784
29938
#define ALLOW_EXIT_HOMEDIR 1
17789
ENABLE_TIFFEP_SERVER=no
17790
# Check whether --enable-tiffep-server or --disable-tiffep-server was given.
17791
if test "${enable_tiffep_server+set}" = set; then
17792
enableval="$enable_tiffep_server"
17793
case "x${enableval}" in
17794
xyes) ENABLE_TIFFEP_SERVER=yes ;;
17795
xno) ENABLE_TIFFEP_SERVER=no ;;
17796
*) ENABLE_TIFFEP_SERVER=no ;;
17799
if test "x$ENABLE_TIFFEP_SERVER" = "xyes" ;
17801
cat >>confdefs.h <<\EOF
17802
#define ALLOW_TIFFEP_SERVER 1
17807
ac_config_files="$ac_config_files Makefile fonts/Makefile help/Makefile intl/Makefile man/Makefile misc/Makefile pixmaps/Makefile po/Makefile.in src/Makefile win32/Makefile tilp.lsm tilp.spec"
29942
echo "$as_me:$LINENO: result: yes" >&5
29943
echo "${ECHO_T}yes" >&6
29945
echo "$as_me:$LINENO: result: no" >&5
29946
echo "${ECHO_T}no" >&6
29949
locale_dir='${prefix}/share/locale'
29953
CFLAGS="$CFLAGS $ARCH -Wall"
29954
LDFLAGS="$LDFLAGS $INTLLIBS -g"
29960
ac_config_files="$ac_config_files Makefile build/Makefile desktop/Makefile glade/Makefile help/Makefile icons/Makefile man/Makefile misc/Makefile pixmaps/Makefile registry/Makefile src/Makefile plugins/Makefile plugins/test/Makefile plugins/nv82/Makefile plugins/gfv/Makefile tilp.lsm tilp.spec intl/Makefile po/Makefile.in"
17808
29961
cat >confcache <<\_ACEOF
17809
29962
# This file is a shell script that caches the results of configure
17810
29963
# tests run on this system so they can be shared between configure