4 # on OS X, which(1) returns 0 even when it can't find a program
7 if type libtoolize
>/dev
/null
2>&1
11 if which glibtoolize
>/dev
/null
13 # on the Mac it's called glibtoolize for some reason
14 LIBTOOLIZE
=glibtoolize
16 echo "libtoolize not found"
21 $LIBTOOLIZE --force 2>&1 |
sed '/^You should/d' ||
{
22 echo "libtool failed, exiting..."
26 aclocal
$ACLOCAL_FLAGS ||
{
27 echo "aclocal \$ACLOCAL_FLAGS where \$ACLOCAL_FLAGS= failed, exiting..."
32 echo "autoheader failed, exiting..."
36 automake
--add-missing --foreign ||
{
37 echo "automake --add-missing --foreign failed, exiting..."
42 echo "autoconf failed, exiting..."
46 if test x
$1 = x--run-conf
; then
47 echo "because of \"$1\" Running ./configure --enable-maintainer-mode $@..."
48 .
/configure
--enable-maintainer-mode $@