Skip to content

Commit 860e3bb

Browse files
configure: Fix reduced surjection proof size
The variable set automatically by AC_ARG_ENABLE is called enable_...
1 parent 0873358 commit 860e3bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

configure.ac

+5-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ AC_ARG_ENABLE(module_surjectionproof,
205205
AC_ARG_ENABLE(reduced_surjection_proof_size,
206206
AS_HELP_STRING([--enable-reduced-surjection-proof-size],[use reduced surjection proof size (disabling parsing and verification) [default=no]]),
207207
[],
208-
[SECP_SET_DEFAULT([use_reduced_surjection_proof_size], [no], [no])])
208+
[SECP_SET_DEFAULT([enable_reduced_surjection_proof_size], [no], [no])])
209209

210210
AC_ARG_ENABLE(module_whitelist,
211211
AS_HELP_STRING([--enable-module-whitelist],[enable key whitelisting module [default=no]]),
@@ -526,7 +526,7 @@ if test x"$enable_external_default_callbacks" = x"yes"; then
526526
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DUSE_EXTERNAL_DEFAULT_CALLBACKS=1"
527527
fi
528528

529-
if test x"$use_reduced_surjection_proof_size" = x"yes"; then
529+
if test x"$enable_reduced_surjection_proof_size" = x"yes"; then
530530
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DUSE_REDUCED_SURJECTION_PROOF_SIZE=1"
531531
fi
532532

@@ -630,6 +630,9 @@ echo " module ellswift = $enable_module_ellswift"
630630
echo " module generator = $enable_module_generator"
631631
echo " module rangeproof = $enable_module_rangeproof"
632632
echo " module surjectionproof = $enable_module_surjectionproof"
633+
if test x"$enable_module_surjectionproof" = x"yes" && test x"$enable_reduced_surjection_proof_size" = x"yes"; then
634+
echo " reduced proof size = $enable_reduced_surjection_proof_size"
635+
fi
633636
echo " module whitelist = $enable_module_whitelist"
634637
echo " module musig = $enable_module_musig"
635638
echo " module ecdsa-s2c = $enable_module_ecdsa_s2c"

0 commit comments

Comments
 (0)