2001-03-10 10:41:50 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
2002-06-01 18:55:22 -04:00
|
|
|
#--------------------------------------------------------------------------
|
2012-03-03 13:35:54 -05:00
|
|
|
# autoconf 2.58 or newer
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2002-06-01 18:55:22 -04:00
|
|
|
ac_version="`${AUTOCONF:-autoconf} --version 2> /dev/null | head -1 | sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`"
|
|
|
|
if test -z "$ac_version"; then
|
|
|
|
echo "ERROR: autoconf not found."
|
2012-03-03 13:35:54 -05:00
|
|
|
echo " You need autoconf version 2.58 or newer installed."
|
2002-06-01 18:55:22 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
IFS=.; set $ac_version; IFS=' '
|
2012-03-03 13:35:54 -05:00
|
|
|
if test "$1" = "2" -a "$2" -lt "58" || test "$1" -lt "2"; then
|
2002-06-01 18:55:22 -04:00
|
|
|
echo "ERROR: autoconf version $ac_version found."
|
2012-03-03 13:35:54 -05:00
|
|
|
echo " You need autoconf version 2.58 or newer installed."
|
2002-06-01 18:55:22 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
echo "Creating configure ..."
|
2012-03-03 13:35:54 -05:00
|
|
|
${AUTOCONF:-autoreconf} -fvi
|
2001-08-23 07:27:26 -04:00
|
|
|
|
2001-12-07 05:19:31 -05:00
|
|
|
# toss this; it gets created by autoconf on some systems
|
2002-05-09 20:10:57 -04:00
|
|
|
rm -rf autom4te*.cache
|
2001-12-07 05:19:31 -05:00
|
|
|
|
2001-08-23 07:27:26 -04:00
|
|
|
# exit with the right value, so any calling script can continue
|
|
|
|
exit 0
|