summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2152631)
raw | patch | inline | side by side (parent: 2152631)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Mar 2009 07:53:15 +0000 (08:53 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Mar 2009 07:53:15 +0000 (08:53 +0100) |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 0c45bc41c503d2e36db794421e90b7502f03fa44..5b72c133c6b3dadf05b06e754e2767e03a15e7b7 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_PREFIX_DEFAULT("/opt/oping")
+# API version
+LIBOPING_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1`
+LIBOPING_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2`
+LIBOPING_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3`
+AC_SUBST(LIBOPING_MAJOR)
+AC_SUBST(LIBOPING_MINOR)
+AC_SUBST(LIBOPING_PATCH)
+
+# ABI version
+LIBOPING_CURRENT=1
+LIBOPING_REVISION=0
+LIBOPING_AGE=1
+AC_SUBST(LIBOPING_CURRENT)
+AC_SUBST(LIBOPING_REVISION)
+AC_SUBST(LIBOPING_AGE)
+
#
# Check for programs/utilities
#
diff --git a/src/Makefile.am b/src/Makefile.am
index 4dc11f9d16a3820888dad31ade882006a614c3ca..f773f87f01fb1c403c317722416f0568bc46e9db 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
# set age to 0.
#
# <http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html>
-liboping_la_LDFLAGS = -version-info 1:0:1
+liboping_la_LDFLAGS = -version-info @LIBOPING_CURRENT@:@LIBOPING_REVISION@:@LIBOPING_AGE@
if BUILD_WITH_LIBSOCKET
liboping_la_LDFLAGS += -lsocket
endif