6 ego=$(echo "$0" | sed 's:^.*[/\\]::; s:\.*$::')
7 usage="Usage: $ego [--debian]"
11 while [ $# -gt 0 ]; do
13 --help | -h | --usage | -u)
25 echo >&2 "$ego: unknown option \`$1'"
36 ### Link any strange common files we need
37 [ -f .links ] && mklinks
39 ### Do any local stuff
40 [ -x build-setup ] && ./build-setup start
42 ### Grind through the Autoconf machinery
44 for i in configure.ac configure.in; do
45 [ -f $i ] && configure=$i
47 if [ "$configure" ]; then
48 grep >/dev/null AM_PROG_LIBTOOL $configure && libtoolize
49 find . -name Makefile.m4 -print | while read m4; do
50 dir=$(echo $m4 | sed 's:/[^/]*$::')
52 m4 Makefile.m4 >Makefile.am.new &&
53 mv Makefile.am.new Makefile.am)
56 for i in config m4; do [ -d $i ] && aclocalargs="$aclocalargs -I $i"; done
59 grep >/dev/null AM_CONFIG_HEADER $configure && autoheader
60 [ -f Makefile.am ] && automake -a
63 ### Do any local stuff
64 [ -x build-setup ] && ./build-setup end