This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[v3] GLIBCPP_CHECK_COMPILER_VERSION



Another small one: people have complained about this in the past, and
I thought there was a bug in GNATS about it, but I can't find it at
the moment.

Here's the most recent complaint, which got me to fix it:
http://gcc.gnu.org/ml/gcc/2001-06/msg00694.html


This is in trunk, requesting it go into branch.



2001-06-12   Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change to
	AC_TRY_COMPILE, so that the built compiler is checked, and
	bootstraps or cross compiles with an older compile still work.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.156
diff -c -p -r1.156 acinclude.m4
*** acinclude.m4	2001/06/11 19:35:31	1.156
--- acinclude.m4	2001/06/12 22:48:31
*************** if test ! -f stamp-sanity-compiler; then
*** 157,165 ****
    AC_MSG_CHECKING([for g++ that will successfully compile libstdc++-v3])
    AC_LANG_SAVE
    AC_LANG_CPLUSPLUS
!   AC_EGREP_CPP(ok, [
!   #if __GNUC__ >= 3
!     ok
    #endif
    ], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to GCC 3.0 or above]))
    AC_LANG_RESTORE
--- 157,165 ----
    AC_MSG_CHECKING([for g++ that will successfully compile libstdc++-v3])
    AC_LANG_SAVE
    AC_LANG_CPLUSPLUS
!   AC_TRY_COMPILE(, [
!   #if __GNUC__ < 3
!     not_ok
    #endif
    ], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to GCC 3.0 or above]))
    AC_LANG_RESTORE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]