20946
ac_cpp='$CPP $CPPFLAGS'
20947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950
if test -n "$ac_tool_prefix"; then
20951
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20952
set dummy ${ac_tool_prefix}gcc; ac_word=$2
20953
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20955
if test "${ac_cv_prog_CC+set}" = set; then
20956
echo $ECHO_N "(cached) $ECHO_C" >&6
20958
if test -n "$CC"; then
20959
ac_cv_prog_CC="$CC" # Let the user override the test.
20961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20962
for as_dir in $PATH
20965
test -z "$as_dir" && as_dir=.
20966
for ac_exec_ext in '' $ac_executable_extensions; do
20967
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20968
ac_cv_prog_CC="${ac_tool_prefix}gcc"
20969
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20979
if test -n "$CC"; then
20980
{ echo "$as_me:$LINENO: result: $CC" >&5
20981
echo "${ECHO_T}$CC" >&6; }
20983
{ echo "$as_me:$LINENO: result: no" >&5
20984
echo "${ECHO_T}no" >&6; }
20989
if test -z "$ac_cv_prog_CC"; then
20991
# Extract the first word of "gcc", so it can be a program name with args.
20992
set dummy gcc; ac_word=$2
20993
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20995
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20996
echo $ECHO_N "(cached) $ECHO_C" >&6
20998
if test -n "$ac_ct_CC"; then
20999
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21002
for as_dir in $PATH
21005
test -z "$as_dir" && as_dir=.
21006
for ac_exec_ext in '' $ac_executable_extensions; do
21007
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21008
ac_cv_prog_ac_ct_CC="gcc"
21009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21018
ac_ct_CC=$ac_cv_prog_ac_ct_CC
21019
if test -n "$ac_ct_CC"; then
21020
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21021
echo "${ECHO_T}$ac_ct_CC" >&6; }
21023
{ echo "$as_me:$LINENO: result: no" >&5
21024
echo "${ECHO_T}no" >&6; }
21027
if test "x$ac_ct_CC" = x; then
21030
case $cross_compiling:$ac_tool_warned in
21032
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21033
whose name does not start with the host triplet. If you think this
21034
configuration is useful to you, please write to autoconf@gnu.org." >&5
21035
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21036
whose name does not start with the host triplet. If you think this
21037
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21038
ac_tool_warned=yes ;;
21043
CC="$ac_cv_prog_CC"
21046
if test -z "$CC"; then
21047
if test -n "$ac_tool_prefix"; then
21048
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21049
set dummy ${ac_tool_prefix}cc; ac_word=$2
21050
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21051
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21052
if test "${ac_cv_prog_CC+set}" = set; then
21053
echo $ECHO_N "(cached) $ECHO_C" >&6
21055
if test -n "$CC"; then
21056
ac_cv_prog_CC="$CC" # Let the user override the test.
21058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059
for as_dir in $PATH
21062
test -z "$as_dir" && as_dir=.
21063
for ac_exec_ext in '' $ac_executable_extensions; do
21064
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21065
ac_cv_prog_CC="${ac_tool_prefix}cc"
21066
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21076
if test -n "$CC"; then
21077
{ echo "$as_me:$LINENO: result: $CC" >&5
21078
echo "${ECHO_T}$CC" >&6; }
21080
{ echo "$as_me:$LINENO: result: no" >&5
21081
echo "${ECHO_T}no" >&6; }
21087
if test -z "$CC"; then
21088
# Extract the first word of "cc", so it can be a program name with args.
21089
set dummy cc; ac_word=$2
21090
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21091
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21092
if test "${ac_cv_prog_CC+set}" = set; then
21093
echo $ECHO_N "(cached) $ECHO_C" >&6
21095
if test -n "$CC"; then
21096
ac_cv_prog_CC="$CC" # Let the user override the test.
21098
ac_prog_rejected=no
21099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21100
for as_dir in $PATH
21103
test -z "$as_dir" && as_dir=.
21104
for ac_exec_ext in '' $ac_executable_extensions; do
21105
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21106
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21107
ac_prog_rejected=yes
21111
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21118
if test $ac_prog_rejected = yes; then
21119
# We found a bogon in the path, so make sure we never use it.
21120
set dummy $ac_cv_prog_CC
21122
if test $# != 0; then
21123
# We chose a different compiler from the bogus one.
21124
# However, it has the same basename, so the bogon will be chosen
21125
# first if we set CC to just the basename; use the full file name.
21127
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
21133
if test -n "$CC"; then
21134
{ echo "$as_me:$LINENO: result: $CC" >&5
21135
echo "${ECHO_T}$CC" >&6; }
21137
{ echo "$as_me:$LINENO: result: no" >&5
21138
echo "${ECHO_T}no" >&6; }
21143
if test -z "$CC"; then
21144
if test -n "$ac_tool_prefix"; then
21145
for ac_prog in cl.exe
21147
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21148
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21149
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21150
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21151
if test "${ac_cv_prog_CC+set}" = set; then
21152
echo $ECHO_N "(cached) $ECHO_C" >&6
21154
if test -n "$CC"; then
21155
ac_cv_prog_CC="$CC" # Let the user override the test.
21157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21158
for as_dir in $PATH
21161
test -z "$as_dir" && as_dir=.
21162
for ac_exec_ext in '' $ac_executable_extensions; do
21163
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21164
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
21165
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21175
if test -n "$CC"; then
21176
{ echo "$as_me:$LINENO: result: $CC" >&5
21177
echo "${ECHO_T}$CC" >&6; }
21179
{ echo "$as_me:$LINENO: result: no" >&5
21180
echo "${ECHO_T}no" >&6; }
21184
test -n "$CC" && break
21187
if test -z "$CC"; then
21189
for ac_prog in cl.exe
21191
# Extract the first word of "$ac_prog", so it can be a program name with args.
21192
set dummy $ac_prog; ac_word=$2
21193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21195
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21196
echo $ECHO_N "(cached) $ECHO_C" >&6
21198
if test -n "$ac_ct_CC"; then
21199
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202
for as_dir in $PATH
21205
test -z "$as_dir" && as_dir=.
21206
for ac_exec_ext in '' $ac_executable_extensions; do
21207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21208
ac_cv_prog_ac_ct_CC="$ac_prog"
21209
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21218
ac_ct_CC=$ac_cv_prog_ac_ct_CC
21219
if test -n "$ac_ct_CC"; then
21220
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21221
echo "${ECHO_T}$ac_ct_CC" >&6; }
21223
{ echo "$as_me:$LINENO: result: no" >&5
21224
echo "${ECHO_T}no" >&6; }
21228
test -n "$ac_ct_CC" && break
21231
if test "x$ac_ct_CC" = x; then
21234
case $cross_compiling:$ac_tool_warned in
21236
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21237
whose name does not start with the host triplet. If you think this
21238
configuration is useful to you, please write to autoconf@gnu.org." >&5
21239
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21240
whose name does not start with the host triplet. If you think this
21241
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21242
ac_tool_warned=yes ;;
21251
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
21252
See \`config.log' for more details." >&5
21253
echo "$as_me: error: no acceptable C compiler found in \$PATH
21254
See \`config.log' for more details." >&2;}
21255
{ (exit 1); exit 1; }; }
21257
# Provide some information about the compiler.
21258
echo "$as_me:$LINENO: checking for C compiler version" >&5
21259
ac_compiler=`set X $ac_compile; echo $2`
21260
{ (ac_try="$ac_compiler --version >&5"
21261
case "(($ac_try" in
21262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263
*) ac_try_echo=$ac_try;;
21265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266
(eval "$ac_compiler --version >&5") 2>&5
21268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269
(exit $ac_status); }
21270
{ (ac_try="$ac_compiler -v >&5"
21271
case "(($ac_try" in
21272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273
*) ac_try_echo=$ac_try;;
21275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276
(eval "$ac_compiler -v >&5") 2>&5
21278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279
(exit $ac_status); }
21280
{ (ac_try="$ac_compiler -V >&5"
21281
case "(($ac_try" in
21282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283
*) ac_try_echo=$ac_try;;
21285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286
(eval "$ac_compiler -V >&5") 2>&5
21288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289
(exit $ac_status); }
21291
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
21292
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
21293
if test "${ac_cv_c_compiler_gnu+set}" = set; then
21294
echo $ECHO_N "(cached) $ECHO_C" >&6
21296
cat >conftest.$ac_ext <<_ACEOF
21299
cat confdefs.h >>conftest.$ac_ext
21300
cat >>conftest.$ac_ext <<_ACEOF
21301
/* end confdefs.h. */
21314
rm -f conftest.$ac_objext
21315
if { (ac_try="$ac_compile"
21316
case "(($ac_try" in
21317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318
*) ac_try_echo=$ac_try;;
21320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321
(eval "$ac_compile") 2>conftest.er1
21323
grep -v '^ *+' conftest.er1 >conftest.err
21325
cat conftest.err >&5
21326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327
(exit $ac_status); } && {
21328
test -z "$ac_c_werror_flag" ||
21329
test ! -s conftest.err
21330
} && test -s conftest.$ac_objext; then
21331
ac_compiler_gnu=yes
21333
echo "$as_me: failed program was:" >&5
21334
sed 's/^/| /' conftest.$ac_ext >&5
21339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340
ac_cv_c_compiler_gnu=$ac_compiler_gnu
21343
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
21344
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
21345
GCC=`test $ac_compiler_gnu = yes && echo yes`
21346
ac_test_CFLAGS=${CFLAGS+set}
21347
ac_save_CFLAGS=$CFLAGS
21348
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
21349
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
21350
if test "${ac_cv_prog_cc_g+set}" = set; then
21351
echo $ECHO_N "(cached) $ECHO_C" >&6
21353
ac_save_c_werror_flag=$ac_c_werror_flag
21354
ac_c_werror_flag=yes
21357
cat >conftest.$ac_ext <<_ACEOF
21360
cat confdefs.h >>conftest.$ac_ext
21361
cat >>conftest.$ac_ext <<_ACEOF
21362
/* end confdefs.h. */
21372
rm -f conftest.$ac_objext
21373
if { (ac_try="$ac_compile"
21374
case "(($ac_try" in
21375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376
*) ac_try_echo=$ac_try;;
21378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379
(eval "$ac_compile") 2>conftest.er1
21381
grep -v '^ *+' conftest.er1 >conftest.err
21383
cat conftest.err >&5
21384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385
(exit $ac_status); } && {
21386
test -z "$ac_c_werror_flag" ||
21387
test ! -s conftest.err
21388
} && test -s conftest.$ac_objext; then
21389
ac_cv_prog_cc_g=yes
21391
echo "$as_me: failed program was:" >&5
21392
sed 's/^/| /' conftest.$ac_ext >&5
21395
cat >conftest.$ac_ext <<_ACEOF
21398
cat confdefs.h >>conftest.$ac_ext
21399
cat >>conftest.$ac_ext <<_ACEOF
21400
/* end confdefs.h. */
21410
rm -f conftest.$ac_objext
21411
if { (ac_try="$ac_compile"
21412
case "(($ac_try" in
21413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414
*) ac_try_echo=$ac_try;;
21416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417
(eval "$ac_compile") 2>conftest.er1
21419
grep -v '^ *+' conftest.er1 >conftest.err
21421
cat conftest.err >&5
21422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423
(exit $ac_status); } && {
21424
test -z "$ac_c_werror_flag" ||
21425
test ! -s conftest.err
21426
} && test -s conftest.$ac_objext; then
21429
echo "$as_me: failed program was:" >&5
21430
sed 's/^/| /' conftest.$ac_ext >&5
21432
ac_c_werror_flag=$ac_save_c_werror_flag
21434
cat >conftest.$ac_ext <<_ACEOF
21437
cat confdefs.h >>conftest.$ac_ext
21438
cat >>conftest.$ac_ext <<_ACEOF
21439
/* end confdefs.h. */
21449
rm -f conftest.$ac_objext
21450
if { (ac_try="$ac_compile"
21451
case "(($ac_try" in
21452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453
*) ac_try_echo=$ac_try;;
21455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456
(eval "$ac_compile") 2>conftest.er1
21458
grep -v '^ *+' conftest.er1 >conftest.err
21460
cat conftest.err >&5
21461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462
(exit $ac_status); } && {
21463
test -z "$ac_c_werror_flag" ||
21464
test ! -s conftest.err
21465
} && test -s conftest.$ac_objext; then
21466
ac_cv_prog_cc_g=yes
21468
echo "$as_me: failed program was:" >&5
21469
sed 's/^/| /' conftest.$ac_ext >&5
21474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481
ac_c_werror_flag=$ac_save_c_werror_flag
21483
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
21484
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
21485
if test "$ac_test_CFLAGS" = set; then
21486
CFLAGS=$ac_save_CFLAGS
21487
elif test $ac_cv_prog_cc_g = yes; then
21488
if test "$GCC" = yes; then
21494
if test "$GCC" = yes; then
21500
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
21501
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
21502
if test "${ac_cv_prog_cc_c89+set}" = set; then
21503
echo $ECHO_N "(cached) $ECHO_C" >&6
21505
ac_cv_prog_cc_c89=no
21507
cat >conftest.$ac_ext <<_ACEOF
21510
cat confdefs.h >>conftest.$ac_ext
21511
cat >>conftest.$ac_ext <<_ACEOF
21512
/* end confdefs.h. */
21513
#include <stdarg.h>
21515
#include <sys/types.h>
21516
#include <sys/stat.h>
21517
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
21518
struct buf { int x; };
21519
FILE * (*rcsopen) (struct buf *, struct stat *, int);
21520
static char *e (p, i)
21526
static char *f (char * (*g) (char **, int), char **p, ...)
21531
s = g (p, va_arg (v,int));
21536
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
21537
function prototypes and stuff, but not '\xHH' hex character constants.
21538
These don't provoke an error unfortunately, instead are silently treated
21539
as 'x'. The following induces an error, until -std is added to get
21540
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
21541
array size at least. It's necessary to write '\x00'==0 to get something
21542
that's true only with -std. */
21543
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
21545
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21546
inside strings and character constants. */
21548
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21550
int test (int i, double x);
21551
struct s1 {int (*f) (int a);};
21552
struct s2 {int (*f) (double a);};
21553
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
21559
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
21564
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
21565
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
21567
CC="$ac_save_CC $ac_arg"
21568
rm -f conftest.$ac_objext
21569
if { (ac_try="$ac_compile"
21570
case "(($ac_try" in
21571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572
*) ac_try_echo=$ac_try;;
21574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575
(eval "$ac_compile") 2>conftest.er1
21577
grep -v '^ *+' conftest.er1 >conftest.err
21579
cat conftest.err >&5
21580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581
(exit $ac_status); } && {
21582
test -z "$ac_c_werror_flag" ||
21583
test ! -s conftest.err
21584
} && test -s conftest.$ac_objext; then
21585
ac_cv_prog_cc_c89=$ac_arg
21587
echo "$as_me: failed program was:" >&5
21588
sed 's/^/| /' conftest.$ac_ext >&5
21593
rm -f core conftest.err conftest.$ac_objext
21594
test "x$ac_cv_prog_cc_c89" != "xno" && break
21596
rm -f conftest.$ac_ext
21601
case "x$ac_cv_prog_cc_c89" in
21603
{ echo "$as_me:$LINENO: result: none needed" >&5
21604
echo "${ECHO_T}none needed" >&6; } ;;
21606
{ echo "$as_me:$LINENO: result: unsupported" >&5
21607
echo "${ECHO_T}unsupported" >&6; } ;;
21609
CC="$CC $ac_cv_prog_cc_c89"
21610
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
21611
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
21616
ac_cpp='$CPP $CPPFLAGS'
21617
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21618
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21619
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21621
depcc="$CC" am_compiler_list=
21623
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21624
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21625
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
21626
echo $ECHO_N "(cached) $ECHO_C" >&6
21628
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21629
# We make a subdir and do the tests there. Otherwise we can end up
21630
# making bogus files that we don't know about and never remove. For
21631
# instance it was reported that on HP-UX the gcc test will end up
21632
# making a dummy file named `D' -- because `-MD' means `put the output
21635
# Copy depcomp to subdir because otherwise we won't find it if we're
21636
# using a relative directory.
21637
cp "$am_depcomp" conftest.dir
21639
# We will build objects and dependencies in a subdirectory because
21640
# it helps to detect inapplicable dependency modes. For instance
21641
# both Tru64's cc and ICC support -MD to output dependencies as a
21642
# side effect of compilation, but ICC will put the dependencies in
21643
# the current directory while Tru64 will put them in the object
21647
am_cv_CC_dependencies_compiler_type=none
21648
if test "$am_compiler_list" = ""; then
21649
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21651
for depmode in $am_compiler_list; do
21652
# Setup a source with many dependencies, because some compilers
21653
# like to wrap large dependency lists on column 80 (with \), and
21654
# we should not choose a depcomp mode which is confused by this.
21656
# We need to recreate these files for each test, as the compiler may
21657
# overwrite some of them when testing with obscure command lines.
21658
# This happens at least with the AIX C compiler.
21660
for i in 1 2 3 4 5 6; do
21661
echo '#include "conftst'$i'.h"' >> sub/conftest.c
21662
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21663
# Solaris 8's {/usr,}/bin/sh.
21664
touch sub/conftst$i.h
21666
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21670
# after this tag, mechanisms are not by side-effect, so they'll
21671
# only be used when explicitly requested
21672
if test "x$enable_dependency_tracking" = xyes; then
21680
# We check with `-c' and `-o' for the sake of the "dashmstdout"
21681
# mode. It turns out that the SunPro C++ compiler does not properly
21682
# handle `-M -o', and we need to detect this.
21683
if depmode=$depmode \
21684
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21685
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21686
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21687
>/dev/null 2>conftest.err &&
21688
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21689
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21690
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21691
# icc doesn't choke on unknown options, it will just issue warnings
21692
# or remarks (even with -Werror). So we grep stderr for any message
21693
# that says an option was ignored or not supported.
21694
# When given -MP, icc 7.0 and 7.1 complain thusly:
21695
# icc: Command line warning: ignoring option '-M'; no argument required
21696
# The diagnosis changed in icc 8.0:
21697
# icc: Command line remark: option '-MP' not supported
21698
if (grep 'ignoring option' conftest.err ||
21699
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21700
am_cv_CC_dependencies_compiler_type=$depmode
21707
rm -rf conftest.dir
21709
am_cv_CC_dependencies_compiler_type=none
21713
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21714
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
21715
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21720
test "x$enable_dependency_tracking" != xno \
21721
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21722
am__fastdepCC_TRUE=
21723
am__fastdepCC_FALSE='#'
21725
am__fastdepCC_TRUE='#'
21726
am__fastdepCC_FALSE=
21731
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
21733
21184
# Find a good install program. We prefer a C program (faster),
21734
21185
# so one script is as good as another. But avoid the broken or
21735
21186
# incompatible versions: