[Mesa-stable] [PATCH] configure: don't try to build gallium DRI drivers if --disable-dri is set

Brian Paul brianp at vmware.com
Tue Feb 10 08:32:10 PST 2015


Before, if --disable-dri was set we were still testing the libdrm version
for r300, r600, vmware/svga.

Cc: "10.4, 10.5" <mesa-stable at lists.freedesktop.org>

---
I'm not an autoconf expert, so there might be a better way of doing this.
---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c2d775e..4b4aff0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -787,7 +787,11 @@ AC_ARG_ENABLE([gallium-tests],
 # Option for Gallium drivers
 
 # Keep this in sync with the --with-gallium-drivers help string default value
-GALLIUM_DRIVERS_DEFAULT="r300,r600,svga,swrast"
+if test "x$enable_dri" = xyes; then
+    GALLIUM_DRIVERS_DEFAULT="r300,r600,svga,swrast"
+else
+    GALLIUM_DRIVERS_DEFAULT="swrast"
+fi
 
 AC_ARG_WITH([gallium-drivers],
     [AS_HELP_STRING([--with-gallium-drivers@<:@=DIRS...@:>@],
-- 
1.9.1



More information about the mesa-stable mailing list