mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib/socket: use HAVE_IPV6 test from LIBREPLACE_NETWORK_CHECKS
metze
(This used to be commit 76be51d3a0
)
This commit is contained in:
parent
e029dfe9ea
commit
334de182f4
@ -1,5 +1,6 @@
|
||||
AC_CHECK_FUNCS(writev)
|
||||
AC_CHECK_FUNCS(readv)
|
||||
AC_CHECK_FUNCS(gethostbyname2)
|
||||
|
||||
############################################
|
||||
# check for unix domain sockets
|
||||
@ -9,17 +10,10 @@ if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
|
||||
SMB_ENABLE(socket_unix, YES)
|
||||
fi
|
||||
|
||||
dnl test for ipv6 using the gethostbyname2() function. That should be sufficient
|
||||
dnl for now
|
||||
AC_CHECK_FUNCS(gethostbyname2, have_ipv6=true, have_ipv6=false)
|
||||
############################################
|
||||
# check for ipv6
|
||||
# done by AC_LIBREPLACE_NETWORK_CHECKS
|
||||
SMB_ENABLE(socket_ipv6, NO)
|
||||
if $have_ipv6 = true; then
|
||||
if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
|
||||
SMB_ENABLE(socket_ipv6, YES)
|
||||
AC_DEFINE(HAVE_IPV6,1,[Whether the system has ipv6 support])
|
||||
fi
|
||||
dnl don't build ipv6 by default, unless the above test enables it, or
|
||||
dnl the configure uses --with-static-modules=socket_ipv6
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user