summaryrefslogtreecommitdiff
path: root/source4/heimdal_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-05 23:54:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:51 -0500
commite511090a4339221dfd1fa597964af7455f96ec28 (patch)
tree642564ee8fc2222bea72eecf632cac09afd34be0 /source4/heimdal_build
parentf0bc19ae47d7f06d111713b0dbb00f387621e675 (diff)
downloadsamba-e511090a4339221dfd1fa597964af7455f96ec28.tar.gz
samba-e511090a4339221dfd1fa597964af7455f96ec28.tar.bz2
samba-e511090a4339221dfd1fa597964af7455f96ec28.zip
r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo
(and friends) from SAMBA_3_2, with some minor tweaks: - avoid including network headers in replace.h unless absolutely required - autoconf tests for getaddrinfo() in lib/replace The heimdal-specific code also no longer looks for these functions anymore. (This used to be commit b6d3fd84a5d7d814035e60d6fa22f19bed9f77da)
Diffstat (limited to 'source4/heimdal_build')
-rw-r--r--source4/heimdal_build/config.m473
-rw-r--r--source4/heimdal_build/config.mk44
2 files changed, 0 insertions, 117 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4
index 01a620c1c5..8c0959550b 100644
--- a/source4/heimdal_build/config.m4
+++ b/source4/heimdal_build/config.m4
@@ -71,8 +71,6 @@ AC_CHECK_FUNCS([ \
cgetent \
getprogname \
inet_aton \
- inet_ntop \
- inet_pton \
gethostname \
getnameinfo \
iruserok \
@@ -100,8 +98,6 @@ AC_CHECK_FUNCS([ \
errx \
warnx \
flock \
- getaddrinfo \
- freeaddrinfo \
getipnodebyname \
getipnodebyaddr \
freehostent \
@@ -229,49 +225,6 @@ SMB_ENABLE(KERBEROS_LIB, YES)
SMB_ENABLE(asn1_compile, YES)
SMB_ENABLE(compile_et, YES)
-# only add getaddrinfo and related functions if needed
-SMB_ENABLE(HEIMDAL_ROKEN_ADDRINFO, NO)
-if test t$ac_cv_func_getaddrinfo != tyes; then
- SMB_ENABLE(HEIMDAL_ROKEN_ADDRINFO, YES)
-fi
-
-SMB_ENABLE(HEIMDAL_ROKEN_GETNAMEINFO, NO)
-if test t$ac_cv_func_getnameinfo != tyes; then
- SMB_ENABLE(HEIMDAL_ROKEN_GETNAMEINFO, YES)
-fi
-
-# only add inet_aton if needed
-SMB_ENABLE(HEIMDAL_ROKEN_INET_ATON, NO)
-if test t$ac_cv_func_inet_aton != tyes; then
- SMB_ENABLE(HEIMDAL_ROKEN_INET_ATON, YES)
-fi
-
-SMB_ENABLE(HEIMDAL_ROKEN_INET_NTOP, NO)
-if test x"$ac_cv_func_inet_ntop" = x"no"; then
- AC_CHECK_LIB_EXT(nsl_s, NSL_LIBS, inet_ntop)
- AC_CHECK_LIB_EXT(nsl, NSL_LIBS, inet_ntop)
- if test x"$ac_cv_lib_ext_nsl_s_inet_ntop" != x"yes" &&
- test x"$ac_cv_lib_ext_nsl_inet_ntop" != x"yes"; then
- SMB_ENABLE(HEIMDAL_ROKEN_INET_NTOP, YES)
- else
- SMB_ENABLE(NSL,YES)
- fi
-fi
-
-SMB_ENABLE(HEIMDAL_ROKEN_INET_PTON, NO)
-if test x"$ac_cv_func_inet_pton" = x"no"; then
- AC_CHECK_LIB_EXT(nsl_s, NSL_LIBS, inet_pton)
- AC_CHECK_LIB_EXT(nsl, NSL_LIBS, inet_pton)
- if test x"$ac_cv_lib_ext_nsl_s_inet_pton" != x"yes" &&
- test x"$ac_cv_lib_ext_nsl_inet_pton" != x"yes"; then
- SMB_ENABLE(HEIMDAL_ROKEN_INET_PTON, YES)
- else
- SMB_ENABLE(NSL,YES)
- fi
-fi
-
-SMB_EXT_LIB(NSL,[${NSL_LIBS}],[],[],[])
-
# only add closefrom if needed
SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, NO)
if test t$ac_cv_func_closefrom != tyes; then
@@ -285,29 +238,3 @@ if test t$ac_cv_func_getprogname != tyes; then
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME, YES)
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME_H, YES)
fi
-
-# only add gai_strerror if needed
-SMB_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, NO)
-AC_CHECK_FUNC(gai_strerror)
-
-if test t$ac_cv_func_gai_strerror != tyes; then
- AC_CHECK_LIB_EXT(nsl, GAI_LIBS, gai_strerror)
- AC_CHECK_LIB_EXT(socket, GAI_LIBS, gai_strerror)
- AC_CHECK_LIB_EXT(xnet, GAI_LIBS, gai_strerror)
-
- dnl We can't just call AC_CHECK_FUNCS(gai_strerror) here, because the value
- dnl has been cached.
- if test x"$ac_cv_lib_ext_nsl_gai_strerror" = x"yes" ||
- test x"$ac_cv_lib_ext_socket_gai_strerror" = x"yes" ||
- test x"$ac_cv_lib_ext_xnet_gai_strerror" = x"yes"; then
- AC_DEFINE(HAVE_GAI_STRERROR,1,[Whether the system has gai_strerror()])
- SMB_ENABLE(GAI, YES)
- else
- SMB_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, YES)
- fi
-
-else
- AC_DEFINE(HAVE_GAI_STRERROR,1,[Whether gai_strerror() is available])
-fi
-
-SMB_EXT_LIB(GAI,[${GAI_LIBS}],[${GAI_CFLAGS}],[${GAI_CPPFLAGS}],[${GAI_LDFLAGS}])
diff --git a/source4/heimdal_build/config.mk b/source4/heimdal_build/config.mk
index 940d9cdb9c..ce5fa6e98e 100644
--- a/source4/heimdal_build/config.mk
+++ b/source4/heimdal_build/config.mk
@@ -369,24 +369,6 @@ OBJ_FILES = \
# End SUBSYSTEM HEIMDAL_HX509
#######################
-#######################
-# Start SUBSYSTEM HEIMDAL_ROKEN_GAI_STRERROR
-[SUBSYSTEM::HEIMDAL_ROKEN_GAI_STRERROR]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
-OBJ_FILES = ../heimdal/lib/roken/gai_strerror.o
-
-[SUBSYSTEM::HEIMDAL_ROKEN_INET_ATON]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
-OBJ_FILES = ../heimdal/lib/roken/inet_aton.o
-
-[SUBSYSTEM::HEIMDAL_ROKEN_INET_NTOP]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
-OBJ_FILES = ../heimdal/lib/roken/inet_ntop.o
-
-[SUBSYSTEM::HEIMDAL_ROKEN_INET_PTON]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
-OBJ_FILES = ../heimdal/lib/roken/inet_pton.o
-
[SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME]
CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
OBJ_FILES = ../heimdal/lib/roken/getprogname.o
@@ -399,24 +381,6 @@ OBJ_FILES = ../heimdal/lib/roken/closefrom.o
CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
OBJ_FILES = ../heimdal/lib/roken/getprogname.ho
-[SUBSYSTEM::HEIMDAL_ROKEN_GETNAMEINFO]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
-OBJ_FILES = ../heimdal/lib/roken/getnameinfo.o
-
-#######################
-# Start SUBSYSTEM HEIMDAL_ROKEN_ADDRINFO
-[SUBSYSTEM::HEIMDAL_ROKEN_ADDRINFO]
-CFLAGS = -Iheimdal_build -Iheimdal/lib/roken
-OBJ_FILES = \
- ../heimdal/lib/roken/getaddrinfo.o \
- ../heimdal/lib/roken/freeaddrinfo.o \
- ../heimdal/lib/roken/getipnodebyaddr.o \
- ../heimdal/lib/roken/getipnodebyname.o \
- ../heimdal/lib/roken/freehostent.o \
- ../heimdal/lib/roken/copyhostent.o \
- ../heimdal/lib/roken/hostent_find_fqdn.o
-PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN_INET_PTON EXT_SOCKET
-
#######################
# Start SUBSYSTEM HEIMDAL_ROKEN
[SUBSYSTEM::HEIMDAL_ROKEN]
@@ -453,16 +417,8 @@ OBJ_FILES = \
../heimdal/lib/roken/rtbl.o \
replace.o
PUBLIC_DEPENDENCIES = \
- HEIMDAL_ROKEN_ADDRINFO \
- HEIMDAL_ROKEN_GAI_STRERROR \
- HEIMDAL_ROKEN_INET_ATON \
- HEIMDAL_ROKEN_INET_NTOP \
- HEIMDAL_ROKEN_INET_PTON \
HEIMDAL_ROKEN_GETPROGNAME \
HEIMDAL_ROKEN_CLOSEFROM \
- HEIMDAL_ROKEN_GETNAMEINFO \
- GAI \
- NSL \
RESOLV \
EXT_SOCKET
# End SUBSYSTEM HEIMDAL_ROKEN