[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2559-gd53b589d

Stefan Metzmacher metze at samba.org
Thu May 22 11:04:05 GMT 2008


The branch, v3-3-test has been updated
       via  d53b589debdb95d3ae46e6b45c6951f522ccc5a1 (commit)
       via  e94ff756be627b40c433cb53547007a5c219cc9e (commit)
       via  1ca4508f3a996982a528942da1b12b94b91e94cd (commit)
      from  9971118c23900d81e885a013e738a67df790c90c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit d53b589debdb95d3ae46e6b45c6951f522ccc5a1
Author: Stefan Metzmacher <metze at samba.org>
Date:   Wed May 21 22:32:21 2008 +0200

    configure: samba_cv_unixsocket was renamed into libreplace_cv_HAVE_UNIXSOCKET
    
    metze

commit e94ff756be627b40c433cb53547007a5c219cc9e
Author: Stefan Metzmacher <metze at samba.org>
Date:   Wed May 21 22:31:08 2008 +0200

    configure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this
    
    metze

commit 1ca4508f3a996982a528942da1b12b94b91e94cd
Author: Stefan Metzmacher <metze at samba.org>
Date:   Wed May 21 21:27:45 2008 +0200

    libreplace: add test for HAVE_IPV6
    
    Samba can later just check libreplace_cv_HAVE_IPV6 = yes.
    
    metze
    (cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd)

-----------------------------------------------------------------------

Summary of changes:
 source/configure.in                      |   25 +------------------------
 source/lib/replace/libreplace_network.m4 |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 24 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/configure.in b/source/configure.in
index f2691c4..d63ef61 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -2609,29 +2609,6 @@ SMB_CHECK_SYSCONF(_SC_NPROCESSORS_ONLN)
 SMB_CHECK_SYSCONF(_SC_PAGESIZE)
 AC_CHECK_FUNCS(getpagesize)
 
-dnl test for ipv6
-AC_CACHE_CHECK([for ipv6 support],samba_cv_HAVE_IPV6,[
-AC_TRY_COMPILE([
-#include <stdlib.h> /* for NULL */
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netdb.h>],
-[
-struct sockaddr_storage sa_store;
-struct addrinfo *ai = NULL;
-struct in6_addr in6addr;
-int s = socket(AF_INET6, SOCK_STREAM, 0);
-int ret = getaddrinfo(NULL, NULL, NULL, &ai);
-if (ret != 0) {
-	const char *es = gai_strerror(ret);
-}
-freeaddrinfo(ai);
-],
-samba_cv_HAVE_IPV6=yes,samba_cv_HAVE_IPV6=no)])
-if test x"$samba_cv_HAVE_IPV6" = x"yes"; then
-    AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
-fi
-
 ################################################
 # look for a method of setting the effective uid
 seteuid=no;
@@ -5722,7 +5699,7 @@ AC_ARG_WITH(winbind,
 # We need unix domain sockets for winbind
 
 if test x"$HAVE_WINBIND" = x"yes"; then
-	if test x"$samba_cv_unixsocket" = x"no"; then
+	if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"no"; then
 		winbind_no_reason=", no unix domain socket support on $host_os"
 		HAVE_WINBIND=no
 	fi
diff --git a/source/lib/replace/libreplace_network.m4 b/source/lib/replace/libreplace_network.m4
index f2d177b..6cde6b9 100644
--- a/source/lib/replace/libreplace_network.m4
+++ b/source/lib/replace/libreplace_network.m4
@@ -339,6 +339,35 @@ if test x"$libreplace_cv_HAVE_IFACE_IFREQ" = x"yes"; then
 fi
 fi
 
+dnl test for ipv6
+AC_CACHE_CHECK([for ipv6 support],libreplace_cv_HAVE_IPV6,[
+	AC_TRY_COMPILE([
+#include <stdlib.h> /* for NULL */
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <netdb.h>
+		],
+		[
+struct sockaddr_storage sa_store;
+struct addrinfo *ai = NULL;
+struct in6_addr in6addr;
+int idx = if_nametoindex("iface1");
+int s = socket(AF_INET6, SOCK_STREAM, 0);
+int ret = getaddrinfo(NULL, NULL, NULL, &ai);
+if (ret != 0) {
+	const char *es = gai_strerror(ret);
+}
+freeaddrinfo(ai);
+		],[
+		libreplace_cv_HAVE_IPV6=yes
+		],[
+		libreplace_cv_HAVE_IPV6=no
+		])
+])
+if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
+    AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
+fi
+
 LIBS=$old_LIBS
 CPPFLAGS="$SAVE_CPPFLAGS"
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list