summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-04 13:09:43 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-04 13:09:43 +0000
commitc6d3fb751199f94c262c44be0e21b7e15b2fd818 (patch)
tree28072f58fdb66f305247487d263e2d6c024017b2
parentd0a336320946b91cfb0841159e0a3731e5d17087 (diff)
downloadxine-lib-c6d3fb751199f94c262c44be0e21b7e15b2fd818.tar.gz
xine-lib-c6d3fb751199f94c262c44be0e21b7e15b2fd818.tar.bz2
Also use pkg-config to find xv and xinerama.
CVS patchset: 8356 CVS date: 2006/11/04 13:09:43
-rw-r--r--configure.ac27
1 files 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