diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-06-07 00:04:15 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-06-07 00:04:15 +0000 |
commit | 613fa3f04eca97263cbb0e1b194f1339104904e2 (patch) | |
tree | 73a6b36649c94b74c2168054de376f3f4d2f3a4f /configure.in | |
parent | 7cacf024b626c54409d43cc7267e5c4ca5160fc8 (diff) | |
download | gdb-613fa3f04eca97263cbb0e1b194f1339104904e2.tar.gz |
* configure.in (unsupported_languages): New macro.
<mmix-knuth-mmixware>: Set unsupported_languages. Name explicit
non-ported target libraries in noconfigdirs.
<cris-*, crisv32-*> Ditto, except for non-aout, non-elf,
non-linux-gnu. Remove libgcj_ex_libffi.
<lang_frag loop>: Set add_this_lang=no if the language is in
unsupported_languages.
* configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 3f86f58aa94..10571b4a758 100644 --- a/configure.in +++ b/configure.in @@ -257,6 +257,10 @@ case "${host}" in configdirs="$configdirs libtermcap" ;; esac +# A target can indicate whether a language isn't supported for some reason. +# Only spaces may be used in this macro; not newlines or tabs. +unsupported_languages= + # Remove more programs from consideration, based on the host or # target this usually means that a port of the program doesn't # exist yet. @@ -481,15 +485,18 @@ case "${target}" in noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" ;; cris-*-* | crisv32-*-*) - libgcj_ex_libffi=`echo ${libgcj} | sed -e 's/target-libffi//'` + unsupported_languages="$unsupported_languages java" case "${target}" in *-*-aout) - noconfigdirs="$noconfigdirs ${libgcj}";; + unsupported_languages="$unsupported_languages f95" + noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; *-*-elf) - noconfigdirs="$noconfigdirs ${libgcj_ex_libffi}";; + unsupported_languages="$unsupported_languages f95" + noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; *-*-linux*) - noconfigdirs="$noconfigdirs ${libgcj_ex_libffi} target-newlib target-libgloss";; + noconfigdirs="$noconfigdirs target-libffi target-newlib target-libgloss";; *) + unsupported_languages="$unsupported_languages f95" noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; esac ;; @@ -639,7 +646,8 @@ case "${target}" in noconfigdirs="$noconfigdirs target-libstdc++-v3" ;; mmix-*-*) - noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss target-libgfortran" + noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" + unsupported_languages="$unsupported_languages f95 java" ;; mn10200-*-*) noconfigdirs="$noconfigdirs ${libgcj}" @@ -1210,7 +1218,14 @@ if test -d ${srcdir}/gcc; then add_this_lang=no ;; esac - + + # Disable a language that is unsupported by the target. + case " $unsupported_languages " in + *" $language "*) + add_this_lang=no + ;; + esac + case $add_this_lang in no) # Remove language-dependent dirs. |