[MPlayer-dev-eng] [PATCH] 'configure' does not adequately test for which socket libs to build with
Derek E. Lewis
dlewis at solnetworks.net
Mon Oct 10 20:16:43 CEST 2005
Apologies for the line spanning (copied and pasted from an 80x25
terminal window).
--- configure.orig 2005-10-10 17:03:47.653082000 +0000
+++ configure 2005-10-10 18:11:05.830982000 +0000
@@ -2482,7 +2482,8 @@
# 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" "-lnsl" "-lsocket -lnsl" "-lsocket -ldnet"
"-lsocket -lbind" ; do
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break
More information about the MPlayer-dev-eng
mailing list