egl: Build egl_dri2 only when xcb-dri2 is available.
authorChia-I Wu <olv@lunarg.com>
Fri, 16 Jul 2010 11:39:58 +0000 (19:39 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 16 Jul 2010 11:41:29 +0000 (19:41 +0800)
The driver does not build when xcb-dri2 is not available.

configure.ac

index f52c6db65a613378452735ab43c812e600aea74e..1b116ae50e8b63d46ceb35eb13c2a508b7c9ec7d 100644 (file)
@@ -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