X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=configure.ac;h=64482c0ed1b5c7c9be6ae58bb52e740b154b6669;hb=f28565d119b13be06615e377be67753a6be672ca;hp=940e13171fd49e73a357a76f22e935c33e5cb554;hpb=451e3d74f9fb9b885428336e4125406b29c1ed4d;p=evince.git diff --git a/configure.ac b/configure.ac index 940e1317..64482c0e 100644 --- a/configure.ac +++ b/configure.ac @@ -1,12 +1,48 @@ -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.57) -AC_INIT([Evince],[2.25.4],[http://bugzilla.gnome.org/enter_bug.cgi?product=evince],[evince]) +# ***************************************************************************** +# Versioning +# ***************************************************************************** + +m4_define([ev_major_version],[2]) +m4_define([ev_minor_version],[25]) +m4_define([ev_micro_version],[5]) +m4_define([ev_extra_version],[]) +m4_define([ev_version],[ev_major_version.ev_minor_version.ev_micro_version()ev_extra_version]) + +# The evince API version +m4_define([ev_api_version], [2.25]) + +# Libtool versioning. The backend and view libraries have separate versions. +# Before making a release, the libtool version should be modified. +# The string is of the form C:R:A. +# - If interfaces have been changed or added, but binary compatibility has +# been preserved, change to C+1:0:A+1 +# - If binary compatibility has been broken (eg removed or changed interfaces) +# change to C+1:0:0 +# - If the interface is the same as the previous version, change to C:R+1:A + +# Libtool version of the backend library +m4_define([ev_document_lt_current],[1]) +m4_define([ev_document_lt_revision],[0]) +m4_define([ev_document_lt_age],[0]) +m4_define([ev_document_lt_version_info],[ev_document_lt_current:ev_document_lt_revision:ev_document_lt_age]) +m4_define([ev_document_lt_current_minus_age],[m4_eval(ev_document_lt_current - ev_document_lt_age)]) + +# Libtool version of the view library +m4_define([ev_view_lt_current],[1]) +m4_define([ev_view_lt_revision],[0]) +m4_define([ev_view_lt_age],[0]) +m4_define([ev_view_lt_version_info],[ev_view_lt_current:ev_view_lt_revision:ev_view_lt_age]) +m4_define([ev_view_lt_current_minus_age],[m4_eval(ev_view_lt_current - ev_view_lt_age)]) + +# Binary version for the document backends +m4_define([ev_binary_version],[ev_document_lt_current]) + +# ***************************************************************************** + +AC_PREREQ([2.57]) +AC_INIT([Evince],[ev_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=evince],[evince]) AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip]) -EV_API_VERSION=2.25 -AC_SUBST(EV_API_VERSION) - AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE @@ -16,6 +52,7 @@ AM_PROG_LIBTOOL AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC +AM_PROG_CC_C_O AC_PROG_CXX AC_STDC_HEADERS IT_PROG_INTLTOOL([0.35.0]) @@ -48,6 +85,8 @@ DBUS_GLIB_REQUIRED=0.70 GTK_REQUIRED=2.12.0 GLIB_REQUIRED=2.18.0 KEYRING_REQUIRED=2.22.0 +AC_SUBST([GLIB_REQUIRED]) +AC_SUBST([GTK_REQUIRED]) GNOME_ICON_THEME_REQUIRED=2.17.1 LIBXML_REQUIRED=2.5.0 @@ -62,7 +101,7 @@ PKG_CHECK_MODULES(SMCLIENT, gtk+-2.0 gthread-2.0) AC_SUBST(SMCLIENT_CFLAGS) AC_SUBST(SMCLIENT_LIBS) -BACKEND_LIBTOOL_FLAGS="-module -avoid-version" +BACKEND_LIBTOOL_FLAGS="-module -avoid-version -export-symbols \$(top_srcdir)/backend/backend.symbols" AC_SUBST(BACKEND_LIBTOOL_FLAGS) dnl ===== Check special functions @@ -413,6 +452,26 @@ AC_SUBST(EVINCE_MIME_TYPES) AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system])) +# Backends directory + +AC_SUBST([backenddir],"\$(libdir)/evince/ev_binary_version/backends") + +# Versioning + +AC_SUBST([EV_MAJOR_VERSION],[ev_major_version]) +AC_SUBST([EV_MINOR_VERSION],[ev_minor_version]) +AC_SUBST([EV_MICRO_VERSION],[ev_micro_version]) + +AC_SUBST([EV_API_VERSION],[ev_api_version]) +AC_SUBST([EV_BINARY_VERSION],[ev_binary_version]) + +AC_SUBST([EV_DOCUMENT_LT_VERSION_INFO],[ev_document_lt_version_info]) +AC_SUBST([EV_DOCUMENT_LT_CURRENT_MINUS_AGE],[ev_document_lt_current_minus_age]) +AC_SUBST([EV_VIEW_LT_VERSION_INFO],[ev_view_lt_version_info]) +AC_SUBST([EV_VIEW_LT_CURRENT_MINUS_AGE],[ev_view_lt_current_minus_age]) + +# ***************************************************************************** + AC_CONFIG_FILES([ backend/Makefile backend/comics/Makefile @@ -455,6 +514,7 @@ help/Makefile help/reference/Makefile help/reference/version.xml libdocument/Makefile +libdocument/ev-version.h libview/Makefile Makefile po/Makefile.in @@ -464,6 +524,9 @@ test/Makefile thumbnailer/Makefile ]) +AC_CONFIG_FILES(evince-document-[]ev_api_version[].pc:evince-document.pc.in) +AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in) + AC_OUTPUT echo "