mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
m4: Fix xenstore detection
Commit 596fc3e389 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>
This commit is contained in:
@@ -42,7 +42,6 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_XEN], [
|
|||||||
|
|
||||||
if test "$xen_path_provided" = "no" ; then
|
if test "$xen_path_provided" = "no" ; then
|
||||||
PKG_CHECK_MODULES([XEN], [xenstore], [
|
PKG_CHECK_MODULES([XEN], [xenstore], [
|
||||||
fail=0
|
|
||||||
with_xen=yes
|
with_xen=yes
|
||||||
], [
|
], [
|
||||||
fail=1
|
fail=1
|
||||||
@@ -52,8 +51,8 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_XEN], [
|
|||||||
if test "$xen_path_provided" = "yes" || test "$fail" = 1 ; then
|
if test "$xen_path_provided" = "yes" || test "$fail" = 1 ; then
|
||||||
CFLAGS="$CFLAGS $XEN_CFLAGS"
|
CFLAGS="$CFLAGS $XEN_CFLAGS"
|
||||||
LIBS="$LIBS $XEN_LIBS"
|
LIBS="$LIBS $XEN_LIBS"
|
||||||
|
fail=0
|
||||||
AC_CHECK_LIB([xenstore], [xs_read], [
|
AC_CHECK_LIB([xenstore], [xs_read], [
|
||||||
fail=0
|
|
||||||
with_xen=yes
|
with_xen=yes
|
||||||
XEN_LIBS="$XEN_LIBS -lxenstore"
|
XEN_LIBS="$XEN_LIBS -lxenstore"
|
||||||
],[
|
],[
|
||||||
|
|||||||
Reference in New Issue
Block a user