Proper check for Windows API functions in configure.
diff --git a/configure b/configure
index 31216a7..96f9ee0 100755
--- a/configure
+++ b/configure
@@ -115,14 +115,15 @@ disabled shared && disabled static && {
# simple cc test
cat > /tmp/test.c << EOF
-int function(void)
-{ return 0; }
+#include <windows.h>
+void function(void)
+{ LoadLibrary(NULL); }
EOF
$cc -shared -o /tmp/test.dll /tmp/test.c
test "$?" = !0 && {
- echo "$cc could not create shared file.";
- echo "Make sure your system is working properly.";
+ echo "$cc could not create shared file with Windows API functions.";
+ echo "Make sure your MinGW system is working properly.";
exit 1;
}