[llvm-commits] CVS: llvm/configure

Reid Spencer reid at x10sys.com
Wed Jul 27 14:58:50 PDT 2005



Changes in directory llvm:

configure updated: 1.196 -> 1.197
---
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 |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/configure
diff -u llvm/configure:1.196 llvm/configure:1.197
--- llvm/configure:1.196	Fri Jul 22 15:54:00 2005
+++ llvm/configure	Wed Jul 27 16:58:38 2005
@@ -24842,7 +24842,7 @@
 
 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






More information about the llvm-commits mailing list