#! /bin/sh
cd cfg/autoconf
autoheader
autoconf
./configure $1 $2 $3 $4 $5 $6 $7 $8 $9
if [ "$1" = "--help" ]
then
    echo > /dev/null
else
    cp Makefile.cfg ../Makefile.cfg
    chmod a+rw ../Makefile.cfg
    rm Makefile.cfg
    cp config.h ../config.h
    chmod a+rw ../config.h
    rm config.h
    rm config.log
    rm config.status
fi
rm config.h.in
rm configure
