lib/replace/wscript: inline LIBREPLACE_GETPASS into 'replace'
authorStefan Metzmacher <metze@samba.org>
Sun, 11 Apr 2010 17:16:32 +0000 (19:16 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 06:39:44 +0000 (08:39 +0200)
metze

lib/replace/wscript

index 9af1e5705058e55fc0192e5e070692b4bbcc0ad3..7dbf468d1136e8838c339f6712dc4fa6b5d75330 100644 (file)
@@ -308,6 +308,8 @@ def build(bld):
 
     REPLACE_SOURCE = REPLACE_H_SOURCE
 
+    if bld.CONFIG_SET('REPLACE_GETPASS'):        REPLACE_SOURCE += ' getpass.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'
@@ -316,7 +318,7 @@ def build(bld):
     bld.SAMBA_LIBRARY('replace',
                       source=REPLACE_SOURCE,
                       group='base_libraries',
-                      deps='LIBREPLACE_GETPASS nsl socket')
+                      deps='nsl socket')
 
     TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c
                       test/os2_delete.c test/getifaddrs.c'''
@@ -347,10 +349,6 @@ def build(bld):
                         CRYPT_SOURCES,
                         group='base_libraries')
 
-    bld.SAMBA_SUBSYSTEM('LIBREPLACE_GETPASS', 'getpass.c',
-                        group='base_libraries',
-                        enabled=bld.CONFIG_SET('REPLACE_GETPASS'))
-
     # build replacements for stdint.h and stdbool.h if needed
     bld.SAMBA_GENERATOR('replace_stdint_h',
                         rule='cp ${SRC} ${TGT}',