]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 20 May 2006 15:49:27 +0000 (15:49 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 20 May 2006 15:49:27 +0000 (15:49 +0000)
and set the language to C++ (analogous to the equivalent Fortran
tests).

ChangeLog
lib/autoconf/c.m4

index 8e78888c26bc3e0b7e68e622ed3fabd1a2fab5ea..af7998fe2c4553824ac7d81edbca0282b2133203 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
+       and set the language to C++ (analogous to the equivalent Fortran
+       tests).
+
        * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
        * doc/autoconf.texi (C++ Compiler): Document it.
        * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
index 58c915a599fb6addf9e247cbb7aede1317c569ea..2f16d035f053ab4e6d2687c5fa49a7ca30e6b61e 100644 (file)
@@ -829,7 +829,8 @@ fi[]dnl
 # Test if the C++ compiler accepts the options `-c' and `-o'
 # simultaneously, and define `CXX_NO_MINUS_C_MINUS_O' if it does not.
 AC_DEFUN([AC_PROG_CXX_C_O],
-[AC_LANG_ASSERT([C++])dnl
+[AC_REQUIRE([AC_PROG_CXX])dnl
+AC_LANG_PUSH([C++])dnl
 AC_CACHE_CHECK([whether $CXX understands -c and -o together],
                [ac_cv_prog_cxx_c_o],
 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
@@ -850,6 +851,7 @@ if test $ac_cv_prog_cxx_c_o = no; then
             [Define to 1 if your C++ compiler doesn't accept
              -c and -o together.])
 fi
+AC_LANG_POP([C++])dnl
 ])# AC_PROG_CXX_C_O