From 34a7272573431a9a0fabb94012f902198a3ac9a7 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 26 Apr 2019 10:49:07 +0200 Subject: build: fix present.h detection With xserver 1.20.4 it's necessary to include xorg-server.h before present.h: In file included from /usr/include/xorg/randrstr.h:46, from /usr/include/xorg/present.h:27, from conftest.c:37: /usr/include/xorg/servermd.h:51:2: error: #error Drivers must include xorg-server.h before any other xserver headers Signed-off-by: Lubomir Rintel Signed-off-by: Russell King --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c417c46..22ed76e 100644 --- a/configure.ac +++ b/configure.ac @@ -296,7 +296,9 @@ PKG_CHECK_MODULES(PRESENT, [presentproto >= 1.0], , PRESENT=no) if test x$PRESENT != xno; then save_CFLAGS=$CFLAGS CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS" - AC_CHECK_HEADERS([present.h], PRESENT=yes, PRESENT=no, [#include ]) + AC_CHECK_HEADERS([present.h], PRESENT=yes, PRESENT=no, + [#include ] + [#include ]) CFLAGS=$save_CFLAGS fi AC_MSG_CHECKING([whether to include PRESENT support]) -- cgit