Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- configure.ac | 2 -- meson.build | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index da4873ea6fd..4d437a54021 100644 --- a/configure.ac +++ b/configure.ac @@ -121,8 +121,6 @@ LIBVIRT_CHECK_XDR LIBVIRT_CHECK_YAJL -AC_CHECK_LIB([util],[openpty],[]) - dnl dnl Virtualization drivers check diff --git a/meson.build b/meson.build index 453522fd79a..fa1236e87b8 100644 --- a/meson.build +++ b/meson.build @@ -1370,6 +1370,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 -- 2.26.2