Require GLib-2.0.0.
authorOwen Taylor <otaylor@redhat.com>
Tue, 5 Mar 2002 17:27:44 +0000 (17:27 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 5 Mar 2002 17:27:44 +0000 (17:27 +0000)
Tue Mar  5 11:55:35 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Require GLib-2.0.0.

        * configure.in atk/Makefile.am tests/Makefile.am atk.pc.in:
        Switch over to the Glib/GTK+ versioning scheme.

ChangeLog
atk.pc.in
atk/Makefile.am
configure.in
docs/tmpl/atkdocument.sgml
docs/tmpl/atkhypertext.sgml
tests/Makefile.am

index 1e2c33c7fd942bf82f775c05bc278e3a5220b7cc..fd20d46f3695260fb1b5765467cb06fe079dc6ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Mar  5 11:55:35 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Require GLib-2.0.0.
+
+       * configure.in atk/Makefile.am tests/Makefile.am atk.pc.in:
+       Switch over to the Glib/GTK+ versioning scheme.
+
 2002-03-05  Padraig O'Briain  <padraig.obriain@sun.com>
 
        * atk/atktext.c (atk_text_get_text):
index e2532e70977624235b85926857fb34c991af7759..39aa30ed43bf854d76914f9a4393bc48093918da 100644 (file)
--- a/atk.pc.in
+++ b/atk.pc.in
@@ -7,5 +7,5 @@ Name: Atk
 Description: Accessibility Toolkit
 Version: @VERSION@
 Requires: @GLIB_PACKAGES@
-Libs: -L${libdir} -latk
+Libs: -L${libdir} -latk-@ATK_API_VERSION@
 Cflags: -I${includedir}/atk-1.0
index 988f8b9b419ac23b33b706472fc57da55fc63c7c..f46e43d8f0b456474b292edac45d31fde4910bea 100644 (file)
@@ -16,7 +16,7 @@ install-libtool-import-lib:
 uninstall-libtool-import-lib:
 endif
 
-lib_LTLIBRARIES = libatk.la
+lib_LTLIBRARIES = libatk-1.0.la
 
 if MS_LIB_AVAILABLE
 noinst_DATA = atk.lib
@@ -36,7 +36,7 @@ atk_built_cfiles = atk-enum-types.c
 
 $(OBJECTS): $(atk_built_headers)
 
-libatk_la_SOURCES =            \
+libatk_1_0_la_SOURCES =        \
        atkaction.c             \
        atkcomponent.c          \
        atkdocument.c           \
@@ -74,10 +74,10 @@ INCLUDES = \
        -DG_DISABLE_DEPRECATED  \
        @DEP_CFLAGS@
 
-LDFLAGS =  \
-       -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    \
-       $(export_symbols)                                       \
-       $(no_undefined)                                         \
+LDFLAGS =                                      \
+       -version-info $(LT_VERSION_INFO)        \
+       $(export_symbols)                       \
+       $(no_undefined)                         \
        @DEP_LIBS@
 
 libatkincludedir=$(includedir)/atk-1.0/atk
@@ -112,7 +112,7 @@ libatkinclude_HEADERS =             \
        $(atk_headers)          \
        $(atk_built_headers)
 
-$(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
+$(libatk_1_0_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
 
 atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
        @true
@@ -168,7 +168,7 @@ s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
        && echo timestamp > $(@F)
 
 
-atk.lib: libatk.la atk.def
+atk.lib: libatk-$(ATK_API_VERSION).la atk.def
        lib -name:libatk-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@
 
 install-data-local: install-ms-lib install-libtool-import-lib
index f18fa89beea629de570f2e0e0834035cdd08b6b6..884d26a8b712f8f34caa278e4f130fa32c7b18c0 100644 (file)
@@ -9,48 +9,60 @@ dnl it too, or it will never make it into the spec file!
 dnl
 dnl ==========================================================================
 
-GLIB_REQUIRED_VERSION=1.3.12
+GLIB_REQUIRED_VERSION=2.0.0
 AC_SUBST(GLIB_REQUIRED_VERSION)
 
 dnl ==========================================================================
+dnl                              Versioning              
+dnl ==========================================================================
+
+dnl Making releases:
+dnl   ATK_MICRO_VERSION += 1;
+dnl   ATK_INTERFACE_AGE += 1;
+dnl   ATK_BINARY_AGE += 1;
+dnl if any functions have been added, set ATK_INTERFACE_AGE to 0.
+dnl if backwards compatibility has been broken,
+dnl set ATK_BINARY_AGE _and_ ATK_INTERFACE_AGE to 0.
 
-#
-# Making releases:
-#   ATK_MICRO_VERSION += 1;
-#   ATK_INTERFACE_AGE += 1;
-#   ATK_BINARY_AGE += 1;
-# if any functions have been added, set ATK_INTERFACE_AGE to 0.
-# if backwards compatibility has been broken,
-# set ATK_BINARY_AGE and ATK_INTERFACE_AGE to 0.
-#
-
-ATK_MAJOR_VERSION=0
+dnl The triplet 
+ATK_MAJOR_VERSION=1
 ATK_MINOR_VERSION=0
-ATK_MICRO_VERSION=13
+ATK_MICRO_VERSION=0
+ATK_VERSION=$ATK_MAJOR_VERSION.$ATK_MINOR_VERSION.$ATK_MICRO_VERSION
+
+dnl The X.Y in -latk-X.Y line. This is expected to stay 1.0 until Atk 2.
+ATK_API_VERSION=1.0
+
+dnl Number of releases since we've added interfaces
 ATK_INTERFACE_AGE=0
-ATK_BINARY_AGE=0
-## with 1.0 you'd insert MINOR_VERSION in here, i.e. 0.3->1.0.0->1.0.1->1.0.2
-## note that micro version has to go in the libtool stuff below
-ATK_VERSION=$ATK_MAJOR_VERSION.$ATK_MICRO_VERSION
-AM_INIT_AUTOMAKE(atk, $ATK_VERSION)
+
+dnl Number of releases since we've broken binary compatibility. Should equal
+dnl ATK_MICRO_VERSION for a stable release
+# ATK_BINARY_AGE=0
+ATK_BINARY_AGE=$ATK_MICRO_VERSION
 
 AC_SUBST(ATK_MAJOR_VERSION)
 AC_SUBST(ATK_MINOR_VERSION)
-AC_SUBST(ATK_MICRO_VERSION)
 AC_SUBST(ATK_VERSION)
+AC_SUBST(ATK_API_VERSION)
+AC_SUBST(ATK_MICRO_VERSION)
+AC_SUBST(ATK_INTERFACE_AGE)
+AC_SUBST(ATK_BINARY_AGE)
+
+dnl libtool versioning
+lt_current=`expr $ATK_MICRO_VERSION - $ATK_INTERFACE_AGE`
+lt_revision=$ATK_INTERFACE_AGE
+lt_age=`expr $ATK_BINARY_AGE - $ATK_INTERFACE_AGE`
+LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
+LT_CURRENT_MINUS_AGE=`expr $lt_current - $lt_age`
 
-# libtool versioning
-LT_RELEASE=$ATK_MAJOR_VERSION.$ATK_MINOR_VERSION
-LT_CURRENT=`expr $ATK_MICRO_VERSION - $ATK_INTERFACE_AGE`
-LT_REVISION=$ATK_INTERFACE_AGE
-LT_AGE=`expr $ATK_BINARY_AGE - $ATK_INTERFACE_AGE`
-LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
-AC_SUBST(LT_RELEASE)
-AC_SUBST(LT_CURRENT)
-AC_SUBST(LT_REVISION)
-AC_SUBST(LT_AGE)
+AC_SUBST(LT_VERSION_INFO)
 AC_SUBST(LT_CURRENT_MINUS_AGE)
 
+dnl ==========================================================================
+
+AM_INIT_AUTOMAKE(atk,$ATK_VERSION)
+
 AC_PROG_CC
 AM_DISABLE_STATIC
 AC_LIBTOOL_WIN32_DLL
index 5972540e121411f85f7747b3c0cc08e32a6b02eb..4a7bb0ecae0ee72c70fdd584dab88f0fb1f96734 100644 (file)
@@ -28,6 +28,14 @@ AtkDocument
 @parent: 
 @get_document_type: 
 @get_document: 
+@pad1: 
+@pad2: 
+@pad3: 
+@pad4: 
+@pad5: 
+@pad6: 
+@pad7: 
+@pad8: 
 
 <!-- ##### FUNCTION atk_document_get_document_type ##### -->
 <para>
index f96dbbfcd6d1b0ac6d01657b29536b64345f894c..ff6a5fe97f615d45848a8d5c7f83b1856956718f 100644 (file)
@@ -29,6 +29,10 @@ AtkHypertext
 @get_link: 
 @get_n_links: 
 @get_link_index: 
+@pad1: 
+@pad2: 
+@pad3: 
+@pad4: 
 
 <!-- ##### FUNCTION atk_hypertext_get_link ##### -->
 <para>
index 9fc9faf75afb7f632e4f99f0049deffcb6c0795a..cb96b4b50fc28e231a38b864ef7708777dd52cbe 100644 (file)
@@ -3,7 +3,7 @@ lib_LTLIBRARIES = \
        libteststateset.la      \
        libtestrelation.la
 
-libatk = $(top_builddir)/atk/libatk.la
+libatk = $(top_builddir)/atk/libatk-$(ATK_API_VERSION).la
 
 INCLUDES = -I$(top_srcdir)     \
        -DG_DISABLE_DEPRECATED  \