diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-30 19:38:28 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-30 19:38:28 +0000 |
commit | 1b72f7b2276494c50240e5dbce068753449d9454 (patch) | |
tree | 22d8a0fe10ba2ad8c258214e0debd75d933af6ad | |
parent | ff648e487f83cccd275ca254a6999306f881e363 (diff) |
added test for inet_pton()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3904 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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> |