Patch to configure.in to make xinerama optional.
- From: Teika Kazura <teika lavabit com>
- To: sawfish-list gnome org
- Subject: Patch to configure.in to make xinerama optional.
- Date: Tue, 27 Apr 2010 14:30:41 +0900 (JST)
The attached patch makes xinerama optional, in configure.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.
Regards,
Teika (Teika kazura)
diff --git a/configure.in b/configure.in
index 63f7803..df9d241 100644
--- a/configure.in
+++ b/configure.in
@@ -81,11 +81,17 @@ XRANDR_LIBS=""
XFT_LIBS=""
XFT_CFLAGS=""
+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
,XINERAMA_LIBS="-lXinerama"
AC_DEFINE(HAVE_X11_EXTENSIONS_XINERAMA_H, 1, [Have xinerama])
,AC_MSG_ERROR([cannot locate libXineRama]))
+fi
+
PKG_CHECK_MODULES(libXRandR, xrandr >= 1.0
,XRANDR_LIBS="-lXrandr"
AC_DEFINE(HAVE_X11_EXTENSIONS_XRANDR_H, 1, [Have xrandr])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]