3 # Test for a autoconf commands.
9 for AUTOCONF in autoconf autoconf259; do
10 if ${AUTOCONF} --version > /dev/null 2>&1; then
11 AUTOCONF_VERSION=`${AUTOCONF} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
12 # echo ${AUTOCONF_VERSION}
13 case ${AUTOCONF_VERSION} in
22 # Test for a autoheader.
26 for AUTOHEADER in autoheader autoheader259; do
27 if ${AUTOHEADER} --version > /dev/null 2>&1; then
28 AUTOHEADER_VERSION=`${AUTOHEADER} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
29 # echo ${AUTOHEADER_VERSION}
30 case ${AUTOHEADER_VERSION} in
39 # Test for a autoreconf.
43 for AUTORECONF in autoreconf; do
44 if ${AUTORECONF} --version > /dev/null 2>&1; then
45 AUTORECONF_VERSION=`${AUTORECONF} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
46 # echo ${AUTORECONF_VERSION}
47 case ${AUTORECONF_VERSION} in
56 if test ${HAVE_AUTOCONF} = false; then
57 echo "No proper autoconf was found."
58 echo "You must have autoconf 2.59 or later installed."
62 if test ${HAVE_AUTOHEADER} = false; then
63 echo "No proper autoheader was found."
64 echo "You must have autoconf 2.59 or later installed."
68 if test ${HAVE_AUTORECONF} = false; then
69 echo "No proper autoreconf was found."
70 echo "You must have autoconf 2.59 or later installed."
75 # Test for a automake commands.
81 for ACLOCAL in aclocal aclocal-1.10 aclocal-1.9 aclocal19; do
82 if ${ACLOCAL} --version > /dev/null 2>&1; then
83 ACLOCAL_VERSION=`${ACLOCAL} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
84 # echo ${ACLOCAL_VERSION}
85 case ${ACLOCAL_VERSION} in
94 # Test for a automake.
98 for AUTOMAKE in automake automake-1.10 automake-1.9 automake19; do
99 if ${AUTOMAKE} --version > /dev/null 2>&1; then
100 AUTOMAKE_VERSION=`${AUTOMAKE} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
101 # echo ${AUTOMAKE_VERSION}
102 case ${AUTOMAKE_VERSION} in
111 if test ${HAVE_ACLOCAL} = false; then
112 echo "No proper aclocal was found."
113 echo "You must have automake 1.9 or later installed."
117 if test ${HAVE_AUTOMAKE} = false; then
118 echo "No proper automake was found."
119 echo "You must have automake 1.9 or later installed."
124 # Test for a libtoolize.
126 HAVE_LIBTOOLIZE=false
128 for LIBTOOLIZE in libtoolize libtoolize15 glibtoolize; do
129 if ${LIBTOOLIZE} --version > /dev/null 2>&1; then
130 LIBTOOLIZE_VERSION=`${LIBTOOLIZE} --version | sed 's/^.*[^0-9.]\([0-9]\{1,\}\.[0-9.]\{1,\}\).*/\1/'`
131 # echo ${LIBTOOLIZE_VERSION}
132 case ${LIBTOOLIZE_VERSION} in
141 if test ${HAVE_LIBTOOLIZE} = false; then
142 echo "No proper libtoolize was found."
143 echo "You must have libtool 1.5 or later installed."
148 export ACLOCAL AUTOCONF AUTOHEADER AUTOMAKE LIBTOOLIZE
150 ${AUTORECONF} --install --symlink