summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
parent56c76128b0144a5c61e77d2a7aec07a337cfb66d (diff)
downloadlibmatemixer-1c842063e1f7bf6803655ac193ac28704c4dc0c2.tar.bz2
libmatemixer-1c842063e1f7bf6803655ac193ac28704c4dc0c2.tar.xz
Allow building without the Null module
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 19 insertions, 3 deletions
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
"