See bug 758732 comment 6.
It's a little fiddly, but m4 is just a macro-expansion language, so you can grab the definitions of existing macros and munge them. The only good example I know of this is: http://mxr.mozilla.org/mozilla-central/source/build/autoconf/acwinpaths.m4 where we fiddle the results of some macros to handle Windows paths.
arguably, the AC_TRY_COMPILE macros should be doing the same thing as AC_LANG, so why don't we fail in AC_TRY_COMPILE but do in AC_LANG?
So is this <http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/c.m4#n58> (and its C++ equivalent) what we need to override? (Not that I'm volunteering, m4 looks like Latin to me!)
You need to log in before you can comment on or make changes to this bug.