Update soruces to make alpha, arc and arm targets compile cleanly
[deliverable/binutils-gdb.git] / configure
index 49c1786de6099eb75c4dea93258c913a585e6786..667b514b72ccc38498dcfaa5b56e93b3b6eaa6ff 100755 (executable)
--- a/configure
+++ b/configure
@@ -2743,6 +2743,11 @@ fi
 # No prefix.
 target_subdir=${target_noncanonical}
 
+# Be sure to cover against remnants of an in-tree build.
+if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
+  as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
+Use a pristine source tree when building in a separate tree" "$LINENO" 5
+fi
 
 # Skipdirs are removed silently.
 skipdirs=
@@ -6584,6 +6589,13 @@ case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
     ;;
 esac
 
+case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
+  yes:yes:*\ gold\ *:*,c++,*) ;;
+  yes:yes:*\ gold\ *:*)
+    as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
+    ;;
+esac
+
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)
This page took 0.029555 seconds and 4 git commands to generate.