[Mplayer-cvslog] CVS: main configure,1.549,1.550
Bertrand Baudet
bertrand at mplayerhq.hu
Thu Aug 29 09:07:14 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv27010
Modified Files:
configure
Log Message:
inet_aton fallback support by Joey Parrish <joey at yunamusic.com>
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.549
retrieving revision 1.550
diff -u -r1.549 -r1.550
--- configure 28 Aug 2002 23:00:24 -0000 1.549
+++ configure 29 Aug 2002 07:06:59 -0000 1.550
@@ -1553,6 +1553,7 @@
fi
+_use_aton=no
echocheck "inet_pton()"
cat > $TMPC << EOF
#include <sys/types.h>
@@ -1569,10 +1570,35 @@
_ld_sock="$_ld_sock -lresolv"
echores "yes (using $_ld_sock)"
else
- echores "no (=> streaming support disabled)"
- _streaming=no
+ echores "no (=> i'll try inet_aton next)"
+
+ echocheck "inet_aton()"
+ cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+int main(void) { (void) inet_aton(0, 0); return 0; }
+EOF
+ _use_aton=yes
+ 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
+ _use_aton=no
+ _streaming=no
+ echores "no (=> streaming support disabled)"
+ fi
fi
+_def_use_aton='#undef USE_ATON'
+if test "$_use_aton" != no; then
+ _def_use_aton='#define USE_ATON 1'
+fi
echocheck "inttypes.h (required)"
cat > $TMPC << EOF
@@ -4652,6 +4678,9 @@
/* enable streaming */
$_def_streaming
+
+/* define this to use inet_aton() instead of inet_pton() */
+$_def_use_aton
/* enables / disables cdparanoia support */
$_def_cdparanoia
More information about the MPlayer-cvslog
mailing list