From 4e0973a8f79c6b69b17d7f9c068f4ac64aa99cfa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jan 2009 13:21:25 +0100 Subject: configure.ac: link with -lws2_32 on WIN32 All socket functions are provided by ws2_32.dll. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) 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= -- cgit v1.2.3