diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2006-07-03 07:58:08 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2006-07-03 07:58:08 +0000 |
commit | 1546bb648faaf18d273d738eed03f1f3efd72de7 (patch) | |
tree | cc5c8986a8f64d6b11b16455bc9a72953d7826dd /configure.in | |
parent | a57fb56299f3e235811e8d0ae90a943f4c49df33 (diff) | |
download | gcc-1546bb648faaf18d273d738eed03f1f3efd72de7.zip gcc-1546bb648faaf18d273d738eed03f1f3efd72de7.tar.gz gcc-1546bb648faaf18d273d738eed03f1f3efd72de7.tar.bz2 |
re PR other/27063 (Fail to build gcc-core-4.2 snapshots)
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
PR other/27063
* configure.in: Test subdir_requires and give an appropriate
error message.
* configure: Regenerate
gcc:
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
PR other/27063
* configure.ac (for lang...): Simplify nesting of conditionals.
Test subdir_requires for non-enabled languages. Move processing
of lang_opt_files and lang_tree_fiels below that test.
* configure: Regenerate.
* doc/sourcebuild.texi (Front End Config): Document subdir_requires.
gcc/objcp:
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
PR other/27063
* config-lang.in: Add subdir_requires.
From-SVN: r115145
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 21a464d..b472484 100644 --- a/configure.in +++ b/configure.in @@ -1219,6 +1219,7 @@ if test -d ${srcdir}/gcc; then language= target_libs= lang_dirs= + subdir_requires= boot_language= build_by_default= need_gmp= @@ -1252,6 +1253,21 @@ if test -d ${srcdir}/gcc; then ;; esac + # Disable languages that need other directories if these aren't available. + for i in $subdir_requires .; do + test -d gcc/$i && continue + case ,${enable_languages}, in + *,${language},*) + # Specifically requested language; tell them. + AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing]) + ;; + *) + # Silently disable. + add_this_lang=no + ;; + esac + done + # Disable languages that need GMP if it isn't available. case ,${enable_languages},:${have_gmp}:${need_gmp} in *,${language},*:no:yes) |