fix the gcc version checking for gcc 3.1

This commit is contained in:
Bill Currie 2002-05-23 21:51:36 +00:00
parent 25ebab2e09
commit 35c2a4c4d7
1 changed files with 1 additions and 1 deletions

View File

@ -1214,7 +1214,7 @@ if test "x$optimize" = xyes; then
shift
args="$*"
AC_MSG_CHECKING(for gcc version)
CCVER="gcc `$CC --version`"
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
set $CCVER
IFS="."
set $2