From: Andreas Monzner Date: Tue, 15 Apr 2008 14:31:06 +0000 (+0000) Subject: dont build dvdplugin when dreamdvd lib ist not available X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=0601ae82d8373dede75590ad670e417e29f1cff7 dont build dvdplugin when dreamdvd lib ist not available --- diff --git a/configure.ac b/configure.ac index 50e30aa..4348587 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,14 @@ AC_ARG_WITH(libsdl, [[withsdl=yes]] ) +AC_CHECK_HEADER(dreamdvd/ddvdlib.h,have_ddvdlib="yes",have_ddvdlib="no") +if test x"${have_ddvdlib}" = xyes ; then + AC_DEFINE(HAVE_DDVDLIB, 1,[Define if ddvdlib is available]) +else + AC_MSG_NOTICE([ddvdlib not found... dont build dvd plugin]) +fi +AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes") + AM_PATH_PYTHON() AC_PYTHON_DEVEL #AM_PATH_XINE(1.1.0,, AC_MSG_ERROR([*** Please install xine-lib (devel) first ***])) diff --git a/lib/python/Plugins/Extensions/DVDPlayer/Makefile.am b/lib/python/Plugins/Extensions/DVDPlayer/Makefile.am index ed47415..b7127c7 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/Makefile.am +++ b/lib/python/Plugins/Extensions/DVDPlayer/Makefile.am @@ -1,3 +1,4 @@ +if HAVE_DDVDLIB SUBDIRS = src installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/DVDPlayer @@ -7,3 +8,4 @@ install_PYTHON = \ plugin.py \ keymap.xml \ LICENSE +endif