summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-30 19:38:28 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-30 19:38:28 +0000
commit1b72f7b2276494c50240e5dbce068753449d9454 (patch)
tree22d8a0fe10ba2ad8c258214e0debd75d933af6ad /configure
parentff648e487f83cccd275ca254a6999306f881e363 (diff)
downloadmpv-1b72f7b2276494c50240e5dbce068753449d9454.tar.bz2
mpv-1b72f7b2276494c50240e5dbce068753449d9454.tar.xz
added test for inet_pton()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3904 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 37e5dbe561..a2cc2dea81 100755
--- a/configure
+++ b/configure
@@ -1093,6 +1093,27 @@ else
fi
+echocheck "inet_pton()"
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+int main(void) { (void) inet_pton(0, 0, 0); return 0; }
+EOF
+if cc_check $_ld_sock ; then
+ # NOTE: Linux has libresolv but does not need it
+ :
+ echores "yes (using $_ld_sock)"
+elif cc_check $_ld_sock -lresolv ; then
+ # NOTE: needed for SunOS at least
+ _ld_sock="$_ld_sock -lresolv"
+ echores "yes (using $_ld_sock)"
+else
+ echores "no (=> streaming support disabled)"
+ _streaming=no
+fi
+
+
echocheck "malloc.h"
cat > $TMPC << EOF
#include <malloc.h>