aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e24117b28..1081b2d3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -742,6 +742,7 @@ AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION",
have_libgcrypt=yes,have_libgcrypt=no)
+# fixme: We can remove the next two checks if we require libgcrypt 1.5.
AC_CACHE_CHECK([whether Libgcrypt support ECDH], gnupg_cv_gcry_pk_ecdh,
[ _gnupg_gcry_save_cflags=$CFLAGS
CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
@@ -756,6 +757,21 @@ if test "$gnupg_cv_gcry_pk_ecdh" = yes; then
[Define if gcrypt.h has the enum value for ECDH.])
fi
+AC_CACHE_CHECK([whether Libgcrypt has gcry_pk_get_curve],
+ gnupg_cv_gcry_pk_get_curve,
+ [ _gnupg_gcry_save_cflags=$CFLAGS
+ CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
+ AC_TRY_COMPILE(
+ [#include <gcrypt.h>],
+ [ return gcry_pk_get_curve (NULL, 0, NULL); ],
+ gnupg_cv_gcry_pk_get_curve=yes,
+ gnupg_cv_gcry_pk_get_curve=no)
+ CFLAGS=$_gnupg_gcry_save_cflags])
+if test "$gnupg_cv_gcry_pk_get_curve" = yes; then
+ AC_DEFINE([HAVE_GCRY_PK_GET_CURVE], 1,
+ [Define if gcrypt.h has gcry_pk_get_curve.])
+fi
+
#
# libassuan is used for IPC