diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-15 10:38:09 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-16 22:15:39 +0000 |
commit | bfd2bb40274d1242001d295a4010211fd51b0fc3 (patch) | |
tree | 277fb6eec6441d1ac926e7d825791583a17eb2c4 /configure.ac | |
parent | 3771387ad11b5842a83e58a4b373c2acdd827bd2 (diff) |
sna: Correct dependencies for DRI2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2c407607..3fd28b0f 100644 --- a/configure.ac +++ b/configure.ac @@ -175,7 +175,7 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) PKG_CHECK_MODULES(XORG, [xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES]) PKG_CHECK_MODULES(DRM, [libdrm >= 2.4.23]) PKG_CHECK_MODULES(DRI, [xf86driproto], , DRI=no) -PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6]) +PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6],, DRI2=no) PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10]) sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` @@ -218,6 +218,10 @@ else AC_MSG_ERROR([DRI requested but prerequisites not found]) fi fi +AM_CONDITIONAL(DRI2, test x$DRI2 != xno) +if test "x$DRI2" != "xno"; then + AC_DEFINE(USE_DRI2,1,[Enable DRI2 driver support]) +fi if test "$XVMC" = yes; then PKG_CHECK_MODULES(XVMCLIB, |