This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] make clean fix
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] make clean fix
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sun, 26 Nov 2000 16:03:38 -0800
'make clean' was choking the v3 configure, as it was forcing a check
to see if the build compiler was of sufficient vintage. This allows
'make clean' to work as intended.
-benjamin
2000-11-26 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4: Only sanity check for compiler version when
configuring. More fixes for 'make clean'.
* aclocal.m4: Regenerate.
* configure: Regenerate.
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.98
diff -c -p -r1.98 acinclude.m4
*** acinclude.m4 2000/11/26 15:16:32 1.98
--- acinclude.m4 2000/11/27 00:03:04
*************** dnl specific precautions need to be take
*** 173,186 ****
dnl
dnl GLIBCPP_CHECK_COMPILER_VERSION
AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
! # Sanity check that g++ is capable of dealing with v-3.
! AC_MSG_CHECKING([for g++ that will successfully compile this code])
! AC_EGREP_CPP([ok], [
! #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
ok
#endif
], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to gcc-2.95 or above]))
AC_MSG_RESULT($gpp_satisfactory)
])
--- 173,191 ----
dnl
dnl GLIBCPP_CHECK_COMPILER_VERSION
AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
! if test ! -f stamp-sanity-compiler; then
! AC_MSG_CHECKING([for g++ that will successfully compile libstdc++-v3])
! AC_LANG_SAVE
! AC_LANG_CPLUSPLUS
! AC_EGREP_CPP(ok, [
! #if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
ok
#endif
], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to gcc-2.95 or above]))
+ AC_LANG_RESTORE
AC_MSG_RESULT($gpp_satisfactory)
+ touch stamp-sanity-compiler
+ fi
])