configure.ac: link with -lws2_32 on WIN32

All socket functions are provided by ws2_32.dll.
This commit is contained in:
Max Kellermann 2009-01-03 13:21:25 +01:00
parent 59067e6a92
commit 4e0973a8f7

View File

@ -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=