Mesa (7.11): configure.ac: Make --{without, with}-gallium-drivers work as expected

Ian Romanick idr at kemper.freedesktop.org
Tue Jul 19 23:41:07 UTC 2011


Module: Mesa
Branch: 7.11
Commit: 0e699cc0e823655bc0085477a55a528f45c2cafd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e699cc0e823655bc0085477a55a528f45c2cafd

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Jun 22 11:35:27 2011 -0700

configure.ac: Make --{without,with}-gallium-drivers work as expected

This version is mostly Dan's post to the mesa-dev mailing list on
6/22/2011.

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>
(cherry picked from commit db311b45beb60630ad3e3c803631c2b6c1472347)

---

 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 085e328..7d96ed9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -578,6 +578,13 @@ AC_ARG_WITH([gallium-drivers],
     [with_gallium_drivers="$withval"],
     [with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT"])
 
+# Doing '--without-gallium-drivers' will set this variable to 'no'.  Clear it
+# here so that the script doesn't choke on an unknown driver name later.
+case "$with_gallium_drivers" in
+    yes) with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT" ;;
+    no) with_gallium_drivers='' ;;
+esac
+
 if test "x$enable_opengl" = xno -a \
         "x$enable_gles1" = xno -a \
         "x$enable_gles2" = xno -a \




More information about the mesa-commit mailing list