aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 13:21:25 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 13:21:25 +0100
commit4e0973a8f79c6b69b17d7f9c068f4ac64aa99cfa (patch)
tree726006a491ba3af434c73b79a3b884dc6f5f0281
parent59067e6a925eab5690f455b65d9f2b4d45301115 (diff)
downloadmpd-4e0973a8f79c6b69b17d7f9c068f4ac64aa99cfa.tar.gz
mpd-4e0973a8f79c6b69b17d7f9c068f4ac64aa99cfa.tar.xz
mpd-4e0973a8f79c6b69b17d7f9c068f4ac64aa99cfa.zip
configure.ac: link with -lws2_32 on WIN32
All socket functions are provided by ws2_32.dll.
Diffstat (limited to '')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c05e2f4e8..41dda0890 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,12 @@ AC_DEFINE(PROTOCOL_VERSION, "0.14.0", [The mpd protocol version])
MPD_LIBS=""
MPD_CFLAGS=""
+case "$host" in
+*-mingw32* | *-windows*)
+ MPD_LIBS="$MPD_LIBS -lws2_32"
+ ;;
+esac
+
if test -z "$prefix" || test "x$prefix" = xNONE; then
local_lib=
local_include=