From f84a2e26082943436e86c70bb309e50ffd7261bf Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 27 Aug 2021 03:17:11 +0000 Subject: [PATCH] configure.in: make XShm.h test compatible with modern autotools https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Present-But-Cannot-Be-Compiled.html --- configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 6c21407..ed8d0a6 100644 --- a/configure.in +++ b/configure.in @@ -99,7 +99,13 @@ AC_PATH_X if test "$no_x" != "yes" ; then with_x=yes AC_CHECK_LIB(Xext, XShmCreateImage) -AC_CHECK_HEADERS(sys/ipc.h sys/shm.h X11/extensions/XShm.h) +AC_CHECK_HEADERS(sys/ipc.h sys/shm.h X11/Xlib.h X11/Xutil.h X11/keysym.h X11/extensions/XShm.h, [], [], [[ +#include +#include +#include +#define _SVID_SOURCE +#define _XOPEN_SOURCE +]]) test "$x_includes" && XINCS="-I$x_includes" test "$x_libraries" && XLIBS="-L$x_libraries" else -- 2.11.4.GIT