[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PROG_CXX_C_O
From: |
Ralf Wildenhues |
Subject: |
Re: AC_PROG_CXX_C_O |
Date: |
Sat, 20 May 2006 17:47:20 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
* Ralf Wildenhues wrote on Sat, May 20, 2006 at 07:39:29AM CEST:
> * Paul Eggert wrote on Fri, May 19, 2006 at 11:33:51PM CEST:
> > That looks good to me[...]
> OK, applied[...]
And applied this followup patch (dummy me; the testsuite even exposes
this) to really make this macro work reasonably. Sorry about that.
Cheers,
Ralf
* 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).
Index: lib/autoconf/c.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v
retrieving revision 1.225
diff -u -r1.225 c.m4
--- lib/autoconf/c.m4 20 May 2006 05:39:03 -0000 1.225
+++ lib/autoconf/c.m4 20 May 2006 15:44:08 -0000
@@ -829,7 +829,8 @@
# 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 @@
[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