diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-08-21 15:12:05 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-08-21 15:12:05 +0000 |
commit | 04a42d01c41923baf66eacabf6ffb22dfe367108 (patch) | |
tree | b3da2e60daf2d5d7e7573b65fa19352f450c370b /aclocal.m4 | |
parent | 2b9696a50d35ce79b64869d4cd0308363476b156 (diff) | |
download | haskell-04a42d01c41923baf66eacabf6ffb22dfe367108.tar.gz |
we need to add utils/pwd to a binary distribution
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 7fd96fe079..e5aed8acb6 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1099,13 +1099,15 @@ AC_MSG_CHECKING(for path to top of build tree) dnl This would be dnl make -C utils/pwd clean && make -C utils/pwd dnl except we don't want to have to know what make is called. Sigh. -cd utils/pwd -rm -f *.o -rm -f *.hi -rm -f pwd -rm -f pwd.exe -$WithGhc -v0 --make pwd -o pwd -cd ../.. +if test ! -e utils/pwd/pwd && ! -e utils/pwd/pwd.exe; then + cd utils/pwd + rm -f *.o + rm -f *.hi + rm -f pwd + rm -f pwd.exe + $WithGhc -v0 --make pwd -o pwd + cd ../.. +fi hardtop=`utils/pwd/pwd forwardslash` |