2566
DEPDIR="${am__leading_dot}deps"
2568
ac_config_commands="$ac_config_commands depfiles"
2571
am_make=${MAKE-make}
2572
cat > confinc << 'END'
2577
# If we don't find an include directive, just comment out the code.
2578
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2579
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2583
# First try GNU make style include.
2584
echo "include confinc" > confmf
2585
# We grep out `Entering directory' and `Leaving directory'
2586
# messages which can occur if `w' ends up in MAKEFLAGS.
2587
# In particular we don't look at `^make:' because GNU make might
2588
# be invoked under some other name (usually "gmake"), in which
2589
# case it prints its new name instead of `make'.
2590
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2595
# Now try BSD make style include.
2596
if test "$am__include" = "#"; then
2597
echo '.include "confinc"' > confmf
2598
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2599
am__include=.include
2606
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2607
echo "${ECHO_T}$_am_result" >&6; }
2608
rm -f confinc confmf
2610
# Check whether --enable-dependency-tracking was given.
2611
if test "${enable_dependency_tracking+set}" = set; then
2612
enableval=$enable_dependency_tracking;
2615
if test "x$enable_dependency_tracking" != xno; then
2616
am_depcomp="$ac_aux_dir/depcomp"
2619
if test "x$enable_dependency_tracking" != xno; then
2629
ac_cpp='$CPP $CPPFLAGS'
2630
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
if test -n "$ac_tool_prefix"; then
2634
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2635
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2636
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638
if test "${ac_cv_prog_CC+set}" = set; then
2639
echo $ECHO_N "(cached) $ECHO_C" >&6
2641
if test -n "$CC"; then
2642
ac_cv_prog_CC="$CC" # Let the user override the test.
2644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648
test -z "$as_dir" && as_dir=.
2649
for ac_exec_ext in '' $ac_executable_extensions; do
2650
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2652
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662
if test -n "$CC"; then
2663
{ echo "$as_me:$LINENO: result: $CC" >&5
2664
echo "${ECHO_T}$CC" >&6; }
2666
{ echo "$as_me:$LINENO: result: no" >&5
2667
echo "${ECHO_T}no" >&6; }
2672
if test -z "$ac_cv_prog_CC"; then
2674
# Extract the first word of "gcc", so it can be a program name with args.
2675
set dummy gcc; ac_word=$2
2676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2679
echo $ECHO_N "(cached) $ECHO_C" >&6
2681
if test -n "$ac_ct_CC"; then
2682
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688
test -z "$as_dir" && as_dir=.
2689
for ac_exec_ext in '' $ac_executable_extensions; do
2690
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691
ac_cv_prog_ac_ct_CC="gcc"
2692
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702
if test -n "$ac_ct_CC"; then
2703
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704
echo "${ECHO_T}$ac_ct_CC" >&6; }
2706
{ echo "$as_me:$LINENO: result: no" >&5
2707
echo "${ECHO_T}no" >&6; }
2710
if test "x$ac_ct_CC" = x; then
2713
case $cross_compiling:$ac_tool_warned in
2715
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716
whose name does not start with the host triplet. If you think this
2717
configuration is useful to you, please write to autoconf@gnu.org." >&5
2718
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719
whose name does not start with the host triplet. If you think this
2720
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721
ac_tool_warned=yes ;;
2729
if test -z "$CC"; then
2730
if test -n "$ac_tool_prefix"; then
2731
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732
set dummy ${ac_tool_prefix}cc; ac_word=$2
2733
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735
if test "${ac_cv_prog_CC+set}" = set; then
2736
echo $ECHO_N "(cached) $ECHO_C" >&6
2738
if test -n "$CC"; then
2739
ac_cv_prog_CC="$CC" # Let the user override the test.
2741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745
test -z "$as_dir" && as_dir=.
2746
for ac_exec_ext in '' $ac_executable_extensions; do
2747
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748
ac_cv_prog_CC="${ac_tool_prefix}cc"
2749
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759
if test -n "$CC"; then
2760
{ echo "$as_me:$LINENO: result: $CC" >&5
2761
echo "${ECHO_T}$CC" >&6; }
2763
{ echo "$as_me:$LINENO: result: no" >&5
2764
echo "${ECHO_T}no" >&6; }
2770
if test -z "$CC"; then
2771
# Extract the first word of "cc", so it can be a program name with args.
2772
set dummy cc; ac_word=$2
2773
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775
if test "${ac_cv_prog_CC+set}" = set; then
2776
echo $ECHO_N "(cached) $ECHO_C" >&6
2778
if test -n "$CC"; then
2779
ac_cv_prog_CC="$CC" # Let the user override the test.
2782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786
test -z "$as_dir" && as_dir=.
2787
for ac_exec_ext in '' $ac_executable_extensions; do
2788
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790
ac_prog_rejected=yes
2794
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801
if test $ac_prog_rejected = yes; then
2802
# We found a bogon in the path, so make sure we never use it.
2803
set dummy $ac_cv_prog_CC
2805
if test $# != 0; then
2806
# We chose a different compiler from the bogus one.
2807
# However, it has the same basename, so the bogon will be chosen
2808
# first if we set CC to just the basename; use the full file name.
2810
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816
if test -n "$CC"; then
2817
{ echo "$as_me:$LINENO: result: $CC" >&5
2818
echo "${ECHO_T}$CC" >&6; }
2820
{ echo "$as_me:$LINENO: result: no" >&5
2821
echo "${ECHO_T}no" >&6; }
2826
if test -z "$CC"; then
2827
if test -n "$ac_tool_prefix"; then
2828
for ac_prog in cl.exe
2830
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834
if test "${ac_cv_prog_CC+set}" = set; then
2835
echo $ECHO_N "(cached) $ECHO_C" >&6
2837
if test -n "$CC"; then
2838
ac_cv_prog_CC="$CC" # Let the user override the test.
2840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844
test -z "$as_dir" && as_dir=.
2845
for ac_exec_ext in '' $ac_executable_extensions; do
2846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858
if test -n "$CC"; then
2859
{ echo "$as_me:$LINENO: result: $CC" >&5
2860
echo "${ECHO_T}$CC" >&6; }
2862
{ echo "$as_me:$LINENO: result: no" >&5
2863
echo "${ECHO_T}no" >&6; }
2867
test -n "$CC" && break
2870
if test -z "$CC"; then
2872
for ac_prog in cl.exe
2874
# Extract the first word of "$ac_prog", so it can be a program name with args.
2875
set dummy $ac_prog; ac_word=$2
2876
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2878
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2879
echo $ECHO_N "(cached) $ECHO_C" >&6
2881
if test -n "$ac_ct_CC"; then
2882
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888
test -z "$as_dir" && as_dir=.
2889
for ac_exec_ext in '' $ac_executable_extensions; do
2890
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891
ac_cv_prog_ac_ct_CC="$ac_prog"
2892
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902
if test -n "$ac_ct_CC"; then
2903
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2904
echo "${ECHO_T}$ac_ct_CC" >&6; }
2906
{ echo "$as_me:$LINENO: result: no" >&5
2907
echo "${ECHO_T}no" >&6; }
2911
test -n "$ac_ct_CC" && break
2914
if test "x$ac_ct_CC" = x; then
2917
case $cross_compiling:$ac_tool_warned in
2919
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2920
whose name does not start with the host triplet. If you think this
2921
configuration is useful to you, please write to autoconf@gnu.org." >&5
2922
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2923
whose name does not start with the host triplet. If you think this
2924
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2925
ac_tool_warned=yes ;;
2934
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2935
See \`config.log' for more details." >&5
2936
echo "$as_me: error: no acceptable C compiler found in \$PATH
2937
See \`config.log' for more details." >&2;}
2938
{ (exit 1); exit 1; }; }
2940
# Provide some information about the compiler.
2941
echo "$as_me:$LINENO: checking for C compiler version" >&5
2942
ac_compiler=`set X $ac_compile; echo $2`
2943
{ (ac_try="$ac_compiler --version >&5"
2945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
*) ac_try_echo=$ac_try;;
2948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949
(eval "$ac_compiler --version >&5") 2>&5
2951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
(exit $ac_status); }
2953
{ (ac_try="$ac_compiler -v >&5"
2955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956
*) ac_try_echo=$ac_try;;
2958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959
(eval "$ac_compiler -v >&5") 2>&5
2961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962
(exit $ac_status); }
2963
{ (ac_try="$ac_compiler -V >&5"
2965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966
*) ac_try_echo=$ac_try;;
2968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969
(eval "$ac_compiler -V >&5") 2>&5
2971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
(exit $ac_status); }
2974
cat >conftest.$ac_ext <<_ACEOF
2977
cat confdefs.h >>conftest.$ac_ext
2978
cat >>conftest.$ac_ext <<_ACEOF
2979
/* end confdefs.h. */
2989
ac_clean_files_save=$ac_clean_files
2990
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2991
# Try to create an executable without -o first, disregard a.out.
2992
# It will help us diagnose broken compilers, and finding out an intuition
2994
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2995
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2996
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2998
# List of possible output files, starting from the most likely.
2999
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3000
# only as a last resort. b.out is created by i960 compilers.
3001
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3003
# The IRIX 6 linker writes into existing files which may not be
3004
# executable, retaining their permissions. Remove them first so a
3005
# subsequent execution test works.
3007
for ac_file in $ac_files
3010
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3011
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3016
if { (ac_try="$ac_link_default"
3018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019
*) ac_try_echo=$ac_try;;
3021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022
(eval "$ac_link_default") 2>&5
3024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025
(exit $ac_status); }; then
3026
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3027
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3028
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3029
# so that the user can short-circuit this test for compilers unknown to
3031
for ac_file in $ac_files ''
3033
test -f "$ac_file" || continue
3035
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3038
# We found the default executable, but exeext='' is most
3042
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3044
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046
# We set ac_cv_exeext here because the later test for it is not
3047
# safe: cross compilers may not add the suffix if given an `-o'
3048
# argument, so we may need to know it at that point already.
3049
# Even if this section looks crufty: it has the advantage of
3056
test "$ac_cv_exeext" = no && ac_cv_exeext=
3062
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3063
echo "${ECHO_T}$ac_file" >&6; }
3064
if test -z "$ac_file"; then
3065
echo "$as_me: failed program was:" >&5
3066
sed 's/^/| /' conftest.$ac_ext >&5
3068
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3069
See \`config.log' for more details." >&5
3070
echo "$as_me: error: C compiler cannot create executables
3071
See \`config.log' for more details." >&2;}
3072
{ (exit 77); exit 77; }; }
3075
ac_exeext=$ac_cv_exeext
3077
# Check that the compiler produces executables we can run. If not, either
3078
# the compiler is broken, or we cross compile.
3079
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3080
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3081
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3082
# If not cross compiling, check that we can run a simple program.
3083
if test "$cross_compiling" != yes; then
3084
if { ac_try='./$ac_file'
3085
{ (case "(($ac_try" in
3086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087
*) ac_try_echo=$ac_try;;
3089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090
(eval "$ac_try") 2>&5
3092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093
(exit $ac_status); }; }; then
3096
if test "$cross_compiling" = maybe; then
3099
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3100
If you meant to cross compile, use \`--host'.
3101
See \`config.log' for more details." >&5
3102
echo "$as_me: error: cannot run C compiled programs.
3103
If you meant to cross compile, use \`--host'.
3104
See \`config.log' for more details." >&2;}
3105
{ (exit 1); exit 1; }; }
3109
{ echo "$as_me:$LINENO: result: yes" >&5
3110
echo "${ECHO_T}yes" >&6; }
3112
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3113
ac_clean_files=$ac_clean_files_save
3114
# Check that the compiler produces executables we can run. If not, either
3115
# the compiler is broken, or we cross compile.
3116
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3117
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3118
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3119
echo "${ECHO_T}$cross_compiling" >&6; }
3121
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3122
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3123
if { (ac_try="$ac_link"
3125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126
*) ac_try_echo=$ac_try;;
3128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129
(eval "$ac_link") 2>&5
3131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132
(exit $ac_status); }; then
3133
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3134
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135
# work properly (i.e., refer to `conftest.exe'), while it won't with
3137
for ac_file in conftest.exe conftest conftest.*; do
3138
test -f "$ac_file" || continue
3140
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3141
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3148
See \`config.log' for more details." >&5
3149
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3150
See \`config.log' for more details." >&2;}
3151
{ (exit 1); exit 1; }; }
3154
rm -f conftest$ac_cv_exeext
3155
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3156
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3158
rm -f conftest.$ac_ext
3159
EXEEXT=$ac_cv_exeext
3161
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3162
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3163
if test "${ac_cv_objext+set}" = set; then
3164
echo $ECHO_N "(cached) $ECHO_C" >&6
3166
cat >conftest.$ac_ext <<_ACEOF
3169
cat confdefs.h >>conftest.$ac_ext
3170
cat >>conftest.$ac_ext <<_ACEOF
3171
/* end confdefs.h. */
3181
rm -f conftest.o conftest.obj
3182
if { (ac_try="$ac_compile"
3184
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185
*) ac_try_echo=$ac_try;;
3187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188
(eval "$ac_compile") 2>&5
3190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191
(exit $ac_status); }; then
3192
for ac_file in conftest.o conftest.obj conftest.*; do
3193
test -f "$ac_file" || continue;
3195
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3196
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201
echo "$as_me: failed program was:" >&5
3202
sed 's/^/| /' conftest.$ac_ext >&5
3204
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3205
See \`config.log' for more details." >&5
3206
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3207
See \`config.log' for more details." >&2;}
3208
{ (exit 1); exit 1; }; }
3211
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3214
echo "${ECHO_T}$ac_cv_objext" >&6; }
3215
OBJEXT=$ac_cv_objext
3217
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3218
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3219
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3220
echo $ECHO_N "(cached) $ECHO_C" >&6
3222
cat >conftest.$ac_ext <<_ACEOF
3225
cat confdefs.h >>conftest.$ac_ext
3226
cat >>conftest.$ac_ext <<_ACEOF
3227
/* end confdefs.h. */
3240
rm -f conftest.$ac_objext
3241
if { (ac_try="$ac_compile"
3243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244
*) ac_try_echo=$ac_try;;
3246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247
(eval "$ac_compile") 2>conftest.er1
3249
grep -v '^ *+' conftest.er1 >conftest.err
3251
cat conftest.err >&5
3252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253
(exit $ac_status); } && {
3254
test -z "$ac_c_werror_flag" ||
3255
test ! -s conftest.err
3256
} && test -s conftest.$ac_objext; then
3259
echo "$as_me: failed program was:" >&5
3260
sed 's/^/| /' conftest.$ac_ext >&5
3265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3270
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3271
GCC=`test $ac_compiler_gnu = yes && echo yes`
3272
ac_test_CFLAGS=${CFLAGS+set}
3273
ac_save_CFLAGS=$CFLAGS
3274
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3275
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3276
if test "${ac_cv_prog_cc_g+set}" = set; then
3277
echo $ECHO_N "(cached) $ECHO_C" >&6
3279
ac_save_c_werror_flag=$ac_c_werror_flag
3280
ac_c_werror_flag=yes
3283
cat >conftest.$ac_ext <<_ACEOF
3286
cat confdefs.h >>conftest.$ac_ext
3287
cat >>conftest.$ac_ext <<_ACEOF
3288
/* end confdefs.h. */
3298
rm -f conftest.$ac_objext
3299
if { (ac_try="$ac_compile"
3301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302
*) ac_try_echo=$ac_try;;
3304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305
(eval "$ac_compile") 2>conftest.er1
3307
grep -v '^ *+' conftest.er1 >conftest.err
3309
cat conftest.err >&5
3310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311
(exit $ac_status); } && {
3312
test -z "$ac_c_werror_flag" ||
3313
test ! -s conftest.err
3314
} && test -s conftest.$ac_objext; then
3317
echo "$as_me: failed program was:" >&5
3318
sed 's/^/| /' conftest.$ac_ext >&5
3321
cat >conftest.$ac_ext <<_ACEOF
3324
cat confdefs.h >>conftest.$ac_ext
3325
cat >>conftest.$ac_ext <<_ACEOF
3326
/* end confdefs.h. */
3336
rm -f conftest.$ac_objext
3337
if { (ac_try="$ac_compile"
3339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340
*) ac_try_echo=$ac_try;;
3342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343
(eval "$ac_compile") 2>conftest.er1
3345
grep -v '^ *+' conftest.er1 >conftest.err
3347
cat conftest.err >&5
3348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349
(exit $ac_status); } && {
3350
test -z "$ac_c_werror_flag" ||
3351
test ! -s conftest.err
3352
} && test -s conftest.$ac_objext; then
3355
echo "$as_me: failed program was:" >&5
3356
sed 's/^/| /' conftest.$ac_ext >&5
3358
ac_c_werror_flag=$ac_save_c_werror_flag
3360
cat >conftest.$ac_ext <<_ACEOF
3363
cat confdefs.h >>conftest.$ac_ext
3364
cat >>conftest.$ac_ext <<_ACEOF
3365
/* end confdefs.h. */
3375
rm -f conftest.$ac_objext
3376
if { (ac_try="$ac_compile"
3378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379
*) ac_try_echo=$ac_try;;
3381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382
(eval "$ac_compile") 2>conftest.er1
3384
grep -v '^ *+' conftest.er1 >conftest.err
3386
cat conftest.err >&5
3387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388
(exit $ac_status); } && {
3389
test -z "$ac_c_werror_flag" ||
3390
test ! -s conftest.err
3391
} && test -s conftest.$ac_objext; then
3394
echo "$as_me: failed program was:" >&5
3395
sed 's/^/| /' conftest.$ac_ext >&5
3400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407
ac_c_werror_flag=$ac_save_c_werror_flag
3409
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3410
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3411
if test "$ac_test_CFLAGS" = set; then
3412
CFLAGS=$ac_save_CFLAGS
3413
elif test $ac_cv_prog_cc_g = yes; then
3414
if test "$GCC" = yes; then
3420
if test "$GCC" = yes; then
3426
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3427
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3428
if test "${ac_cv_prog_cc_c89+set}" = set; then
3429
echo $ECHO_N "(cached) $ECHO_C" >&6
3431
ac_cv_prog_cc_c89=no
3433
cat >conftest.$ac_ext <<_ACEOF
3436
cat confdefs.h >>conftest.$ac_ext
3437
cat >>conftest.$ac_ext <<_ACEOF
3438
/* end confdefs.h. */
3441
#include <sys/types.h>
3442
#include <sys/stat.h>
3443
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444
struct buf { int x; };
3445
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446
static char *e (p, i)
3452
static char *f (char * (*g) (char **, int), char **p, ...)
3457
s = g (p, va_arg (v,int));
3462
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463
function prototypes and stuff, but not '\xHH' hex character constants.
3464
These don't provoke an error unfortunately, instead are silently treated
3465
as 'x'. The following induces an error, until -std is added to get
3466
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467
array size at least. It's necessary to write '\x00'==0 to get something
3468
that's true only with -std. */
3469
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472
inside strings and character constants. */
3474
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476
int test (int i, double x);
3477
struct s1 {int (*f) (int a);};
3478
struct s2 {int (*f) (double a);};
3479
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493
CC="$ac_save_CC $ac_arg"
3494
rm -f conftest.$ac_objext
3495
if { (ac_try="$ac_compile"
3497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498
*) ac_try_echo=$ac_try;;
3500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501
(eval "$ac_compile") 2>conftest.er1
3503
grep -v '^ *+' conftest.er1 >conftest.err
3505
cat conftest.err >&5
3506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507
(exit $ac_status); } && {
3508
test -z "$ac_c_werror_flag" ||
3509
test ! -s conftest.err
3510
} && test -s conftest.$ac_objext; then
3511
ac_cv_prog_cc_c89=$ac_arg
3513
echo "$as_me: failed program was:" >&5
3514
sed 's/^/| /' conftest.$ac_ext >&5
3519
rm -f core conftest.err conftest.$ac_objext
3520
test "x$ac_cv_prog_cc_c89" != "xno" && break
3522
rm -f conftest.$ac_ext
3527
case "x$ac_cv_prog_cc_c89" in
3529
{ echo "$as_me:$LINENO: result: none needed" >&5
3530
echo "${ECHO_T}none needed" >&6; } ;;
3532
{ echo "$as_me:$LINENO: result: unsupported" >&5
3533
echo "${ECHO_T}unsupported" >&6; } ;;
3535
CC="$CC $ac_cv_prog_cc_c89"
3536
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3537
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3542
ac_cpp='$CPP $CPPFLAGS'
3543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
depcc="$CC" am_compiler_list=
3549
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3550
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3551
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3552
echo $ECHO_N "(cached) $ECHO_C" >&6
3554
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555
# We make a subdir and do the tests there. Otherwise we can end up
3556
# making bogus files that we don't know about and never remove. For
3557
# instance it was reported that on HP-UX the gcc test will end up
3558
# making a dummy file named `D' -- because `-MD' means `put the output
3561
# Copy depcomp to subdir because otherwise we won't find it if we're
3562
# using a relative directory.
3563
cp "$am_depcomp" conftest.dir
3565
# We will build objects and dependencies in a subdirectory because
3566
# it helps to detect inapplicable dependency modes. For instance
3567
# both Tru64's cc and ICC support -MD to output dependencies as a
3568
# side effect of compilation, but ICC will put the dependencies in
3569
# the current directory while Tru64 will put them in the object
3573
am_cv_CC_dependencies_compiler_type=none
3574
if test "$am_compiler_list" = ""; then
3575
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577
for depmode in $am_compiler_list; do
3578
# Setup a source with many dependencies, because some compilers
3579
# like to wrap large dependency lists on column 80 (with \), and
3580
# we should not choose a depcomp mode which is confused by this.
3582
# We need to recreate these files for each test, as the compiler may
3583
# overwrite some of them when testing with obscure command lines.
3584
# This happens at least with the AIX C compiler.
3586
for i in 1 2 3 4 5 6; do
3587
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589
# Solaris 8's {/usr,}/bin/sh.
3590
touch sub/conftst$i.h
3592
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3596
# after this tag, mechanisms are not by side-effect, so they'll
3597
# only be used when explicitly requested
3598
if test "x$enable_dependency_tracking" = xyes; then
3606
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3607
# mode. It turns out that the SunPro C++ compiler does not properly
3608
# handle `-M -o', and we need to detect this.
3609
if depmode=$depmode \
3610
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3611
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3613
>/dev/null 2>conftest.err &&
3614
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3617
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618
# icc doesn't choke on unknown options, it will just issue warnings
3619
# or remarks (even with -Werror). So we grep stderr for any message
3620
# that says an option was ignored or not supported.
3621
# When given -MP, icc 7.0 and 7.1 complain thusly:
3622
# icc: Command line warning: ignoring option '-M'; no argument required
3623
# The diagnosis changed in icc 8.0:
3624
# icc: Command line remark: option '-MP' not supported
3625
if (grep 'ignoring option' conftest.err ||
3626
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627
am_cv_CC_dependencies_compiler_type=$depmode
3636
am_cv_CC_dependencies_compiler_type=none
3640
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3642
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645
test "x$enable_dependency_tracking" != xno \
3646
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3648
am__fastdepCC_FALSE='#'
3650
am__fastdepCC_TRUE='#'
3651
am__fastdepCC_FALSE=
2566
3657
case "$am__api_version" in
3009
4243
enable_shared=yes
3012
DEPDIR="${am__leading_dot}deps"
3014
ac_config_commands="$ac_config_commands depfiles"
3017
am_make=${MAKE-make}
3018
cat > confinc << 'END'
3023
# If we don't find an include directive, just comment out the code.
3024
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3025
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3029
# First try GNU make style include.
3030
echo "include confinc" > confmf
3031
# We grep out `Entering directory' and `Leaving directory'
3032
# messages which can occur if `w' ends up in MAKEFLAGS.
3033
# In particular we don't look at `^make:' because GNU make might
3034
# be invoked under some other name (usually "gmake"), in which
3035
# case it prints its new name instead of `make'.
3036
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3041
# Now try BSD make style include.
3042
if test "$am__include" = "#"; then
3043
echo '.include "confinc"' > confmf
3044
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3045
am__include=.include
3052
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3053
echo "${ECHO_T}$_am_result" >&6; }
3054
rm -f confinc confmf
3056
# Check whether --enable-dependency-tracking was given.
3057
if test "${enable_dependency_tracking+set}" = set; then
3058
enableval=$enable_dependency_tracking;
3061
if test "x$enable_dependency_tracking" != xno; then
3062
am_depcomp="$ac_aux_dir/depcomp"
3065
if test "x$enable_dependency_tracking" != xno; then
3075
ac_cpp='$CPP $CPPFLAGS'
3076
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079
if test -n "$ac_tool_prefix"; then
3080
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3084
if test "${ac_cv_prog_CC+set}" = set; then
3085
echo $ECHO_N "(cached) $ECHO_C" >&6
3087
if test -n "$CC"; then
3088
ac_cv_prog_CC="$CC" # Let the user override the test.
3090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094
test -z "$as_dir" && as_dir=.
3095
for ac_exec_ext in '' $ac_executable_extensions; do
3096
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108
if test -n "$CC"; then
3109
{ echo "$as_me:$LINENO: result: $CC" >&5
3110
echo "${ECHO_T}$CC" >&6; }
3112
{ echo "$as_me:$LINENO: result: no" >&5
3113
echo "${ECHO_T}no" >&6; }
3118
if test -z "$ac_cv_prog_CC"; then
3120
# Extract the first word of "gcc", so it can be a program name with args.
3121
set dummy gcc; ac_word=$2
3122
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3123
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3124
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125
echo $ECHO_N "(cached) $ECHO_C" >&6
3127
if test -n "$ac_ct_CC"; then
3128
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134
test -z "$as_dir" && as_dir=.
3135
for ac_exec_ext in '' $ac_executable_extensions; do
3136
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137
ac_cv_prog_ac_ct_CC="gcc"
3138
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148
if test -n "$ac_ct_CC"; then
3149
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150
echo "${ECHO_T}$ac_ct_CC" >&6; }
3152
{ echo "$as_me:$LINENO: result: no" >&5
3153
echo "${ECHO_T}no" >&6; }
3156
if test "x$ac_ct_CC" = x; then
3159
case $cross_compiling:$ac_tool_warned in
3161
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3162
whose name does not start with the host triplet. If you think this
3163
configuration is useful to you, please write to autoconf@gnu.org." >&5
3164
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3165
whose name does not start with the host triplet. If you think this
3166
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3167
ac_tool_warned=yes ;;
3175
if test -z "$CC"; then
3176
if test -n "$ac_tool_prefix"; then
3177
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3178
set dummy ${ac_tool_prefix}cc; ac_word=$2
3179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181
if test "${ac_cv_prog_CC+set}" = set; then
3182
echo $ECHO_N "(cached) $ECHO_C" >&6
3184
if test -n "$CC"; then
3185
ac_cv_prog_CC="$CC" # Let the user override the test.
3187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191
test -z "$as_dir" && as_dir=.
3192
for ac_exec_ext in '' $ac_executable_extensions; do
3193
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194
ac_cv_prog_CC="${ac_tool_prefix}cc"
3195
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205
if test -n "$CC"; then
3206
{ echo "$as_me:$LINENO: result: $CC" >&5
3207
echo "${ECHO_T}$CC" >&6; }
3209
{ echo "$as_me:$LINENO: result: no" >&5
3210
echo "${ECHO_T}no" >&6; }
3216
if test -z "$CC"; then
3217
# Extract the first word of "cc", so it can be a program name with args.
3218
set dummy cc; ac_word=$2
3219
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3221
if test "${ac_cv_prog_CC+set}" = set; then
3222
echo $ECHO_N "(cached) $ECHO_C" >&6
3224
if test -n "$CC"; then
3225
ac_cv_prog_CC="$CC" # Let the user override the test.
3228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232
test -z "$as_dir" && as_dir=.
3233
for ac_exec_ext in '' $ac_executable_extensions; do
3234
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3236
ac_prog_rejected=yes
3240
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247
if test $ac_prog_rejected = yes; then
3248
# We found a bogon in the path, so make sure we never use it.
3249
set dummy $ac_cv_prog_CC
3251
if test $# != 0; then
3252
# We chose a different compiler from the bogus one.
3253
# However, it has the same basename, so the bogon will be chosen
3254
# first if we set CC to just the basename; use the full file name.
3256
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262
if test -n "$CC"; then
3263
{ echo "$as_me:$LINENO: result: $CC" >&5
3264
echo "${ECHO_T}$CC" >&6; }
3266
{ echo "$as_me:$LINENO: result: no" >&5
3267
echo "${ECHO_T}no" >&6; }
3272
if test -z "$CC"; then
3273
if test -n "$ac_tool_prefix"; then
3274
for ac_prog in cl.exe
3276
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3277
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280
if test "${ac_cv_prog_CC+set}" = set; then
3281
echo $ECHO_N "(cached) $ECHO_C" >&6
3283
if test -n "$CC"; then
3284
ac_cv_prog_CC="$CC" # Let the user override the test.
3286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290
test -z "$as_dir" && as_dir=.
3291
for ac_exec_ext in '' $ac_executable_extensions; do
3292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3294
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304
if test -n "$CC"; then
3305
{ echo "$as_me:$LINENO: result: $CC" >&5
3306
echo "${ECHO_T}$CC" >&6; }
3308
{ echo "$as_me:$LINENO: result: no" >&5
3309
echo "${ECHO_T}no" >&6; }
3313
test -n "$CC" && break
3316
if test -z "$CC"; then
3318
for ac_prog in cl.exe
3320
# Extract the first word of "$ac_prog", so it can be a program name with args.
3321
set dummy $ac_prog; ac_word=$2
3322
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3324
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3325
echo $ECHO_N "(cached) $ECHO_C" >&6
3327
if test -n "$ac_ct_CC"; then
3328
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
test -z "$as_dir" && as_dir=.
3335
for ac_exec_ext in '' $ac_executable_extensions; do
3336
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337
ac_cv_prog_ac_ct_CC="$ac_prog"
3338
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348
if test -n "$ac_ct_CC"; then
3349
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350
echo "${ECHO_T}$ac_ct_CC" >&6; }
3352
{ echo "$as_me:$LINENO: result: no" >&5
3353
echo "${ECHO_T}no" >&6; }
3357
test -n "$ac_ct_CC" && break
3360
if test "x$ac_ct_CC" = x; then
3363
case $cross_compiling:$ac_tool_warned in
3365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3366
whose name does not start with the host triplet. If you think this
3367
configuration is useful to you, please write to autoconf@gnu.org." >&5
3368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3369
whose name does not start with the host triplet. If you think this
3370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3371
ac_tool_warned=yes ;;
3380
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3381
See \`config.log' for more details." >&5
3382
echo "$as_me: error: no acceptable C compiler found in \$PATH
3383
See \`config.log' for more details." >&2;}
3384
{ (exit 1); exit 1; }; }
3386
# Provide some information about the compiler.
3387
echo "$as_me:$LINENO: checking for C compiler version" >&5
3388
ac_compiler=`set X $ac_compile; echo $2`
3389
{ (ac_try="$ac_compiler --version >&5"
3391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392
*) ac_try_echo=$ac_try;;
3394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395
(eval "$ac_compiler --version >&5") 2>&5
3397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
(exit $ac_status); }
3399
{ (ac_try="$ac_compiler -v >&5"
3401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402
*) ac_try_echo=$ac_try;;
3404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405
(eval "$ac_compiler -v >&5") 2>&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); }
3409
{ (ac_try="$ac_compiler -V >&5"
3411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412
*) ac_try_echo=$ac_try;;
3414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415
(eval "$ac_compiler -V >&5") 2>&5
3417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418
(exit $ac_status); }
3420
cat >conftest.$ac_ext <<_ACEOF
3423
cat confdefs.h >>conftest.$ac_ext
3424
cat >>conftest.$ac_ext <<_ACEOF
3425
/* end confdefs.h. */
3435
ac_clean_files_save=$ac_clean_files
3436
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3437
# Try to create an executable without -o first, disregard a.out.
3438
# It will help us diagnose broken compilers, and finding out an intuition
3440
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3441
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3442
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3444
# List of possible output files, starting from the most likely.
3445
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3446
# only as a last resort. b.out is created by i960 compilers.
3447
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3449
# The IRIX 6 linker writes into existing files which may not be
3450
# executable, retaining their permissions. Remove them first so a
3451
# subsequent execution test works.
3453
for ac_file in $ac_files
3456
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3457
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3462
if { (ac_try="$ac_link_default"
3464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465
*) ac_try_echo=$ac_try;;
3467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468
(eval "$ac_link_default") 2>&5
3470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471
(exit $ac_status); }; then
3472
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3475
# so that the user can short-circuit this test for compilers unknown to
3477
for ac_file in $ac_files ''
3479
test -f "$ac_file" || continue
3481
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3484
# We found the default executable, but exeext='' is most
3488
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3490
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492
# We set ac_cv_exeext here because the later test for it is not
3493
# safe: cross compilers may not add the suffix if given an `-o'
3494
# argument, so we may need to know it at that point already.
3495
# Even if this section looks crufty: it has the advantage of
3502
test "$ac_cv_exeext" = no && ac_cv_exeext=
3508
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3509
echo "${ECHO_T}$ac_file" >&6; }
3510
if test -z "$ac_file"; then
3511
echo "$as_me: failed program was:" >&5
3512
sed 's/^/| /' conftest.$ac_ext >&5
3514
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3515
See \`config.log' for more details." >&5
3516
echo "$as_me: error: C compiler cannot create executables
3517
See \`config.log' for more details." >&2;}
3518
{ (exit 77); exit 77; }; }
3521
ac_exeext=$ac_cv_exeext
3523
# Check that the compiler produces executables we can run. If not, either
3524
# the compiler is broken, or we cross compile.
3525
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3526
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3527
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3528
# If not cross compiling, check that we can run a simple program.
3529
if test "$cross_compiling" != yes; then
3530
if { ac_try='./$ac_file'
3531
{ (case "(($ac_try" in
3532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533
*) ac_try_echo=$ac_try;;
3535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536
(eval "$ac_try") 2>&5
3538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539
(exit $ac_status); }; }; then
3542
if test "$cross_compiling" = maybe; then
3545
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3546
If you meant to cross compile, use \`--host'.
3547
See \`config.log' for more details." >&5
3548
echo "$as_me: error: cannot run C compiled programs.
3549
If you meant to cross compile, use \`--host'.
3550
See \`config.log' for more details." >&2;}
3551
{ (exit 1); exit 1; }; }
3555
{ echo "$as_me:$LINENO: result: yes" >&5
3556
echo "${ECHO_T}yes" >&6; }
3558
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3559
ac_clean_files=$ac_clean_files_save
3560
# Check that the compiler produces executables we can run. If not, either
3561
# the compiler is broken, or we cross compile.
3562
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3563
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3564
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3565
echo "${ECHO_T}$cross_compiling" >&6; }
3567
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3568
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3569
if { (ac_try="$ac_link"
3571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572
*) ac_try_echo=$ac_try;;
3574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575
(eval "$ac_link") 2>&5
3577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
(exit $ac_status); }; then
3579
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3580
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3581
# work properly (i.e., refer to `conftest.exe'), while it won't with
3583
for ac_file in conftest.exe conftest conftest.*; do
3584
test -f "$ac_file" || continue
3586
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3587
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3593
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3594
See \`config.log' for more details." >&5
3595
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3596
See \`config.log' for more details." >&2;}
3597
{ (exit 1); exit 1; }; }
3600
rm -f conftest$ac_cv_exeext
3601
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3602
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3604
rm -f conftest.$ac_ext
3605
EXEEXT=$ac_cv_exeext
3607
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3608
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3609
if test "${ac_cv_objext+set}" = set; then
3610
echo $ECHO_N "(cached) $ECHO_C" >&6
3612
cat >conftest.$ac_ext <<_ACEOF
3615
cat confdefs.h >>conftest.$ac_ext
3616
cat >>conftest.$ac_ext <<_ACEOF
3617
/* end confdefs.h. */
3627
rm -f conftest.o conftest.obj
3628
if { (ac_try="$ac_compile"
3630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631
*) ac_try_echo=$ac_try;;
3633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634
(eval "$ac_compile") 2>&5
3636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637
(exit $ac_status); }; then
3638
for ac_file in conftest.o conftest.obj conftest.*; do
3639
test -f "$ac_file" || continue;
3641
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3642
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647
echo "$as_me: failed program was:" >&5
3648
sed 's/^/| /' conftest.$ac_ext >&5
3650
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3651
See \`config.log' for more details." >&5
3652
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3653
See \`config.log' for more details." >&2;}
3654
{ (exit 1); exit 1; }; }
3657
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3659
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3660
echo "${ECHO_T}$ac_cv_objext" >&6; }
3661
OBJEXT=$ac_cv_objext
3663
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3664
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3665
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3666
echo $ECHO_N "(cached) $ECHO_C" >&6
3668
cat >conftest.$ac_ext <<_ACEOF
3671
cat confdefs.h >>conftest.$ac_ext
3672
cat >>conftest.$ac_ext <<_ACEOF
3673
/* end confdefs.h. */
3686
rm -f conftest.$ac_objext
3687
if { (ac_try="$ac_compile"
3689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690
*) ac_try_echo=$ac_try;;
3692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693
(eval "$ac_compile") 2>conftest.er1
3695
grep -v '^ *+' conftest.er1 >conftest.err
3697
cat conftest.err >&5
3698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699
(exit $ac_status); } && {
3700
test -z "$ac_c_werror_flag" ||
3701
test ! -s conftest.err
3702
} && test -s conftest.$ac_objext; then
3705
echo "$as_me: failed program was:" >&5
3706
sed 's/^/| /' conftest.$ac_ext >&5
3711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3715
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3716
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3717
GCC=`test $ac_compiler_gnu = yes && echo yes`
3718
ac_test_CFLAGS=${CFLAGS+set}
3719
ac_save_CFLAGS=$CFLAGS
3720
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3721
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3722
if test "${ac_cv_prog_cc_g+set}" = set; then
3723
echo $ECHO_N "(cached) $ECHO_C" >&6
3725
ac_save_c_werror_flag=$ac_c_werror_flag
3726
ac_c_werror_flag=yes
3729
cat >conftest.$ac_ext <<_ACEOF
3732
cat confdefs.h >>conftest.$ac_ext
3733
cat >>conftest.$ac_ext <<_ACEOF
3734
/* end confdefs.h. */
3744
rm -f conftest.$ac_objext
3745
if { (ac_try="$ac_compile"
3747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748
*) ac_try_echo=$ac_try;;
3750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751
(eval "$ac_compile") 2>conftest.er1
3753
grep -v '^ *+' conftest.er1 >conftest.err
3755
cat conftest.err >&5
3756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757
(exit $ac_status); } && {
3758
test -z "$ac_c_werror_flag" ||
3759
test ! -s conftest.err
3760
} && test -s conftest.$ac_objext; then
3763
echo "$as_me: failed program was:" >&5
3764
sed 's/^/| /' conftest.$ac_ext >&5
3767
cat >conftest.$ac_ext <<_ACEOF
3770
cat confdefs.h >>conftest.$ac_ext
3771
cat >>conftest.$ac_ext <<_ACEOF
3772
/* end confdefs.h. */
3782
rm -f conftest.$ac_objext
3783
if { (ac_try="$ac_compile"
3785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786
*) ac_try_echo=$ac_try;;
3788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789
(eval "$ac_compile") 2>conftest.er1
3791
grep -v '^ *+' conftest.er1 >conftest.err
3793
cat conftest.err >&5
3794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); } && {
3796
test -z "$ac_c_werror_flag" ||
3797
test ! -s conftest.err
3798
} && test -s conftest.$ac_objext; then
3801
echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3804
ac_c_werror_flag=$ac_save_c_werror_flag
3806
cat >conftest.$ac_ext <<_ACEOF
3809
cat confdefs.h >>conftest.$ac_ext
3810
cat >>conftest.$ac_ext <<_ACEOF
3811
/* end confdefs.h. */
3821
rm -f conftest.$ac_objext
3822
if { (ac_try="$ac_compile"
3824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825
*) ac_try_echo=$ac_try;;
3827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828
(eval "$ac_compile") 2>conftest.er1
3830
grep -v '^ *+' conftest.er1 >conftest.err
3832
cat conftest.err >&5
3833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834
(exit $ac_status); } && {
3835
test -z "$ac_c_werror_flag" ||
3836
test ! -s conftest.err
3837
} && test -s conftest.$ac_objext; then
3840
echo "$as_me: failed program was:" >&5
3841
sed 's/^/| /' conftest.$ac_ext >&5
3846
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853
ac_c_werror_flag=$ac_save_c_werror_flag
3855
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3856
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3857
if test "$ac_test_CFLAGS" = set; then
3858
CFLAGS=$ac_save_CFLAGS
3859
elif test $ac_cv_prog_cc_g = yes; then
3860
if test "$GCC" = yes; then
3866
if test "$GCC" = yes; then
3872
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3873
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3874
if test "${ac_cv_prog_cc_c89+set}" = set; then
3875
echo $ECHO_N "(cached) $ECHO_C" >&6
3877
ac_cv_prog_cc_c89=no
3879
cat >conftest.$ac_ext <<_ACEOF
3882
cat confdefs.h >>conftest.$ac_ext
3883
cat >>conftest.$ac_ext <<_ACEOF
3884
/* end confdefs.h. */
3887
#include <sys/types.h>
3888
#include <sys/stat.h>
3889
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3890
struct buf { int x; };
3891
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3892
static char *e (p, i)
3898
static char *f (char * (*g) (char **, int), char **p, ...)
3903
s = g (p, va_arg (v,int));
3908
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3909
function prototypes and stuff, but not '\xHH' hex character constants.
3910
These don't provoke an error unfortunately, instead are silently treated
3911
as 'x'. The following induces an error, until -std is added to get
3912
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3913
array size at least. It's necessary to write '\x00'==0 to get something
3914
that's true only with -std. */
3915
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3917
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3918
inside strings and character constants. */
3920
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3922
int test (int i, double x);
3923
struct s1 {int (*f) (int a);};
3924
struct s2 {int (*f) (double a);};
3925
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3931
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3936
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3937
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3939
CC="$ac_save_CC $ac_arg"
3940
rm -f conftest.$ac_objext
3941
if { (ac_try="$ac_compile"
3943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944
*) ac_try_echo=$ac_try;;
3946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947
(eval "$ac_compile") 2>conftest.er1
3949
grep -v '^ *+' conftest.er1 >conftest.err
3951
cat conftest.err >&5
3952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953
(exit $ac_status); } && {
3954
test -z "$ac_c_werror_flag" ||
3955
test ! -s conftest.err
3956
} && test -s conftest.$ac_objext; then
3957
ac_cv_prog_cc_c89=$ac_arg
3959
echo "$as_me: failed program was:" >&5
3960
sed 's/^/| /' conftest.$ac_ext >&5
3965
rm -f core conftest.err conftest.$ac_objext
3966
test "x$ac_cv_prog_cc_c89" != "xno" && break
3968
rm -f conftest.$ac_ext
3973
case "x$ac_cv_prog_cc_c89" in
3975
{ echo "$as_me:$LINENO: result: none needed" >&5
3976
echo "${ECHO_T}none needed" >&6; } ;;
3978
{ echo "$as_me:$LINENO: result: unsupported" >&5
3979
echo "${ECHO_T}unsupported" >&6; } ;;
3981
CC="$CC $ac_cv_prog_cc_c89"
3982
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3983
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3988
ac_cpp='$CPP $CPPFLAGS'
3989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
depcc="$CC" am_compiler_list=
3995
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3996
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3997
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3998
echo $ECHO_N "(cached) $ECHO_C" >&6
4000
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4001
# We make a subdir and do the tests there. Otherwise we can end up
4002
# making bogus files that we don't know about and never remove. For
4003
# instance it was reported that on HP-UX the gcc test will end up
4004
# making a dummy file named `D' -- because `-MD' means `put the output
4007
# Copy depcomp to subdir because otherwise we won't find it if we're
4008
# using a relative directory.
4009
cp "$am_depcomp" conftest.dir
4011
# We will build objects and dependencies in a subdirectory because
4012
# it helps to detect inapplicable dependency modes. For instance
4013
# both Tru64's cc and ICC support -MD to output dependencies as a
4014
# side effect of compilation, but ICC will put the dependencies in
4015
# the current directory while Tru64 will put them in the object
4019
am_cv_CC_dependencies_compiler_type=none
4020
if test "$am_compiler_list" = ""; then
4021
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4023
for depmode in $am_compiler_list; do
4024
# Setup a source with many dependencies, because some compilers
4025
# like to wrap large dependency lists on column 80 (with \), and
4026
# we should not choose a depcomp mode which is confused by this.
4028
# We need to recreate these files for each test, as the compiler may
4029
# overwrite some of them when testing with obscure command lines.
4030
# This happens at least with the AIX C compiler.
4032
for i in 1 2 3 4 5 6; do
4033
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4034
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4035
# Solaris 8's {/usr,}/bin/sh.
4036
touch sub/conftst$i.h
4038
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4042
# after this tag, mechanisms are not by side-effect, so they'll
4043
# only be used when explicitly requested
4044
if test "x$enable_dependency_tracking" = xyes; then
4052
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4053
# mode. It turns out that the SunPro C++ compiler does not properly
4054
# handle `-M -o', and we need to detect this.
4055
if depmode=$depmode \
4056
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4057
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4059
>/dev/null 2>conftest.err &&
4060
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4063
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064
# icc doesn't choke on unknown options, it will just issue warnings
4065
# or remarks (even with -Werror). So we grep stderr for any message
4066
# that says an option was ignored or not supported.
4067
# When given -MP, icc 7.0 and 7.1 complain thusly:
4068
# icc: Command line warning: ignoring option '-M'; no argument required
4069
# The diagnosis changed in icc 8.0:
4070
# icc: Command line remark: option '-MP' not supported
4071
if (grep 'ignoring option' conftest.err ||
4072
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073
am_cv_CC_dependencies_compiler_type=$depmode
4082
am_cv_CC_dependencies_compiler_type=none
4086
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4087
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4088
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091
test "x$enable_dependency_tracking" != xno \
4092
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4094
am__fastdepCC_FALSE='#'
4096
am__fastdepCC_TRUE='#'
4097
am__fastdepCC_FALSE=
4102
4246
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4103
4247
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4104
4248
if test "${ac_cv_search_strerror+set}" = set; then