1#!/bin/sh
2M4PATH=/usr/local/share/aclocal
3export M4PATH
4set -e
5rm -f aclocal.m4 libtool config.cache config.status
6aclocal
7grep 'libtool.m4 - Configure' aclocal.m4 || {
8cat /usr/local/share/aclocal/libtool14.m4 >>aclocal.m4
9}
10autoconf
11#autoreconf --force --install
12gettextize --force --copy </dev/null
13rm -f po/Makevars
14mv po/Makevars.template po/Makevars
15libtoolize14 --force --copy
16grep 'SED=' ltmain.sh || {
17 (	head -1 ltmain.sh ; echo "SED=sed"; cat ltmain.sh ) >ltmain
18	rm -f ltmain.sh
19	mv ltmain ltmain.sh
20}
21
22perl -spi.bak -e '
23	if(/--disable-nls.*Native/){s/--disable/--enable/; s/do not //;}
24	s/, USE_NLS=yes/, USE_NLS=no/; ' aclocal.m4
25autoconf
26autoheader
27