autoconf: Fix --with-driver=xlib --enable-openvg.
authorChia-I Wu <olv@lunarg.com>
Mon, 3 Jan 2011 17:05:22 +0000 (01:05 +0800)
committerChia-I Wu <olv@lunarg.com>
Mon, 3 Jan 2011 17:13:49 +0000 (01:13 +0800)
st/egl should be enabled with --enable-openvg even the driver is xlib or
osmesa.  Also, GLX_DIRECT_RENDERING should not be defined because libdrm
is not checked.

configure.ac

index bd817753050d7c12313ca3808093e40df364e6a7..b451f7cc169e9597286086bd27d5cd2bfbd69bb9 100644 (file)
@@ -1352,7 +1352,7 @@ if test "x$enable_gallium_egl" = xauto; then
         enable_gallium_egl=$enable_egl
         ;;
     *)
-        enable_gallium_egl=no
+        enable_gallium_egl=$enable_openvg
         ;;
     esac
 fi
@@ -1467,10 +1467,6 @@ AC_SUBST([EGL_CLIENT_APIS])
 
 if test "x$HAVE_ST_EGL" = xyes; then
        GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl"
-       # define GLX_DIRECT_RENDERING even when the driver is not dri
-       if test "x$mesa_driver" != xdri -a "x$driglx_direct" = xyes; then
-            DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
-       fi
 fi
 
 if test "x$HAVE_ST_XORG" = xyes; then