configure: Require LLVM 3.1.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 12 May 2014 15:30:51 +0000 (16:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 May 2014 10:04:59 +0000 (11:04 +0100)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
configure.ac

index 99a761a42fe690b00bd5dc6100c0dd5ce351abbd..b4a16060fd0cd02d5525adf0246ecb221beda93b 100644 (file)
@@ -1624,6 +1624,12 @@ if test "x$enable_gallium_llvm" = xyes; then
             LLVM_VERSION_INT=`echo $LLVM_VERSION | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\10\2/g'`
         fi
 
+        LLVM_REQUIRED_VERSION_MAJOR="3"
+        LLVM_REQUIRED_VERSION_MINOR="1"
+        if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then
+            AC_MSG_ERROR([LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR or newer is required])
+        fi
+
         LLVM_COMPONENTS="engine bitwriter"
         if $LLVM_CONFIG --components | grep -qw 'mcjit'; then
             LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"