summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-04-01 13:50:28 (GMT)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-04-01 14:10:11 (GMT)
commitb24e57790166949fc4ab1d5d9040ddbe16e5dd03 (patch)
tree9d7c8b10595651fdf532a8675f41896e1704300d
parenta9f9ad97bd3323f5b3bf366ac44149babdef9e98 (diff)
downloadtelepathy-yell-b24e57790166949fc4ab1d5d9040ddbe16e5dd03.tar.gz
telepathy-yell-b24e57790166949fc4ab1d5d9040ddbe16e5dd03.tar.xz
Add infrastructure for libtool versioning
-rw-r--r--configure.ac17
-rw-r--r--telepathy-yell/Makefile.am3
2 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b9995d4..5c51aea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,16 @@ m4_define([tp_yell_minor_version], [0])
m4_define([tp_yell_micro_version], [0])
m4_define([tp_yell_nano_version], [1])
+# If 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
+# If interfaces have been removed since last release, set age to 0
+
+m4_define([tp_yell_lt_current], [0])
+m4_define([tp_yell_lt_revision], [0])
+m4_define([tp_yell_lt_age], [0])
+
# Some magic
m4_define([tp_yell_base_version],
[tp_yell_major_version.tp_yell_minor_version.tp_yell_micro_version])
@@ -39,6 +49,13 @@ AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
AM_PROG_MKDIR_P
+LT_CURRENT=tp_yell_lt_current
+LT_REVISION=tp_yell_lt_revision
+LT_AGE=tp_yell_lt_age
+AC_SUBST([LT_CURRENT])
+AC_SUBST([LT_REVISION])
+AC_SUBST([LT_AGE])
+
dnl optimizations, etc.
COMPILER_OPTIMISATIONS
COMPILER_COVERAGE
diff --git a/telepathy-yell/Makefile.am b/telepathy-yell/Makefile.am
index 8800596..cf1302e 100644
--- a/telepathy-yell/Makefile.am
+++ b/telepathy-yell/Makefile.am
@@ -8,6 +8,9 @@ pkgconfigdir = ${libdir}/pkgconfig
pkgconfig_DATA = telepathy-yell.pc
tpyincludedir=$(includedir)/telepathy-1.0/telepathy-yell
genincludedir=$(tpyincludedir)/_gen
+libtelepathy_yell_la_LDFLAGS = -no-undefined \
+ -export-symbols-regex "^tpy_.*" \
+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
else
noinst_LTLIBRARIES = libtelepathy-yell.la
endif