configure.ac: Avoid running llvm-config when it hadn't been checked for.
authorCyril Brulebois <kibi@debian.org>
Wed, 15 Jun 2011 13:50:02 +0000 (15:50 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 19 Jun 2011 19:15:55 +0000 (21:15 +0200)
If --disable-gallium is passed, llvm-config isn't checked for, so mark
it explicitly as absent, through LLVM_CONFIG=no.

Passing --disable-gallium would result in:
| ../configure: line 9739: --version: command not found
| ../configure: line 9740: --cppflags: command not found
| ../configure: line 9741: --libs: command not found
| ../configure: line 9743: --ldflags: command not found

With this commit, one gets that instead:
| configure: error: LLVM is required to build Gallium R300 on x86 and x86_64

Signed-off-by: Cyril Brulebois <kibi@debian.org>
configure.ac

index b2a0f66c68bcba2e03bb3422b2ad43ef51dd98a0..871b16e1ec7cd68c135e0c51e2e53087b7d97ec8 100644 (file)
@@ -1511,6 +1511,8 @@ 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])