updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tvtime_patched / tvtime-1.0.2-xinerama.patch
blob0964d055768db4b0f512e7f9ef587a466828af77
1 Index: tvtime-1.0.2/configure.ac
2 ===================================================================
3 --- tvtime-1.0.2.orig/configure.ac
4 +++ tvtime-1.0.2/configure.ac
5 @@ -99,6 +99,8 @@ dnl ------------------------------------
6 dnl check for X11, Xv and XF86VidModeExtension
7 dnl ---------------------------------------------
8 AC_PATH_XTRA
9 +AC_ARG_WITH([xinerama],
10 + [AS_HELP_STRING([--without-xinerama], [Disable Xinerama extension support (default: check)])])
11 if test x"$no_x" != x"yes"; then
12 dnl check for Xshm
13 AC_CHECK_LIB([Xext],[XShmCreateImage],
14 @@ -112,11 +114,13 @@ if test x"$no_x" != x"yes"; then
15 X11_LIBS="$X11_LIBS -lXv"],,
16 [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
18 - dnl check for Xinerama
19 - AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
20 - [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
21 - X11_LIBS="$X11_LIBS -lXinerama"],,
22 - [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
23 + if test "x$with_xinerama" != "xno"; then
24 + dnl check for Xinerama
25 + AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
26 + [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
27 + X11_LIBS="$X11_LIBS -lXinerama"],,
28 + [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
29 + fi
31 dnl check for XTest
32 AC_CHECK_LIB([Xtst],[XTestFakeKeyEvent],