gnome-main-menu r386 - in trunk: . libslab



Author: federico
Date: Fri Feb  8 18:16:41 2008
New Revision: 386
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=386&view=rev

Log:
Use libtool versioning for libslab
2008-02-08  Federico Mena Quintero  <federico novell com>

	* configure.in (libslab_major_version libslab_minor_version
	libslab_micro_version libslab_interface_age): New m4 defines so
	that we can have proper versioning with libtool.  This is copied
	from libgnomeui/configure.in.

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/ChangeLog
   trunk/configure.in
   trunk/libslab/ChangeLog
   trunk/libslab/Makefile.am

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Fri Feb  8 18:16:41 2008
@@ -1,4 +1,27 @@
-AC_INIT([gnome-main-menu], [0.9.9], [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-main-menu])
+AC_PREREQ(2.54)
+
+# These version numbers are for gnome-main-menu and libslab.  The interface/binary age is for libslab.
+# Making releases:
+#   LIBSLAB_VERSION += 1;
+#   LIBSLAB_INTERFACE_AGE += 1;
+#   LIBSLAB_BINARY_AGE += 1;
+# if any functions have been added, set LIBSLAB_INTERFACE_AGE to 0.
+# if backwards compatibility has been broken,
+# set LIBSLAB_BINARY_AGE and LIBSLAB_INTERFACE_AGE to 0.
+#
+m4_define([libslab_major_version], [0])
+m4_define([libslab_minor_version], [9])
+m4_define([libslab_micro_version], [9])
+m4_define([libslab_interface_age], [0])
+
+dnl libtool versioning from libgnomeui
+m4_define([libslab_current], [m4_eval(100 * libslab_minor_version + libslab_micro_version - libslab_interface_age)])
+m4_define([libslab_binary_age], [m4_eval(100 * libslab_minor_version + libslab_micro_version)])
+m4_define([libslab_revision], [libslab_interface_age])
+m4_define([libslab_age], [m4_eval(libslab_binary_age - libslab_interface_age)])
+m4_define([libslab_version], [libslab_major_version().libslab_minor_version().libslab_micro_version()])
+
+AC_INIT([gnome-main-menu], [libslab_version], [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-main-menu])
 
 AC_CONFIG_SRCDIR([.])
 AC_CONFIG_HEADERS([config.h])
@@ -8,6 +31,14 @@
 
 AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
 
+dnl libtool versioning from libgnomeui
+LIBSLAB_CURRENT=libslab_current
+LIBSLAB_REVISION=libslab_revision
+LIBSLAB_AGE=libslab_age
+AC_SUBST(LIBSLAB_CURRENT)
+AC_SUBST(LIBSLAB_REVISION)
+AC_SUBST(LIBSLAB_AGE)
+
 GNOME_COMPILE_WARNINGS
 
 AC_ISC_POSIX

Modified: trunk/libslab/Makefile.am
==============================================================================
--- trunk/libslab/Makefile.am	(original)
+++ trunk/libslab/Makefile.am	Fri Feb  8 18:16:41 2008
@@ -73,6 +73,9 @@
 
 libslab_la_LIBADD = $(LIBSLAB_LIBS)
 
+libslab_la_LDFLAGS = \
+	-version-info $(LIBSLAB_CURRENT):$(LIBSLAB_REVISION):$(LIBSLAB_AGE)
+
 if ENABLE_DYNAMIC_LIBSLAB
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libslab.pc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]