summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-05-14 12:45:43 +0000
committerMatthew Barnes <mbarnes@src.gnome.org>2008-05-14 12:45:43 +0000
commite94d7adbaa07a3af6df7c7f06c8d4ddd1fd1a856 (patch)
tree1555084aba0dea2efb4daf294ead059854ea2158 /configure.in
parent8b7caa32f385545e49749d163022074240c81ccb (diff)
downloadevolution-data-server-e94d7adbaa07a3af6df7c7f06c8d4ddd1fd1a856.tar.gz
** Fixes bug #531713
2008-05-14 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #531713 * configure.in: Split the evolution-data-server version into major/minor/micro macros (wow, say that five times fast!) so we can pass them to libedataserver/eds-version.c. * libedataserver/Makefile.am: * libedataserver/eds-version.c: * libedataserver/eds-version.h: New sources files provide macros and functions for checking the version of evolution-data-server. Would have been handy to have in a couple recent API breaks. * docs/references/libedataserver: Add developer documentation for the new symbols. svn path=/trunk/; revision=8793
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index c46a96ba4..7fc589199 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,15 @@
Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
-AC_INIT(evolution-data-server, 2.23.3)
+# Evolution-Data-Server version */
+m4_define([eds_major_version], [2])
+m4_define([eds_minor_version], [23])
+m4_define([eds_micro_version], [3])
+
+m4_define([eds_version],
+ [eds_major_version.eds_minor_version.eds_micro_version])
+
+AC_INIT(evolution-data-server, [eds_version])
AC_CONFIG_SRCDIR(README)
# Gross hack to enable 'make dist' on automake 1.9+tar 1.14.
@@ -38,6 +46,10 @@ AC_SUBST(API_VERSION)
AC_DEFINE_UNQUOTED(BASE_VERSION, "$BASE_VERSION", [Base version (Major.Minor)])
AC_DEFINE_UNQUOTED(API_VERSION, "$API_VERSION", [Api version (Major.Minor)])
+EDS_MAJOR_VERSION=eds_major_version
+EDS_MINOR_VERSION=eds_minor_version
+EDS_MICRO_VERSION=eds_micro_version
+
# Libtool versioning
LIBEDATASERVER_CURRENT=11
LIBEDATASERVER_REVISION=0
@@ -87,6 +99,9 @@ LIBEBACKEND_CURRENT=0
LIBEBACKEND_REVISION=0
LIBEBACKEND_AGE=0
+AC_SUBST(EDS_MAJOR_VERSION)
+AC_SUBST(EDS_MINOR_VERSION)
+AC_SUBST(EDS_MICRO_VERSION)
AC_SUBST(LIBEDATASERVER_CURRENT)
AC_SUBST(LIBEDATASERVER_REVISION)
AC_SUBST(LIBEDATASERVER_AGE)
@@ -1685,6 +1700,7 @@ libdb/Makefile
libebackend/Makefile
libebackend/libebackend.pc
libedataserver/Makefile
+libedataserver/eds-version.h
libedataserver/libedataserver.pc
libedataserverui/Makefile
libedataserverui/libedataserverui.pc