aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-22 18:00:40 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-22 18:00:40 +0000
commit2fd0b40ba3678c19c057fcaae0ae5457cc5b0396 (patch)
tree54c87cfb8b716361c25d1103c2aa1de2ad8c3689 /configure.ac
parent329719ec1d3002c2e148acbf7287fee1dcd531c7 (diff)
downloadgdb-2fd0b40ba3678c19c057fcaae0ae5457cc5b0396.zip
gdb-2fd0b40ba3678c19c057fcaae0ae5457cc5b0396.tar.gz
gdb-2fd0b40ba3678c19c057fcaae0ae5457cc5b0396.tar.bz2
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 794a419..e7d44db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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=