virt-gnutls.m4: fixed check for gnutls_rnd and gnutls_cipher_encrypt

This commit is contained in:
Nikos Mavrogiannopoulos 2016-11-25 16:51:13 +01:00 committed by Daniel P. Berrange
parent 9ee5bd0415
commit 943ddcb712

View File

@ -54,8 +54,11 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
]]) ]])
OLD_LIBS="$LIBS"
LIBS="$LIBS $GNUTLS_LIBS"
AC_CHECK_FUNC([gnutls_rnd]) AC_CHECK_FUNC([gnutls_rnd])
AC_CHECK_FUNC([gnutls_cipher_encrypt]) AC_CHECK_FUNC([gnutls_cipher_encrypt])
LIBS=$OLD_LIBS
fi fi
]) ])