Mercurial > mplayer.hg
comparison configure @ 20359:4795f0a7fb62
IPv6 tests for the presence of AF_INET6 but not struct sockaddr_in6. Glibc 2.0
has AF_INET6 but doesn't have sockaddr_in6. Disable IPv6 in such cases.
taken from a patch by Mikulas Patocka, mikulas (at) artax karlin mff cuni cz
author | diego |
---|---|
date | Sun, 22 Oct 2006 14:51:17 +0000 |
parents | 3cec4506b350 |
children | 416a1afcfe95 |
comparison
equal
deleted
inserted
replaced
20358:3007b4b0673c | 20359:4795f0a7fb62 |
---|---|
6986 echocheck "inet6" | 6986 echocheck "inet6" |
6987 if test "$_inet6" = auto ; then | 6987 if test "$_inet6" = auto ; then |
6988 cat > $TMPC << EOF | 6988 cat > $TMPC << EOF |
6989 #include <sys/types.h> | 6989 #include <sys/types.h> |
6990 #include <sys/socket.h> | 6990 #include <sys/socket.h> |
6991 int main(void) { socket(AF_INET6, SOCK_STREAM, AF_INET6); } | 6991 #include <netinet/in.h> |
6992 int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); } | |
6992 EOF | 6993 EOF |
6993 _inet6=no | 6994 _inet6=no |
6994 if cc_check ; then | 6995 if cc_check ; then |
6995 _inet6=yes | 6996 _inet6=yes |
6996 fi | 6997 fi |