1#!/bin/sh 2 3MAKE=make 4if command -v gmake >/dev/null 2>/dev/null; then 5 MAKE=gmake 6fi 7$MAKE maintainer-clean >/dev/null 2>/dev/null 8 9if [ -x "`which autoreconf 2>/dev/null`" ] ; then 10 exec autoreconf -ivf 11fi 12 13LIBTOOLIZE=libtoolize 14SYSNAME=`uname` 15if [ "x$SYSNAME" = "xDarwin" ] ; then 16 LIBTOOLIZE=glibtoolize 17fi 18aclocal -I m4 && \ 19 autoheader && \ 20 $LIBTOOLIZE && \ 21 autoconf && \ 22 automake --add-missing --force-missing --copy 23