--- a/autogen.sh Sun Aug 18 20:39:19 2002 +0000 +++ b/autogen.sh Mon Aug 19 05:25:16 2002 +0000 @@ -66,7 +66,30 @@ rm -rf m4 mv -f m4~ m4 else - echo n | gettextize --copy --force || exit; + # They could have at least done us a favor and used autopoint all + # throughout 0.11.x. + GETTEXT_VER=`gettextize --version | sed -n 's/^.*[0-9]\+\.\([0-9]\+\)\..*$/\1/p'` + if [ $GETTEXT_VER -eq 11 ]; then + mv -f m4 m4~ + + # Gettext is pure evil. It DEMANDS that we press Return no matter + # what. This gets rid of their happy "feature" of doom. + sed 's:read .*< /dev/tty::' `which gettextize` > gaim-gettextize + chmod +x gaim-gettextize + echo n | ./gaim-gettextize --copy --force --intl --no-changelog || abort + rm gaim-gettextize + + # Now restore the things that brain-dead gettext modified. + [ -e configure.in~ ] && mv -f configure.in~ configure.in + [ -e configure.ac~ ] && mv -f configure.ac~ configure.ac + [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am + rm -rf m4 + mv -f m4~ m4 + + mv -f po/Makevars.template po/Makevars + else + echo n | gettextize --copy --force || exit; + fi fi echo "Running libtoolize, please ignore non-fatal messages...."