1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

configure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this

metze
(This used to be commit e94ff756be)
This commit is contained in:
Stefan Metzmacher 2008-05-21 22:31:08 +02:00
parent 5797e33b81
commit 3b6b2f26fc

View File

@ -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;