[Xf86-video-armsoc] [PATCH] Check for xextproto >= 7.1

Heiko Stübner heiko at sntech.de
Wed Jul 22 15:07:14 PDT 2015


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 at sntech.de>
---
I'm not sure what your patch submission expectations are, so
I've picked the three most active devs and the list :-)


 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




More information about the Xf86-video-armsoc mailing list