#! /bin/sh

## Minimalistic boostrap file for the mini-SAP-server
## $Id: bootstrap,v 1.1 2003/08/12 15:59:19 zorglub Exp $


set +x
echo "+ Remove stuff"
set -x

rm -f config.h config.h.in
rm -f config.log configure config.guess config.sub
rm -f aclocal.m4

set +x
echo "+ Check for auto* tools"

# Automake
have_autom="no"

if automake --version >/dev/null 2>&1;
then
 have_autom="yes"
fi

if test "${have_autom}" = "no"; then
 echo "- You need automake"
 echo "- Unable to continue"
 exit 1
fi

echo "+ Generate Makefile.in and configure"

set -x

aclocal
autoconf
autoheader
automake -a -c
