On 4 October 2012 07:39, Paul Eggert wrote: > On 10/03/2012 10:27 PM, Václav Zeman wrote: >> I wonder if the attached patch is not in order > > Why just C++? Shouldn't this also affect C, > and other languages? Because C++ is what I am interested in. :) And because I actually could not find a similar list of compilers to be checked for AC_PROG_CC. Does attached patch work for you? -- VZ
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index ad40527..d8668c7 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -443,6 +443,9 @@ m4_ifval([$1], [AC_CHECK_TOOLS(CC, [$1])], [AC_CHECK_TOOL(CC, gcc) if test -z "$CC"; then + AC_CHECK_TOOL(CC, clang) +fi +if test -z "$CC"; then dnl Here we want: dnl AC_CHECK_TOOL(CC, cc) dnl but without the check for a tool without the prefix.
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf