--disable-rpath disable hardcoded rpath (default=enabled)
--disable-largefile omit support for large files
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
- --enable-gost Enable GOST support, experimental
+ --disable-gost Disable GOST support
--enable-static-exe enable to compile executables statically against
event, ldns libs, for debug purposes
--enable-lock-checks enable to check lock and unlock calls, for debug
use_gost="no"
case "$enable_gost" in
- yes)
+ no)
+ ;;
+ *)
ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then :
:
as_fn_error "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
fi
- use_gost="yes"
-
-$as_echo "#define USE_GOST 1" >>confdefs.h
+ ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
+if test "x$ac_cv_func_EC_KEY_new" = x""yes; then :
- ;;
- no)
- ;;
- *) ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
-if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then :
+else
+ as_fn_error "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
+fi
- use_gost="yes"
+ use_gost="yes"
$as_echo "#define USE_GOST 1" >>confdefs.h
-fi
-
;;
esac
;;
esac
-AC_ARG_ENABLE(gost, AC_HELP_STRING([--enable-gost], [Enable GOST support, experimental]))
+AC_ARG_ENABLE(gost, AC_HELP_STRING([--disable-gost], [Disable GOST support]))
use_gost="no"
case "$enable_gost" in
- yes)
+ no)
+ ;;
+ *)
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [:],[AC_MSG_ERROR([OpenSSL 1.0.0 is needed for GOST support])])
+ AC_CHECK_FUNC(EC_KEY_new, [], [AC_MSG_ERROR([OpenSSL does not support ECC, 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
# check for libevent