lib: Only compile resolvconftest if fmemopen exists
[samba.git] / libcli / dns / wscript_build
index ef1c34ffd2ff04bba93416c0ed3ff43093c5b247..ea745c1402812069f2c6c22279d6279e74c9c463 100644 (file)
@@ -8,6 +8,7 @@ bld.SAMBA_LIBRARY('clidns',
 bld.SAMBA_BINARY('resolvconftest',
                   source='resolvconftest.c',
                   deps='clidns',
+                  enabled=bld.CONFIG_SET('HAVE_FMEMOPEN'),
                   install=False)
 
 bld.SAMBA_SUBSYSTEM('dns_lookup',