#!/bin/sh

export CFLAGS="-Wall -O2"
rm -f  config.h configure config.cache aclocal.m4 config.log stamp-h*
rm -f  Makefile src/Makefile doc/Makefile
rm -rf .deps/ src/.deps
rm -f  doc/Doxyfile
rm -f  lib* *.o

echo running autoheader &&  autoheader && \
echo running aclocal    &&  aclocal && \
echo running autoconf   &&  autoconf && \
echo running ./configure && \
./configure $* && \
make clean && \
make

