From: Emil Velikov Date: Sun, 16 Apr 2017 00:46:59 +0000 (+0100) Subject: configure.ac: check require_basic_egl only if egl enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4516bfbd309a6996c18f577de47b13e33dce0828;p=mesa.git 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 Reviewed-by: Nicolai Hähnle --- diff --git a/configure.ac b/configure.ac index e1c60d842b5..957d15df8ca 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])