Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++

/:
	* configure.ac: Diagnose --enable-build-with-cxx bootstrap
	with --enable-languages not containing c++.
	* configure: Regenerate.
This commit is contained in:
Ralf Wildenhues 2009-09-21 19:25:05 +00:00
parent e8269d5fd9
commit 4385ad3c09
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-09-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.
2009-09-16 Jie Zhang <jie.zhang@analog.com>
* configure.ac: Disable java and boehm-gc for bfin-*-*.

7
configure vendored
View File

@ -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)

View File

@ -2460,6 +2460,13 @@ case "$have_compiler:$host:$target:$enable_bootstrap" in
;;
esac
case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
*,c++,*:yes:yes) ;;
*:yes:yes)
AC_MSG_ERROR([bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages])
;;
esac
# Adjust the toplevel makefile according to whether bootstrap was selected.
case $enable_bootstrap in
yes)