diff options
Diffstat (limited to 'lib/krb5_wrap/wscript_configure')
-rw-r--r-- | lib/krb5_wrap/wscript_configure | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/krb5_wrap/wscript_configure b/lib/krb5_wrap/wscript_configure new file mode 100644 index 0000000..b595eef --- /dev/null +++ b/lib/krb5_wrap/wscript_configure @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +# Check whether we have the krb5_const_pac type, if we aren't sure already. +if conf.CONFIG_SET('HAVE_KRB5_CONST_PAC') or ( + conf.CHECK_TYPE('krb5_const_pac', + headers='krb5.h', + lib='krb5')): + # If the type is available, check whether krb5_pac_get_buffer() accepts it + # as its second parameter, or whether it takes krb5_pac instead. + conf.CHECK_C_PROTOTYPE('krb5_pac_get_buffer', + 'krb5_error_code krb5_pac_get_buffer(' + ' krb5_context context,' + ' krb5_const_pac p,' + ' uint32_t type,' + ' krb5_data *data)', + define='KRB5_CONST_PAC_GET_BUFFER', + headers='krb5.h', + lib='krb5') |