diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-09-22 18:00:40 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-09-22 18:00:40 +0000 |
commit | 8980b9ad03b7503b759bc45dd8640d791f9f6cd7 (patch) | |
tree | b476702c64ff11b9ac3792b66153dee213db52e8 /configure.ac | |
parent | 5e8d7527afc9dd1113ec6fbdcb091d87c6e32c1c (diff) | |
download | newlib-8980b9ad03b7503b759bc45dd8640d791f9f6cd7.zip newlib-8980b9ad03b7503b759bc45dd8640d791f9f6cd7.tar.gz newlib-8980b9ad03b7503b759bc45dd8640d791f9f6cd7.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.ac | 5 |
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= |