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