[pulseaudio-discuss] [PATCH 1/5] build-sys: add `check` test framework

Deng Zhengrong dzrongg at gmail.com
Wed Jul 11 07:25:14 PDT 2012


---
 configure.ac    | 6 ++++++
 src/Makefile.am | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5e1a4c5..cf5bd88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -579,6 +579,12 @@ fi
 
 AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h])
 
+#### check test framework ####
+
+PKG_CHECK_MODULES(LIBCHECK, [ check ])
+AC_SUBST(LIBCHECK_CFLAGS)
+AC_SUBST(LIBCHECK_LIBS)
+
 #### json parsing ####
 
 PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])
diff --git a/src/Makefile.am b/src/Makefile.am
index e191a62..521b353 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -46,12 +46,13 @@ AM_CFLAGS = \
 	-I$(top_srcdir)/src/modules \
 	-I$(top_builddir)/src/modules \
 	$(PTHREAD_CFLAGS) \
+	$(LIBCHECK_CFLAGS) \
 	-DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
 	-DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
 AM_CXXFLAGS = $(AM_CFLAGS)
 SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO
 
-AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
+AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS) $(LIBCHECK_LIBS)
 AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
 AM_LDFLAGS = $(NODELETE_LDFLAGS)
 
-- 
1.7.11.1



More information about the pulseaudio-discuss mailing list