summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2ad38c3..7cd9c05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,10 @@ AC_SYS_LARGEFILE
AS_CASE([$host],
[*-*-freebsd*], [LDFLAGS="$LDFLAGS -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include"],
[*-apple-darwin*], [LDFLAGS="$LDFLAGS -headerpad_max_install_names"],
+ [*-w64-mingw*], [
+ LIBS="$LIBS -lws2_32"
+ AC_CHECK_LIB([ws2_32], [closesocket], [], [])
+ ],
[]
)