Require c++ in stage1_languages with --enable-gold in combined bootstrap.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Sep 2009 20:32:59 +0000 (20:32 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Sep 2009 20:32:59 +0000 (20:32 +0000)
/:
* configure.ac: If bootstrapping a combined tree with
--enable-gold, require c++ in stage1_languages.
* configure: Regenerate.

ChangeLog
configure
configure.ac

index f99c9c8392024f182f2b45a7ba854a0346c1867a..e3d0ce7f4d552423d5d48618086b141030217bf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-09-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * configure.ac: If bootstrapping a combined tree with
+       --enable-gold, require c++ in stage1_languages.
+       * configure: Regenerate.
+
        * configure.ac: Also add target_libs of stage1_languages to
        bootstrap_target_libs.
        * configure: Regenerate.
index 49c1786de6099eb75c4dea93258c913a585e6786..720fa239c0527fad5ae1ef17577c3017b173a20a 100755 (executable)
--- a/configure
+++ b/configure
@@ -6584,6 +6584,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)
index 55fb83051be9d5bd8725470f39816c076a854bed..794a4191d56b2f6001385fd0f55257f0225fe1a1 100644 (file)
@@ -2470,6 +2470,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\ *:*)
+    AC_MSG_ERROR([in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages])
+    ;;
+esac
+
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)