[Mesa-dev] [PATCH 4/4] configure: Allow compiling egl_dri2 without xcb dri2

Benjamin Franzke benjaminfranzke at googlemail.com
Wed Feb 29 07:36:24 PST 2012


That is only when the egl x11 platform is not choosen to be build.
---
 configure.ac |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 92a0e52..345d865 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1418,12 +1418,13 @@ if test "x$enable_egl" = xyes; then
             DEFINES="$DEFINES -DHAVE_LIBUDEV"
         fi
         if test "x$enable_dri" = xyes; then
+            EGL_DRIVER_DRI2=dri2
+
             # build egl_dri2 when xcb-dri2 is available
             PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes],
             		  [have_xcb_dri2=yes],[have_xcb_dri2=no])
             
             if test "$have_xcb_dri2" = yes; then
-                EGL_DRIVER_DRI2=dri2
                 DEFINES="$DEFINES -DHAVE_XCB_DRI2"
                 # workaround a bug in xcb-dri2 generated by xcb-proto 1.6
 		save_LIBS="$LIBS"
@@ -1431,6 +1432,10 @@ if test "x$enable_egl" = xyes; then
                           [DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"])
 		LIBS="$save_LIBS"
             fi
+            case "$with_egl_platforms$have_xcb_dri2" in
+                *x11*no|no)
+                    AC_MSG_ERROR([egl_dri2 requires x11-xcb, xcb-dri2 and xcb-xfixes]) ;;
+            esac
 	fi
 
         EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS $EGL_DRIVER_DRI2"
-- 
1.7.3.4



More information about the mesa-dev mailing list