#!/bin/sh
#--
# $Id: autogen.sh,v 1.3 2004/11/04 11:52:50 thamer Exp $
#--

EXIT=no

if test "$1" = "clean"; then
    echo "Removing auto-generated files..."
    rm -rf configure config.log config.status build/config.mk
    EXIT="yes"
fi

if test "$EXIT" = "yes"; then
    exit
fi

echo "Running autoconf..."
autoconf configure.in > configure && chmod +x configure
rm -rf autom4te.cache

echo "You can now run \"./configure\" and then \"make\"."
