diff options
author | malosek <malosek@fastmq.com> | 2009-10-12 22:50:01 +0200 |
---|---|---|
committer | malosek <malosek@fastmq.com> | 2009-10-12 22:50:01 +0200 |
commit | ea2f6558fd2a759b78364ded493c598f5ca5a2d3 (patch) | |
tree | 4c8f4d2dac755fe94d0ac0f270cfbd3aa7c74a19 | |
parent | 7afc61ae7c4859fa1a6273e1964d378c00142746 (diff) |
mingw fixed winsock linking issue
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 2a718c2..805a83a 100644 --- a/configure.in +++ b/configure.in @@ -126,11 +126,12 @@ case "${host_os}" in AC_DEFINE(ZMQ_HAVE_WINDOWS, 1, [Have Windows OS]) AC_DEFINE(ZMQ_HAVE_MINGW32, 1, [Have MinGW32]) AC_CHECK_HEADERS(windows.h) + AC_CHECK_LIB(ws2_32, main, , + [AC_MSG_ERROR([Could not link with ws2_32.dll.])]) AC_CHECK_LIB(Rpcrt4, main, , [AC_MSG_ERROR([Could not link with Rpcrt4.dll.])]) AC_CHECK_LIB(Iphlpapi, main, , [AC_MSG_ERROR([Could not link with Iphlpapi.dll.])]) - LIBS="${LIBS} -lwsock32 -lws2_32" CFLAGS="${CFLAGS} -std=c99" on_mingw32="yes" ;; |