From b045529c40c83601909dca7b76a53498e9a70f33 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 21:05:44 +0200 Subject: Adding upstream version 3.3.4. Signed-off-by: Daniel Baumann --- m4/knot-lib-version.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 m4/knot-lib-version.m4 (limited to 'm4/knot-lib-version.m4') diff --git a/m4/knot-lib-version.m4 b/m4/knot-lib-version.m4 new file mode 100644 index 0000000..1627957 --- /dev/null +++ b/m4/knot-lib-version.m4 @@ -0,0 +1,16 @@ +# 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], +[ + m4_define([LIBNAME], patsubst($1, [^lib], []))dnl + 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"])], + [cygwin*], [AC_SUBST([$1_SONAME], [["cyg]LIBNAME[-$2.dll"]])], + [msys*], [AC_SUBST([$1_SONAME], [["msys-]LIBNAME[-$2.dll"]])], + [*], [AC_SUBST([$1_SONAME], ["$1.so.$2"])] + ) +]) -- cgit v1.2.3