summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-11 14:06:38 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-11 14:06:38 +0000
commitb58659a5033bfdf79b960a5fcb2f96ed8e07488b (patch)
tree666bb5971e3a917d31960c4959a0b8f16596c78a /configure
parentb75c335056838e2ea8f52eb9611e6a7bb1006081 (diff)
downloadmpv-b58659a5033bfdf79b960a5fcb2f96ed8e07488b.tar.bz2
mpv-b58659a5033bfdf79b960a5fcb2f96ed8e07488b.tar.xz
Streamline socklib check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20156 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 4 insertions, 7 deletions
diff --git a/configure b/configure
index d68b88a4cd..512c723563 100755
--- a/configure
+++ b/configure
@@ -2743,8 +2743,9 @@ cat > $TMPC << EOF
#include <sys/socket.h>
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
- cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break
+ cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break
done
if test $_winsock2 = auto && not cygwin ; then
_winsock2=no
@@ -2754,12 +2755,8 @@ int main(void) { (void) gethostbyname(0); return 0; }
EOF
cc_check -lws2_32 && _ld_sock="-lws2_32" && _winsock2=yes
fi
-if test "$_ld_sock" ; then
- _res_comment="using $_ld_sock"
- echores "yes"
-else
- echores "no"
-fi
+test "$_ld_sock" && _res_comment="using $_ld_sock"
+echores "$_socklib"
if test $_winsock2 = yes ; then