]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-gnutls.m4: fixed check for gnutls_rnd and gnutls_cipher_encrypt
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 25 Nov 2016 15:51:13 +0000 (16:51 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Nov 2016 14:29:46 +0000 (14:29 +0000)
m4/virt-gnutls.m4

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