summaryrefslogtreecommitdiff
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2013-08-07 16:34:22 +0200
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:29 +0100
commit95f9e60ef70a1925a463038f41476400b8990d5c (patch)
tree4fa17b625af07e3a295340b9ba3e5f32a2e65a1a /source3/wscript_build
parent92356e1524b97abc7e8f8fb5c7e625dc200de277 (diff)
downloadsamba-95f9e60ef70a1925a463038f41476400b8990d5c.tar.gz
s3: add --with-libarchive to build configuration
* skip tar tests if disabled * print error message when using disabled command * autodetection of libarchive Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com> [ddiss@samba.org: rebased against makefile cleanup] Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/wscript_build')
-rwxr-xr-xsource3/wscript_build5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index fb98e543e9e..9265e00c395 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -995,7 +995,6 @@ bld.SAMBA3_BINARY('client/smbclient',
source='''client/client.c
client/clitar.c
client/dnsbrowse.c''',
- ldflags='-larchive',
deps='''
talloc
popt_samba3
@@ -1005,7 +1004,9 @@ bld.SAMBA3_BINARY('client/smbclient',
libsmb
msrpc3
RPC_NDR_SRVSVC
- cli_smb_common''')
+ cli_smb_common
+ '''+
+ ('archive' if bld.CONFIG_SET('HAVE_LIBARCHIVE') else ''))
bld.SAMBA3_BINARY('net',
source='''utils/net.c