diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-12 09:47:49 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-12 12:31:14 +0200 |
commit | 2a727ef6e7bffcaad7438e288c952f6157e075de (patch) | |
tree | ceb481177d8e9c0c541c917f968aac3b64c2bac6 /lib/replace/wscript | |
parent | e6c31a4bcb1e7f56edcfccabd02a8096e3b5dd40 (diff) | |
download | samba-2a727ef6e7bffcaad7438e288c952f6157e075de.tar.gz samba-2a727ef6e7bffcaad7438e288c952f6157e075de.tar.bz2 samba-2a727ef6e7bffcaad7438e288c952f6157e075de.zip |
lib/replace/wscript: inline LIBREPLACE_EXT into 'replace' as the autoconf system does
metze
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index ca0c88e401..6a5e2abf8c 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -317,7 +317,7 @@ def build(bld): REPLACE_SOURCE = REPLACE_HOSTCC_SOURCE if bld.CONFIG_SET('REPLACE_GETPASS'): REPLACE_SOURCE += ' getpass.c' - + if not bld.CONFIG_SET('HAVE_CRYPT'): REPLACE_SOURCE += ' crypt.c' if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c' if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c' @@ -332,7 +332,7 @@ def build(bld): bld.SAMBA_LIBRARY('replace', source=REPLACE_SOURCE, group='base_libraries', - deps='dl nsl socket') + deps='crypt dl nsl socket') TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c test/os2_delete.c test/getifaddrs.c''' @@ -343,13 +343,6 @@ def build(bld): deps='replace', install=False) - CRYPT_SOURCES = [] - if not 'HAVE_CRYPT' in bld.env: CRYPT_SOURCES.append('crypt.c') - - bld.SAMBA_SUBSYSTEM('LIBREPLACE_EXT', - CRYPT_SOURCES, - group='base_libraries') - # build replacements for stdint.h and stdbool.h if needed bld.SAMBA_GENERATOR('replace_stdint_h', rule='cp ${SRC} ${TGT}', |