fixed the test for GCC [Brian J. Johnson]

This commit is contained in:
cebix 2003-07-25 13:45:25 +00:00
parent 2257e7be3f
commit 91c9cf1879

View File

@ -770,18 +770,18 @@ AC_MSG_RESULT($HAVE_GAS)
dnl Check for GCC 2.7 or higher.
HAVE_GCC27=no
AC_MSG_CHECKING(for GCC 2.7 or higher)
AC_EGREP_CPP(yes,
AC_EGREP_CPP(xyes,
[#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
yes
xyes
#endif
], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
dnl Check for GCC 3.0 or higher.
HAVE_GCC30=no
AC_MSG_CHECKING(for GCC 3.0 or higher)
AC_EGREP_CPP(yes,
AC_EGREP_CPP(xyes,
[#if __GNUC__ >= 3
yes
xyes
#endif
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))