summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-16 12:30:49 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-16 22:56:14 +0200
commitc7c9aa7e7a2d941486fb21fd15e57653cc8b14e0 (patch)
tree60696dbbf66935683f9d9c426b1f17445ef9321d /source4/lib
parenta65e5994ad9ecc2a70f24a5080a1c311d22ed2be (diff)
downloadsamba-c7c9aa7e7a2d941486fb21fd15e57653cc8b14e0.tar.gz
samba-c7c9aa7e7a2d941486fb21fd15e57653cc8b14e0.tar.bz2
samba-c7c9aa7e7a2d941486fb21fd15e57653cc8b14e0.zip
lib/socket: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace
metze (This used to be commit 5de605bb2ef88a1f3e61c64e557c7f069d0f6dad)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/config.m428
1 files changed, 3 insertions, 25 deletions
diff --git a/source4/lib/socket/config.m4 b/source4/lib/socket/config.m4
index e5ae9ecc77..871c57f97c 100644
--- a/source4/lib/socket/config.m4
+++ b/source4/lib/socket/config.m4
@@ -1,34 +1,12 @@
AC_CHECK_FUNCS(writev)
AC_CHECK_FUNCS(readv)
-AC_CACHE_CHECK([for sin_len in sock],samba_cv_HAVE_SOCK_SIN_LEN,[
-AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>],
-[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
-samba_cv_HAVE_SOCK_SIN_LEN=yes,samba_cv_HAVE_SOCK_SIN_LEN=no)])
-if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
- AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property])
-fi
-
############################################
# check for unix domain sockets
-AC_CACHE_CHECK([for unix domain sockets],samba_cv_unixsocket, [
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <sys/socket.h>
-#include <sys/un.h>],
-[
- struct sockaddr_un sunaddr;
- sunaddr.sun_family = AF_UNIX;
-],
- samba_cv_unixsocket=yes,samba_cv_unixsocket=no)])
+# done by AC_LIBREPLACE_NETWORK_CHECKS
SMB_ENABLE(socket_unix, NO)
-if test x"$samba_cv_unixsocket" = x"yes"; then
- SMB_ENABLE(socket_unix, YES)
- AC_DEFINE(HAVE_UNIXSOCKET,1,[If we need to build with unixscoket support])
+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