]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Fix sanlock detection
authorAndrea Bolognani <abologna@redhat.com>
Thu, 27 May 2021 14:35:38 +0000 (16:35 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Jun 2021 12:30:39 +0000 (14:30 +0200)
If the user explicitly asked for sanlock support to be enabled,
then failure to find the corresponding library should result in
an error.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build

index c203c43299b85843f21adb02eb5ab0b507d903f4..737b684ade9d724267bb1bc02298e8daa368c71b 100644 (file)
@@ -1145,7 +1145,7 @@ if readline_dep.found()
 endif
 
 if not get_option('sanlock').disabled()
-  sanlock_dep = dependency('libsanlock_client', required: false)
+  sanlock_dep = dependency('libsanlock_client', required: get_option('sanlock'))
 
   if sanlock_dep.found()
     conf.set('WITH_SANLOCK', 1)