Thanks for reporting this and diagnosing it. I installed this to work around the problem. Perhaps there's a better fix, but I hope this works around the problem anyway.
2006-03-08 Paul Eggert <[EMAIL PROTECTED]> * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Require that /lib/cpp include stdio.h correctly. Solaris 10's doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by Ralf Wildenhues. --- c.at.~1.7.~ 2005-07-06 14:39:31.000000000 -0700 +++ c.at 2006-03-08 11:17:41.000000000 -0800 @@ -2,7 +2,7 @@ AT_BANNER([C low level compiling/preprocessing macros.]) -# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software +# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software # Foundation, Inc. # # This program is free software; you can redistribute it and/or modify @@ -141,7 +141,8 @@ AT_CLEANUP AT_SETUP([AC_PROG_CPP without warnings]) # Ignore if /lib/cpp doesn't work -AT_CHECK([/lib/cpp </dev/null || exit 77], [], [ignore], [ignore]) +AT_CHECK([echo '#include <stdio.h>' | /lib/cpp </dev/null || exit 77], + [], [ignore], [ignore]) # A cpp which exit status is meaningless. AT_DATA([mycpp], @@ -178,7 +179,8 @@ AT_CLEANUP AT_SETUP([AC_PROG_CPP via CC]) # Ignore if /lib/cpp doesn't work -AT_CHECK([/lib/cpp </dev/null || exit 77], [], [ignore], [ignore]) +AT_CHECK([echo '#include <stdio.h>' | /lib/cpp </dev/null || exit 77], + [], [ignore], [ignore]) AT_DATA([mycc], [[#! /bin/sh