# Check for gettext
if gettextize --version >/dev/null 2>&1; then
# Autopoint is available from 0.11.3, but we need 0.11.5
-if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
+if expr `gettextize --version |cut -d' ' -f2- | sed -e '1s/[^0-9]*//' -e q` \
'>=' 0.11.5 >/dev/null 2>&1; then
# We have gettext, and a recent version! Everything is cool.
autopoint=autopoint
rm -f aclocal.m4 configure config.log config.h config.h.in
rm -Rf autom4te*.cache
# remove old autotools extra cruft
-rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
+rm -f config.guess config.sub missing mkinstalldirs depcomp install-sh
# remove new autotools extra cruft
rm -Rf autotools
mkdir autotools
fi
# Do the rest
+echo $PATH
+which autopoint
+autopoint --version
+
${autopoint} -f
rm -f po/Makevars.template
${aclocal} ${ACLOCAL_ARGS}