3 # test for a libtoolize
5 CACAO_HAVE_LIBTOOLIZE=false
7 for CACAO_LIBTOOLIZE in libtoolize libtoolize15 glibtoolize; do
8 if ${CACAO_LIBTOOLIZE} --version > /dev/null 2>&1; then
9 CACAO_LIBTOOLIZE_VERSION=`${CACAO_LIBTOOLIZE} --version | sed 's/^.*[^0-9.]\([0-9]\{1,\}\.[0-9.]\{1,\}\).*/\1/'`
10 # echo ${CACAO_LIBTOOLIZE_VERSION}
11 case ${CACAO_LIBTOOLIZE_VERSION} in
13 CACAO_HAVE_LIBTOOLIZE=true
20 if test ${CACAO_HAVE_LIBTOOLIZE} = false; then
21 echo "No proper libtoolize was found."
22 echo "You must have libtool 1.5 installed."
29 CACAO_HAVE_ACLOCAL=false
31 for CACAO_ACLOCAL in aclocal aclocal-1.9 aclocal19; do
32 if ${CACAO_ACLOCAL} --version > /dev/null 2>&1; then
33 CACAO_ACLOCAL_VERSION=`${CACAO_ACLOCAL} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
34 # echo ${CACAO_ACLOCAL_VERSION}
35 case ${CACAO_ACLOCAL_VERSION} in
37 CACAO_HAVE_ACLOCAL=true
44 if test ${CACAO_HAVE_ACLOCAL} = false; then
45 echo "No proper aclocal was found."
46 echo "You must have automake 1.9 or later installed."
51 # test for a autoheader
53 CACAO_HAVE_AUTOHEADER=false
55 for CACAO_AUTOHEADER in autoheader autoheader259; do
56 if ${CACAO_AUTOHEADER} --version > /dev/null 2>&1; then
57 CACAO_AUTOHEADER_VERSION=`${CACAO_AUTOHEADER} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
58 # echo ${CACAO_AUTOHEADER_VERSION}
59 case ${CACAO_AUTOHEADER_VERSION} in
61 CACAO_HAVE_AUTOHEADER=true
68 if test ${CACAO_HAVE_AUTOHEADER} = false; then
69 echo "No proper autoheader was found."
70 echo "You must have autoconf 2.59 or later installed."
77 CACAO_HAVE_AUTOMAKE=false
79 for CACAO_AUTOMAKE in automake automake-1.9 automake19; do
80 if ${CACAO_AUTOMAKE} --version > /dev/null 2>&1; then
81 CACAO_AUTOMAKE_VERSION=`${CACAO_AUTOMAKE} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
82 # echo ${CACAO_AUTOMAKE_VERSION}
83 case ${CACAO_AUTOMAKE_VERSION} in
85 CACAO_HAVE_AUTOMAKE=true
92 if test ${CACAO_HAVE_AUTOMAKE} = false; then
93 echo "No proper automake was found."
94 echo "You must have automake 1.9 or later installed."
101 CACAO_HAVE_AUTOCONF=false
103 for CACAO_AUTOCONF in autoconf autoconf259; do
104 if ${CACAO_AUTOCONF} --version > /dev/null 2>&1; then
105 CACAO_AUTOCONF_VERSION=`${CACAO_AUTOCONF} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
106 # echo ${CACAO_AUTOCONF_VERSION}
107 case ${CACAO_AUTOCONF_VERSION} in
109 CACAO_HAVE_AUTOCONF=true
116 if test ${CACAO_HAVE_AUTOCONF} = false; then
117 echo "No proper autoconf was found."
118 echo "You must have autoconf 2.59 or later installed."
123 ${CACAO_LIBTOOLIZE} --automake
124 if test `uname` = 'FreeBSD'; then
125 ${CACAO_ACLOCAL} -I m4 -I /usr/local/share/aclocal -I /usr/local/share/aclocal19
127 ${CACAO_ACLOCAL} -I m4
130 ${CACAO_AUTOMAKE} --add-missing
133 export CACAO_LIBTOOLIZE
135 export CACAO_AUTOHEADER
136 export CACAO_AUTOMAKE
137 export CACAO_AUTOCONF
139 cd src/mm/boehm-gc && ./autogen.sh && cd ../..