]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Define HAVE_GCRYPT when using gcrypt. nettle is no longer marked as unsupported.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Jul 2010 08:33:47 +0000 (10:33 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Jul 2010 08:34:04 +0000 (10:34 +0200)
lib/m4/hooks.m4

index 78bb1aac883f56bcfddf36ea7ea1f47bb0fde39d..86d78695280262cbf7572f2db2de478809a1aa4c 100644 (file)
@@ -38,7 +38,7 @@ AC_DEFUN([LIBGNUTLS_HOOKS],
   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
   AC_SUBST(DLL_VERSION)
 
-  cryptolib="nettle (unsupported)"
+  cryptolib="nettle"
   AC_ARG_WITH(nettle,
     AS_HELP_STRING([--with-nettle], [use libnettle 2.x as crypto library]),
       nettle=$withval,
@@ -61,6 +61,7 @@ AC_DEFUN([LIBGNUTLS_HOOKS],
 
   if test "$nettle" != "yes";then
        cryptolib=libgcrypt
+        AC_DEFINE([HAVE_GCRYPT], 1, [whether the gcrypt library is in use])
        AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include <gcrypt.h>],
     [enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128])
   if test "$ac_cv_libgcrypt" != yes; then