]> xenbits.xensource.com Git - libvirt.git/commitdiff
meson: attr_dep switch to dependency()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Mar 2023 08:13:52 +0000 (09:13 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Jun 2023 10:08:18 +0000 (12:08 +0200)
The pkg-config file to libattr was introduced in 2.4.48 release.
Now that every supported distro ships at least this version, we
can switch meson detection to dependency().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
meson.build

index 33cf8020ba2e235d90817e216823b8f7ddd23ef3..5715eacf60ca9c24ddedf55a72a043784adfe62f 100644 (file)
@@ -898,8 +898,7 @@ if not get_option('apparmor_profiles').disabled()
   endif
 endif
 
-# FIXME rewrite to use dependency() once we can use 2.4.48
-attr_dep = cc.find_library('attr', required: get_option('attr'))
+attr_dep = dependency('libattr', required: get_option('attr'))
 if attr_dep.found()
   conf.set('WITH_LIBATTR', 1)
 endif