build: commit all the waf build files in the tree
[nivanova/samba-autobuild/.git] / source4 / lib / socket / config.m4
index 1140c139cbc9a4fd474c25e2e7165a067c3c785f..fa987a1f460bfac11e2770c078e4f2d680957cb4 100644 (file)
@@ -1,11 +1,18 @@
+AC_CHECK_FUNCS(writev)
+AC_CHECK_FUNCS(readv)
 
-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)
-if $have_ipv6 = true; then
-    SMB_MODULE_DEFAULT(socket_ipv6, STATIC)
-    AC_DEFINE(HAVE_SOCKET_IPV6,1,[Whether the system has ipv6 support])
+############################################
+# check for unix domain sockets
+# done by AC_LIBREPLACE_NETWORK_CHECKS
+SMB_ENABLE(socket_unix, NO)
+if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
+       SMB_ENABLE(socket_unix, YES)
 fi
 
-dnl don't build ipv6 by default, unless the above test enables it, or
-dnl the configure uses --with-static-modules=socket_ipv6
+############################################
+# check for ipv6
+# done by AC_LIBREPLACE_NETWORK_CHECKS
+SMB_ENABLE(socket_ipv6, NO)
+if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
+    SMB_ENABLE(socket_ipv6, YES)
+fi