Fix PR608:

Previously the script assumed the version number was the last field, now
it assumes it is the first sequence of digits.

llvm-svn: 22527
This commit is contained in:
Reid Spencer 2005-07-27 21:58:38 +00:00
parent bd51ec7461
commit e82a9e2218
3 changed files with 5 additions and 5 deletions

View File

@ -404,7 +404,7 @@ fi
dnl Verify that GCC is version 3.0 or higher
if test "$GCC" = "yes"
then
gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
gccmajor=`$CC --version | head -n 1 | sed 's/[[^0-9]]*\([[0-9.]]\).*/\1/'`
if test "$gccmajor" -lt "3"
then
AC_MSG_ERROR([gcc 3.x required, but you have a lower version])

2
configure vendored
View File

@ -24842,7 +24842,7 @@ fi
if test "$GCC" = "yes"
then
gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
if test "$gccmajor" -lt "3"
then
{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5