From 853d13b9df8a8cd02081ea197770e8919d35f5d9 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Tue, 15 Dec 1998 22:57:24 +0000 Subject: Add the hacked version of the gettext macros that is used in Gtk+ here. 1998-12-15 Martin Baulig * 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=526 --- macros/autogen.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'macros/autogen.sh') diff --git a/macros/autogen.sh b/macros/autogen.sh index df19a1d89a..3c7ccfba4c 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 -- cgit