X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/30a4312c4913b956df15351e48a48b781c2cd1f5..6247b831dd0e3f9200025241ac93c14e5c1b2539:/mdw-setup diff --git a/mdw-setup b/mdw-setup index d18a49a..f3ffe95 100755 --- a/mdw-setup +++ b/mdw-setup @@ -36,6 +36,9 @@ fi ### Link any strange common files we need [ -f .links ] && mklinks +### Do any local stuff +[ -x build-setup ] && ./build-setup start + ### Grind through the Autoconf machinery configure= for i in configure.ac configure.in; do @@ -44,15 +47,18 @@ done if [ "$configure" ]; then grep >/dev/null AM_PROG_LIBTOOL $configure && libtoolize find . -name Makefile.m4 -print | while read m4; do - am=$(echo $m4 | sed 's:.m4:.am:') - m4 $m4 >$am.new - mv $am.new $am + dir=$(echo $m4 | sed 's:/[^/]*$::') + (cd $dir && + m4 Makefile.m4 >Makefile.am.new && + mv Makefile.am.new Makefile.am) done - mkaclocal + aclocalargs= + for i in config m4; do [ -d $i ] && aclocalargs="$aclocalargs -I $i"; done + aclocal $aclocalargs autoconf grep >/dev/null AM_CONFIG_HEADER $configure && autoheader [ -f Makefile.am ] && automake -a fi -### Maybe make a build directory -[ $debian = no ] && [ ! -e build ] && mkdir build +### Do any local stuff +[ -x build-setup ] && ./build-setup end