added support for the gnome-doc-utils
authorSven Herzberg <herzi@gnome-de.org>
Mon, 21 Mar 2005 22:10:41 +0000 (22:10 +0000)
committerSven Herzberg <herzi@src.gnome.org>
Mon, 21 Mar 2005 22:10:41 +0000 (22:10 +0000)
2005-03-21  Sven Herzberg  <herzi@gnome-de.org>

        * macros2/gnome-autogen.sh: added support for the gnome-doc-utils

svn path=/trunk/; revision=3596

ChangeLog
macros2/gnome-autogen.sh

index 0283436..e1cb410 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-21  Sven Herzberg  <herzi@gnome-de.org>
+
+       * macros2/gnome-autogen.sh: added support for the gnome-doc-utils
+
 2005-03-15  Stepan Kasal  <kasal@ucw.cz>
 
        * macros2/ChangeLog: Removed; the contents merged into the main one.
index f43f4a9..9180e42 100644 (file)
@@ -15,6 +15,7 @@ REQUIRED_INTLTOOL_VERSION=${REQUIRED_INTLTOOL_VERSION:-0.25}
 REQUIRED_PKG_CONFIG_VERSION=${REQUIRED_PKG_CONFIG_VERSION:-0.14.0}
 REQUIRED_GTK_DOC_VERSION=${REQUIRED_GTK_DOC_VERSION:-1.0}
 REQUIRED_DOC_COMMON_VERSION=${REQUIRED_DOC_COMMON_VERSION:-2.3.0}
+REQUIRED_GNOME_DOC_UTILS_VERSION=${REQUIRED_GNOME_DOC_UTILS_VERSION:-0.1.3}
 
 # a list of required m4 macros.  Package can set an initial value
 REQUIRED_M4MACROS=${REQUIRED_M4MACROS:-}
@@ -210,6 +211,7 @@ want_glib_gettext=false
 want_intltool=false
 want_pkg_config=false
 want_gtk_doc=false
+want_gnome_doc_utils=false
 
 configure_files="`find $srcdir -name '{arch}' -prune -o -name configure.ac -print -o -name configure.in -print`"
 for configure_ac in $configure_files; do
@@ -232,6 +234,9 @@ for configure_ac in $configure_files; do
     if grep "^GTK_DOC_CHECK" $configure_ac >/dev/null; then
        want_gtk_doc=true
     fi
+    if grep "^GNOME_DOC_INIT" $configure_ac >/dev/null; then
+        want_gnome_doc_utils=true
+    fi
 done
 
 DIE=0
@@ -291,6 +296,11 @@ if $want_gtk_doc; then
     require_m4macro gtk-doc.m4
 fi
 
+if $want_gnome_doc_utils; then
+    version_check gnome-doc-utils GNOME_DOC_PREPARE gnome-doc-prepare $REQUIRED_GNOME_DOC_UTILS_VERSION \
+        "http://ftp.gnome.org/pub/GNOME/sources/gnome-doc-utils/" || DIE=1
+fi
+
 if [ "x$USE_COMMON_DOC_BUILD" = "xyes" ]; then
     version_check gnome-common DOC_COMMON gnome-doc-common \
         $REQUIRED_DOC_COMMON_VERSION " " || DIE=1