4 if automake
--version < /dev
/null
> /dev
/null
2>&1 ; then
5 automake_version
=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
6 case $automake_version in
7 1.2*|1.3*|1.4|1.4*|1.5*|1.6*|1.7*|1.8*)
14 if $have_automake ; then
18 if automake
-1.9
--version < /dev
/null
> /dev
/null
2>&1 ; then
19 AUTOMAKE
="automake-1.9"
22 echo "automake missing or too old. This requires atleast automake 1.9"
27 # ------ START GETTEXT ------
29 echo searching
for GNU
gettext intl directory...
31 dirs="/usr/share /usr/local/share /opt/share /usr /usr/local /opt /usr/gnu/share /opt/local /opt/local/share"
34 echo -n " -> $try/gettext/intl... "
35 if test -d $try/gettext
/intl
; then
42 if test "$found" != 1; then
43 echo ERROR
: Cannot
find gettext
/intl directory.
44 echo ERROR
: Install GNU
gettext in /usr or
/usr
/local prefix.
48 echo copying
gettext intl files...
49 if test -f $try/gettext
/mkinstalldirs
; then
50 ln -s $try/gettext
/mkinstalldirs mkinstalldirs
52 intldir
="$try/gettext/intl"
53 if test ! -d intl
; then
59 if test $file != COPYING.LIB
-2.0
&& test $file != COPYING.LIB
-2.1
; then
60 rm -f $olddir/intl
/$file
61 cp $intldir/$file $olddir/intl
/
64 cp -f $try/gettext
/po
/Makefile.
in.
in $olddir/po
/
66 if test -f intl
/plural.c
; then
71 # ------ END GETTEXT ------
74 echo running
$ACLOCAL...
75 $ACLOCAL $ACLOCAL_FLAGS
76 if test "$?" != "0"; then
77 echo aclocal failed
, stopping.
80 echo running libtoolize...
82 if test "$?" != "0"; then
83 echo libtoolize failed
, stopping.
86 echo running autoheader...
88 if test "$?" != "0"; then
89 echo autoheader failed
, stopping.
92 echo running
$AUTOMAKE...
93 $AUTOMAKE -a --foreign
94 if test "$?" != "0"; then
95 echo automake failed
, stopping.
98 echo running autoconf...
100 if test "$?" != "0"; then
101 echo autoconf failed
, stopping.
105 echo if no errors occured
, run .
/configure
--enable-maintainer-mode
108 #autogen.sh generates:
109 # aclocal.m4 Makefile.in config.guess config.sub ltmain.sh
110 # configure install-sh missing mkinstalldirs depcomp
112 #configure generates:
113 # config.status libtool Makefile.in