Commit f5427fca authored by diego's avatar diego

Improve linker check for Winsock library name.

On Windows CE, the Winsock library name is ws2, not ws2_32.
patch by Martin Storsjö, martin martin st


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19431 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f0a699a
......@@ -2216,9 +2216,11 @@ if enabled network; then
if check_header arpa/inet.h ; then
check_func closesocket
elif check_header winsock2.h ; then
network_extralibs="-lws2_32"
check_func_headers winsock2.h closesocket -lws2 && \
network_extralibs="-lws2" || \
{ check_func_headers winsock2.h closesocket -lws2_32 && \
network_extralibs="-lws2_32"; }
check_type ws2tcpip.h socklen_t
check_func_headers winsock2.h closesocket
else
disable network
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment