Accommodate LLVM versions with SVN revisions (e.g. 5.0.1svn-r315274)
@@ -453,10 +453,11 @@ else
AC_CHECK_FILE($llvmConf,
[
LLVM_VERSION=$($llvmConf --version)
+LLVM_MAJOR_VERSION=$($llvmConf --version | cut -d '.' -f 1-2)
LLVM_LIBDIR=$($llvmConf --libdir)
LLVM_BINDIR=$($llvmConf --bindir)
-LLVM_SHARED_LIB=-lLLVM-$LLVM_VERSION
-LLVM_SHARED_LIB_FILE=$LLVM_LIBDIR/libLLVM-$LLVM_VERSION$LIBRARY_SUFFIX
+LLVM_SHARED_LIB=-lLLVM-$LLVM_MAJOR_VERSION
+LLVM_SHARED_LIB_FILE=$LLVM_LIBDIR/libLLVM-$LLVM_MAJOR_VERSION$LIBRARY_SUFFIX
LLVM_CPPFLAGS=$($llvmConf --cppflags)
LLVM_LDFLAGS="$($llvmConf --ldflags) $LLVM_SHARED_LIB"
LLVM_INCLUDEDIR=$($llvmConf --includedir)
