Skip to content

Commit 1bbe3ac

Browse files
configure: Reorder modules also for AC_ARG_ENABLE
1 parent 1e04d32 commit 1bbe3ac

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

configure.ac

+31-31
Original file line numberDiff line numberDiff line change
@@ -168,24 +168,26 @@ AC_ARG_ENABLE(examples,
168168
AS_HELP_STRING([--enable-examples],[compile the examples [default=no]]), [],
169169
[SECP_SET_DEFAULT([enable_examples], [no], [yes])])
170170

171-
AC_ARG_ENABLE(module_bppp,
172-
AS_HELP_STRING([--enable-module-bppp],[enable Bulletproofs++ module (experimental)]),
173-
[],
174-
[SECP_SET_DEFAULT([enable_module_bppp], [no], [yes])])
175-
176171
AC_ARG_ENABLE(module_ecdh,
177172
AS_HELP_STRING([--enable-module-ecdh],[enable ECDH module [default=yes]]), [],
178173
[SECP_SET_DEFAULT([enable_module_ecdh], [yes], [yes])])
179174

180-
AC_ARG_ENABLE(module_musig,
181-
AS_HELP_STRING([--enable-module-musig],[enable MuSig module (experimental)]),
182-
[],
183-
[SECP_SET_DEFAULT([enable_module_musig], [no], [yes])])
184-
185175
AC_ARG_ENABLE(module_recovery,
186176
AS_HELP_STRING([--enable-module-recovery],[enable ECDSA pubkey recovery module [default=no]]), [],
187177
[SECP_SET_DEFAULT([enable_module_recovery], [no], [yes])])
188178

179+
AC_ARG_ENABLE(module_extrakeys,
180+
AS_HELP_STRING([--enable-module-extrakeys],[enable extrakeys module [default=yes]]), [],
181+
[SECP_SET_DEFAULT([enable_module_extrakeys], [yes], [yes])])
182+
183+
AC_ARG_ENABLE(module_schnorrsig,
184+
AS_HELP_STRING([--enable-module-schnorrsig],[enable schnorrsig module [default=yes]]), [],
185+
[SECP_SET_DEFAULT([enable_module_schnorrsig], [yes], [yes])])
186+
187+
AC_ARG_ENABLE(module_ellswift,
188+
AS_HELP_STRING([--enable-module-ellswift],[enable ElligatorSwift module [default=yes]]), [],
189+
[SECP_SET_DEFAULT([enable_module_ellswift], [yes], [yes])])
190+
189191
AC_ARG_ENABLE(module_generator,
190192
AS_HELP_STRING([--enable-module-generator],[enable NUMS generator module [default=no]]),
191193
[],
@@ -196,28 +198,35 @@ AC_ARG_ENABLE(module_rangeproof,
196198
[],
197199
[SECP_SET_DEFAULT([enable_module_rangeproof], [no], [yes])])
198200

201+
AC_ARG_ENABLE(module_surjectionproof,
202+
AS_HELP_STRING([--enable-module-surjectionproof],[enable surjection proof module [default=no]]),
203+
[],
204+
[SECP_SET_DEFAULT([enable_module_surjectionproof], [no], [yes])])
205+
AC_ARG_ENABLE(reduced_surjection_proof_size,
206+
AS_HELP_STRING([--enable-reduced-surjection-proof-size],[use reduced surjection proof size (disabling parsing and verification) [default=no]]),
207+
[],
208+
[SECP_SET_DEFAULT([use_reduced_surjection_proof_size], [no], [no])])
209+
199210
AC_ARG_ENABLE(module_whitelist,
200211
AS_HELP_STRING([--enable-module-whitelist],[enable key whitelisting module [default=no]]),
201212
[],
202213
[SECP_SET_DEFAULT([enable_module_whitelist], [no], [yes])])
203214

204-
AC_ARG_ENABLE(module_extrakeys,
205-
AS_HELP_STRING([--enable-module-extrakeys],[enable extrakeys module [default=yes]]), [],
206-
[SECP_SET_DEFAULT([enable_module_extrakeys], [yes], [yes])])
207-
208-
AC_ARG_ENABLE(module_schnorrsig,
209-
AS_HELP_STRING([--enable-module-schnorrsig],[enable schnorrsig module [default=yes]]), [],
210-
[SECP_SET_DEFAULT([enable_module_schnorrsig], [yes], [yes])])
211-
212-
AC_ARG_ENABLE(module_ellswift,
213-
AS_HELP_STRING([--enable-module-ellswift],[enable ElligatorSwift module [default=yes]]), [],
214-
[SECP_SET_DEFAULT([enable_module_ellswift], [yes], [yes])])
215+
AC_ARG_ENABLE(module_musig,
216+
AS_HELP_STRING([--enable-module-musig],[enable MuSig module (experimental)]),
217+
[],
218+
[SECP_SET_DEFAULT([enable_module_musig], [no], [yes])])
215219

216220
AC_ARG_ENABLE(module_ecdsa_s2c,
217221
AS_HELP_STRING([--enable-module-ecdsa-s2c],[enable ECDSA sign-to-contract module [default=no]]),
218222
[],
219223
[SECP_SET_DEFAULT([enable_module_ecdsa_s2c], [no], [yes])])
220224

225+
AC_ARG_ENABLE(module_bppp,
226+
AS_HELP_STRING([--enable-module-bppp],[enable Bulletproofs++ module (experimental)]),
227+
[],
228+
[SECP_SET_DEFAULT([enable_module_bppp], [no], [yes])])
229+
221230
AC_ARG_ENABLE(module_ecdsa-adaptor,
222231
AS_HELP_STRING([--enable-module-ecdsa-adaptor],[enable ECDSA adaptor module [default=no]]),
223232
[],
@@ -227,16 +236,6 @@ AC_ARG_ENABLE(external_default_callbacks,
227236
AS_HELP_STRING([--enable-external-default-callbacks],[enable external default callback functions [default=no]]), [],
228237
[SECP_SET_DEFAULT([enable_external_default_callbacks], [no], [no])])
229238

230-
AC_ARG_ENABLE(module_surjectionproof,
231-
AS_HELP_STRING([--enable-module-surjectionproof],[enable surjection proof module [default=no]]),
232-
[],
233-
[SECP_SET_DEFAULT([enable_module_surjectionproof], [no], [yes])])
234-
235-
AC_ARG_ENABLE(reduced_surjection_proof_size,
236-
AS_HELP_STRING([--enable-reduced-surjection-proof-size],[use reduced surjection proof size (disabling parsing and verification) [default=no]]),
237-
[],
238-
[SECP_SET_DEFAULT([use_reduced_surjection_proof_size], [no], [no])])
239-
240239
# Test-only override of the (autodetected by the C code) "widemul" setting.
241240
# Legal values are:
242241
# * int64 (for [u]int64_t),
@@ -623,6 +622,7 @@ echo " module recovery = $enable_module_recovery"
623622
echo " module extrakeys = $enable_module_extrakeys"
624623
echo " module schnorrsig = $enable_module_schnorrsig"
625624
echo " module ellswift = $enable_module_ellswift"
625+
# libsecp256k1-zkp modules, in the order they were added to the library
626626
echo " module generator = $enable_module_generator"
627627
echo " module rangeproof = $enable_module_rangeproof"
628628
echo " module surjectionproof = $enable_module_surjectionproof"

0 commit comments

Comments
 (0)