configure.ac: Check first for json as libjson-c.

cloudfsapi.c: Search include paths for json.h (cannot assume json/).
This commit is contained in:
Will Daniels
2014-06-10 22:06:56 +01:00
parent fdd28f0a9f
commit 14351d26bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
#include <libxml/tree.h>
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <json/json.h>
#include <json.h>
#include "cloudfsapi.h"
#include "config.h"
+2 -2
View File
@@ -14,14 +14,14 @@ AC_PROG_INSTALL
AC_PROG_MKDIR_P
# Checks that pkg-config is installed
PKG_PROG_PKG_CONFIG
# Checks for libraries.
PKG_CHECK_MODULES(XML, libxml-2.0, , AC_MSG_ERROR('Unable to find libxml2. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(CURL, libcurl, , AC_MSG_ERROR('Unable to find libcurl. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(FUSE, fuse, , AC_MSG_ERROR('Unable to find libfuse. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(JSON, json, , AC_MSG_ERROR('Unable to find libjson. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(JSON, json-c, ,
PKG_CHECK_MODULES(JSON, json, , AC_MSG_ERROR('Unable to find libjson. Please make sure library and header files are installed.')))
PKG_CHECK_MODULES(OPENSSL, openssl, , [])
# Checks for header files.