From: Josh Date: Mon, 8 Dec 2014 20:50:00 +0000 (-0600) Subject: fixing autotools '--enable-unit-tests' X-Git-Tag: 3.0.0-233~1093 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=231f1793a1c1901f6eda82841a87af56e85a986f;p=thirdparty%2Fsnort3.git fixing autotools '--enable-unit-tests' --- diff --git a/src/Makefile.am b/src/Makefile.am index 456c826ff..e37c42792 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -105,7 +105,7 @@ utils AM_CXXFLAGS = @AM_CXXFLAGS@ if BUILD_UNIT_TESTS -snort_LDADD += test/libtest.a +snort_LDADD += test/libtest.a -lcheck -lrt -lpthread SUBDIRS += test endif diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 46212da16..c2e3a10d0 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -22,14 +22,14 @@ build_decl = \ for f in `grep -whoR --include \*.cc 'TEST_SUITE[^(]*' $(top_srcdir)/src` ; do \ echo "extern Suite* $$f();" >> suite_decl.h ; \ done ; \ - touch unit_test.cc + touch $(srcdir)/unit_test.cc build_list = \ rm -f suite_list.h ; \ for f in `grep -whoR --include \*.cc 'TEST_SUITE[^(]*' $(top_srcdir)/src` ; do \ echo "$$f," >> suite_list.h ; \ done ; \ - touch unit_test.cc + touch $(srcdir)/unit_test.cc suite_decl.h: $(build_decl)