diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-12-15 22:57:24 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-12-15 22:57:24 +0000 |
commit | 62179bbd789010c850e089dcbaefd003c5a81d50 (patch) | |
tree | 0109638066da5e6739862e371825ba3785bef5a0 /macros/autogen.sh | |
parent | c4a23586ed32266d265cee2dc972b2430d89584e (diff) | |
download | shared-mime-info-62179bbd789010c850e089dcbaefd003c5a81d50.tar.gz |
Add the hacked version of the gettext macros that is used in Gtk+ here.
1998-12-15 Martin Baulig <martin@home-of-linux.org>
* gnome-gettext.m4: Add the hacked version of the gettext
macros that is used in Gtk+ here.
* autogen.sh: Accept both AM_GNU_GETTEXT and AM_GNOME_GETTEXT.
svn path=/trunk/; revision=527
Diffstat (limited to 'macros/autogen.sh')
-rw-r--r-- | macros/autogen.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh index df19a1d8..3c7ccfba 100644 --- a/macros/autogen.sh +++ b/macros/autogen.sh @@ -32,6 +32,17 @@ grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && { } } +grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && { + grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ + (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 echo "**Error**: You must have \`automake' installed to compile Gnome." @@ -97,6 +108,14 @@ do test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi fi + if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then + echo "Creating $dr/aclocal.m4 ..." + test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 + echo "Running gettextize... Ignore non-fatal messages." + echo "no" | gettextize --force --copy + echo "Making $dr/aclocal.m4 writable ..." + test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 + fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then echo "Running libtoolize..." libtoolize --force --copy |