#!/bin/sh

set -x

# On MacOS X, the GNU libtool is named `glibtool'.
HOSTOS=`uname`
LIBTOOLIZE=libtoolize
if test "$HOSTOS"x = Darwinx; then
    LIBTOOLIZE=glibtoolize
fi


$LIBTOOLIZE --force --automake --copy && \
aclocal -I project && \
autoheader --force && \
automake --foreign --add-missing --copy && \
autoconf || echo "Something went wrong! Check the above output."

