[libvirt] [PATCH 2/2] m4: sasl: Use pkg-config

Andrea Bolognani posted 2 patches 6 years, 10 months ago
[libvirt] [PATCH 2/2] m4: sasl: Use pkg-config
Posted by Andrea Bolognani 6 years, 10 months ago
Since commit 4e75b0a00fb4 we support SASL 2.1.26 and newer
releases only, all of which ship a .pc file. Using pkg-config
allows FreeBSD builds to pick up the dependency automatically.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 m4/virt-sasl.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/virt-sasl.m4 b/m4/virt-sasl.m4
index 7ab9b2c368..674e169350 100644
--- a/m4/virt-sasl.m4
+++ b/m4/virt-sasl.m4
@@ -22,7 +22,7 @@ AC_DEFUN([LIBVIRT_ARG_SASL],[
 ])
 
 AC_DEFUN([LIBVIRT_CHECK_SASL],[
-  LIBVIRT_CHECK_LIB([SASL], [sasl2], [sasl_client_init], [sasl/sasl.h])
+  LIBVIRT_CHECK_PKG([SASL], [libsasl2], [2.1.26])
 ])
 
 AC_DEFUN([LIBVIRT_RESULT_SASL],[
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 2/2] m4: sasl: Use pkg-config
Posted by Daniel P. Berrangé 6 years, 10 months ago
On Thu, Apr 11, 2019 at 06:35:04PM +0200, Andrea Bolognani wrote:
> Since commit 4e75b0a00fb4 we support SASL 2.1.26 and newer
> releases only, all of which ship a .pc file. Using pkg-config
> allows FreeBSD builds to pick up the dependency automatically.
> 
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---
>  m4/virt-sasl.m4 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list