From: Rafaël Carré Date: Thu, 24 Nov 2011 23:27:35 +0000 (-0500) Subject: Link dvdread and dvdnav plugins to libdvdcss, always X-Git-Tag: 1.3.0-git~90 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1424165964f3c4b27269780f4d7eefd7107c6892;p=vlc Link dvdread and dvdnav plugins to libdvdcss, always Also add missing libraries for darwin --- diff --git a/configure.ac b/configure.ac index 2c0567a485..a520c68456 100644 --- a/configure.ac +++ b/configure.ac @@ -1811,10 +1811,21 @@ fi dnl dnl dvdread module: check for libdvdread dnl -dnl prepend -ldvdcss on OS that need it -AS_CASE(["${SYS}"], [mingw32|darwin], [VLC_ADD_LIBS([dvdread], [-ldvdcss])]) PKG_ENABLE_MODULES_VLC([DVDREAD], [], [dvdread], [dvdread input module], [auto]) +dnl libdvdcss +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}") + dnl dnl libdvdnav plugin dnl @@ -1823,9 +1834,6 @@ AC_ARG_ENABLE(dvdnav, [disable DVD navigation with libdvdnav (default auto)])]) if test "${enable_dvdnav}" != "no" then - dnl prepend -ldvdcss on OS that need it - AS_CASE(["${SYS}"], [mingw32|darwin], [VLC_ADD_LIBS([dvdnav], [-ldvdcss])]) - PKG_CHECK_MODULES(DVDNAV, dvdnav, [ VLC_ADD_PLUGIN([dvdnav]) VLC_ADD_CFLAGS([dvdnav],[${DVDNAV_CFLAGS}])