4 # GEOS Bootstrapping Script
9 echo " Something went wrong, giving up!"
16 AUTOCONF
=`which autoconf 2>/dev/null`
17 if [ ! ${AUTOCONF} ]; then
18 echo "Missing autoconf!"
21 AUTOCONF_VER
=`${AUTOCONF} --version | grep -E "^.*[0-9]$" | sed 's/^.* //'`
23 AUTOHEADER
=`which autoheader 2>/dev/null`
24 if [ ! ${AUTOHEADER} ]; then
25 echo "Missing autoheader!"
29 for aclocal
in aclocal aclocal-1.10 aclocal-1.9
; do
30 ACLOCAL
=`which $aclocal 2>/dev/null`
31 if test -x "${ACLOCAL}"; then
35 if [ ! ${ACLOCAL} ]; then
36 echo "Missing aclocal!"
39 ACLOCAL_VER
=`${ACLOCAL} --version | grep -E "^.*[0-9]$" | sed 's/^.* //'`
41 for automake
in automake automake-1.10 automake-1.9
; do
42 AUTOMAKE
=`which $automake 2>/dev/null`
43 if test -x "${AUTOMAKE}"; then
47 if [ ! ${AUTOMAKE} ]; then
48 echo "Missing automake!"
51 AUTOMAKE_VER
=`${AUTOMAKE} --version | grep -E "^.*[0-9]$" | sed 's/^.* //'`
53 for libtoolize
in libtoolize glibtoolize
; do
54 LIBTOOLIZE
=`which $libtoolize 2>/dev/null`
55 if test -x "${LIBTOOLIZE}"; then
59 if [ ! ${LIBTOOLIZE} ]; then
60 echo "Missing libtoolize!"
63 LIBTOOLIZE_VER
=`${LIBTOOLIZE} --version | grep -E "^.*[0-9]\.[0-9]" | sed 's/^.* //'`
65 AMOPTS
="--add-missing --copy -Woverride"
66 if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
67 AMOPTS
=$AMOPTS" --include-deps";
70 # README is needed by libtoolize (and GNU standards)
71 echo "* Symlinking README.md to README"
72 ln -s README.md README
74 LTOPTS
="--force --copy"
75 echo "* Running ${LIBTOOLIZE} (${LIBTOOLIZE_VER})"
76 echo " OPTIONS = ${LTOPTS}"
77 ${LIBTOOLIZE} ${LTOPTS} || giveup
79 echo "* Running $ACLOCAL (${ACLOCAL_VER})"
80 ${ACLOCAL} -I macros || giveup
82 echo "* Running ${AUTOHEADER} (${AUTOCONF_VER})"
83 ${AUTOHEADER} || giveup
85 echo "* Running ${AUTOMAKE} (${AUTOMAKE_VER})"
86 echo " OPTIONS = ${AMOPTS}"
87 ${AUTOMAKE} ${AMOPTS} || giveup
89 echo "* Running ${AUTOCONF} (${AUTOCONF_VER})"
92 if test -f "${PWD}/configure"; then
93 echo "======================================"
94 echo "Now you are ready to run './configure'"
95 echo "======================================"
97 echo " Failed to generate ./configure script!"