mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't check for AI_V4MAPPED and AI_ALL.
This commit is contained in:
parent
795614dcbb
commit
084dd20514
@ -1,5 +1,8 @@
|
||||
2003-11-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* aclocal.m4: Don't check for AI_V4MAPPED and for AI_ALL, since
|
||||
Wget doesn't need them.
|
||||
|
||||
* configure.in: Check for struct sockaddr_storage.
|
||||
|
||||
2003-11-12 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
47
aclocal.m4
vendored
47
aclocal.m4
vendored
@ -246,7 +246,7 @@ AC_DEFUN([GETADDRINFO_AI_ADDRCONFIG],[
|
||||
#include <netdb.h>
|
||||
|
||||
#ifndef AI_ADDRCONFIG
|
||||
#error Missing AI_ADDRCONFIG
|
||||
#error Missing AI_ADDRCONFIG
|
||||
#endif
|
||||
],[
|
||||
wget_cv_gai_ai_addrconfig=yes
|
||||
@ -263,51 +263,6 @@ AC_DEFUN([GETADDRINFO_AI_ADDRCONFIG],[
|
||||
])
|
||||
|
||||
|
||||
AC_DEFUN([GETADDRINFO_AI_ALL],[
|
||||
AC_CACHE_CHECK([if getaddrinfo supports AI_ALL],[wget_cv_gai_ai_all],[
|
||||
AC_TRY_CPP([
|
||||
#include <netdb.h>
|
||||
|
||||
#ifndef AI_ALL
|
||||
#error Missing AI_ALL
|
||||
#endif
|
||||
],[
|
||||
wget_cv_gai_ai_all=yes
|
||||
],[
|
||||
wget_cv_gai_ai_all=no
|
||||
])
|
||||
])
|
||||
|
||||
if test "X$wget_cv_gai_ai_all" = "Xyes"; then :
|
||||
$1
|
||||
else :
|
||||
$2
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
AC_DEFUN([GETADDRINFO_AI_V4MAPPED],[
|
||||
AC_CACHE_CHECK([if getaddrinfo supports AI_V4MAPPED],[wget_cv_gai_ai_v4mapped],[
|
||||
AC_TRY_CPP([
|
||||
#include <netdb.h>
|
||||
|
||||
#ifndef AI_V4MAPPED
|
||||
#error Missing AI_V4MAPPED
|
||||
#endif
|
||||
],[
|
||||
wget_cv_gai_ai_v4mapped=yes
|
||||
],[
|
||||
wget_cv_gai_ai_v4mapped=no
|
||||
])
|
||||
])
|
||||
|
||||
if test "X$wget_cv_gai_ai_v4mapped" = "Xyes"; then :
|
||||
$1
|
||||
else :
|
||||
$2
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([WGET_STRUCT_SOCKADDR_STORAGE],[
|
||||
AC_CHECK_TYPES([struct sockaddr_storage],[], [], [
|
||||
#include <sys/types.h>
|
||||
|
12
configure.in
12
configure.in
@ -491,18 +491,6 @@ if test "X$ipv6" = "Xyes" || test "X$check_for_ipv6" = "Xyes"; then
|
||||
[Define if the system headers support the AI_ADDRCONFIG flag.]
|
||||
)
|
||||
])
|
||||
GETADDRINFO_AI_V4MAPPED([
|
||||
AC_DEFINE(
|
||||
[HAVE_GETADDRINFO_AI_V4MAPPED], 1,
|
||||
[Define if the system headers support the AI_V4MAPPED flag.]
|
||||
)
|
||||
])
|
||||
GETADDRINFO_AI_ALL([
|
||||
AC_DEFINE(
|
||||
[HAVE_GETADDRINFO_AI_ALL], 1,
|
||||
[Define if the system headers support the AI_ALL flag.]
|
||||
)
|
||||
])
|
||||
], [
|
||||
AC_MSG_NOTICE([Disabling IPv6 support: your system does not support getaddrinfo(3)])
|
||||
ipv6=no
|
||||
|
Loading…
Reference in New Issue
Block a user