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 f52c6db..1b116ae 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