enableval=$enable_gost;
fi
+use_gost="no"
case "$enable_gost" in
yes)
{ $as_echo "$as_me:$LINENO: checking for EVP_PKEY_set_type_str" >&5
{ (exit 1); exit 1; }; }
fi
+ use_gost="yes"
cat >>confdefs.h <<\_ACEOF
#define USE_GOST 1
$as_echo "$ac_cv_func_EVP_PKEY_set_type_str" >&6; }
if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then
+ use_gost="yes"
cat >>confdefs.h <<\_ACEOF
#define USE_GOST 1
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldns_b32_ntop_extended_hex" >&5
$as_echo "$ac_cv_func_ldns_b32_ntop_extended_hex" >&6; }
- { $as_echo "$as_me:$LINENO: checking for ldns_key_EVP_load_gost_id" >&5
+ if test x$use_gost = xyes; then
+ { $as_echo "$as_me:$LINENO: checking for ldns_key_EVP_load_gost_id" >&5
$as_echo_n "checking for ldns_key_EVP_load_gost_id... " >&6; }
if test "${ac_cv_func_ldns_key_EVP_load_gost_id+set}" = set; then
$as_echo_n "(cached) " >&6
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldns_key_EVP_load_gost_id" >&5
$as_echo "$ac_cv_func_ldns_key_EVP_load_gost_id" >&6; }
+ else
+ ac_cv_func_ldns_key_EVP_load_gost_id="yes"
+ fi
for ac_header in ldns/ldns.h
do
esac
AC_ARG_ENABLE(gost, AC_HELP_STRING([--enable-gost], [Enable GOST support, experimental]))
+use_gost="no"
case "$enable_gost" in
yes)
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [:],[AC_MSG_ERROR([OpenSSL 1.0.0 is needed for GOST support])])
+ use_gost="yes"
AC_DEFINE([USE_GOST], [1], [Define this to enable GOST support.])
;;
no)
;;
*) dnl default
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [
+ use_gost="yes"
AC_DEFINE([USE_GOST], [1], [Define this to enable GOST support.])])
;;
esac
AC_CHECK_LIB(ldns, ldns_buffer_copy)
AC_CHECK_FUNC(ldns_key_buf2rsa_raw)
AC_CHECK_FUNC(ldns_b32_ntop_extended_hex)
- AC_CHECK_FUNC(ldns_key_EVP_load_gost_id)
+ if test x$use_gost = xyes; then
+ AC_CHECK_FUNC(ldns_key_EVP_load_gost_id)
+ else
+ ac_cv_func_ldns_key_EVP_load_gost_id="yes"
+ fi
AC_CHECK_HEADERS([ldns/ldns.h],,, [AC_INCLUDES_DEFAULT])
if test $ac_cv_lib_ldns_ldns_buffer_copy = yes \
-a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
28 April 2010: Wouter
- ldns tarball updated and GOST support is detected and then enabled.
- iana portlist updated.
+ - Fix detection of gost support in ldns (reported by Chris Smith).
27 April 2010: Wouter
- unbound-control get_option domain-insecure shows config file items.