448b66
From cb6d2019766a6c8c5516fd8859cedf0052f03293 Mon Sep 17 00:00:00 2001
448b66
From: Petr Mensik <pemensik@redhat.com>
448b66
Date: Thu, 25 Jul 2019 11:37:57 +0200
448b66
Subject: [PATCH] Skip support of jsoncpp
448b66
448b66
Bind cannot be compiled when jsoncpp-devel is installed. Remove support
448b66
for jsoncpp, use only json-c-devel. Bind 9.15 has already support for
448b66
--with-json-c, do not yet introduce it.
448b66
---
448b66
 configure.ac | 17 ++---------------
448b66
 1 file changed, 2 insertions(+), 15 deletions(-)
448b66
448b66
diff --git a/configure.ac b/configure.ac
448b66
index 6d05337..5ce83b5 100644
448b66
--- a/configure.ac
448b66
+++ b/configure.ac
448b66
@@ -2594,15 +2594,7 @@ case "$use_libjson" in
448b66
 	auto|yes)
448b66
 		for d in /usr /usr/local /opt/local
448b66
 		do
448b66
-			if test -f "${d}/include/json/json.h"
448b66
-			then
448b66
-				if test ${d} != /usr
448b66
-				then
448b66
-					libjson_cflags="-I ${d}/include"
448b66
-					LIBS="$LIBS -L${d}/lib"
448b66
-				fi
448b66
-				have_libjson="yes"
448b66
-			elif test -f "${d}/include/json-c/json.h"
448b66
+			if test -f "${d}/include/json-c/json.h"
448b66
 			then
448b66
 				if test ${d} != /usr
448b66
 				then
448b66
@@ -2615,12 +2607,7 @@ case "$use_libjson" in
448b66
 		done
448b66
 		;;
448b66
 	*)
448b66
-		if test -f "${use_libjson}/include/json/json.h"
448b66
-		then
448b66
-			libjson_cflags="-I${use_libjson}/include"
448b66
-			LIBS="$LIBS -L${use_libjson}/lib"
448b66
-			have_libjson="yes"
448b66
-		elif test -f "${use_libjson}/include/json-c/json.h"
448b66
+		if test -f "${use_libjson}/include/json-c/json.h"
448b66
 		then
448b66
 			libjson_cflags="-I${use_libjson}/include"
448b66
 			LIBS="$LIBS -L${use_libjson}/lib"
448b66
-- 
448b66
2.20.1
448b66