From: Wouter Wijngaards Date: Mon, 5 Mar 2018 14:28:21 +0000 (+0000) Subject: - Fix to check define of DSA for when openssl is without deprecated. X-Git-Tag: release-1.7.0rc1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d754cd3de450d5857f655acc1c0a17e4c722883e;p=thirdparty%2Funbound.git - Fix to check define of DSA for when openssl is without deprecated. git-svn-id: file:///svn/unbound/trunk@4556 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/configure b/configure index 247ed1455..259c7ae14 100755 --- a/configure +++ b/configure @@ -18078,12 +18078,42 @@ case "$enable_dsa" in ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : + as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` +ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " +$ac_includes_default +#ifdef HAVE_OPENSSL_ERR_H +#include +#endif + +#ifdef HAVE_OPENSSL_RAND_H +#include +#endif + +#ifdef HAVE_OPENSSL_CONF_H +#include +#endif + +#ifdef HAVE_OPENSSL_ENGINE_H +#include +#endif +#include +#include + +" +if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF #define USE_DSA 1 _ACEOF +else + if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 + fi +fi + + else if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 fi diff --git a/configure.ac b/configure.ac index b83979cb0..3e72ace6e 100644 --- a/configure.ac +++ b/configure.ac @@ -935,7 +935,29 @@ case "$enable_dsa" in # detect if DSA is supported, and turn it off if not. if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then AC_CHECK_FUNC(DSA_SIG_new, [ + AC_CHECK_TYPE(DSA_SIG*, [ AC_DEFINE_UNQUOTED([USE_DSA], [1], [Define this to enable DSA support.]) + ], [if test "x$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.]) + fi ], [ +AC_INCLUDES_DEFAULT +#ifdef HAVE_OPENSSL_ERR_H +#include +#endif + +#ifdef HAVE_OPENSSL_RAND_H +#include +#endif + +#ifdef HAVE_OPENSSL_CONF_H +#include +#endif + +#ifdef HAVE_OPENSSL_ENGINE_H +#include +#endif +#include +#include + ]) ], [if test "x$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.]) fi ]) else diff --git a/doc/Changelog b/doc/Changelog index d2b8589bd..5d8b94975 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +5 March 2018: Wouter + - Fix to check define of DSA for when openssl is without deprecated. + 27 February 2018: Wouter - Fixup contrib/fastrpz.patch so that it applies. - Fix compile without threads, and remove unused variable.