diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2019-01-22 14:25:46 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2019-01-23 09:05:05 +0100 |
commit | 8b9fe86bd1163c0411f45daa3f844004e3037970 (patch) | |
tree | 9a695126cf4b7dfa40cd1384d422fe75a5656b84 /m4 | |
parent | Merge branch 'no_sign_empty_update' into 'master' (diff) | |
download | knot-8b9fe86bd1163c0411f45daa3f844004e3037970.tar.xz knot-8b9fe86bd1163c0411f45daa3f844004e3037970.zip |
Add 'soname' variable to pkg-config files
Diffstat (limited to 'm4')
-rw-r--r-- | m4/knot-lib-version.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/knot-lib-version.m4 b/m4/knot-lib-version.m4 new file mode 100644 index 000000000..47f882dfa --- /dev/null +++ b/m4/knot-lib-version.m4 @@ -0,0 +1,13 @@ +# KNOT_LIB_VERSION([library-name], [current], [revision], [age]) +# -------------------------------------------------------------- +# See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html + +AC_DEFUN([KNOT_LIB_VERSION], +[ + AC_SUBST([$1_VERSION_INFO], ["-version-info $2:$3:$4"]) + AC_SUBST([$1_SOVERSION], ["$2"]) + AS_CASE([$host_os], + [darwin*], [AC_SUBST([$1_SONAME], ["$1.$2.dylib"])], + [*], [AC_SUBST([$1_SONAME], ["$1.so.$2"])] + ) +]) |