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