summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 11:35:13 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 11:35:13 +0000
commit21c026d2365ae78364b7bfe87390db7e95382ebc (patch)
treeea676b8167ad81f65a32de99c08f73094a117a27 /configure
parentdc49bda4bbb1f84e1c90fbf7457673cd660b32b5 (diff)
downloadmpv-21c026d2365ae78364b7bfe87390db7e95382ebc.tar.bz2
mpv-21c026d2365ae78364b7bfe87390db7e95382ebc.tar.xz
Added IPv6 support, patch by Dave Lambley <mplayer-dev-eng@dlambley.freeserve.co.uk>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9692 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure61
1 files changed, 59 insertions, 2 deletions
diff --git a/configure b/configure
index f6ee0528b0..14e17a968b 100755
--- a/configure
+++ b/configure
@@ -168,7 +168,9 @@ Optional features:
--disable-sortsub Disable subtitles sorting [enabled]
--enable-fribidi Enable using the FriBiDi libs [disabled]
--disable-macosx Disable Mac OS X specific features [autodetect]
-
+ --disable-inet6 Disable IPv6 support [autodetect]
+ --disable-gethostbyname2
+ gethostbyname() is not provided by the c library [autodetect]
Codecs:
--enable-gif enable gif support [autodetect]
--enable-png enable png input/output support [autodetect]
@@ -1075,7 +1077,8 @@ _sortsub=yes
_freetypeconfig='freetype-config'
_fribidi=no
_fribidiconfig='fribidi-config'
-
+_inet6=auto
+_gethostbyname2=auto
for ac_option do
case "$ac_option" in
# Skip 1st pass
@@ -1265,6 +1268,12 @@ for ac_option do
--enable-fribidi) _fribidi=yes ;;
--disable-fribidi) _fribidi=no ;;
+ --enable-inet6) _inet6=yes ;;
+ --disable-inet6) _inet6=no ;;
+
+ --enable-gethostbyname2) _gethostbyname2=yes ;;
+ --disable-gethostbyname2) _gethostbyname2=no ;;
+
--enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2
--enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;;
--disable-dga) _dga=no ;;
@@ -4739,6 +4748,48 @@ else
fi
echores "$_xmms"
+
+echocheck "inet6"
+if test "$_inet6" = auto ; then
+ cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+int main(void) { socket(AF_INET6, SOCK_STREAM, AF_INET6); }
+EOF
+ _inet6=no
+ if cc_check ; then
+ _inet6=yes
+ fi
+fi
+if test "$_inet6" = yes ; then
+ _def_inet6='#define HAVE_AF_INET6 1'
+else
+ _def_inet6='#undef HAVE_AF_INET6'
+fi
+echores "$_inet6"
+
+
+echocheck "gethostbyname2"
+if test "$_gethostbyname2" = auto ; then
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+int main(void) { gethostbyname2("", AF_INET); }
+EOF
+ _gethostbyname2=no
+ if cc_check ; then
+ _gethostbyname2=yes
+ fi
+fi
+
+if test "$_inet6" = yes ; then
+ _def_gethostbyname2='#define HAVE_GETHOSTBYNAME2 1'
+else
+ _def_gethostbyname2='#undef HAVE_GETHOSTBYNAME2'
+fi
+echores "$_gethostbyname2"
+
# --------------- GUI specific tests begin -------------------
echocheck "GUI"
echo "$_gui"
@@ -5537,6 +5588,12 @@ $_def_sortsub
$_def_xmms
#define XMMS_INPUT_PLUGIN_DIR "$_xmmsplugindir"
+/* enables inet6 support */
+$_def_inet6
+
+/* do we have gethostbyname2? */
+$_def_gethostbyname2
+
/* Extension defines */
$_def_3dnow // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)
$_def_3dnowex // only define if you have 3DNOWEX (AMD Athlon, etc.)