1#!/bin/sh
2#
3echo "Generating build information using autoconf"
4echo "This may take a while ..."
5
6srcdir=`dirname $0`
7test -z "$srcdir" && srcdir=.
8cd "$srcdir"
9
10# Regenerate configuration files
11cat acinclude/* >aclocal.m4
12found=false
13for autoconf in autoconf autoconf259 autoconf-2.59
14do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
15done
16if test x$found = xfalse; then
17    echo "Couldn't find autoconf, aborting"
18    exit 1
19fi
20(cd test; sh autogen.sh)
21
22# Run configure for this platform
23echo "Now you are ready to run ./configure"
24