summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac14
-rw-r--r--extensions/Makefile.am2
2 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a0282d0..780d053 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ m4_define([tpl_minor_version], [1])
m4_define([tpl_micro_version], [2])
m4_define([tpl_nano_version], [1])
-# If library source has changed since last release, increment revision
+# If Tpl library source has changed since last release, increment revision
# If interfaces have been added, removed or changed since last release,
# increment current and set revision to 0
# If interfaces have been added since last release, increment age
@@ -12,6 +12,11 @@ m4_define([tpl_lt_current], [1])
m4_define([tpl_lt_revision], [0])
m4_define([tpl_lt_age], [0])
+# The same for the extensions library produced by --enable-public-extensions
+m4_define([tpl_ext_lt_current], [1])
+m4_define([tpl_ext_lt_revision], [0])
+m4_define([tpl_ext_lt_age], [0])
+
dnl Display the nano_version only if it's not '0'
m4_define([tpl_base_version],
[tpl_major_version.tpl_minor_version.tpl_micro_version])
@@ -47,6 +52,13 @@ AC_SUBST([TPL_LT_AGE])
TPL_ABI_VERSION=`expr ${TPL_LT_CURRENT} - ${TPL_LT_AGE}`
AC_SUBST([TPL_ABI_VERSION])
+TPL_EXT_LT_CURRENT=tpl_ext_lt_current
+TPL_EXT_LT_REVISION=tpl_ext_lt_revision
+TPL_EXT_LT_AGE=tpl_ext_lt_age
+AC_SUBST([TPL_EXT_LT_CURRENT])
+AC_SUBST([TPL_EXT_LT_REVISION])
+AC_SUBST([TPL_EXT_LT_AGE])
+
AC_PREREQ(2.59)
AC_COPYRIGHT([
Copyright (C) 2003-2007 Imendio AB
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index c94184f..72d9678 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -74,6 +74,8 @@ lib_LTLIBRARIES = libtpl-extensions.la
libtpl_extensions_la_SOURCES =
libtpl_extensions_la_LIBADD = libtpl-extensions-convenience.la
+libtpl_extensions_la_LDFLAGS = \
+ -version-info "$(TPL_EXT_LT_CURRENT)":"$(TPL_EXT_LT_REVISION)":"$(TPL_EXT_LT_AGE)"
endif # ENABLE_PUBLIC_EXTENSIONS
AM_CFLAGS = $(ERROR_CFLAGS) @LIBTPL_CFLAGS@