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