configure: error out when building opencl without LLVM
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 15 May 2014 21:54:48 +0000 (22:54 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Jun 2014 21:45:05 +0000 (22:45 +0100)
Cc: Tom Stellard <thomas.stellard@amd.com>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
configure.ac

index a12f27ac21383e43bf00a41eb61d75449ede8878..7b0009d63e71646dbd61b82a990b9227b9a8829d 100644 (file)
@@ -1475,6 +1475,10 @@ 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