summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-10-11 21:33:24 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-10-11 21:51:26 +0200
commit30a847ab52d5a08fedd1987417eac97ee4af8460 (patch)
tree662c2d123d70c04599de5631187dec7c40bdd877
parentc3453c0407ce97fda28d5e2998eb4f10fd3a59e3 (diff)
downloadgnutls-tmp-non-suiteb-auto.tar.gz
configure: automatically disable non-suiteb curvestmp-non-suiteb-auto
That is, if the installed nettle doesn't provide the nettle_secp_192r1 symbol.
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 137ed37009..c8879f9e54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -500,8 +500,14 @@ AM_CONDITIONAL(HAVE_BUGGY_LIBIDN, test "$with_buggy_libidn" = "yes")
AC_ARG_ENABLE(non-suiteb-curves,
AS_HELP_STRING([--disable-non-suiteb-curves], [disable curves not in SuiteB]),
enable_non_suiteb=$enableval, enable_non_suiteb=yes)
-if [ test "$enable_non_suiteb" = "yes" ];then
- AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])
+
+if test "$enable_non_suiteb" = "yes";then
+ dnl nettle_secp_192r1 is not really a function
+ AC_CHECK_LIB(hogweed, nettle_secp_192r1,, enable_non_suiteb=no, [$HOGWEED_LIBS])
+
+ if test "$enable_non_suiteb" = "yes";then
+ AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])
+ fi
fi
AM_CONDITIONAL(ENABLE_NON_SUITEB_CURVES, test "$enable_non_suiteb" = "yes")