diff options
author | Marek Olšák <[email protected]> | 2011-07-23 15:57:51 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-07-25 23:47:22 +0200 |
commit | 99fba503b112a69a2fc14b7dd40684d9a6a1972a (patch) | |
tree | 290284f5e87ec95229b482b5956de37e37a206bb /configure.ac | |
parent | 84f8548dfcc7de55e162359e2e39af2614903cbe (diff) |
configure.ac: do not check for llvm-config if llvm is disabled
NOTE: This is a candidate for the 7.11 branch.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 0ea264ef042..5c832e64669 100644 --- a/configure.ac +++ b/configure.ac @@ -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'` |