X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=configure;h=df2b37f5670626c5ccc13628d8abf97b730e2464;hp=6119983307a43a18f4cf5be71be8b7cfbebb9941;hb=9d447cf8e5c5b45cd1574904164f6227ffab47f5;hpb=1907f70c065696a117a6909d7d24ecb04754d1fb;ds=sidebyside diff --git a/configure b/configure index 6119983307a..df2b37f5670 100755 --- a/configure +++ b/configure @@ -6574,6 +6574,13 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} ;; esac +case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in + *,c++,*:yes:yes) ;; + *:yes:yes) + as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5 + ;; +esac + # Adjust the toplevel makefile according to whether bootstrap was selected. case $enable_bootstrap in yes)