changeset 24957:24af717a54b3

add support for newer libdca
author rathann
date Tue, 06 Nov 2007 23:44:53 +0000
parents 729f5c704763
children d86224fac2b5
files configure
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Nov 06 15:57:36 2007 +0000
+++ b/configure	Tue Nov 06 23:44:53 2007 +0000
@@ -5983,11 +5983,13 @@
 #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'