added --disable-plugins option; useful if you are making the switch to gst-plugins
authorAndy Wingo <wingo@pobox.com>
Sun, 23 Dec 2001 05:59:38 +0000 (05:59 +0000)
committerAndy Wingo <wingo@pobox.com>
Sun, 23 Dec 2001 05:59:38 +0000 (05:59 +0000)
Original commit message from CVS:
added --disable-plugins option; useful if you are making the switch to
gst-plugins

Makefile.am
configure.ac

index bf329f3..41f0641 100644 (file)
@@ -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
index 211d857..159cb4f 100644 (file)
@@ -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