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 | 59f7ec455144354a9d14af6a9f82b2fa780a1acb (patch) | |
tree | 1d4ae92eaf044dc24a6d6d16640c9d5207b22a76 /configure.in | |
parent | 2195b765a1b02ec56ef3aabf0916f3b6d553b90e (diff) | |
download | gdb-59f7ec455144354a9d14af6a9f82b2fa780a1acb.zip gdb-59f7ec455144354a9d14af6a9f82b2fa780a1acb.tar.gz gdb-59f7ec455144354a9d14af6a9f82b2fa780a1acb.tar.bz2 |
* 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 3f86f58..10571b4 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. |