2695
# POSIX will say in a future version that running "rm -f" with no argument
2696
# is OK; and we want to be able to make that assumption in our Makefile
2697
# recipes. So use an aggressive probe to check that the usage we want is
2698
# actually supported "in the wild" to an acceptable degree.
2699
# See automake bug#10828.
2700
# To make any issue more visible, cause the running configure to be aborted
2701
# by default if the 'rm' program in use doesn't match our expectations; the
2702
# user can still override this though.
2703
if rm -f && rm -fr && rm -rf; then : OK; else
2707
Your 'rm' program seems unable to run without file operands specified
2708
on the command line, even when the '-f' option is present. This is contrary
2709
to the behaviour of most rm programs out there, and not conforming with
2710
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2712
Please tell bug-automake@gnu.org about your system, including the value
2713
of your $PATH and any error possibly output before this message. This
2714
can help us improve future automake versions.
2717
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2718
echo 'Configuration will proceed anyway, since you have set the' >&2
2719
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2723
Aborting the configuration process, to ensure you take notice of the issue.
2725
You can download and install GNU coreutils to get an 'rm' implementation
2726
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2728
If you want to complete the configuration process using your problematic
2729
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2730
to "yes", and re-run configure.
2733
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2696
2737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2697
2738
$as_echo_n "checking whether NLS is requested... " >&6; }
3558
3599
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559
3600
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
ac_cpp='$CPP $CPPFLAGS'
3604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3608
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3609
if ${am_cv_prog_cc_c_o+:} false; then :
3610
$as_echo_n "(cached) " >&6
3612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613
/* end confdefs.h. */
3623
# Make sure it works both with $CC and with simple cc.
3624
# Following AC_PROG_CC_C_O, we do the test twice because some
3625
# compilers refuse to overwrite an existing .o file with -o,
3626
# though they will create one.
3627
am_cv_prog_cc_c_o=yes
3629
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3630
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633
(exit $ac_status); } \
3634
&& test -f conftest2.$ac_objext; then
3637
am_cv_prog_cc_c_o=no
3641
rm -f core conftest*
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3645
$as_echo "$am_cv_prog_cc_c_o" >&6; }
3646
if test "$am_cv_prog_cc_c_o" != yes; then
3647
# Losing compiler, so override with the script.
3648
# FIXME: It is wrong to rewrite CC.
3649
# But if we don't then we get into trouble of one sort or another.
3650
# A longer-term fix would be to have automake use am__CC in this case,
3651
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3652
CC="$am_aux_dir/compile $CC"
3655
ac_cpp='$CPP $CPPFLAGS'
3656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3661
depcc="$CC" am_compiler_list=
3563
3663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7325
7425
as_fn_error $? "Missing packages" "$LINENO" 5
7328
if test "x$CC" != xcc; then
7329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7330
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7333
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7335
set dummy $CC; ac_cc=`$as_echo "$2" |
7336
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7337
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7338
$as_echo_n "(cached) " >&6
7340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341
/* end confdefs.h. */
7351
# Make sure it works both with $CC and with simple cc.
7352
# We do the test twice because some compilers refuse to overwrite an
7353
# existing .o file with -o, though they will create one.
7354
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7356
if { { case "(($ac_try" in
7357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358
*) ac_try_echo=$ac_try;;
7360
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7361
$as_echo "$ac_try_echo"; } >&5
7362
(eval "$ac_try") 2>&5
7364
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365
test $ac_status = 0; } &&
7366
test -f conftest2.$ac_objext && { { case "(($ac_try" in
7367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368
*) ac_try_echo=$ac_try;;
7370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7371
$as_echo "$ac_try_echo"; } >&5
7372
(eval "$ac_try") 2>&5
7374
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375
test $ac_status = 0; };
7377
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7378
if test "x$CC" != xcc; then
7379
# Test first that cc exists at all.
7380
if { ac_try='cc -c conftest.$ac_ext >&5'
7381
{ { case "(($ac_try" in
7382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383
*) ac_try_echo=$ac_try;;
7385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7386
$as_echo "$ac_try_echo"; } >&5
7387
(eval "$ac_try") 2>&5
7389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390
test $ac_status = 0; }; }; then
7391
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7393
if { { case "(($ac_try" in
7394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395
*) ac_try_echo=$ac_try;;
7397
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7398
$as_echo "$ac_try_echo"; } >&5
7399
(eval "$ac_try") 2>&5
7401
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402
test $ac_status = 0; } &&
7403
test -f conftest2.$ac_objext && { { case "(($ac_try" in
7404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405
*) ac_try_echo=$ac_try;;
7407
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7408
$as_echo "$ac_try_echo"; } >&5
7409
(eval "$ac_try") 2>&5
7411
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412
test $ac_status = 0; };
7417
# cc exists but doesn't like -o.
7418
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7423
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7425
rm -f core conftest*
7428
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430
$as_echo "yes" >&6; }
7432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433
$as_echo "no" >&6; }
7435
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7439
# FIXME: we rely on the cache variable name because
7440
# there is no other way.
7442
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7443
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7444
if test "$am_t" != yes; then
7445
# Losing compiler, so override with the script.
7446
# FIXME: It is wrong to rewrite CC.
7447
# But if we don't then we get into trouble of one sort or another.
7448
# A longer-term fix would be to have automake use am__CC in this case,
7449
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7450
CC="$am_aux_dir/compile $CC"