File linphone-2.0.1-speex.patch of Package linphone
--- configure.in
+++ configure.in
@@ -200,6 +200,9 @@
dnl Furthermore it is good to repeat here all mediastreamer2 toggles
dnl since top-level configure --help will not print them.
+PKG_CHECK_MODULES(SPEEXDSP, speexdsp >= 1.1.6, build_speex=yes)
+AC_SUBST(SPEEXDSP_LIBS)
+
PKG_CHECK_MODULES(SPEEX, speex >= 1.1.6, build_speex=yes)
AC_SUBST(SPEEX_LIBS)
--- mediastreamer2/configure.ac
+++ mediastreamer2/configure.ac
@@ -279,6 +279,9 @@
[ AC_DEFINE(HAVE_SPEEX_NOISE,1,[tells whether the noise arg of speex_echo_cancel can be used]) ],
[try_other_speex=yes]
)
+PKG_CHECK_MODULES(SPEEXDSP, speexdsp >= 1.1.6, build_speex=yes)
+AC_SUBST(SPEEXDSP_CFLAGS)
+AC_SUBST(SPEEXDSP_LIBS)
PKG_CHECK_MODULES(SPEEX, speex >= 1.1.6, build_speex=yes)
AC_SUBST(SPEEX_CFLAGS)
AC_SUBST(SPEEX_LIBS)
--- mediastreamer2/src/Makefile.am
+++ mediastreamer2/src/Makefile.am
@@ -100,6 +100,7 @@
$(ALSA_LIBS) \
$(ARTS_LIBS) \
$(SPEEX_LIBS) \
+ $(SPEEXDSP_LIBS) \
$(GSM_LIBS) \
$(THEORA_LIBS)
--- mediastreamer2/tests/Makefile.am
+++ mediastreamer2/tests/Makefile.am
@@ -19,6 +19,7 @@
$(ALSA_LIBS) \
$(ARTS_LIBS) \
$(SPEEX_LIBS) \
+ $(SPEEXDSP_LIBS) \
$(GSM_LIBS) \
$(THEORA_LIBS) \
$(FFMPEG_LIBS)