Don't enable IPv6 if --disable-ipv6

This commit is contained in:
Kurt Zeilenga 2001-12-27 02:22:13 +00:00
parent f9c2dc3701
commit 208a88f872
2 changed files with 561 additions and 620 deletions

1175
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -950,16 +950,14 @@ fi
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
dnl PF_INET6 support requires getaddrinfo and INET6_ADDRSTRLEN dnl PF_INET6 support requires getaddrinfo and INET6_ADDRSTRLEN
dnl PF_LOCAL may use getaddrinfo in available dnl PF_LOCAL may use getaddrinfo in available
AC_CHECK_FUNCS( getaddrinfo inet_ntop ) AC_CHECK_FUNCS( getaddrinfo gai_strerror inet_ntop )
ol_link_ipv6=no ol_link_ipv6=no
if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
if test $ol_enable_ipv6 = yes ; then if test $ol_enable_ipv6 = yes ; then
AC_MSG_ERROR([IPv6 support requires getaddrinfo() and inet_ntop()]) AC_MSG_ERROR([IPv6 support requires getaddrinfo() and inet_ntop()])
fi fi
else elif test $ol_enable_ipv6 != no ; then
AC_CHECK_FUNCS( gai_strerror )
AC_CACHE_CHECK([INET6_ADDRSTRLEN],[ol_cv_inet6_addrstrlen],[ AC_CACHE_CHECK([INET6_ADDRSTRLEN],[ol_cv_inet6_addrstrlen],[
AC_EGREP_CPP(__has_inet6_addrstrlen__,[ AC_EGREP_CPP(__has_inet6_addrstrlen__,[
# include <netinet/in.h> # include <netinet/in.h>