summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--test/Makefile.am4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 52c6481..5833cd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,7 @@ AC_ARG_WITH(test,
[with_test=no])
if test x$with_test == xyes; then
AM_PATH_CPPUNIT(1.9.6)
+ PKG_CHECK_MODULES(OPUS, opus >= 1.0.0)
fi
dnl ======================
diff --git a/test/Makefile.am b/test/Makefile.am
index e5c60bf..b735c3c 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -6,8 +6,8 @@ amrwb_CXXFLAGS = $(CPPUNIT_CFLAGS) -DOUTPUT=\"amrwb\" -I../src
amrwb_LDFLAGS = $(CPPUNIT_LIBS) -L../src/.libs/ -llrtp
amrwb_SOURCES = test.cc test_amrwb.cc
-opus_CXXFLAGS = $(CPPUNIT_CFLAGS) -DOUTPUT=\"opus\" -I../src
-opus_LDFLAGS = $(CPPUNIT_LIBS) -L../src/.libs/ -llrtp -lopus -lao
+opus_CXXFLAGS = $(CPPUNIT_CFLAGS) -DOUTPUT=\"opus\" -I../src $(OPUS_CFLAGS)
+opus_LDFLAGS = $(CPPUNIT_LIBS) -L../src/.libs/ -llrtp $(OPUS_LIBS)
opus_SOURCES = test.cc test_opus.cc
init_CXXFLAGS = $(CPPUNIT_CFLAGS) -DOUTPUT=\"init\" -I../src