Checking Windows libraries with autoconf is cumbersome, because linking often fails unless you include the header, and AC_SEARCH_LIBS doesn't permit that. Just detect the Windows API instead, with new MY_WINDOWS_API.