aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorHans Zandbelt <Hans.Zandbelt@telin.nl>2004-11-09 00:27:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-11-09 00:27:16 +0000
commit7a91333f7387d4f08eeb6464db93f51be80c33b5 (patch)
treed794cb29fe46fcb8bb134b767c4db532c89d7674 /configure
parentd07730ddd139e97d671c8670bdd73e19d3e9fcc0 (diff)
downloadffmpeg-7a91333f7387d4f08eeb6464db93f51be80c33b5.tar.gz
IPv6 support patch by ("Hans Zandbelt" <Hans.Zandbelt <at> telin {dot} nl>)
Originally committed as revision 3663 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure b/configure
index 664825782f..289a327291 100755
--- a/configure
+++ b/configure
@@ -958,6 +958,30 @@ if (texi2html -version) >/dev/null 2>&1; then
texi2html=yes
fi
+if test "$network" = "yes" ; then
+##########################################
+# IPv6 probe
+
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+int main( void ) {
+ struct sockaddr_storage saddr;
+ struct ipv6_mreq mreq6;
+ getaddrinfo(0,0,0,0);
+ getnameinfo(0,0,0,0,0,0,0);
+ IN6_IS_ADDR_MULTICAST(0);
+}
+EOF
+
+ipv6=no
+if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
+ipv6=yes
+fi
+fi
+
case "`$cc -v 2>&1 | grep version`" in
*gcc*)
CFLAGS="-Wall $CFLAGS"
@@ -1046,6 +1070,10 @@ echo "pthreads support" $pthreads
echo "AMR-NB float support" $amr_nb
echo "AMR-NB fixed support" $amr_nb_fixed
echo "AMR-WB float support" $amr_wb
+echo "network support $network"
+if test "$network" = "yes" ; then
+echo "IPv6 support $ipv6"
+fi
if test "$gpl" = "no" ; then
echo "License: LGPL"
else
@@ -1294,6 +1322,10 @@ if test "$network" = "yes" ; then
echo "CONFIG_NETWORK=yes" >> config.mak
fi
+if test "$ipv6" = "yes" ; then
+ echo "#define CONFIG_IPV6 1" >> $TMPH
+fi
+
if test "$zlib" = "yes" ; then
echo "#define CONFIG_ZLIB 1" >> $TMPH
echo "CONFIG_ZLIB=yes" >> config.mak