[libvirt PATCH 052/351] meson: add kvm build dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 configure.ac | 7 -------
 meson.build  | 6 ++++++
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5a37af6f27f..3726854d524 100644
--- a/configure.ac
+++ b/configure.ac
@@ -361,13 +361,6 @@ fi
 AM_CONDITIONAL([WITH_NODE_DEVICES], [test "$with_nodedev" = "yes"])
 
 
-# Check for BSD kvm (kernel memory interface)
-if test $with_freebsd = yes; then
-     AC_CHECK_LIB([kvm], [kvm_getprocs], [],
-                  [AC_MSG_ERROR([BSD kernel memory interface library is required to build on FreeBSD])]
-                 )
-fi
-
 GNUmakefile=GNUmakefile
 m4_if(m4_version_compare([2.61a.100],
         m4_defn([m4_PACKAGE_VERSION])), [1], [],
diff --git a/meson.build b/meson.build
index ef76c2fad07..62529932518 100644
--- a/meson.build
+++ b/meson.build
@@ -1059,6 +1059,12 @@ if hal_dep.found()
   conf.set('WITH_HAL', 1)
 endif
 
+# Check for BSD kvm (kernel memory interface)
+if host_machine.system() == 'freebsd'
+  kvm_dep = cc.find_library('kvm')
+  add_project_link_arguments('-lkvm', language: 'c')
+endif
+
 # readline 7.0 is the first version which includes pkg-config support
 readline_version = '7.0'
 readline_dep = dependency('readline', version: '>=' + readline_version, required: false)
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux