rm -rf config.cache autom4te*.cache

aclocal -I config
autoconf
autoheader
libtoolize --automake
automake --add-missing