mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
configure: check gnutls related stuff only if gnutls was found
This fixes a build issue with old gnutls. Broken by commit 680d2f49da. Reported-by: Olga Krishtal <okrishtal@virtuozzo.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
e8861f6971
commit
a55fdc3f25
@ -20,6 +20,7 @@ dnl
|
||||
AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
|
||||
LIBVIRT_CHECK_PKG([GNUTLS], [gnutls], [2.2.0])
|
||||
|
||||
if test "$with_gnutls" = "yes" ; then
|
||||
dnl Double probe: gnutls >= 2.12 had a configure option for gcrypt and
|
||||
dnl gnutls >= 3.0 uses only nettle. Our goal is to avoid gcrypt if we
|
||||
dnl can prove gnutls uses nettle, but it is a safe fallback to use gcrypt
|
||||
@ -55,6 +56,7 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
|
||||
|
||||
AC_CHECK_FUNC([gnutls_rnd])
|
||||
AC_CHECK_FUNC([gnutls_cipher_encrypt])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([LIBVIRT_RESULT_GNUTLS],[
|
||||
|
Loading…
x
Reference in New Issue
Block a user