summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-03-23 14:54:05 +0000
committerDave Airlie <airlied@redhat.com>2012-03-23 14:54:05 +0000
commit6760dfc692dd4d3f662cc82e5b7610f8ec2ebdc0 (patch)
tree01c003a8b7f48377cff95534a6c072df4b8d9aae
parent3b5fded4dc0c1c77bdd105b104dcb6ba21864d5c (diff)
modesetting: fix build against older Xext
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 35cad4d..aa4ae9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,12 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
PKG_CHECK_MODULES(XORG, [xorg-server xproto fontsproto $REQUIRED_MODULES])
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
+PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
+ HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]),
+ HAVE_XEXTPROTO_71="no")
+AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
+
+
# Checks for libraries.
# Checks for header files.