From: Andrew Tridgell Date: Tue, 23 Mar 2010 14:36:45 +0000 (-0400) Subject: build: add additional libreplace conditional sources X-Git-Tag: samba-3.6.0pre1~3483 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=282de50be79718df79f338ed2c4788a0536fd015;ds=sidebyside build: add additional libreplace conditional sources --- diff --git a/lib/replace/wscript b/lib/replace/wscript index d8d690f5e14..63f96313dd9 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -381,9 +381,12 @@ def build(bld): REPLACE_SOURCE = 'replace.c snprintf.c' - - if bld.CONFIG_SET('REPLACE_STRPTIME'): - REPLACE_SOURCE += ' strptime.c' + if bld.CONFIG_SET('REPLACE_STRPTIME'): REPLACE_SOURCE += ' strptime.c' + if not bld.CONFIG_SET('HAVE_TIMEGM'): REPLACE_SOURCE += ' timegm.c' + if not bld.CONFIG_SET('HAVE_GETIFADDRS'): REPLACE_SOURCE += ' getifaddrs.c' + if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c' + if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c' + if not bld.CONFIG_SET('HAVE_CONNECT'): REPLACE_SOURCE += ' socket.c' bld.SAMBA_LIBRARY('replace', source=REPLACE_SOURCE,