diff -r b8e4a98bbdf3 -r 8508ec77df4c scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Mon Jan 26 22:43:08 2009 +0000 +++ b/scripts/crosstool-NG.sh.in Thu Jan 29 22:09:55 2009 +0000 @@ -350,11 +350,17 @@ printf "#${BANG}${CT_SHELL}\nexec '${where}' \"\${@}\"\n" >"${CT_PREFIX_DIR}/bin/${!v}-${tool}" CT_DoExecLog ALL chmod 700 "${CT_PREFIX_DIR}/bin/${!v}-${tool}" else - # We'll at least need some of them... case "${tool}" in + # We'll at least need some of them... ar|as|gcc|ld|nm|objcopy|objdump|ranlib) CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" ;; + # Some are conditionnally required + # Add them in alphabetical (C locale) ordering + gcj) + CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y" + ;; + # If any other is missing, only warn at low level *) # It does not deserve a WARN level. CT_DoLog DEBUG " Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : not required."