Mesa (master): egl: Build egl_dri2 only when xcb-dri2 is available.
Chia-I Wu
olv at kemper.freedesktop.org
Fri Jul 16 11:44:55 UTC 2010
Module: Mesa
Branch: master
Commit: bb217ba76a9c3823e074ec7708f07233a85eb4ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb217ba76a9c3823e074ec7708f07233a85eb4ac
Author: Chia-I Wu <olv at lunarg.com>
Date: Fri Jul 16 19:39:58 2010 +0800
egl: Build egl_dri2 only when xcb-dri2 is available.
The driver does not build when xcb-dri2 is not available.
---
configure.ac | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index f52c6db..1b116ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -970,12 +970,11 @@ if test "x$enable_egl" = xyes; then
if test "$have_xcb_dri2" = yes; then
EGL_DRIVER_DRI2=dri2
DEFINES="$DEFINES -DHAVE_XCB_DRI2"
+ if test "$have_libudev" = yes; then
+ DEFINES="$DEFINES -DHAVE_LIBUDEV"
+ fi
fi
- if test "$have_libudev" = yes; then
- EGL_DRIVER_DRI2=dri2
- DEFINES="$DEFINES -DHAVE_LIBUDEV"
- fi
EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS $EGL_DRIVER_DRI2"
fi
More information about the mesa-commit
mailing list