Mesa (master): configure.ac: Don' t check LLVM version in gallium_require_llvm

Emil Velikov evelikov at kemper.freedesktop.org
Wed Jan 18 13:25:35 UTC 2017


Module: Mesa
Branch: master
Commit: 1a0aa468f354f0ee94dd383cd40ae915584624aa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a0aa468f354f0ee94dd383cd40ae915584624aa

Author: Tobias Droste <tdroste at gmx.de>
Date:   Thu Dec  8 03:03:40 2016 +0100

configure.ac: Don't check LLVM version in gallium_require_llvm

This is actually not needed because the version is checked later.

Line 2609:
if test "x$enable_gallium_llvm" == "xyes"; then
    llvm_require_version $LLVM_REQUIRED_GALLIUM "gallium"
    llvm_add_default_components "gallium"

    HAVE_GALLIUM_LLVM=xyes
    DEFINES="${DEFINES} -DHAVE_GALLIUM_LLVM"
fi

Signed-off-by: Tobias Droste <tdroste at gmx.de>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 configure.ac | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5740da6..655b76e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2387,9 +2387,7 @@ dnl
 dnl Gallium helper functions
 dnl
 gallium_require_llvm() {
-    if test "x$enable_gallium_llvm" = "xyes"; then
-        llvm_require_version $LLVM_REQUIRED_GALLIUM "gallium"
-    else
+    if test "x$enable_gallium_llvm" != "xyes"; then
         AC_MSG_ERROR([--enable-gallium-llvm is required when building $1])
     fi
 }




More information about the mesa-commit mailing list