|
1 | 1 | AC_PREREQ([2.60])
|
2 |
| -AC_INIT([libsecp256k1],[0.1]) |
| 2 | + |
| 3 | +# The package (a.k.a. release) version is based on semantic versioning 2.0.0 of |
| 4 | +# the API. All changes in experimental modules are treated as |
| 5 | +# backwards-compatible and therefore at most increase the minor version. |
| 6 | +define(_PKG_VERSION_MAJOR, 0) |
| 7 | +define(_PKG_VERSION_MINOR, 1) |
| 8 | +define(_PKG_VERSION_BUILD, 0) |
| 9 | +define(_PKG_VERSION_IS_RELEASE, false) |
| 10 | + |
| 11 | +# The library version is based on libtool versioning of the ABI. The set of |
| 12 | +# rules for updating the version can be found here: |
| 13 | +# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html |
| 14 | +# All changes in experimental modules are treated as if they don't affect the |
| 15 | +# interface and therefore only increase the revision. |
| 16 | +define(_LIB_VERSION_CURRENT, 0) |
| 17 | +define(_LIB_VERSION_REVISION, 0) |
| 18 | +define(_LIB_VERSION_AGE, 0) |
| 19 | + |
| 20 | +AC_INIT([libsecp256k1],m4_join([.], _PKG_VERSION_MAJOR, _PKG_VERSION_MINOR, _PKG_VERSION_BUILD)m4_if(_PKG_VERSION_IS_RELEASE, [true], [], [-pre]),[https://github.com/bitcoin-core/secp256k1/issues],[libsecp256k1],[https://github.com/bitcoin-core/secp256k1]) |
| 21 | + |
3 | 22 | AC_CONFIG_AUX_DIR([build-aux])
|
4 | 23 | AC_CONFIG_MACRO_DIR([build-aux/m4])
|
5 | 24 | AC_CANONICAL_HOST
|
@@ -381,6 +400,9 @@ AM_CONDITIONAL([ENABLE_MODULE_EXTRAKEYS], [test x"$enable_module_extrakeys" = x"
|
381 | 400 | AM_CONDITIONAL([ENABLE_MODULE_SCHNORRSIG], [test x"$enable_module_schnorrsig" = x"yes"])
|
382 | 401 | AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"])
|
383 | 402 | AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"])
|
| 403 | +AC_SUBST(LIB_VERSION_CURRENT, _LIB_VERSION_CURRENT) |
| 404 | +AC_SUBST(LIB_VERSION_REVISION, _LIB_VERSION_REVISION) |
| 405 | +AC_SUBST(LIB_VERSION_AGE, _LIB_VERSION_AGE) |
384 | 406 |
|
385 | 407 | # Make sure nothing new is exported so that we don't break the cache.
|
386 | 408 | PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH"
|
|
0 commit comments