diff options
author | Christof Schmitt <cs@samba.org> | 2019-10-30 13:15:48 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2019-11-13 17:49:38 +0000 |
commit | be2d90b60d19eca408b60fe4e1b49f9b418f1b97 (patch) | |
tree | 5be5bf153d45fe3fd4cbbcb70eb7683f0a075a10 /wscript_configure_system_heimdal | |
parent | 63f8d7732756b8a8452ab22ca205a29b27b7d1f1 (diff) | |
download | samba-be2d90b60d19eca408b60fe4e1b49f9b418f1b97.tar.gz |
wscript: Fix build with system heimdal
Ubuntu has heimdal include files in /usr/include/heimdal. As the
kerberos include files are pulled into many files through indirect
includes, add the discovered include paths to EXTRA_INCLUDES to
always have them available.
Also set USING_SYSTEM_KRB5 when enabling the system heimdal build,
to correctly handle the inclusion of the krb5-types.h file.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14179
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wscript_configure_system_heimdal')
-rw-r--r-- | wscript_configure_system_heimdal | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript_configure_system_heimdal b/wscript_configure_system_heimdal index 0ff6dad2f55..235fa1912b7 100644 --- a/wscript_configure_system_heimdal +++ b/wscript_configure_system_heimdal @@ -18,6 +18,7 @@ if krb5_config: elif l.startswith("includedir="): include_path = l.strip()[len("includedir="):] heimdal_includedirs.append(include_path) + conf.ADD_EXTRA_INCLUDES(include_path) conf.define('HEIMDAL_KRB5_TYPES_PATH', include_path + "/krb5-types.h") finally: @@ -97,3 +98,5 @@ finally: check_system_heimdal_binary("compile_et") check_system_heimdal_binary("asn1_compile") + +conf.define('USING_SYSTEM_KRB5', 1) |