summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-04 14:20:26 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-04 14:20:26 +0100
commit25dd7c7cf5182e846272fb7b6ea485d9f94b81e7 (patch)
tree5fa7b7a6afefd0f5f842fffad2afb3b8818542bc
parent774e2789774dcb35f7e9e4cfa41632e13e2ac09e (diff)
Use correct flags from configure in tests.
-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