Commit dce7b4baa78f8b0ad3725af4460ac450c58e003e

Ramiro Polla 2007-06-29T23:45:48

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;
 }