adding Chinese translation and updated Taiwanese translation by
[centerim.git] / autogen.sh
blob588f379228e52112a578ba2e89a6f9d11e2f484c
1 #! /bin/sh
2 # script shamelessy taken from openbox
4 sh() {
5 /bin/sh -c "set -x; $*"
8 sh autopoint --force # for GNU gettext
9 sh libtoolize --copy --force --automake
11 # ok, this is wierd, but apparantly every subdir
12 # in the centericq sources has its own configure
13 # no idea why. should fix this.
15 TOP=$PWD
16 traverse=`find $PWD -name "configure.[ia][nc]" -print`
17 for i in $traverse; do
18 echo Changing directory to `dirname $i`
19 cd `dirname $i` > /dev/null
20 if test "`dirname $i`" = "$TOP/kkstrtext"; then
21 #config.rpath is needed for AM_ICONV
22 #Here we should do autopoint to get the config.rpath,
23 #yet it would complain about missing po and intl directories,
24 #so we simply copy config.rpath from the top directory
25 sh cp $TOP/config.rpath .
28 if test "$PWD" = "$TOP"; then
29 sh aclocal -I m4 $ACLOCAL_FLAGS
30 else
31 sh aclocal $ACLOCAL_FLAGS
33 headneeded=`grep -E "A(M|C)_CONFIG_HEADER" configure.[ia][nc]`
34 if test ! -z "$headneeded"; then sh autoheader; fi
35 sh autoconf
36 sh automake --add-missing --copy
38 cd - > /dev/null
39 done
41 echo
42 echo You are now ready to run ./configure
43 echo enjoy!