summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2006-11-05 15:16:56 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2006-11-05 15:16:56 +0000
commitd73a763dd8a00220373a2756e56009b83631b846 (patch)
tree30e0419588c215df6c66704b43fba409e20d95da /m4
parent9554ee177df48f2ddd69e1bcc75caa7dad9b921e (diff)
downloadxine-lib-d73a763dd8a00220373a2756e56009b83631b846.tar.gz
xine-lib-d73a763dd8a00220373a2756e56009b83631b846.tar.bz2
Fix a compile problem which can mean that the Xv output plugin isn't linked
with libXv. Problem was that the pkgconfig test sets XV_LIBS, but XV_LIB was used elsewhere. So we change XV_LIB -> XV_LIBS. The same change is made for XVMC_LIB and XXMC_LIB in case of future use of pkgconfig. CVS patchset: 8360 CVS date: 2006/11/05 15:16:56
Diffstat (limited to 'm4')
-rw-r--r--m4/xv.m420
1 files changed, 10 insertions, 10 deletions
diff --git a/m4/xv.m4 b/m4/xv.m4
index b09e23626..6d58cd0e7 100644
--- a/m4/xv.m4
+++ b/m4/xv.m4
@@ -6,11 +6,11 @@ AC_DEFUN([AC_PATH_LIBXV_IMPL],
AC_MSG_CHECKING([for $1])
if test -f "$xv_path/$1"; then
AC_MSG_RESULT([found $1 in $xv_path])
- XV_LIB="$1"
+ XV_LIBS="$1"
else
if test -f "/usr/lib/$1"; then
AC_MSG_RESULT([found $1 in /usr/lib])
- XV_LIB="$1"
+ XV_LIBS="$1"
else
AC_MSG_RESULT([$1 not found in $xv_path])
fi
@@ -29,19 +29,19 @@ AC_DEFUN([AC_TEST_LIBXV],
[Define this if you have libXv installed])
ac_have_xv="yes"
- case x$XV_LIB in
+ case x$XV_LIBS in
x*.a)
AC_DEFINE(HAVE_XV_STATIC,
1,
[Define this if you have libXv.a])
ac_have_xv_static="yes"
- XV_LIB="$xv_path/$XV_LIB"
+ XV_LIBS="$xv_path/$XV_LIBS"
;;
x*.so)
- XV_LIB=`echo $XV_LIB | sed 's/^lib/-l/; s/\.so$//'`
+ XV_LIBS=`echo $XV_LIBS | sed 's/^lib/-l/; s/\.so$//'`
;;
*)
- AC_MSG_ERROR([sorry, I don't know about $XV_LIB])
+ AC_MSG_ERROR([sorry, I don't know about $XV_LIBS])
;;
esac
],
@@ -52,10 +52,10 @@ AC_DEFUN([AC_TEST_LIBXV],
dnl xine_check use Xv functions API.
dnl -----------------------------------------------
if test x$ac_have_xv = "xyes"; then
- EXTRA_X_LIBS="-L$xv_path $XV_LIB -lXext"
+ EXTRA_X_LIBS="-L$xv_path $XV_LIBS -lXext"
EXTRA_X_CFLAGS=""
fi
- AC_SUBST(XV_LIB)
+ AC_SUBST(XV_LIBS)
AC_SUBST(EXTRA_X_LIBS)
AC_SUBST(EXTRA_X_CFLAGS)
])
@@ -84,7 +84,7 @@ AC_DEFUN([AC_FIND_LIBXV],
fi
# Try the other lib if prefered failed
- if test x$XV_LIB = x; then
+ if test x$XV_LIBS = x; then
if ! test "x$xv_prefer_shared" = "xyes"; then
AC_PATH_LIBXV_IMPL([libXv.so])
else
@@ -92,7 +92,7 @@ AC_DEFUN([AC_FIND_LIBXV],
fi
fi
- if ! test x$XV_LIB = x; then
+ if ! test x$XV_LIBS = x; then
AC_TEST_LIBXV
fi
])