[llvm-commits] CVS: llvm/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Wed Jul 27 14:58:50 PDT 2005
Changes in directory llvm/autoconf:
configure.ac updated: 1.192 -> 1.193
---
Log message:
Fix PR608: http://llvm.cs.uiuc.edu/PR608 :
Previously the script assumed the version number was the last field, now
it assumes it is the first sequence of digits.
---
Diffs of the changes: (+1 -1)
configure.ac | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.192 llvm/autoconf/configure.ac:1.193
--- llvm/autoconf/configure.ac:1.192 Fri Jul 22 15:54:01 2005
+++ llvm/autoconf/configure.ac Wed Jul 27 16:58:38 2005
@@ -404,7 +404,7 @@
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])
More information about the llvm-commits
mailing list