summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-06-14 15:15:23 +0200
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commitd6df71beed6d82538c6375895fb8341dfab06573 (patch)
tree5b3903971a3604d649581ebecec0582fad6b9101
parenta28666ee996ffd1d293751b642275c971e0d0124 (diff)
downloadmarco-d6df71beed6d82538c6375895fb8341dfab06573.tar.bz2
marco-d6df71beed6d82538c6375895fb8341dfab06573.tar.xz
libmarco-private: add version information
-rw-r--r--configure.ac11
-rw-r--r--src/Makefile.am2
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8a061419..75039d42 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,17 @@ AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
+dnl **************************************************************************
+dnl Library version information
+dnl **************************************************************************
+
+m4_define([lt_current], [1])
+m4_define([lt_revision], [0])
+m4_define([lt_age], [0])
+m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
+
+AC_SUBST([LT_VERSION_INFO], [lt_version_info])
+
# Honor aclocal flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
diff --git a/src/Makefile.am b/src/Makefile.am
index f829456b..7ef7fef2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -116,7 +116,7 @@ libmarco_private_la_SOURCES= \
ui/ui.c \
include/all-keybindings.h
-libmarco_private_la_LDFLAGS = -no-undefined -version-info 1:0:0
+libmarco_private_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION_INFO)
libmarco_private_la_LIBADD = @MARCO_LIBS@
libmarcoincludedir = $(includedir)/marco-1/marco-private