diff options
-rw-r--r-- | backends/Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 22 |
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 " |