From: Willem Toorop Date: Wed, 10 Jul 2019 14:16:39 +0000 (+0200) Subject: Try to compile with ed25519 and ed488 by default X-Git-Tag: release-1.7.1-rc1~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc9b636bc1c8648099841f64cedf3b4c6a845f7;p=thirdparty%2Fldns.git Try to compile with ed25519 and ed488 by default --- diff --git a/configure.ac b/configure.ac index 40190297..ee7ec498 100644 --- a/configure.ac +++ b/configure.ac @@ -513,33 +513,29 @@ case "$enable_dsa" in ;; esac -AC_ARG_ENABLE(ed25519, AC_HELP_STRING([--enable-ed25519], [Enable ED25519 support (experimental)])) +AC_ARG_ENABLE(ed25519, AC_HELP_STRING([--disable-ed25519], [Disable (experimental) ED25519 support. Default is detect])) case "$enable_ed25519" in - yes) - if test "x$HAVE_SSL" != "xyes"; then - AC_MSG_ERROR([ED25519 enabled, but no SSL support]) - fi - AC_CHECK_DECLS([NID_ED25519], [], [AC_MSG_ERROR([OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed25519])], [AC_INCLUDES_DEFAULT + no) ;; + *) dnl default + AC_CHECK_DECLS([NID_ED25519], [ + AC_DEFINE_UNQUOTED([USE_ED25519], [1], [Define this to enable ED25519 support.]) + ], [if test "x$enable_ed25519" "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED25519 and you used --enable-ed25519.]) + fi ], [AC_INCLUDES_DEFAULT #include ]) - AC_DEFINE_UNQUOTED([USE_ED25519], [1], [Define this to enable ED25519 support.]) - ;; - *|no) dnl default ;; esac -AC_ARG_ENABLE(ed448, AC_HELP_STRING([--enable-ed448], [Enable ED448 support (experimental)])) +AC_ARG_ENABLE(ed448, AC_HELP_STRING([--disable-ed448], [Disable (experimental) ED448 support. Default is detect])) case "$enable_ed448" in - yes) - if test "x$HAVE_SSL" != "xyes"; then - AC_MSG_ERROR([ED448 enabled, but no SSL support]) - fi - AC_CHECK_DECLS([NID_ED448], [], [AC_MSG_ERROR([OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed448])], [AC_INCLUDES_DEFAULT + no) ;; + *) dnl default + AC_CHECK_DECLS([NID_ED448], [ + AC_DEFINE_UNQUOTED([USE_ED448], [1], [Define this to enable ED448 support.]) + ], [if test "x$enable_ed448" "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED448 and you used --enable-ed448.]) + fi ], [AC_INCLUDES_DEFAULT #include ]) - AC_DEFINE_UNQUOTED([USE_ED448], [1], [Define this to enable ED448 support.]) - ;; - *|no) dnl default ;; esac