configure.ac: do not check for llvm-config if llvm is disabled
authorMarek Olšák <maraeo@gmail.com>
Sat, 23 Jul 2011 13:57:51 +0000 (15:57 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 25 Jul 2011 21:47:22 +0000 (23:47 +0200)
NOTE: This is a candidate for the 7.11 branch.

configure.ac

index 0ea264e..5c832e6 100644 (file)
@@ -1699,9 +1699,6 @@ dnl Gallium configuration
 dnl
 if test "x$with_gallium_drivers" != x; then
     SRC_DIRS="$SRC_DIRS gallium gallium/winsys gallium/targets"
-    AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
-else
-    LLVM_CONFIG=no
 fi
 
 AC_SUBST([LLVM_CFLAGS])
@@ -1821,6 +1818,8 @@ if test "x$enable_gallium_llvm" = xauto; then
     esac
 fi
 if test "x$enable_gallium_llvm" = xyes; then
+    AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
+
     if test "x$LLVM_CONFIG" != xno; then
        LLVM_VERSION=`$LLVM_CONFIG --version`
        LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed 's/-DNDEBUG\>//g'`