X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=aclocal.m4;h=7fd96fe079da96876b9f1f40c4ce43cbea588eb8;hp=bace42ab56e06f4200c2d5ca5ad1a3d2bb728c05;hb=e2424a6c39f2bc25e8c034af3d539455e937213e;hpb=6eec32366bef1fae5aa4bdde23458e079abf6724 diff --git a/aclocal.m4 b/aclocal.m4 index bace42a..7fd96fe 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1104,11 +1104,15 @@ rm -f *.o rm -f *.hi rm -f pwd rm -f pwd.exe -$WithGhc -v0 --make pwd +$WithGhc -v0 --make pwd -o pwd cd ../.. hardtop=`utils/pwd/pwd forwardslash` +if ! test -d "$hardtop"; then + AC_MSG_ERROR([cannot determine current directory]) +fi + dnl Remove common automounter nonsense dnl hardtop=`echo $hardtop | sed 's|^/tmp_mnt.*\(/local/.*\)$|\1|' | sed 's|^/tmp_mnt/|/|'`