boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / autogen.sh
1 #! /bin/sh
2
3 set -e
4
5 # These version are ok, pre-1.7 is not.  Post 1.7 may produce a lot of
6 # warnings for unrelated projects, so prefer 1.7 for now.
7 am_version=
8 for v in 1.7 1.9 1.8; do
9     if type -p &>/dev/null automake-$v; then
10         am_version="-$v"
11         break
12     fi
13 done
14 if [ -z "$am_version" ]; then
15     case "`automake --version`" in
16         *\ 0.*|*\ 1.[0-6].*|*\ 1.[0-6]\ *)
17             echo "$0: Automake-1.7 or later is needed."
18             exit 2
19             ;;
20     esac
21 fi
22
23 set -x
24 libtoolize --automake --force
25 aclocal$am_version
26 automake$am_version -ac
27 autoconf
28 set +x
29 echo
30 echo "Ready to run './configure'."
31 echo