Mercurial > mplayer.hg
changeset 20151:4c9848baf9e8
Make the socklib check search gethostbyname/socket in libc.
On glibc it avoids a useless linking to libnsl.
patch by Emanuele Giaquinta, e.giaquinta glauco it
author | diego |
---|---|
date | Wed, 11 Oct 2006 14:09:30 +0000 |
parents | 2ee2541b06bc |
children | 0d25074baa1e |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Oct 11 14:06:38 2006 +0000 +++ b/configure Wed Oct 11 14:09:30 2006 +0000 @@ -2744,7 +2744,7 @@ int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; } EOF _socklib=no -for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do +for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break done if test $_winsock2 = auto && not cygwin ; then