build: check for json header

Check for the json header during configuration.

Change-Id: I15c04b0f4892ce6498b4f171abe34a9b0944014e
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index 8a2db08..1cc46ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,11 @@
     [],
     [AC_MSG_ERROR([Could not find experimental/filesystem...libstdc++fs development package required])]
 )
+AC_CHECK_HEADER(
+    nlohmann/json.hpp,
+    [],
+    [AC_MSG_ERROR([Could not find nlohmann/json.hpp])]
+)
 AX_PTHREAD([], [AC_MSG_ERROR(["pthread required and not found"])])
 
 # Checks for library functions.