summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-18 16:19:32 +0200
committerMichal Ratajsky <[email protected]>2014-07-18 16:19:32 +0200
commit1c842063e1f7bf6803655ac193ac28704c4dc0c2 (patch)
tree2422cd690fe92e99de034bd4c7f75a031d75297c
parent56c76128b0144a5c61e77d2a7aec07a337cfb66d (diff)
downloadlibmatemixer-1c842063e1f7bf6803655ac193ac28704c4dc0c2.tar.bz2
libmatemixer-1c842063e1f7bf6803655ac193ac28704c4dc0c2.tar.xz
Allow building without the Null module
-rw-r--r--backends/Makefile.am6
-rw-r--r--configure.ac22
2 files changed, 24 insertions, 4 deletions
diff --git a/backends/Makefile.am b/backends/Makefile.am
index d2f0e96..e223042 100644
--- a/backends/Makefile.am
+++ b/backends/Makefile.am
@@ -1,4 +1,8 @@
-SUBDIRS = null
+SUBDIRS =
+
+if HAVE_NULL
+SUBDIRS += null
+endif
if HAVE_PULSEAUDIO
SUBDIRS += pulse
diff --git a/configure.ac b/configure.ac
index 675667d..3adfcba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,11 +74,26 @@ GTK_DOC_CHECK([1.10], [--flavour no-tmpl])
# =======================================================================
# Check for backend module support
# =======================================================================
+AC_ARG_ENABLE([null],
+ AS_HELP_STRING([--enable-null],
+ [Enable Null backend module @<:@default=yes@:>@]),
+ enable_null=$enableval, enable_null=yes)
+
+if test "x$enable_null" != "xno" ; then
+ AC_DEFINE(HAVE_NULL, [], [Define if we have Null module])
+ have_null=yes
+else
+ have_null=no
+fi
+
+AM_CONDITIONAL(HAVE_NULL, test "x$have_null" = "xyes")
+AC_SUBST(HAVE_NULL)
+
PA_REQUIRED_VERSION=0.9.23
AC_ARG_ENABLE([pulseaudio],
AS_HELP_STRING([--enable-pulseaudio],
- [Enable PulseAudio support @<:@default=auto@:>@]),
+ [Enable PulseAudio backend module @<:@default=auto@:>@]),
enable_pulseaudio=$enableval, enable_pulseaudio=auto)
if test "x$enable_pulseaudio" != "xno"; then
@@ -93,7 +108,7 @@ if test "x$enable_pulseaudio" != "xno"; then
fi
if test "x$have_pulseaudio" = "xyes" ; then
- AC_DEFINE(HAVE_PULSEAUDIO, [], [Define if we have pulseaudio])
+ AC_DEFINE(HAVE_PULSEAUDIO, [], [Define if we have PulseAudio support])
fi
fi
@@ -176,6 +191,7 @@ echo "
Compiler: ${CC}
CFLAGS: ${CFLAGS}
- PulseAudio backend support: $have_pulseaudio
+ Build Null module: $have_null
+ Build PulseAudio module: $have_pulseaudio
"