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

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