summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2004-12-13 21:35:21 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2004-12-13 21:35:21 +0000
commitc37e8062821ba536b08ec96503fb30abaf52c716 (patch)
tree9cc4d7656c96292693b926460336d778d2526ce7 /m4
parent7cf0008839f0e254a51f3dad9208bcc8f4ee648b (diff)
downloadxine-lib-c37e8062821ba536b08ec96503fb30abaf52c716.tar.gz
xine-lib-c37e8062821ba536b08ec96503fb30abaf52c716.tar.bz2
Ensure that -lXv is output if we're using libXv.so.
CVS patchset: 7250 CVS date: 2004/12/13 21:35:21
Diffstat (limited to 'm4')
-rw-r--r--m4/xv.m415
1 files changed, 11 insertions, 4 deletions
diff --git a/m4/xv.m4 b/m4/xv.m4
index 5a0de42a5..b2a6aff51 100644
--- a/m4/xv.m4
+++ b/m4/xv.m4
@@ -24,15 +24,22 @@ AC_DEFUN([AC_TEST_LIBXV],
[Define this if you have libXv installed])
ac_have_xv="yes"
- if test x$XV_LIB = "xlibXv.a" ; then
-
+ case x$XV_LIB 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"
-
- fi],
+ ;;
+ x*.so)
+ XV_LIB=`echo $XV_LIB | sed 's/^lib/-l/; s/\.so$//'`
+ ;;
+ *)
+ AC_MSG_ERROR([sorry, I don't know about $XV_LIB])
+ ;;
+ esac
+ ],
,
[$X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS])