1#!/bin/sh 2 3if test -z "$ACLOCAL" ; then 4 for each in aclocal ; do 5 ACLOCAL=$each 6 if test -n "`which $each 2>/dev/null`" ; then break ; fi 7 done 8fi 9 10ACDIR=`which $ACLOCAL` 11ACDIR=`dirname $ACDIR` 12ACDIR=`dirname $ACDIR`/share/aclocal 13 14for each in $ACDIR ; do 15 if test -d "$each" ; then 16 AFLAGS="-I $each $AFLAGS" 17 fi 18done 19 20echo $ACLOCAL $AFLAGS $@ 21$ACLOCAL $AFLAGS $@ 22