From c80ee6f068fe5ab87803a4e28f4dcb07b37047d7 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 3 Oct 2014 22:32:35 +0200 Subject: [PATCH] build: allow use of older versions of json-c json-c library was first just named json. When requesting compilation with json-c, also check for this library. --- m4/json-c.m4 | 5 +++-- src/client/jsonc_writer.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/m4/json-c.m4 b/m4/json-c.m4 index cfab01eb..4fa65faa 100644 --- a/m4/json-c.m4 +++ b/m4/json-c.m4 @@ -3,8 +3,9 @@ # AC_DEFUN([lldp_CHECK_JSONC], [ - PKG_CHECK_MODULES([JSONC], [json-c >= 0], [], - [AC_MSG_ERROR([*** unable to find json-c])]) + PKG_CHECK_MODULES([JSONC], [json-c], [], + [PKG_CHECK_MODULES([JSONC], [json], [], + [AC_MSG_ERROR([*** unable to find json-c])])]) AC_SUBST([JSONC_LIBS]) AC_SUBST([JSONC_CFLAGS]) diff --git a/src/client/jsonc_writer.c b/src/client/jsonc_writer.c index da780a37..db9de438 100644 --- a/src/client/jsonc_writer.c +++ b/src/client/jsonc_writer.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include "writer.h" -- 2.39.5