[MPlayer-dev-eng] [PATCH] support for recent libdca

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Wed Nov 7 00:35:17 CET 2007


Hello.

Recent libdca versions no longer carry libdts.so.*, but have libdca.so.*
instead. This patch adds support for new versions while keeping backward
compatibility. I'll apply soon if there are no objections.

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
-------------- next part --------------
diff -up MPlayer-1.0rc2/configure.dca MPlayer-1.0rc2/configure
--- MPlayer-1.0rc2/configure.dca	2007-11-06 23:56:38.000000000 +0100
+++ MPlayer-1.0rc2/configure	2007-11-07 00:01:07.000000000 +0100
@@ -5984,11 +5984,13 @@ if test "$_libdca" = auto ; then
 #include <dts.h>
 int main(void) { dts_init (0); return 0; }
 EOF
-  cc_check -ldts $_ld_lm && _libdca=yes
+  for _ld_dca in -ldts -ldca ; do
+    cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \
+      && _libdca=yes && break
+  done
 fi
 if test "$_libdca" = yes ; then
   _def_libdca='#define USE_LIBDCA 1'
-  _ld_extra="$_ld_extra -ldts"
   _codecmodules="libdca $_codecmodules"
 else
   _def_libdca='#undef USE_LIBDCA'


More information about the MPlayer-dev-eng mailing list