[Libguestfs] [PATCH 3/4] build: expose HAVE_YAJL to automake
Pino Toscano
ptoscano at redhat.com
Mon Sep 7 14:38:05 UTC 2015
This way it can be used in automake conditionals.
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 739cf06..2ce2456 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1072,6 +1072,7 @@ PKG_CHECK_MODULES([YAJL], [yajl >= 2.0.4], [
AC_SUBST([YAJL_LIBS])
AC_DEFINE([HAVE_YAJL],[1],[Define to 1 if you have yajl.])
],[AC_MSG_WARN([yajl not found, some features will be disabled])])
+AM_CONDITIONAL([HAVE_YAJL],[test "x$YAJL_LIBS" != "x"])
dnl Check for C++ (optional, we just use this to test the header works).
AC_PROG_CXX
--
2.1.0
More information about the Libguestfs
mailing list