Patch to to make xinerama optional.

The attached patch makes xinerama optional, in Is it ok?
(I don't know autoconf at all.)

It's taken from the Gentoo Linux. As far as I tested, it seems ok.
Its copyright is GPLv2.

Teika (Teika kazura)
diff --git a/ b/
index 63f7803..df9d241 100644
--- a/
+++ b/
@@ -81,11 +81,17 @@ XRANDR_LIBS=""
+AC_ARG_WITH([xinerama], [AS_HELP_STRING([--with-xinerama], [Include Xinerama support])], [], [with_xinerama=yes])
+if test "$with_xinerama" != "no"; then
 PKG_CHECK_MODULES(libXineRama, xinerama >= 1.0
 		  AC_DEFINE(HAVE_X11_EXTENSIONS_XINERAMA_H, 1, [Have xinerama])
 		  ,AC_MSG_ERROR([cannot locate libXineRama]))
 PKG_CHECK_MODULES(libXRandR, xrandr >= 1.0
 		  AC_DEFINE(HAVE_X11_EXTENSIONS_XRANDR_H, 1, [Have xrandr])

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]