summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-04-13 13:58:36 +0200
committerGergely Nagy <algernon@balabit.hu>2012-04-13 13:58:36 +0200
commit6a88617d83a94f66825811dc0e782b1e740179d7 (patch)
treeef4ca4f557e629ebd2e2d9f8b7f918f41d2a4cf1 /t
parentfb7693f412485cebc8d4a0cc2b2ace424d60d65d (diff)
downloadlibumberlog-6a88617d83a94f66825811dc0e782b1e740179d7.tar.gz
libumberlog-6a88617d83a94f66825811dc0e782b1e740179d7.tar.xz
libumberlog-6a88617d83a94f66825811dc0e782b1e740179d7.zip
Make json-c optional.
When json-c is not found, instead of failing at configure time, continue, but disable the test suite. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 't')
-rw-r--r--t/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/Makefile.am b/t/Makefile.am
index c7f1589..b07c6f2 100644
--- a/t/Makefile.am
+++ b/t/Makefile.am
@@ -1,5 +1,7 @@
+if ENABLE_TESTS
TESTS = test_umberlog test_perf
check_PROGRAMS = ${TESTS}
AM_CFLAGS = -I$(top_srcdir)/lib @JSON_CFLAGS@
LDADD = $(top_builddir)/lib/libumberlog.la @JSON_LIBS@
+endif