summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
-rw-r--r--src/Makefile.am2
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 881c49d..62f8189 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,16 @@ AM_INIT_AUTOMAKE(libvformat, 1.2.0)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AM_CONFIG_HEADER(config.h)
+dnl libtool versioning
+# +1 : 0 : +1 == adds new functions to the interface
+# +1 : 0 : 0 == changes or removes functions (changes include both
+# changes to the signature and the semantic)
+# ? :+1 : ? == just internal changes
+# CURRENT : REVISION : AGE
+LIBVFORMAT_SO_VERSION=0:0:0
+
+AC_SUBST(LIBVFORMAT_SO_VERSION)
+
# Checks for programs.
# AC_PROG_CC
diff --git a/src/Makefile.am b/src/Makefile.am
index 7bedc4e..33170f2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,7 @@ libvformat_la_SOURCES = vf_access.c vf_malloc.c vf_strings.c vf_access_wrapper
EXTRA_DIST = *.h
-libvformat_la_LDFLAGS = -version-info 0
+libvformat_la_LDFLAGS = -version-info $(LIBVFORMAT_SO_VERSION)
if WIN32
libvformat_la_LDFLAGS += -no-undefined
endif