From c6d3fb751199f94c262c44be0e21b7e15b2fd818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 4 Nov 2006 13:09:43 +0000 Subject: Also use pkg-config to find xv and xinerama. CVS patchset: 8356 CVS date: 2006/11/04 13:09:43 --- configure.ac | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 5010a7d79..c2d539579 100644 --- a/configure.ac +++ b/configure.ac @@ -630,7 +630,10 @@ else fi if test x"$no_x" != "xyes"; then - AC_FIND_LIBXV + PKG_CHECK_MODULES([XV], [xv], [ + ac_have_xv="yes" + AC_DEFINE([HAVE_XV], [1], [Define this if you have libXv installed]) + ], [AC_FIND_LIBXV]) fi AM_CONDITIONAL(HAVE_XV, test x$ac_have_xv = "xyes") @@ -813,15 +816,19 @@ dnl Checks for Xinerama extension dnl --------------------------------------------- AC_ARG_ENABLE([xinerama], - AC_HELP_STRING([--disable-xinerama], [do not build Xinerama support]), - [with_xinerama=$enableval], [with_xinerama=yes]) - -if test "x$with_xinerama" = "xyes"; then - AC_CHECK_LIB(Xinerama, XineramaQueryExtension, - [X_LIBS="$X_LIBS -lXinerama" - AC_DEFINE(HAVE_XINERAMA,1,[Define this if you have libXinerama installed]) - ac_have_xinerama="yes"],, - [$X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS]) + AC_HELP_STRING([--disable-xinerama], [do not build Xinerama support])) + +if test "x$enable_xinerama" != "xno"; then + PKG_CHECK_MODULES([XINERAMA], [xinerama], [ac_have_xinerama=yes], [ + AC_CHECK_LIB(Xinerama, XineramaQueryExtension, + [XINERAMA_LIBS="-lXinerama" + ac_have_xinerama="yes"],, + [$X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS]) + ]) + if test "x$ac_have_xinerama" = "xyes"; then + AC_DEFINE(HAVE_XINERAMA,1,[Define this if you have libXinerama installed]) + X_LIBS="${X_LIBS} ${XINERAMA_LIBS}" + fi else ac_have_xinerama=no fi -- cgit v1.2.3