From 3ebc56ad37b5254faadec0ca4eeae9559338815b Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Tue, 12 Mar 2013 10:45:25 -0500 Subject: Allow disabling resample support, via configure script. --- aconfigure.ac | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 9662820..58f1c1a 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -552,6 +552,17 @@ AC_ARG_WITH(external-srtp, ) +dnl # Resample implementation +AC_SUBST(ac_pjmedia_resample,libresample) +AC_ARG_ENABLE(resample, + AC_HELP_STRING([--disable-resample], + [Disable resampling implementations]), + [if test "$enable_resample" = "no"; then + [ac_pjmedia_resample=none] + AC_MSG_RESULT([Checking if resampling is disabled...yes]) + fi] + ) + dnl # Sound device backend selection AC_SUBST(ac_pjmedia_snd) AC_ARG_ENABLE(sound, @@ -844,8 +855,9 @@ AC_ARG_ENABLE(ilbc-codec, dnl # Include libsamplerate AC_ARG_ENABLE(libsamplerate, AC_HELP_STRING([--enable-libsamplerate], - [Link with libsamplerate when available. Note that PJMEDIA_RESAMPLE_IMP must also be configured]), - [ AC_CHECK_LIB(samplerate,src_new) ], + [Link with libsamplerate when available.]), + [ AC_CHECK_LIB(samplerate,src_new) ] + [ac_pjmedia_resample=libsamplerate], AC_MSG_RESULT([Skipping libsamplerate detection]) ) -- cgit v1.2.3