X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f1439a63836d6fd6a92f8b5c6b2d9c8b95a5f978..HEAD:/mkauto.sh diff --git a/mkauto.sh b/mkauto.sh index cdee6221..4a467a51 100755 --- a/mkauto.sh +++ b/mkauto.sh @@ -3,6 +3,9 @@ # It's separate from mkfiles.pl because it won't work (and isn't needed) # on a non-Unix system. -# Track down automake's copy of install-sh -cp `aclocal --print-ac-dir | sed 's/aclocal$/automake/'`/install-sh unix/. -(cd unix && autoreconf && rm -rf aclocal.m4 autom4te.cache) +# It's nice to be able to run this from inside the unix subdir as +# well as from outside. +test -f unix.h && cd .. + +# Run autoconf on our real configure.in. +(cd unix && autoreconf -i && rm -rf autom4te.cache)