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