1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

Extend the network test to also check the socket libs.

patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16770 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2005-10-15 10:46:24 +00:00
parent 8bbde8452b
commit a66210ff32

3
configure vendored
View File

@ -2482,7 +2482,8 @@ echocheck "socklib"
# for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind):
cat > $TMPC << EOF
#include <netdb.h>
int main(void) { (void) gethostbyname(0); return 0; }
#include <sys/socket.h>
int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; }
EOF
for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break