X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=e50c404b079dbc2f3de7a25a615b24b2465f37cc;hb=refs%2Ftags%2FEVINCE_2_25_90;hp=c2cf3fbfea1ad12b46a3247dd772b0ed894b52f2;hpb=1086dfad6d63d9aa737934f4dae75c3f14fdc804;p=evince.git diff --git a/configure.ac b/configure.ac index c2cf3fbf..e50c404b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,14 +1,44 @@ -dnl Process this file with autoconf to produce a configure script. +# ***************************************************************************** +# Versioning +# ***************************************************************************** m4_define([ev_major_version],[2]) m4_define([ev_minor_version],[25]) -m4_define([ev_micro_version],[5]) +m4_define([ev_micro_version],[90]) 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]) @@ -22,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]) @@ -54,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 @@ -68,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 @@ -419,6 +452,10 @@ 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]) @@ -426,6 +463,12 @@ 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]) # ***************************************************************************** @@ -469,7 +512,12 @@ data/icons/scalable/Makefile data/icons/scalable/apps/Makefile help/Makefile help/reference/Makefile -help/reference/version.xml +help/reference/libdocument/Makefile +help/reference/libdocument/version.xml +help/reference/libview/Makefile +help/reference/libview/version.xml +help/reference/shell/Makefile +help/reference/shell/version.xml libdocument/Makefile libdocument/ev-version.h libview/Makefile @@ -481,6 +529,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 "