summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-29 17:01:34 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-29 17:01:48 +0100
commit1b0754ce4db888b01b291d64330751fe0a77eafc (patch)
tree49dbc4ea02eea255f660458b357d16bf25b8fc18 /configure.ac
parent00884f28e2610e266dc653a34b45da1af2613e31 (diff)
Build hybrid Wayland/X11 w/ configure: check for Xinerama, et al
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac35
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4d67332c5..27e1845e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1089,6 +1089,41 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
AC_MSG_NOTICE([--enable-wayland: Pango libs and/or headers could not be found.])
AC_MSG_ERROR([Aborting.])
])
+
+ dnl check for Xinerama, Xcursor, Xfixes, Xrender, Xregion.h
+ AS_IF([test x$enable_x11 != xno], [
+ xinerama_found=no
+ AS_IF([$PKGCONFIG --exists xinerama], [
+ AC_DEFINE(HAVE_XINERAMA)
+ LIBS="$LIBS $($PKGCONFIG --libs xinerama)"
+ xinerama_found=yes
+ ])
+
+ xcursor_found=no
+ AS_IF([$PKGCONFIG --exists xcursor], [
+ AC_DEFINE(HAVE_XCURSOR)
+ LIBS="$LIBS $($PKGCONFIG --libs xcursor)"
+ xcursor_found=yes
+ ])
+
+ xfixes_found=no
+ AS_IF([$PKGCONFIG --exists xfixes], [
+ AC_DEFINE(HAVE_XFIXES)
+ LIBS="$LIBS $($PKGCONFIG --libs xfixes)"
+ xfixes_found=yes
+ ])
+
+ xrender_found=no
+ AS_IF([$PKGCONFIG --exists xrender], [
+ AC_DEFINE(HAVE_XRENDER)
+ LIBS="$LIBS $($PKGCONFIG --libs xrender)"
+ xrender_found=yes
+ ])
+
+ AC_CHECK_HEADER([X11/Xregion.h], [
+ AC_DEFINE([HAVE_X11_XREGION_H])
+ ], [], [#include <X11/Xlib.h>])
+ ])
], [