diff options
author | Matt Turner <mattst88@gmail.com> | 2022-04-10 12:40:13 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2022-04-10 12:40:13 -0700 |
commit | c7daccd105a74fe97adb2c8e2842e3b19d5dd34c (patch) | |
tree | fd6e104e3cac13ee0cd52a6e8d2efe16fc68bf9a | |
parent | df5bb7f4e4039192571de75179658ee9c2ee58eb (diff) |
configure.ac: Add option to disable Xinerama
Bug: https://bugs.gentoo.org/384371
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 63f2092..02cedf9 100644 --- a/configure.ac +++ b/configure.ac @@ -330,7 +330,13 @@ AC_SUBST(SHELL_CMD) PKG_CHECK_MODULES(XDM, [xmu x11 xau xproto >= 7.0.17]) -PKG_CHECK_EXISTS(xinerama, [ +AC_ARG_WITH(xinerama, + AS_HELP_STRING([--with-xinerama], + [Use Xinerama (default is YES if installed)]), + [USE_XINERAMA="$withval"], + PKG_CHECK_EXISTS(xinerama, [USE_XINERAMA="yes"], [USE_XINERAMA="no"])) + +if test "x$USE_XINERAMA" = "xyes" ; then AC_DEFINE([USE_XINERAMA], 1, [Define to 1 to use XINERAMA in greeter & chooser]) PKG_CHECK_MODULES(XINERAMA, xinerama) @@ -338,7 +344,7 @@ PKG_CHECK_EXISTS(xinerama, [ CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS" GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS" GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS" -]) +fi # Xft text drawing for the greeter screen AC_ARG_WITH(xft, |