[banshee] Add --disable-builtin-equalizer configure flag



commit 47edf3039e7288b642d131da6a09196b4c2d655f
Author: Chow Loong Jin <hyperair gmail com>
Date:   Mon May 25 17:21:19 2009 +0800

    Add --disable-builtin-equalizer configure flag
    
    Builtin equalizer is always compiled by default. This flag allows the
    builtin equalizer to be disabled, forcing Banshee to use the system
    equalizer instead. This is favourable for distributions which have a
    suitably up to date gstreamer and thus have a fully working equalizer
    (bgo#583782).
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 build/m4/banshee/gstreamer.m4 |    7 +++++++
 configure.ac                  |    1 +
 gstreamer/Makefile.am         |    2 ++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/build/m4/banshee/gstreamer.m4 b/build/m4/banshee/gstreamer.m4
index 2875394..566da10 100644
--- a/build/m4/banshee/gstreamer.m4
+++ b/build/m4/banshee/gstreamer.m4
@@ -26,5 +26,12 @@ AC_DEFUN([BANSHEE_CHECK_GSTREAMER],
 	
 	AC_SUBST(GST_CFLAGS)
 	AC_SUBST(GST_LIBS)
+
+	dnl Builtin equalizer (optional)
+	AC_ARG_ENABLE(builtin-equalizer,
+		AC_HELP_STRING([--disable-builtin-equalizer],
+			[Disable builtin equalizer]),
+		, enable_builtin_equalizer="yes")
+	AM_CONDITIONAL(ENABLE_BUILTIN_EQUALIZER, test "x$enable_builtin_equalizer" = "xyes")
 ])
 
diff --git a/configure.ac b/configure.ac
index 97cea24..9a44daa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -307,6 +307,7 @@ ${PACKAGE}-${VERSION}
 
   Operating System/Desktop Environment:
     GNOME Support:     ${enable_gnome}
+    Builtin Equalizer: ${enable_builtin_equalizer}
     OSX Support:       ${enable_osx}
 
   Digital Audio Player (DAP) Support:
diff --git a/gstreamer/Makefile.am b/gstreamer/Makefile.am
index 25d2da4..f6a7050 100644
--- a/gstreamer/Makefile.am
+++ b/gstreamer/Makefile.am
@@ -1,5 +1,7 @@
+if ENABLE_BUILTIN_EQUALIZER
 SUBDIRS = \
 	equalizer
+endif
 
 MAINTAINERCLEANFILES = Makefile.in
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]