#!/bin/sh

if [ -d m4 ] ; then
ACLOCAL_OPTS="-I m4"
else
ACLOCAL_OPTS=""
fi

aclocal $ACLOCAL_OPTS && \
autoheader

if libtoolize --force 2> /dev/null
  then echo -n
elif glibtoolize --force 2> /dev/null
  then echo -n
else
  echo "error: no libtoolize or glibtoolize found."
  exit -1
fi

automake --add-missing --copy --foreign && \
autoconf


