}
function build() {
- autoreconf -f -i $@
+ # newer autoreconf (autoconf) versions don't have the -M option and no replacement :-(
+ # todo: this IMHO should be filed as bug against autoconf
+ # ugly workaround
+ autoreconf -f -i $@ || (autoreconf -f -i && aclocal --force $(echo "$@"|sed 's,-M,-I,'))
./configure --prefix="$INSTPREFIX"
if $DOCLEAN; then
$MAKE distclean