1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

build: added LIBREPLACE_NETWORK

This commit is contained in:
Andrew Tridgell 2010-02-23 16:48:23 +11:00
parent c3d04fd8fc
commit eab4d4598e

View File

@ -103,7 +103,7 @@ def configure(conf):
conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memmem printf memset memcpy')
conf.CHECK_FUNCS('connect gethostbyname if_nametoindex socketpair')
conf.CHECK_FUNCS('inet_ntoa inet_ntop dirfd getdirentries getdents syslog')
conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs')
conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs inet_aton inet_atop')
conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl')
conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
@ -185,3 +185,11 @@ def build(bld):
bld.SAMBA_BINARY('replace_testsuite',
TEST_SOURCES,
'replace')
NET_SOURCES = []
if not 'HAVE_INET_NTOA' in bld.env: NET_SOURCES.append('inet_ntoa.c')
if not 'HAVE_INET_ATON' in bld.env: NET_SOURCES.append('inet_aton.c')
if not 'HAVE_INET_ATOP' in bld.env: NET_SOURCES.append('inet_atop.c')
if not 'HAVE_SOCKETPAIR' in bld.env: NET_SOURCES.append('socketpair.c')
bld.SAMBA_SUBSYSTEM('LIBREPLACE_NETWORK', NET_SOURCES)