#!/bin/sh
#
# a helper for regenarting all autoconf/automake/libtool stuff at once
# Note: if executed, no messages at all should appear on the screen!

# add libtool support
rm -rf config.guess
rm -rf config.sub
libtoolize -c -f 2>&1 | grep -v 'You should update your'

# generate aclocal.m4
aclocal

# copy and overwrite helper scripts like 'missing' or 'install-sh'
automake -a -f -c 2>&1 | grep -v 'installing'

# generate src/config.h.in, filter the unchanged message (this is really
# not an error!)
autoheader 2>&1 | grep -v 'is unchanged' | grep -v 'is updated'

# generate configure script (maximal warnings)
autoconf -W=all
