[PATCH 1/4] meson: acl_dep switch to dependency()

Michal Privoznik mprivozn at redhat.com
Thu Jun 8 11:18:50 UTC 2023


The pkg-config file to libacl was introduced in 2.2.53 release.
Now that every supported distro ships at least this version, we
can switch meson detection to dependency().

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 7603a7893a..33cf8020ba 100644
--- a/meson.build
+++ b/meson.build
@@ -871,8 +871,7 @@ endif
 
 # generic build dependencies
 
-# FIXME rewrite to use dependency()
-acl_dep = cc.find_library('acl', required: false)
+acl_dep = dependency('libacl', required: false)
 if acl_dep.found()
   conf.set('WITH_LIBACL', 1)
 endif
-- 
2.39.3



More information about the libvir-list mailing list