Check inplace doesn't exist before we try to create it
[ghc.git] / configure.ac
index db268ab..600317d 100644 (file)
@@ -438,7 +438,7 @@ then
     then
         AC_MSG_NOTICE([Making in-tree mingw tree])
         rm -rf inplace/mingw
-        mkdir inplace
+        test -d inplace || mkdir inplace
         mkdir inplace/mingw
         (
             cd inplace/mingw &&