Skip to content

Commit 4590c5d

Browse files
configure: Fix reduced surjection proof size
The variable set automatically by AC_ARG_ENABLE is called enable_...
1 parent 1bbe3ac commit 4590c5d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

configure.ac

+10-3
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

@@ -622,10 +622,17 @@ echo " module recovery = $enable_module_recovery"
622622
echo " module extrakeys = $enable_module_extrakeys"
623623
echo " module schnorrsig = $enable_module_schnorrsig"
624624
echo " module ellswift = $enable_module_ellswift"
625-
# libsecp256k1-zkp modules, in the order they were added to the library
625+
# libsecp256k1-zkp modules come after the upstream modules, in the order they
626+
# were added to the libsecp256k1-zkp. The order in which all modules (upstream
627+
# and ours) are listed here should be considered the canonical order. This order
628+
# (or, when appropriate, its reserve) should be used everywhere we list modules,
629+
# i.e., here and in other build system files and docs.
626630
echo " module generator = $enable_module_generator"
627631
echo " module rangeproof = $enable_module_rangeproof"
628632
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
629636
echo " module whitelist = $enable_module_whitelist"
630637
echo " module musig = $enable_module_musig"
631638
echo " module ecdsa-s2c = $enable_module_ecdsa_s2c"

0 commit comments

Comments
 (0)