From 0e6369f5e80d506d532e0e352b02d7d65d16db49 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Aug 2005 11:56:02 +0000 Subject: r9111: actually use the roken inet_aton when nothing was found metze (This used to be commit fe5e61a25278d9e74158afd0e3b2bd31f71e43c8) --- source4/heimdal_build/config.m4 | 6 ++++++ source4/heimdal_build/config.mk | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index 583278e3e1..5eb443cd82 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -203,6 +203,12 @@ if test t$ac_cv_func_getaddrinfo != tyes; then SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_ADDRINFO, YES) fi +# only add inet_aton if needed +SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_INET_ATON, NO) +if test t$ac_cv_func_inet_aton != tyes; then + SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_INET_ATON, YES) +fi + # only add gai_strerror if needed SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, NO) AC_CHECK_FUNC(gai_strerror) diff --git a/source4/heimdal_build/config.mk b/source4/heimdal_build/config.mk index 25c872872d..0eb8316d1a 100644 --- a/source4/heimdal_build/config.mk +++ b/source4/heimdal_build/config.mk @@ -266,6 +266,12 @@ NOPROTO = YES ADD_OBJ_FILES = heimdal/lib/roken/gai_strerror.o NOPROTO = YES +####################### +# Start SUBSYSTEM HEIMDAL_ROKEN_GAI_STRERROR +[SUBSYSTEM::HEIMDAL_ROKEN_INET_ATON] +ADD_OBJ_FILES = heimdal/lib/roken/inet_aton.o +NOPROTO = YES + ####################### # Start SUBSYSTEM HEIMDAL_ROKEN_ADDRINFO [SUBSYSTEM::HEIMDAL_ROKEN_ADDRINFO] @@ -305,6 +311,7 @@ ADD_OBJ_FILES = \ REQUIRED_SUBSYSTEMS = \ HEIMDAL_ROKEN_ADDRINFO \ HEIMDAL_ROKEN_GAI_STRERROR \ + HEIMDAL_ROKEN_INET_ATON \ EXT_LIB_SOCKET \ EXT_LIB_XNET NOPROTO = YES -- cgit