http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46810
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-06 11:37:29 UTC --- Created attachment 22652 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22652 gcc46-pr46810.patch Wouldn't something like this fix this? If neither --enable-build-with-cxx is given, nor --enable-languages contains go, then we shouldn't require C++ compiler and in that case AC_LANG_PUSH(C++) is wrong.