summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-04 19:04:22 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-04 19:04:22 +0000
commit9ec12d04bd99dbef68603e856233ffa523958688 (patch)
treeb1f5c20871a766b1ee4063b706f8c55bc07b0201 /configure
parent57f3f10ad02bd9ce8857e0df4ba55af4c595e155 (diff)
downloadmpv-9ec12d04bd99dbef68603e856233ffa523958688.tar.bz2
mpv-9ec12d04bd99dbef68603e856233ffa523958688.tar.xz
Add proper check for arpa/inet.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28465 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 12 insertions, 5 deletions
diff --git a/configure b/configure
index 661a043a80..6cee8c231a 100755
--- a/configure
+++ b/configure
@@ -2918,6 +2918,17 @@ else
fi
+echocheck "arpa/inet.h"
+arpa_inet_h=no
+def_arpa_inet_h='#define HAVE_ARPA_INET_H 0'
+cat > $TMPC << EOF
+#include <arpa/inet.h>
+int main(void) { return 0; }
+EOF
+cc_check && arpa_inet_h=yes && def_arpa_inet_h='#define HAVE_ARPA_INET_H 1'
+echores "$arpa_inet_h"
+
+
echocheck "inet_pton()"
def_inet_pton='#define HAVE_INET_PTON 0'
inet_pton=no
@@ -8573,6 +8584,7 @@ $_def_libswscale
$_def_libswscale_a
$_def_libswscale_so
+$def_arpa_inet_h
$def_bswap
$_def_dcbzl
$def_dos_paths
@@ -8595,11 +8607,6 @@ $_def_yasm
#define CONFIG_SWSCALE 1
#define CONFIG_GRAY 0
-#ifdef __MINGW32__
-#define HAVE_ARPA_INET_H 0
-#else
-#define HAVE_ARPA_INET_H 1
-#endif
#define HAVE_POLL_H 1
#define HAVE_PPC4XX 0