3112
# POSIX will say in a future version that running "rm -f" with no argument
3113
# is OK; and we want to be able to make that assumption in our Makefile
3114
# recipes. So use an aggressive probe to check that the usage we want is
3115
# actually supported "in the wild" to an acceptable degree.
3116
# See automake bug#10828.
3117
# To make any issue more visible, cause the running configure to be aborted
3118
# by default if the 'rm' program in use doesn't match our expectations; the
3119
# user can still override this though.
3120
if rm -f && rm -fr && rm -rf; then : OK; else
3124
Your 'rm' program seems unable to run without file operands specified
3125
on the command line, even when the '-f' option is present. This is contrary
3126
to the behaviour of most rm programs out there, and not conforming with
3127
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3129
Please tell bug-automake@gnu.org about your system, including the value
3130
of your $PATH and any error possibly output before this message. This
3131
can help us improve future automake versions.
3134
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3135
echo 'Configuration will proceed anyway, since you have set the' >&2
3136
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3140
Aborting the configuration process, to ensure you take notice of the issue.
3142
You can download and install GNU coreutils to get an 'rm' implementation
3143
that behaves properly: <http://www.gnu.org/software/coreutils/>.
3145
If you want to complete the configuration process using your problematic
3146
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3147
to "yes", and re-run configure.
3150
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3112
3153
# Check whether --enable-silent-rules was given.
3113
3154
if test "${enable_silent_rules+set}" = set; then :
3114
3155
enableval=$enable_silent_rules;
4165
4206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166
4207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
ac_cpp='$CPP $CPPFLAGS'
4211
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4215
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4216
if ${am_cv_prog_cc_c_o+:} false; then :
4217
$as_echo_n "(cached) " >&6
4219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220
/* end confdefs.h. */
4230
# Make sure it works both with $CC and with simple cc.
4231
# Following AC_PROG_CC_C_O, we do the test twice because some
4232
# compilers refuse to overwrite an existing .o file with -o,
4233
# though they will create one.
4234
am_cv_prog_cc_c_o=yes
4236
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4237
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240
(exit $ac_status); } \
4241
&& test -f conftest2.$ac_objext; then
4244
am_cv_prog_cc_c_o=no
4248
rm -f core conftest*
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4252
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4253
if test "$am_cv_prog_cc_c_o" != yes; then
4254
# Losing compiler, so override with the script.
4255
# FIXME: It is wrong to rewrite CC.
4256
# But if we don't then we get into trouble of one sort or another.
4257
# A longer-term fix would be to have automake use am__CC in this case,
4258
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4259
CC="$am_aux_dir/compile $CC"
4262
ac_cpp='$CPP $CPPFLAGS'
4263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4268
depcc="$CC" am_compiler_list=
4170
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11719
11825
# Only expand once:
11722
if test "x$CC" != xcc; then
11723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11724
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11727
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11729
set dummy $CC; ac_cc=`$as_echo "$2" |
11730
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11731
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11732
$as_echo_n "(cached) " >&6
11734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735
/* end confdefs.h. */
11745
# Make sure it works both with $CC and with simple cc.
11746
# We do the test twice because some compilers refuse to overwrite an
11747
# existing .o file with -o, though they will create one.
11748
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11750
if { { case "(($ac_try" in
11751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752
*) ac_try_echo=$ac_try;;
11754
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11755
$as_echo "$ac_try_echo"; } >&5
11756
(eval "$ac_try") 2>&5
11758
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759
test $ac_status = 0; } &&
11760
test -f conftest2.$ac_objext && { { case "(($ac_try" in
11761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762
*) ac_try_echo=$ac_try;;
11764
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11765
$as_echo "$ac_try_echo"; } >&5
11766
(eval "$ac_try") 2>&5
11768
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769
test $ac_status = 0; };
11771
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11772
if test "x$CC" != xcc; then
11773
# Test first that cc exists at all.
11774
if { ac_try='cc -c conftest.$ac_ext >&5'
11775
{ { case "(($ac_try" in
11776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777
*) ac_try_echo=$ac_try;;
11779
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11780
$as_echo "$ac_try_echo"; } >&5
11781
(eval "$ac_try") 2>&5
11783
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784
test $ac_status = 0; }; }; then
11785
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11787
if { { case "(($ac_try" in
11788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789
*) ac_try_echo=$ac_try;;
11791
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11792
$as_echo "$ac_try_echo"; } >&5
11793
(eval "$ac_try") 2>&5
11795
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796
test $ac_status = 0; } &&
11797
test -f conftest2.$ac_objext && { { case "(($ac_try" in
11798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799
*) ac_try_echo=$ac_try;;
11801
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11802
$as_echo "$ac_try_echo"; } >&5
11803
(eval "$ac_try") 2>&5
11805
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806
test $ac_status = 0; };
11811
# cc exists but doesn't like -o.
11812
eval ac_cv_prog_cc_${ac_cc}_c_o=no
11817
eval ac_cv_prog_cc_${ac_cc}_c_o=no
11819
rm -f core conftest*
11822
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824
$as_echo "yes" >&6; }
11826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827
$as_echo "no" >&6; }
11829
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11833
# FIXME: we rely on the cache variable name because
11834
# there is no other way.
11836
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11837
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11838
if test "$am_t" != yes; then
11839
# Losing compiler, so override with the script.
11840
# FIXME: It is wrong to rewrite CC.
11841
# But if we don't then we get into trouble of one sort or another.
11842
# A longer-term fix would be to have automake use am__CC in this case,
11843
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11844
CC="$am_aux_dir/compile $CC"
11849
11830
ac_cpp='$CXXCPP $CPPFLAGS'