Robert, conftest apparently fails to build because __MINGW32__ is undefined. Relevant config.log output attached.
Harold This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:710: checking for style of include used by make configure:741: checking for Cygwin environment configure:757: cc -c conftest.c 1>&5 configure:774: checking for mingw32 environment configure:786: cc -c conftest.c 1>&5 configure: In function `main': configure:782: `__MINGW32__' undeclared (first use in this function) configure:782: (Each undeclared identifier is reported only once configure:782: for each function it appears in.) configure: failed program was: #line 779 "configure" #include "confdefs.h" int main() { return __MINGW32__; ; return 0; } configure:803: checking how to run the C preprocessor configure:824: cc -E conftest.c >/dev/null 2>conftest.out configure:935: checking for a BSD compatible install configure:988: checking whether build environment is sane configure:1059: checking for mawk configure:1059: checking for gawk configure:1089: checking whether make sets ${MAKE} configure:1284: checking host system type configure:1305: checking build system type configure:1325: checking for gcc configure:1438: checking whether the C compiler (gcc ) works configure:1454: gcc -o conftest conftest.c 1>&5 configure:1480: checking whether the C compiler (gcc ) is a cross-compiler