aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-30 19:38:28 +0000
committerGravatar pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-30 19:38:28 +0000
commit1b72f7b2276494c50240e5dbce068753449d9454 (patch)
tree22d8a0fe10ba2ad8c258214e0debd75d933af6ad
parentff648e487f83cccd275ca254a6999306f881e363 (diff)
added test for inet_pton()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3904 b3059339-0415-0410-9bf9-f77b7e298cf2
-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>