aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-06-29 23:45:48 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-06-29 23:45:48 +0000
commitdce7b4baa78f8b0ad3725af4460ac450c58e003e (patch)
tree2e873f9412cb8d9c6a998a63223f504779347c8b
parent66a5baf77798bbf9dbfe1d7ddf6c591843d831c7 (diff)
downloaddlfcn-win32-r8.tar.gz
dlfcn-win32-r8.tar.bz2
dlfcn-win32-r8.zip
Proper check for Windows API functions in configure.r8
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index 31216a7..96f9ee0 100755
--- a/configure
+++ b/configure
@@ -115,14 +115,15 @@ disabled shared && disabled static && {
115 115
116# simple cc test 116# simple cc test
117cat > /tmp/test.c << EOF 117cat > /tmp/test.c << EOF
118int function(void) 118#include <windows.h>
119{ return 0; } 119void function(void)
120{ LoadLibrary(NULL); }
120EOF 121EOF
121$cc -shared -o /tmp/test.dll /tmp/test.c 122$cc -shared -o /tmp/test.dll /tmp/test.c
122 123
123test "$?" = !0 && { 124test "$?" = !0 && {
124 echo "$cc could not create shared file."; 125 echo "$cc could not create shared file with Windows API functions.";
125 echo "Make sure your system is working properly."; 126 echo "Make sure your MinGW system is working properly.";
126 exit 1; 127 exit 1;
127} 128}
128 129