From 88ee841b9215df4a8978108a9338a1098c82ee94 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Wed, 25 Jan 2012 19:10:41 +0100 Subject: fsoaudiod: configure.ac: add configurable libsamplerate dependency This is needed because the GTA04 audio forwarding plugin depends on libsamplerate. Thanks to lindi on #openmoko-cdevel on the Freenode IRC servers: Jan 25 18:53:50 GNUtoo: perhaps PKG_CHECK_MODULES(LIBSAMPLERATE, [libsamplerate]) in configure.in Signed-off-by: Denis 'GNUtoo' Carikli --- fsoaudiod/configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'fsoaudiod/configure.ac') diff --git a/fsoaudiod/configure.ac b/fsoaudiod/configure.ac index 50772de1..98208e83 100644 --- a/fsoaudiod/configure.ac +++ b/fsoaudiod/configure.ac @@ -93,6 +93,22 @@ AC_SUBST(CMTSPEECHDATA_LIBS) fi AM_CONDITIONAL( [WANT_CMTSPEECHDATA], [test x"$cmtspeechdata" = x"yes"]) +############################################################################## +# optional feature: GSM voice call audio forwarding using libsamplerate +AC_ARG_ENABLE(samplerate, + [ --enable-samplerate Enable building the gsm voicecall plugin using libsamplerate (default=disabled)], + [samplerate=$enableval], + [samplerate="no"]) + +if test x$samplerate = "xyes"; then + PKG_CHECK_MODULES(SAMPLERATE, + [samplerate]) +AC_SUBST(SAMPLERATE_CFLAGS) +AC_SUBST(SAMPLERATE_LIBS) + +fi +AM_CONDITIONAL( [WANT_SAMPLERATE], [test x"$samplerate" = x"yes"]) + ############################################################################## # check for debugging AC_ARG_ENABLE(debug, @@ -159,6 +175,8 @@ echo "Configuration Options:" echo echo " gsmvoice_alsa_cmtspeechdata:.........: $cmtspeechdata" echo +echo " gsmvoice_alsa_forwarder:.............: $samplerate" +echo echo " debug build..........................: $debug" echo echo " prefix...............................: $prefix" -- cgit v1.2.3