configure: Bail out on llvm-config component error
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 12 Feb 2016 23:58:55 +0000 (18:58 -0500)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 16 Feb 2016 15:09:33 +0000 (10:09 -0500)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
configure.ac

index 2750d4d56c7814a7a7d885c427c1c835070b22f4..57330cb55cb6c65ffbd5d965eb80555726447ba2 100644 (file)
@@ -2295,6 +2295,9 @@ dnl in LLVM_LIBS.
 
 if test "x$MESA_LLVM" != x0; then
 
+    if ! $LLVM_CONFIG --libs ${LLVM_COMPONENTS} >/dev/null; then
+       AC_MSG_ERROR([Calling ${LLVM_CONFIG} failed])
+    fi
     LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
 
     dnl llvm-config may not give the right answer when llvm is a built as a