From 6bb3f78a0c4ff63f46db279ad90eca2a8ee2c335 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 23 Dec 2001 05:59:38 +0000 Subject: [PATCH] added --disable-plugins option; useful if you are making the switch to gst-plugins Original commit message from CVS: added --disable-plugins option; useful if you are making the switch to gst-plugins --- Makefile.am | 8 +++++++- configure.ac | 18 +++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Makefile.am b/Makefile.am index bf329f3261..41f0641eb8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,7 +33,13 @@ else SUBDIRS_EXAMPLES = endif -SUBDIRS = include gst libs plugins tools $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \ +if BUILD_PLUGINS +SUBDIRS_PLUGINS = plugins +else +SUBDIRS_PLUGINS = +endif + +SUBDIRS = include gst libs $(SUBDIRS_PLUGINS) tools $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \ $(SUBDIRS_LGG) $(SUBDIRS_DOCS) # These are all the possible subdirs diff --git a/configure.ac b/configure.ac index 211d8577ec..159cb4f866 100644 --- a/configure.ac +++ b/configure.ac @@ -593,15 +593,6 @@ GST_CHECK_FEATURE(LIBGHTTP, [libghttp plugins], gsthttpsrc, [ AC_SUBST(GST_HTTPSRC_GET_TYPE) ]) - -dnl thomas : adding an arts check taken from xine with it's own .m4 -dnl FIXME: put this higher up -dnl AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no) - -dnl also define ARTS_MCOPFLAGS -dnl ARTS_MCOPFLAGS="$ARTS_CFLAGS" -dnl AC_SUBST(ARTS_MCOPFLAGS) - dnl Check for libglade with gnome support; no libglade for glib2.0 HAVE_LIBGLADE_GNOME="no" if test x$USE_GLIB2 = xyes; then @@ -690,6 +681,15 @@ dnl ###################################################################### dnl # Check command line parameters, and set shell variables accordingly # dnl ###################################################################### +AC_ARG_ENABLE(plugins, AC_HELP_STRING([--enable-plugins],[enable plugin building]), +[case "${enableval}" in + yes) BUILD_PLUGINS=yes ;; + no) BUILD_PLUGINS=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --disable-plugins) ;; +esac], +[BUILD_PLUGINS=yes]) +AM_CONDITIONAL(BUILD_PLUGINS, test $BUILD_PLUGINS = "yes") + AC_ARG_ENABLE(libmmx, [ --enable-libmmx use libmmx, if available], [case "${enableval}" in