With up-to-date gnulib (and I can't see any relevant changes for some years), I am getting the following error while using the configmake module and building on Mingw 64 x86_64:
In file included from <command-line>:
C:/msys64/mingw64/include/objidl.h:10677:3: error: expected identifier or '(' before string constant
| ^~~~~~~
This seems related to the following code at the top of configmake.h:
#if HAVE_WINSOCK2_H
# include <winsock2.h> /* avoid mingw pollution on DATADIR */
#endif
In my build, HAVE_WINSOCK2_H is not defined (or indeed undefined, I guess my configure doesn't test it either way). I see Makefile has "UNISTD_H_HAVE-WINSOCK2_H = 0", and ditto for "UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS", but that's the closest I can see.
--