From d5a37375969ea6579a9fc82d423067ae67e2c756 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 23 Aug 2017 14:29:46 +0200 Subject: [PATCH] tools: compile conf2json only of libconfig is available --- tools/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Makefile.inc b/tools/Makefile.inc index cc25934eb..11f8c6a76 100644 --- a/tools/Makefile.inc +++ b/tools/Makefile.inc @@ -20,9 +20,11 @@ # along with this program. If not, see . ################################################################################### -ifeq ($(WITH_JSON),1) +ifeq ($(WITH_CONFIG),1) +ifeq ($(shell $(PKGCONFIG) libconfig; echo $$?),0) TOOLS += $(BUILDDIR)/conf2json endif +endif TOOLS_CFLAGS = $(CFLAGS) TOOLS_LDLIBS = -lconfig -ljansson -lvillas