]> xenbits.xensource.com Git - libvirt.git/commitdiff
m4: virt-sanlock: use pkg-config to find libsanlock_client
authorPavel Hrdina <phrdina@redhat.com>
Tue, 23 Jun 2020 22:05:57 +0000 (00:05 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 10 Jul 2020 07:40:17 +0000 (09:40 +0200)
The last distribution supported by libvirt and lacking pkg-config file
for libsanlock_client was Ubuntu 16.04. It is no longer supported so
switch to pkg-config.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
m4/virt-sanlock.m4

index cc35b10b09fcc642a7ca36583e4d0906c358cfac..a7fba520dfc761704c267f5ad137d47f41636242 100644 (file)
@@ -22,7 +22,7 @@ AC_DEFUN([LIBVIRT_ARG_SANLOCK],[
 ])
 
 AC_DEFUN([LIBVIRT_CHECK_SANLOCK],[
-  LIBVIRT_CHECK_LIB([SANLOCK], [sanlock_client], [sanlock_init], [sanlock.h])
+  LIBVIRT_CHECK_PKG([SANLOCK], [libsanlock_client], [3.2.4])
 
   if test "x$with_sanlock" = "xyes" ; then
     AC_CHECK_DECLS([SANLK_INQ_WAIT], [sanlock_inq_wait=1], [sanlock_inq_wait=0], [[