summaryrefslogtreecommitdiffstats
path: root/net/samba4/patches/009-samba-4-11-fix-host-tools-checks.patch.patch
blob: 50fa9ec7e45fcc30305cf5d779969e38857023f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/wscript_configure_embedded_heimdal
+++ b/wscript_configure_embedded_heimdal
@@ -7,6 +7,17 @@ if not conf.env['BISON']:
 conf.define('USING_EMBEDDED_HEIMDAL', 1)
 conf.RECURSE('third_party/heimdal_build')
 
+def check_system_heimdal_binary(name):
+    if conf.LIB_MAY_BE_BUNDLED(name):
+        return False
+    if not conf.find_program(name, var=name.upper()):
+        return False
+    conf.define('USING_SYSTEM_%s' % name.upper(), 1)
+    return True
+
+check_system_heimdal_binary("compile_et")
+check_system_heimdal_binary("asn1_compile")
+
 #
 # See https://github.com/heimdal/heimdal/pull/1234
 # and https://github.com/krb5/krb5/pull/1329