mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Don't enable IPv6 if --disable-ipv6
This commit is contained in:
parent
f9c2dc3701
commit
208a88f872
@ -950,16 +950,14 @@ fi
|
||||
dnl ----------------------------------------------------------------
|
||||
dnl PF_INET6 support requires getaddrinfo and INET6_ADDRSTRLEN
|
||||
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
|
||||
if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
|
||||
if test $ol_enable_ipv6 = yes ; then
|
||||
AC_MSG_ERROR([IPv6 support requires getaddrinfo() and inet_ntop()])
|
||||
fi
|
||||
else
|
||||
AC_CHECK_FUNCS( gai_strerror )
|
||||
|
||||
elif test $ol_enable_ipv6 != no ; then
|
||||
AC_CACHE_CHECK([INET6_ADDRSTRLEN],[ol_cv_inet6_addrstrlen],[
|
||||
AC_EGREP_CPP(__has_inet6_addrstrlen__,[
|
||||
# include <netinet/in.h>
|
||||
|
Loading…
Reference in New Issue
Block a user