fix configure, compatibility layer needed big int. for BN use

This commit is contained in:
Jacob Barthelmeh
2023-04-14 14:52:05 -06:00
parent 36a9b9944c
commit cb9a121bd7

View File

@ -3960,11 +3960,6 @@ if test "$ENABLED_ASN" = "no"
then then
AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_ASN_CRYPT" AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_ASN_CRYPT"
enable_pwdbased=no enable_pwdbased=no
if test "$ENABLED_DH" = "no" && test "$ENABLED_ECC" = "no"
then
# DH and ECC need bigint
AM_CFLAGS="$AM_CFLAGS -DNO_BIG_INT"
fi
else else
if test "$ENABLED_ASN" = "template"; then if test "$ENABLED_ASN" = "template"; then
ENABLED_ASN="yes" ENABLED_ASN="yes"
@ -4007,10 +4002,11 @@ then
AC_MSG_ERROR([please disable ecc if disabling asn.]) AC_MSG_ERROR([please disable ecc if disabling asn.])
fi fi
# No Big Int (ASN, DSA, RSA, DH and ECC need bigint) # No Big Int (ASN, DSA, RSA, DH, ECC and compatibility layer need bigint)
if test "$ENABLED_ASN" = "no" && test "$ENABLED_DSA" = "no" && \ if test "$ENABLED_ASN" = "no" && test "$ENABLED_DSA" = "no" && \
test "$ENABLED_DH" = "no" && test "$ENABLED_ECC" = "no" && \ test "$ENABLED_DH" = "no" && test "$ENABLED_ECC" = "no" && \
test "$ENABLED_RSA" = "no" test "$ENABLED_RSA" = "no" && test "$ENABLED_OPENSSLEXTRA" = "no" && \
test "$ENABLED_OPENSSLALL" ="yes"
then then
ENABLED_SP_MATH_ALL="no" ENABLED_SP_MATH_ALL="no"
ENABLED_FASTMATH="no" ENABLED_FASTMATH="no"