configure: Only check for OpenCL without LLVM when the latter is certain
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 10 Jun 2014 02:25:04 +0000 (11:25 +0900)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 14:56:58 +0000 (10:56 -0400)
LLVM is enabled by default for some architectures, but the test was failing
before that.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
configure.ac

index 1525b20f9a8e781d49441bb5eade3c49154faed1..cb14c0c66230687588359d3191abfd5ad2cd59e4 100644 (file)
@@ -1462,10 +1462,6 @@ if test "x$enable_opencl" = xyes; then
         AC_MSG_ERROR([cannot enable OpenCL without Gallium])
     fi
 
-    if test "x$enable_gallium_llvm" != xyes; then
-        AC_MSG_ERROR([cannot enable OpenCL without LLVM])
-    fi
-
     if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then
         AC_MSG_ERROR([gcc >= 4.7 is required to build clover])
     fi
@@ -1766,6 +1762,10 @@ if test "x$enable_gallium_llvm" = xyes; then
 else
     MESA_LLVM=0
     LLVM_VERSION_INT=0
+
+    if test "x$enable_opencl" = xyes; then
+        AC_MSG_ERROR([cannot enable OpenCL without LLVM])
+    fi
 fi
 
 dnl Directory for XVMC libs