Mesa (master): configure: Fix matching for dri driver to actually work

Kristian Høgsberg krh at kemper.freedesktop.org
Thu Jan 7 15:46:47 UTC 2010


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

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Thu Jan  7 10:29:29 2010 -0500

configure: Fix matching for dri driver to actually work

The shell case statement obviously only evaluates the first matching
block.  Thanks to Julien Cristau for spotting the bug.

---

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

diff --git a/configure.ac b/configure.ac
index d3fbd02..d8af5ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -797,7 +797,9 @@ case $DRI_DIRS in
 *i915*|*i965*)
     PKG_CHECK_MODULES([INTEL], [libdrm_intel])
     ;;
+esac
 
+case $DRI_DIRS in
 *radeon*|*r200*|*r300*|*r600*)
     PKG_CHECK_MODULES([LIBDRM_RADEON],
 		      [libdrm_radeon libdrm >= $LIBDRM_RADEON_REQUIRED],




More information about the mesa-commit mailing list