Check for xextproto >= 7.1

A patch from »Add includes for fstat and struct stat« in state Mailinglist for xf86-video-armsoc

From: Heiko Stuebner <heiko@...> Date: Sat, 18 Apr 2015 14:38:17 +0200

Commit-Message

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@...>

Patch-Comment

configure.ac | 5 +++++ 1 file changed, 5 insertions(+)

Statistics

  • 5 lines added
  • 0 lines removed

Changes

--------------------------------- configure.ac ---------------------------------
index f476653..0a2acb1 100644
@@ -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
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...