Mesa (17.1): configure.ac: check require_basic_egl only if egl enabled

Emil Velikov evelikov at kemper.freedesktop.org
Mon Apr 24 14:32:51 UTC 2017


Module: Mesa
Branch: 17.1
Commit: 10ff4b49dc49c0c663acad5f678eba0ca33744d6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=10ff4b49dc49c0c663acad5f678eba0ca33744d6

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Sun Apr 16 01:46:59 2017 +0100

configure.ac: check require_basic_egl only if egl enabled

Fixes: 1ac40173c2a ("configure.ac: simplify EGL requirements for drivers dependent on EGL")
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
(cherry picked from commit 4516bfbd309a6996c18f577de47b13e33dce0828)

---

 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index e1c60d842b..957d15df8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2466,7 +2466,9 @@ if test -n "$with_gallium_drivers"; then
         xvirgl)
             HAVE_GALLIUM_VIRGL=yes
             require_libdrm "virgl"
-            require_basic_egl "virgl"
+            if test "x$enable_egl" = xyes; then
+                require_basic_egl "virgl"
+            fi
             ;;
         *)
             AC_MSG_ERROR([Unknown Gallium driver: $driver])




More information about the mesa-commit mailing list