1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/libcli/dns/wscript_build
Volker Lendecke da87fa998a lib: Only compile resolvconftest if fmemopen exists
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13961
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat May 25 00:05:25 UTC 2019 on sn-devel-184
2019-05-25 00:05:25 +00:00

22 lines
654 B
Python

#!/usr/bin/env python
bld.SAMBA_LIBRARY('clidns',
source='dns.c resolvconf.c',
public_deps='LIBTSOCKET tevent-util ndr-standard',
private_library=True)
bld.SAMBA_BINARY('resolvconftest',
source='resolvconftest.c',
deps='clidns',
enabled=bld.CONFIG_SET('HAVE_FMEMOPEN'),
install=False)
bld.SAMBA_SUBSYSTEM('dns_lookup',
source='dns_lookup.c',
public_deps='clidns')
bld.SAMBA_BINARY('dns_lookuptest',
source='dns_lookuptest.c',
deps='dns_lookup',
install=False)