Error out if building separately but srcdir has build remnants.

/:
	PR bootstrap/32272
	* configure.ac: Error out if $srcdir isn't '.' but contains
	host-${host_noncanonical}.
	* configure: Regenerate.
This commit is contained in:
Ralf Wildenhues
2009-09-22 18:00:40 +00:00
parent 5e8d7527af
commit 8980b9ad03
3 changed files with 17 additions and 0 deletions

View File

@@ -235,6 +235,11 @@ fi
# Find the build and target subdir names.
GCC_TOPLEV_SUBDIRS
# Be sure to cover against remnants of an in-tree build.
if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonical}.
Use a pristine source tree when building in a separate tree])
fi
# Skipdirs are removed silently.
skipdirs=