@@ -134,6 +134,11 @@ AC_ARG_ENABLE(module_schnorrsig,
134
134
[ enable_module_schnorrsig=$enableval] ,
135
135
[ enable_module_schnorrsig=no] )
136
136
137
+ AC_ARG_ENABLE ( module_musig ,
138
+ AS_HELP_STRING ( [ --enable-module-musig] ,[ enable MuSig module (experimental)] ) ,
139
+ [ enable_module_musig=$enableval] ,
140
+ [ enable_module_musig=no] )
141
+
137
142
AC_ARG_ENABLE ( module_recovery ,
138
143
AS_HELP_STRING ( [ --enable-module-recovery] ,[ enable ECDSA pubkey recovery module (default is no)] ) ,
139
144
[ enable_module_recovery=$enableval] ,
@@ -472,6 +477,10 @@ if test x"$enable_module_schnorrsig" = x"yes"; then
472
477
AC_DEFINE ( ENABLE_MODULE_SCHNORRSIG , 1 , [ Define this symbol to enable the schnorrsig module] )
473
478
fi
474
479
480
+ if test x"$enable_module_musig" = x"yes"; then
481
+ AC_DEFINE ( ENABLE_MODULE_MUSIG , 1 , [ Define this symbol to enable the MuSig module] )
482
+ fi
483
+
475
484
if test x"$enable_module_recovery" = x"yes"; then
476
485
AC_DEFINE ( ENABLE_MODULE_RECOVERY , 1 , [ Define this symbol to enable the ECDSA pubkey recovery module] )
477
486
fi
@@ -520,8 +529,16 @@ if test x"$enable_experimental" = x"yes"; then
520
529
AC_MSG_NOTICE ( [ Building key whitelisting module: $enable_module_whitelist] )
521
530
AC_MSG_NOTICE ( [ Building surjection proof module: $enable_module_surjectionproof] )
522
531
AC_MSG_NOTICE ( [ Building schnorrsig module: $enable_module_schnorrsig] )
532
+ AC_MSG_NOTICE ( [ Building MuSig module: $enable_module_musig] )
523
533
AC_MSG_NOTICE ( [ ******] )
524
534
535
+
536
+ if test x"$enable_module_schnorrsig" != x"yes"; then
537
+ if test x"$enable_module_musig" = x"yes"; then
538
+ AC_MSG_ERROR ( [ MuSig module requires the schnorrsig module. Use --enable-module-schnorrsig to allow.] )
539
+ fi
540
+ fi
541
+
525
542
if test x"$enable_module_generator" != x"yes"; then
526
543
if test x"$enable_module_rangeproof" = x"yes"; then
527
544
AC_MSG_ERROR ( [ Rangeproof module requires the generator module. Use --enable-module-generator to allow.] )
543
560
if test x"$enable_module_schnorrsig" = x"yes"; then
544
561
AC_MSG_ERROR ( [ schnorrsig module is experimental. Use --enable-experimental to allow.] )
545
562
fi
563
+ if test x"$enable_module_musig" = x"yes"; then
564
+ AC_MSG_ERROR ( [ MuSig module is experimental. Use --enable-experimental to allow.] )
565
+ fi
546
566
if test x"$set_asm" = x"arm"; then
547
567
AC_MSG_ERROR ( [ ARM assembly optimization is experimental. Use --enable-experimental to allow.] )
548
568
fi
@@ -574,6 +594,7 @@ AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"])
574
594
AM_CONDITIONAL([ USE_ECMULT_STATIC_PRECOMPUTATION] , [ test x"$set_precomp" = x"yes"] )
575
595
AM_CONDITIONAL([ ENABLE_MODULE_ECDH] , [ test x"$enable_module_ecdh" = x"yes"] )
576
596
AM_CONDITIONAL([ ENABLE_MODULE_SCHNORRSIG] , [ test x"$enable_module_schnorrsig" = x"yes"] )
597
+ AM_CONDITIONAL([ ENABLE_MODULE_MUSIG] , [ test x"$enable_module_musig" = x"yes"] )
577
598
AM_CONDITIONAL([ ENABLE_MODULE_RECOVERY] , [ test x"$enable_module_recovery" = x"yes"] )
578
599
AM_CONDITIONAL([ ENABLE_MODULE_GENERATOR] , [ test x"$enable_module_generator" = x"yes"] )
579
600
AM_CONDITIONAL([ ENABLE_MODULE_RANGEPROOF] , [ test x"$enable_module_rangeproof" = x"yes"] )
0 commit comments