[project @ 2005-02-23 13:57:27 by simonmar]
[ghc-hetmet.git] / configure.ac
index aa76efa..1b7dbda 100644 (file)
@@ -567,6 +567,14 @@ AC_SUBST(hardtop_plat)
 
 AC_MSG_RESULT(${hardtop})
 
+# We don't support building in directories with spaces.
+case "$hardtop" in
+  *' '*) AC_MSG_ERROR([
+   The build system does not support building in a directory containing
+   space characters.  Suggestion: move the build tree somewhere else.])
+ ;;
+esac
+
 dnl --------------------------------------------------------------
 dnl * Project specific configuration options
 dnl --------------------------------------------------------------