diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2004-12-13 21:35:21 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2004-12-13 21:35:21 +0000 |
commit | c37e8062821ba536b08ec96503fb30abaf52c716 (patch) | |
tree | 9cc4d7656c96292693b926460336d778d2526ce7 /m4 | |
parent | 7cf0008839f0e254a51f3dad9208bcc8f4ee648b (diff) | |
download | xine-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.m4 | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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]) |