checking dependency style of CC... sgi
checking how to run the C++ preprocessor... CC
configure: error: C++ preprocessor "CC" fails sanity check
See `config.log' for more details.
*** Error code 1
The config.log file then says:
configure:5183: checking how to run the C++ preprocessor
configure:5297: result: CC
configure:5321: CC -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include
conftest.cc
cc-1020 CC: ERROR File = conftest.cc, Line = 30
The identifier "Syntax" is undefined.
Syntax error
^
cc-1065 CC: ERROR at end of source
A semicolon is expected at this point.