[Mplayer-cvslog] CVS: main configure,1.353,1.354

pl pl at mplayer.dev.hu
Sun Dec 30 20:38:31 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv23824

Modified Files:
	configure 
Log Message:
added test for inet_pton()


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.353
retrieving revision 1.354
diff -u -r1.353 -r1.354
--- configure	30 Dec 2001 19:17:10 -0000	1.353
+++ configure	30 Dec 2001 19:38:28 -0000	1.354
@@ -1093,6 +1093,27 @@
 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>




More information about the MPlayer-cvslog mailing list