Run gettextize if needed. : Run libtoolize only if configure.in has
authorChangwoo Ryu <cwryu@adam.kaist.ac.kr>
Tue, 1 Dec 1998 10:02:56 +0000 (10:02 +0000)
committerChangwoo Ryu <cwryu@src.gnome.org>
Tue, 1 Dec 1998 10:02:56 +0000 (10:02 +0000)
1998-12-01  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>

* autogen.sh: Run gettextize if needed.
: Run libtoolize only if configure.in has "^AM_PROG_LIBTOOL".

svn path=/trunk/; revision=490

macros/ChangeLog
macros/autogen.sh

index 758a71d..10714ea 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-01  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
+
+       * autogen.sh: Run gettextize if needed.
+       : Run libtoolize only if configure.in has "^AM_PROG_LIBTOOL".
+
 1998-11-30  Jeff Garzik  <jgarzik@pobox.com>
 
        * gnome.m4: Re-arranged tests such that "--without-gnome" is
index f99299b..2e9390e 100644 (file)
@@ -11,6 +11,7 @@ DIE=0
     DIE=1
 }
 
+(grep -q "^AM_PROG_LIBTOOL" configure.in) && {
 (libtool --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "**Error**: You must have "\`libtool\'" installed to compile Gnome."
@@ -18,6 +19,18 @@ DIE=0
     echo "(or a newer version if it is available)"
     DIE=1
 }
+}
+
+grep -q "^AM_GNU_GETTEXT" configure.in && {
+grep -q "sed.*POTFILES" configure.in || \
+(gettext --version) < /dev/null > /dev/null 2>&1 || {
+    echo
+    echo "**Error**: You must have "\`gettext\'" installed to compile Gnome."
+    echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
+    echo "(or a newer version if it is available)"
+    DIE=1
+}
+}
 
 (automake --version) < /dev/null > /dev/null 2>&1 || {
     echo
@@ -71,9 +84,24 @@ do
            if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
            else echo "**Warning**: No such directory \`$k'.  Ignored."; fi; \
        done; \
-       libtoolize --copy --force; \
+       if grep -q "^AM_GNU_GETTEXT" configure.in; then \
+           if grep -q "sed.*POTFILES" configure.in; then \
+               : do nothing -- we still have an old unmodified configure.in
+           else
+               echo "Running gettextize...  Ignore non-fatal messages."; \
+               echo "no" | gettextize --force; \
+           fi \
+       fi; \
+       if grep -q "^AM_PROG_LIBTOOL" configure.in; then \
+           echo "Running libtoolize..."; \
+           libtoolize --force; \
+       fi
        aclocal $aclocalinclude; \
-       autoheader; automake --add-missing --gnu $am_opt; autoheader; autoconf)
+       if grep -q "^AM_CONFIG_HEADER" configure.in; then \
+           echo "Running autoheader..."; \
+           autoheader; \
+       fi
+       automake --add-missing --gnu $am_opt; autoconf)
     fi
 done