]> xenbits.xensource.com Git - libvirt.git/commitdiff
m4: Fix xenstore detection
authorAndrea Bolognani <abologna@redhat.com>
Wed, 14 Mar 2018 14:40:07 +0000 (15:40 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 14 Mar 2018 15:07:31 +0000 (16:07 +0100)
Commit 596fc3e3897e introduced the ability to detect xenstore
using pkg-config for systems with Xen 4.9, but accidentally broke
detection for all other systems. Fix the logic so that it works
in all cases.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
m4/virt-driver-xen.m4

index 52d4f5162674352a1e19ae09da1f20c34e8e9f3a..1d0acfa3635cb3948c95a18785c96801d81221e0 100644 (file)
@@ -42,7 +42,6 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_XEN], [
 
     if test "$xen_path_provided" = "no" ; then
       PKG_CHECK_MODULES([XEN], [xenstore], [
-          fail=0
           with_xen=yes
         ], [
           fail=1
@@ -52,8 +51,8 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_XEN], [
     if test "$xen_path_provided" = "yes" || test "$fail" = 1 ; then
       CFLAGS="$CFLAGS $XEN_CFLAGS"
       LIBS="$LIBS $XEN_LIBS"
+      fail=0
       AC_CHECK_LIB([xenstore], [xs_read], [
-             fail=0
              with_xen=yes
              XEN_LIBS="$XEN_LIBS -lxenstore"
          ],[