summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-21 21:28:59 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-21 21:32:28 +0200
commit334de182f47932cbe59b0519bc38a44985055cc7 (patch)
tree6f61a3e66572d8db3f573cb340ea4463a6d95af4 /source4/lib
parente029dfe9eac32c35ed34eb12927aa6a0b5af31f1 (diff)
downloadsamba-334de182f47932cbe59b0519bc38a44985055cc7.tar.gz
samba-334de182f47932cbe59b0519bc38a44985055cc7.tar.bz2
samba-334de182f47932cbe59b0519bc38a44985055cc7.zip
lib/socket: use HAVE_IPV6 test from LIBREPLACE_NETWORK_CHECKS
metze (This used to be commit 76be51d3a08e2239a137b8abe3f2df722f69ddb2)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/config.m416
1 files changed, 5 insertions, 11 deletions
diff --git a/source4/lib/socket/config.m4 b/source4/lib/socket/config.m4
index 871c57f97c..9c0072dd8b 100644
--- a/source4/lib/socket/config.m4
+++ b/source4/lib/socket/config.m4
@@ -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
-
-
-
-