diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2004-04-12 16:59:09 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2004-04-12 16:59:09 +0000 |
commit | 61dbc304b53d20703de8cdcb883d6efd3a18c311 (patch) | |
tree | 82062cc55150840e83010409fb627249b89cf396 /m4/depend.m4 | |
parent | 2fb6673042cbbc99c5f8b9e2790095db22c78b90 (diff) | |
download | automake-61dbc304b53d20703de8cdcb883d6efd3a18c311.tar.gz |
Fix for PR automake/416:
* m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
remarks.
From Peter Seiderer.
Diffstat (limited to 'm4/depend.m4')
-rw-r--r-- | m4/depend.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/m4/depend.m4 b/m4/depend.m4 index fe5fee449..24a9a269d 100644 --- a/m4/depend.m4 +++ b/m4/depend.m4 @@ -115,9 +115,14 @@ AC_CACHE_CHECK([dependency style of $depcc], grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings - # (even with -Werror). So we grep stderr for any message - # that says an option was ignored. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi |