diff options
author | fanquake <fanquake@gmail.com> | 2022-04-06 20:20:30 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-06 20:20:30 +0100 |
commit | 2619657c993a228ca4c5c1a1085d5a6bcf5946cb (patch) | |
tree | f1b7d33e0271d46eca94f73c4d33cd1cd77f0f4c /src/secp256k1/build-aux | |
parent | 41720a1f540ef3c16a283a6cce6f0a63552a4937 (diff) | |
parent | afb7a6fe06a33956ef43429d31f5934448f6e671 (diff) | |
download | bitcoin-2619657c993a228ca4c5c1a1085d5a6bcf5946cb.tar.xz |
Update secp256k1 subtree to latest upstream master
Diffstat (limited to 'src/secp256k1/build-aux')
-rw-r--r-- | src/secp256k1/build-aux/m4/bitcoin_secp.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/secp256k1/build-aux/m4/bitcoin_secp.m4 b/src/secp256k1/build-aux/m4/bitcoin_secp.m4 index c14d09fa1b..dda770e001 100644 --- a/src/secp256k1/build-aux/m4/bitcoin_secp.m4 +++ b/src/secp256k1/build-aux/m4/bitcoin_secp.m4 @@ -38,3 +38,16 @@ AC_DEFUN([SECP_TRY_APPEND_CFLAGS], [ unset flag_works AC_SUBST($2) ]) + +dnl SECP_SET_DEFAULT(VAR, default, default-dev-mode) +dnl Set VAR to default or default-dev-mode, depending on whether dev mode is enabled +AC_DEFUN([SECP_SET_DEFAULT], [ + if test "${enable_dev_mode+set}" != set; then + AC_MSG_ERROR([[Set enable_dev_mode before calling SECP_SET_DEFAULT]]) + fi + if test x"$enable_dev_mode" = x"yes"; then + $1="$3" + else + $1="$2" + fi +]) |