From 553925e1da5c936de4df809f0b4b80f527a7caf1 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 26 Jul 2018 12:42:26 +0700 Subject: [PATCH] configure.ac: Split libxml2 and libvirt mix --- configure.ac | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index a91b755e..54eb7f6f 100644 --- a/configure.ac +++ b/configure.ac @@ -5904,7 +5904,7 @@ AC_SUBST([BUILD_WITH_LIBVARNISH_CFLAGS]) AC_SUBST([BUILD_WITH_LIBVARNISH_LIBS]) # }}} -# pkg-config --exists 'libxml-2.0'; pkg-config --exists libvirt {{{ +# pkg-config --exists 'libxml-2.0' {{{ $PKG_CONFIG --exists 'libxml-2.0' 2>/dev/null if test $? -eq 0; then with_libxml2="yes" @@ -5912,13 +5912,6 @@ else with_libxml2="no (pkg-config doesn't know libxml-2.0)" fi -$PKG_CONFIG --exists libvirt 2>/dev/null -if test $? = 0; then - with_libvirt="yes" -else - with_libvirt="no (pkg-config doesn't know libvirt)" -fi - if test "x$with_libxml2" = "xyes"; then with_libxml2_cflags="`$PKG_CONFIG --cflags libxml-2.0`" if test $? -ne 0; then @@ -5962,6 +5955,15 @@ fi AC_SUBST([BUILD_WITH_LIBXML2_CFLAGS]) AC_SUBST([BUILD_WITH_LIBXML2_LIBS]) +# }}} + +# pkg-config --exists libvirt {{{ +$PKG_CONFIG --exists libvirt 2>/dev/null +if test $? = 0; then + with_libvirt="yes" +else + with_libvirt="no (pkg-config doesn't know libvirt)" +fi if test "x$with_libvirt" = "xyes"; then with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`" -- 2.11.0