@@ -114,49 +114,54 @@ SECP_TRY_APPEND_DEFAULT_CFLAGS(SECP_CFLAGS)
114
114
# ## Define config arguments
115
115
# ##
116
116
117
+ # In dev mode, we enable all binaries and modules by default but individual options can still be overridden explicitly.
118
+ # Check for dev mode first because SECP_SET_DEFAULT needs enable_dev_mode set.
119
+ AC_ARG_ENABLE ( dev_mode , [ ] , [ ] ,
120
+ [ enable_dev_mode=no] )
121
+
117
122
AC_ARG_ENABLE ( benchmark ,
118
123
AS_HELP_STRING ( [ --enable-benchmark] ,[ compile benchmark [ default=yes] ] ) , [ ] ,
119
- [ enable_benchmark= yes] )
124
+ [ SECP_SET_DEFAULT( [ enable_benchmark] , [ yes] , [ yes ] ) ] )
120
125
121
126
AC_ARG_ENABLE ( coverage ,
122
127
AS_HELP_STRING ( [ --enable-coverage] ,[ enable compiler flags to support kcov coverage analysis [ default=no] ] ) , [ ] ,
123
- [ enable_coverage=no ] )
128
+ [ SECP_SET_DEFAULT( [ enable_coverage] , [ no ] , [ no ] ) ] )
124
129
125
130
AC_ARG_ENABLE ( tests ,
126
131
AS_HELP_STRING ( [ --enable-tests] ,[ compile tests [ default=yes] ] ) , [ ] ,
127
- [ enable_tests= yes] )
132
+ [ SECP_SET_DEFAULT( [ enable_tests] , [ yes] , [ yes ] ) ] )
128
133
129
134
AC_ARG_ENABLE ( experimental ,
130
135
AS_HELP_STRING ( [ --enable-experimental] ,[ allow experimental configure options [ default=no] ] ) , [ ] ,
131
- [ enable_experimental=no ] )
136
+ [ SECP_SET_DEFAULT( [ enable_experimental] , [ no ] , [ yes ] ) ] )
132
137
133
138
AC_ARG_ENABLE ( exhaustive_tests ,
134
139
AS_HELP_STRING ( [ --enable-exhaustive-tests] ,[ compile exhaustive tests [ default=yes] ] ) , [ ] ,
135
- [ enable_exhaustive_tests= yes] )
140
+ [ SECP_SET_DEFAULT( [ enable_exhaustive_tests] , [ yes] , [ yes ] ) ] )
136
141
137
142
AC_ARG_ENABLE ( examples ,
138
143
AS_HELP_STRING ( [ --enable-examples] ,[ compile the examples [ default=no] ] ) , [ ] ,
139
- [ enable_examples=no ] )
144
+ [ SECP_SET_DEFAULT( [ enable_examples] , [ no ] , [ yes ] ) ] )
140
145
141
146
AC_ARG_ENABLE ( module_ecdh ,
142
147
AS_HELP_STRING ( [ --enable-module-ecdh] ,[ enable ECDH shared secret computation] ) , [ ] ,
143
- [ enable_module_ecdh=no ] )
148
+ [ SECP_SET_DEFAULT( [ enable_module_ecdh] , [ no ] , [ yes ] ) ] )
144
149
145
150
AC_ARG_ENABLE ( module_recovery ,
146
151
AS_HELP_STRING ( [ --enable-module-recovery] ,[ enable ECDSA pubkey recovery module [ default=no] ] ) , [ ] ,
147
- [ enable_module_recovery=no ] )
152
+ [ SECP_SET_DEFAULT( [ enable_module_recovery] , [ no ] , [ yes ] ) ] )
148
153
149
154
AC_ARG_ENABLE ( module_extrakeys ,
150
155
AS_HELP_STRING ( [ --enable-module-extrakeys] ,[ enable extrakeys module (experimental)] ) , [ ] ,
151
- [ enable_module_extrakeys=no ] )
156
+ [ SECP_SET_DEFAULT( [ enable_module_extrakeys] , [ no ] , [ yes ] ) ] )
152
157
153
158
AC_ARG_ENABLE ( module_schnorrsig ,
154
159
AS_HELP_STRING ( [ --enable-module-schnorrsig] ,[ enable schnorrsig module (experimental)] ) , [ ] ,
155
- [ enable_module_schnorrsig=no ] )
160
+ [ SECP_SET_DEFAULT( [ enable_module_schnorrsig] , [ no ] , [ yes ] ) ] )
156
161
157
162
AC_ARG_ENABLE ( external_default_callbacks ,
158
163
AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) , [ ] ,
159
- [ enable_external_default_callbacks=no ] )
164
+ [ SECP_SET_DEFAULT( [ enable_external_default_callbacks] , [ no ] , [ no ] ) ] )
160
165
161
166
# Test-only override of the (autodetected by the C code) "widemul" setting.
162
167
# Legal values are int64 (for [u]int64_t), int128 (for [unsigned] __int128), and auto (the default).
0 commit comments