From 25dd7c7cf5182e846272fb7b6ea485d9f94b81e7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 4 Dec 2013 14:20:26 +0100 Subject: Use correct flags from configure in tests. --- configure.ac | 1 + test/Makefile.am | 4 ++-- 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 -- cgit v1.2.3