Update NEWS for 3.1.0
[geos.git] / autogen.sh
blob9c358b646c3eaeb5a9886324c1ced55f40f71880
1 #!/bin/sh
3 # $Id$
5 # GEOS Bootstrapping Script
7 giveup()
9 echo
10 echo " Something went wrong, giving up!"
11 echo
12 exit 1
15 OSTYPE=`uname -s`
17 for aclocal in aclocal aclocal-1.10 aclocal-1.9; do
18 ACLOCAL=`which $aclocal 2>/dev/null`
19 if test -x "${ACLOCAL}"; then
20 break;
22 done
23 if [ ! $ACLOCAL ]; then
24 echo "Missingn aclocal!"
25 exit
28 for automake in automake automake-1.10 automake-1.9; do
29 AUTOMAKE=`which $automake 2>/dev/null`
30 if test -x "${AUTOMAKE}"; then
31 break;
33 done
34 if [ ! $AUTOMAKE ]; then
35 echo "Missingn automake!"
36 exit
40 for libtoolize in glibtoolize libtoolize; do
41 LIBTOOLIZE=`which $libtoolize 2>/dev/null`
42 if test -x "${LIBTOOLIZE}"; then
43 break;
45 done
46 if [ ! $LIBTOOLIZE ]; then
47 echo "Missingn libtoolize!"
48 exit
51 #AMFLAGS="--add-missing --copy --force-missing"
52 AMFLAGS="--add-missing --copy"
53 if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
54 AMFLAGS=$AMFLAGS" --include-deps";
57 echo "Running aclocal -I macros"
58 $ACLOCAL -I macros || giveup
59 echo "Running autoheader"
60 autoheader || giveup
61 echo "Running libtoolize"
62 $LIBTOOLIZE --force --copy || giveup
63 echo "Running automake"
64 $AUTOMAKE $AMFLAGS # || giveup
65 echo "Running autoconf"
66 autoconf || giveup
68 echo "======================================"
69 echo "Now you are ready to run './configure'"
70 echo "======================================"