[vlc-commits] dvdcss: only use darwin libraries on darwin

Rafaël Carré git at videolan.org
Fri Nov 25 01:17:08 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Nov 24 19:16:46 2011 -0500| [fd8417918754a9d536bf621fa0a3bf8ca56d079e] | committer: Rafaël Carré

dvdcss: only use darwin libraries on darwin

simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd8417918754a9d536bf621fa0a3bf8ca56d079e
---

 configure.ac |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index a520c68..477f106 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1818,13 +1818,9 @@ darwin_libdvdcss_extralibs="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
 libdvdcss_extralibs=""
 test "${SYS}" = darwin && libdvdcss_extralibs="${darwin_libdvdcss_extralibs}"
 AC_CHECK_LIB(dvdcss, dvdcss_interface_2, [
-    VLC_ADD_LIBS([dvdread], [-ldvdcss])
-    VLC_ADD_LIBS([dvdnav], [-ldvdcss])
-    if test "${SYS}" = darwin; then
-        VLC_ADD_LIBS([dvdread], "${darwin_libdvdcss_extralibs}")
-        VLC_ADD_LIBS([dvdnav], "${darwin_libdvdcss_extralibs}")
-    fi
-    ],, "${darwin_libdvdcss_extralibs}")
+    VLC_ADD_LIBS([dvdread], -ldvdcss "${libdvdcss_extralibs}")
+    VLC_ADD_LIBS([dvdnav], -ldvdcss "${libdvdcss_extralibs}")
+    ],, "${libdvdcss_extralibs}")
 
 dnl
 dnl libdvdnav plugin



More information about the vlc-commits mailing list