This goes with the patch for #1839, #1463
[ghc-hetmet.git] / aclocal.m4
index 12db959..d30b101 100644 (file)
@@ -1101,7 +1101,7 @@ 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.
-if test ! -e utils/pwd/pwd && ! -e utils/pwd/pwd.exe; then
+if test ! -f utils/pwd/pwd && test ! -f utils/pwd/pwd.exe; then
   cd utils/pwd
   rm -f *.o
   rm -f *.hi
@@ -1121,10 +1121,7 @@ dnl Remove common automounter nonsense
 dnl
 hardtop=`echo $hardtop | sed 's|^/tmp_mnt.*\(/local/.*\)$|\1|' | sed 's|^/tmp_mnt/|/|'`
 
-hardtop_plat="$hardtop"
-
 AC_SUBST(hardtop)
-AC_SUBST(hardtop_plat)
 
 AC_MSG_RESULT(${hardtop})