#!/bin/sh

# reconfigure
#
# Runs aclocal, autoconf and automake to prepare the
# configure script.
#
# This script should be run from the top level directory.

# Simple test to see where we are
CHECK=`echo $0 | cut -d'/' -f1`
if [ "$CHECK" != "scripts" ]; then
	echo "This script must be run from the top level directory."
	exit 1
fi

echo Generating configure script
echo

rm -f config.cache
rm -f config.log
rm -f config.status

echo " - Running aclocal"
aclocal
echo " - Running autoconf"
autoconf
echo " - Running automake"
automake -a

echo
