From 95e5141cc53222edede9d251fcf6adb3f54c5ed5 Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Sat, 18 Apr 2015 14:38:17 +0200
Subject: [PATCH] Check for xextproto >= 7.1

drmmode_display.c already tries to check if the xext proto is 7.1 or above
to include the correct header, but until now the used constant was not
checked/defined during configure at all.
Add the configure part based on what xf86-video-modesetting does.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index f476653..0a2acb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,11 @@ PKG_CHECK_MODULES(XORG,
                   pixman-1
                   $REQUIRED_MODULES)
 
+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 header files.
 AC_HEADER_STDC
 
-- 
2.1.4

