fix CCVER gathering for cross-compiling (the i386-mingw32msvc-gcc was

throwing the regex off)
This commit is contained in:
Bill Currie 2002-06-16 01:27:56 +00:00
parent 00f5d82a86
commit ba4b11da24

View file

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