configure.ac: Fix build with git-svn llvm version string
authorTom Stellard <thomas.stellard@amd.com>
Tue, 9 Sep 2014 11:04:20 +0000 (07:04 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 9 Sep 2014 13:47:25 +0000 (09:47 -0400)
Reviewed-and-tested-by: Jan Vesely <jan.vesely@rutgers.edu>
configure.ac

index be85fd51bc8337461bb91556a519b3fb4f37511d..176c220285acaa21bcda12aff46166a48d82e6a8 100644 (file)
@@ -1687,7 +1687,7 @@ if test "x$enable_gallium_llvm" = xyes; then
     fi
 
     if test "x$LLVM_CONFIG" != xno; then
-        LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
+        LLVM_VERSION=`$LLVM_CONFIG --version | grep -o '^[[0-9.]]\+'`
         LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
         LLVM_BINDIR=`$LLVM_CONFIG --bindir`
         LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`