configure: Require yajl >= 2.0.4 (RHBZ#1169045).

Earlier versions fail to parse integers from 'qemu-img info' output
correctly, resulting in bugs like
https://bugzilla.redhat.com/show_bug.cgi?id=1169045

Thanks: muued @ IRC
This commit is contained in:
Richard W.M. Jones
2014-11-29 12:01:48 +00:00
parent 2990db8d1a
commit 4d9a14fc75
2 changed files with 2 additions and 2 deletions

2
README
View File

@@ -148,7 +148,7 @@ The full requirements are described below.
+--------------+-------------+---+-----------------------------------------+
| sd-journal | | O | systemd journal library |
+--------------+-------------+---+-----------------------------------------+
| yajl | 2 | O | JSON parser for parsing output of |
| yajl | 2.0.4 | O | JSON parser for parsing output of |
| | | | ldmtool and qemu-img info commands. |
+--------------+-------------+---+-----------------------------------------+
| gdisk | | O | GPT disk support. |

View File

@@ -1036,7 +1036,7 @@ AS_IF([test "x$enable_fuse" != "xno"],[
AM_CONDITIONAL([HAVE_FUSE],[test "x$enable_fuse" != "xno"])
dnl Check for yajl JSON library (optional).
PKG_CHECK_MODULES([YAJL], [yajl >= 2], [
PKG_CHECK_MODULES([YAJL], [yajl >= 2.0.4], [
AC_SUBST([YAJL_CFLAGS])
AC_SUBST([YAJL_LIBS])
AC_DEFINE([HAVE_YAJL],[1],[Define to 1 if you have yajl.])