summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-08 21:03:34 +0400
committerAnton <anton@picapica>2019-03-08 21:03:34 +0400
commita5706f9c086c3513889a58f2a84dd3fe86df390e (patch)
tree772b087e138c3c8e4d4634d3acb88e6c5ef43285
parentd47f7d6c5c7769a7bc9716ec022dc6e9287d4ffc (diff)
downloadpica-pica-a5706f9c086c3513889a58f2a84dd3fe86df390e.tar.gz
pica-pica-a5706f9c086c3513889a58f2a84dd3fe86df390e.zip
fixed check for ws2_32 and winmm libs
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2bbdaca..b1efcd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,8 +19,8 @@ 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], [], [])
+ AC_CHECK_LIB([ws2_32], [main], [LIBS="$LIBS -lws2_32"], [])
+ AC_CHECK_LIB([winmm], [main], [LIBS="$LIBS -lwinmm"], [])
],
[]
)