[vlc-commits] configure: remove dvb-check and enable ts demux/muxer if dvbpsi is present

Ilkka Ollakka git at videolan.org
Fri Apr 1 12:14:20 CEST 2011


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Apr  1 13:11:42 2011 +0300| [33cb31197beed19fef4aa4863cb941a3089a5d06] | committer: Ilkka Ollakka

configure: remove dvb-check and enable ts demux/muxer if dvbpsi is present

dtv is build automaticly and we anyway assume new enough libdvbpsi that has
pkg-config enabled. Also ts demux wasn't build automaticly previously (as
dvb was disabled by default some time ago).

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

 configure.ac |   51 ++++++++-------------------------------------------
 1 files changed, 8 insertions(+), 43 deletions(-)

diff --git a/configure.ac b/configure.ac
index dd5d6e2..5a64a55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1949,42 +1949,6 @@ if test "${enable_sftp}" = "yes"; then
 fi
 
 dnl
-dnl  libdvbpsi ts demux/mux
-dnl
-AC_ARG_ENABLE(dvb,
-  [  --enable-dvb            MPEG-TS and DVB support (default auto)])
-have_dvbpsi=no
-AS_IF([test "${enable_dvb}" != "no"], [
-    AC_CHECK_HEADERS([dvbpsi/dr.h],[
-      VLC_ADD_PLUGIN([ts])
-      if test "${enable_sout}" != "no"; then
-        AC_CHECK_LIB(dvbpsi, dvbpsi_SDTServiceAddDescriptor, [VLC_ADD_PLUGIN([mux_ts])], [], [-ldvbpsi])
-      fi
-      VLC_ADD_LIBS([mux_ts ts dvb],[-ldvbpsi])
-      have_dvbpsi=yes
-
-      AC_CHECK_LIB(dvbpsi, dvbpsi_GenSDTSections, [
-        AC_DEFINE(HAVE_DVBPSI_SDT, 1, [Define if you have dvbpsi_GenSDTSections.])
-      ], [], [${LIBS_ts}])
-    ],[
-      AS_IF([test -n "${enable_dvb}"], [
-        AC_MSG_ERROR([Could not find libdvbpsi on your system: you need at least version 0.1.6])
-      ], [
-        AC_MSG_WARN([Could not find libdvbpsi on your system: you need at least version 0.1.6])
-      ])
-    ],[ #if defined( HAVE_STDINT_H )
-        #   include <stdint.h>
-        #elif defined( HAVE_INTTYPES_H )
-        #   include <inttypes.h>
-        #endif
-        #include <dvbpsi/dvbpsi.h>
-        #include <dvbpsi/descriptor.h>
-        #include <dvbpsi/pat.h>
-        #include <dvbpsi/pmt.h>
-    ])
-])
-
-dnl
 dnl  Video4Linux2 plugin
 dnl
 AC_ARG_ENABLE(v4l2,
@@ -2139,13 +2103,15 @@ then
 fi
 
 dnl
-dnl  DVB-S/DVB-T/DVB-C satellite/teresterial/cable input
+dnl  libdvbpsi check for ts mux/demux
 dnl
-AS_IF([test "${have_dvbpsi}" = "yes" ], [
-  AC_CHECK_HEADER([linux/dvb/version.h], [
-    VLC_ADD_PLUGIN([dvb])
-  ])
-])
+PKG_WITH_MODULES([DVBPSI], [libdvbpsi],
+    VLC_ADD_PLUGIN([ts])
+if test "${enable_sout}" != "no"; then
+    VLC_ADD_PLUGIN([mux_ts])
+    VLC_ADD_LIBS([mux_ts],[-ldvbpsi])
+fi
+)
 
 dnl
 dnl  Screen capture module
@@ -4243,7 +4209,6 @@ AC_CONFIG_FILES([
   modules/access/Makefile
   modules/access/bd/Makefile
   modules/access/dshow/Makefile
-  modules/access/dvb/Makefile
   modules/access/mms/Makefile
   modules/access/rtp/Makefile
   modules/access/rtsp/Makefile



More information about the vlc-commits mailing list