Testing if you have a C compiler
dmake: Error: -- Don't know how to make `test.o'
Changing the logic in the Makefile.PL to this seems to work:
system( "$Config{cc} -o test.o test.c" ) and no_cc();
foreach ( 'test.c', "test.o" )
This might not be more widely compatible (assumes that "-o" is a valid
flag for all compilers) but the existing compiler check already makes
assumptions about the existance of "make".
For even better compatibility, what about using ExtUtils::CBuilder and
"have_compiler()"?