meson: add util build dependency

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-04-29 15:43:27 +02:00
parent 57a521fcaf
commit 47dc175880
2 changed files with 5 additions and 2 deletions

View File

@ -121,8 +121,6 @@ LIBVIRT_CHECK_XDR
LIBVIRT_CHECK_YAJL
AC_CHECK_LIB([util],[openpty],[])
dnl
dnl Virtualization drivers check

View File

@ -1388,6 +1388,11 @@ if udev_dep.found()
conf.set('WITH_UDEV', 1)
endif
util_dep = cc.find_library('util', required: false)
if util_dep.found()
add_project_link_arguments('-lutil', language: 'c')
endif
# generic build dependencies checks