diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-09 18:25:42 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-09 18:25:42 +0000 |
commit | 66e1b5c8ed24d6d44098971168486f96cabd8dba (patch) | |
tree | 3f8c85122b6c21365745e1236af53a958acdee55 | |
parent | 33b60f66f298a2215495f86c0e97ae4b97ec863d (diff) |
Allow disabling internal libdvdcss.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20821 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 18 | ||||
-rw-r--r-- | libdvdread/Makefile | 9 |
2 files changed, 24 insertions, 3 deletions
@@ -241,6 +241,7 @@ Optional features: --disable-dvdnav disable libdvdnav [autodetect] --disable-dvdread disable libdvdread [autodetect] --disable-dvdread-internal disable internal libdvdread [autodetect] + --disable-libdvdcss-internal disable internal libdvdcss [autodetect] --disable-cdparanoia disable cdparanoia [autodetect] --disable-bitmap-font disable bitmap font support [enable] --disable-freetype disable FreeType 2 font rendering [autodetect] @@ -1626,6 +1627,7 @@ _dvdnav=auto _dvdnavconfig=dvdnav-config _dvdread=auto _dvdread_internal=auto +_libdvdcss_internal=auto _xanim=auto _real=auto _live=auto @@ -1860,6 +1862,8 @@ for ac_option do --disable-dvdread) _dvdread=no ;; --enable-dvdread-internal) _dvdread_internal=yes ;; --disable-dvdread-internal) _dvdread_internal=no ;; + --enable-libdvdcss-internal) _libdvdcss_internal=yes ;; + --disable-libdvdcss-internal) _libdvdcss_internal=no ;; --enable-dvdnav) _dvdnav=yes ;; --disable-dvdnav) _dvdnav=no ;; --enable-xanim) _xanim=yes ;; @@ -5197,6 +5201,19 @@ fi echores "$_dvdread" +echocheck "internal libdvdcss" +if test "$_libdvdcss_internal" = auto ; then + _libdvdcss_internal=no + test "$_dvdread_internal" = yes && _libdvdcss_internal=yes +fi +if test "$_libdvdcss_internal" = yes ; then + _inputmodules="libdvdcss $_inputmodules" +else + _noinputmodules="libdvdcss $_noinputmodules" +fi +echores "$_libdvdcss_internal" + + echocheck "cdparanoia" if test "$_cdparanoia" = auto ; then cat > $TMPC <<EOF @@ -7426,6 +7443,7 @@ PVR = $_pvr VCD = $_vcd DVDREAD = $_dvdread DVDREAD_INTERNAL = $_dvdread_internal +DVDCSS_INTERNAL = $_libdvdcss_internal DVDNAV = $_dvdnav WIN32DLL = $_win32 W32_DEP = $_dep_win32 diff --git a/libdvdread/Makefile b/libdvdread/Makefile index afce21d535..3db80769b5 100644 --- a/libdvdread/Makefile +++ b/libdvdread/Makefile @@ -18,9 +18,12 @@ LIB=libdvdread .SUFFIXES: .c .o -CFLAGS= -I../libdvdcss -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ - -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \ - -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \ + -DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + +ifeq ($(DVDCSS_INTERNAL),yes) +CFLAGS += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H +endif .c.o: $(CC) $(CFLAGS) -c -o $@ $< |