* autogen.sh: Use autopoint for gettext 0.11.5 and above. Don't

allow gettext versions from 0.10.40 to 0.11.5 (not inclusive).
This commit is contained in:
Pavel Roskin 2002-09-13 22:33:44 +00:00
parent 37d5e7abc7
commit 49fa4f649c
2 changed files with 8 additions and 30 deletions

View File

@ -1,5 +1,8 @@
2002-09-13 Pavel Roskin <proski@gnu.org>
* autogen.sh: Use autopoint for gettext 0.11.5 and above. Don't
allow gettext versions from 0.10.40 to 0.11.5 (not inclusive).
* po/Makevars: New file for compatibility with gettext 0.11.x.
* configure.in: Remove "Debugger code" message.

View File

@ -7,6 +7,7 @@
: ${AUTOMAKE=automake}
: ${ACLOCAL=aclocal}
: ${GETTEXTIZE=gettextize}
: ${AUTOPOINT=autopoint}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@ -30,37 +31,11 @@ fi
rm -rf intl
if test $gettext_ver -ge 01100; then
$GETTEXTIZE --copy --force --intl --no-changelog >tmpout || exit 1
if test -e Makefile.am~; then
rm -rf Makefile.am
mv Makefile.am~ Makefile.am
fi
if test -e configure.in~ ; then
rm -rf configure.in
mv configure.in~ configure.in
fi
for i in po/Rules-quot po/boldquot.sed po/en@boldquot.header \
po/en@quot.header po/insert-header.sin po/quot.sed \
po/remove-potcdate.sin po/Makefile.in.in
do
if diff -s $i $i~ >/dev/null 2>&1 ; then
mv $i~ $i
fi
done
# Does we need po/Makevars.in and family for gettext 0.11 ?
if test ! -e po/Makevars; then
cat > po/Makevars <<\EOF
# Usually the message domain is the same as the package name.
DOMAIN = $(PACKAGE)
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ../config
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
EOF
if test $gettext_ver -lt 01105; then
echo "Upgrage gettext to at least 0.11.5 or downgrade to 0.10.40" 2>&1
exit 1
fi
$AUTOPOINT || exit 1
else
$GETTEXTIZE --copy --force >tmpout || exit 1
if test -e po/ChangeLog~; then