build: add additional libreplace conditional sources
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 Mar 2010 14:36:45 +0000 (10:36 -0400)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:01 +0000 (20:27 +1000)
lib/replace/wscript

index d8d690f5e14ef0f550e004f73de656c58da1f31a..63f96313dd92184d8ba2662f7ab8053598836d36 100644 (file)
@@ -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,