aboutsummaryrefslogtreecommitdiffstats
path: root/macros/autogen.sh
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-12-16 06:57:24 +0800
committerMartin Baulig <martin@src.gnome.org>1998-12-16 06:57:24 +0800
commit853d13b9df8a8cd02081ea197770e8919d35f5d9 (patch)
tree92a69b07d95c19a90e47d6a287d2f0bce6504e29 /macros/autogen.sh
parent85945d3649b7b991fa3be9b417a7d957d93d37ed (diff)
downloadgsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar.gz
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar.bz2
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar.lz
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar.xz
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.tar.zst
gsoc2013-evolution-853d13b9df8a8cd02081ea197770e8919d35f5d9.zip
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=526
Diffstat (limited to 'macros/autogen.sh')
-rw-r--r--macros/autogen.sh19
1 files changed, 19 insertions, 0 deletions
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