autogen.sh
#!/bin/sh
set -e
cd $(dirname $0)
rm -f config/config.guess config/config.sub config/ltmain.sh 2>/dev/null
rm -f aclocal.m4 2>/dev/null
aclocal -I libopts/m4/
if test -x "$(which glibtoolize)" ; then
# Necessary under OS X
glibtoolize --copy --automake --force
else
libtoolize --copy --force
fi
autoheader
automake --add-missing --copy
autoconf