[libvirt] [PATCH] virt-yajl: Fix detection of yajl requirements

Andrea Bolognani abologna at redhat.com
Thu Oct 6 11:08:18 UTC 2016


On Thu, 2016-10-06 at 11:32 +0200, Martin Kletzander wrote:
> Running the output of qemu -help doesn't make any sense.  We should be
> looking for libvirt being mentioned in the output.  This worked by
> accident, let's make it work as expected it to.
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
>  m4/virt-yajl.m4 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/m4/virt-yajl.m4 b/m4/virt-yajl.m4
> index adf2819eeb66..8c452adca653 100644
> --- a/m4/virt-yajl.m4
> +++ b/m4/virt-yajl.m4
> @@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_CHECK_YAJL],[
>      AC_PATH_PROGS([QEMU], [qemu-kvm qemu kvm qemu-system-x86_64],
>                    [], [$PATH:/usr/bin:/usr/libexec])
>      if test -x "$QEMU"; then
> -      if `$QEMU -help | grep libvirt` >/dev/null; then
> +      if $QEMU -help 2>/dev/null | grep -q libvirt; then
>          with_yajl=yes
>        else
>          [qemu_version_sed='s/.*ersion \([0-9.,]*\).*/\1/']

ACK

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list