python:tests: Store keys as bytes rather than as lists of ints
[samba.git] / nsswitch / wscript_configure
1 #!/usr/bin/env python
2
3 conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
4
5 conf.CHECK_HEADERS('security/pam_appl.h security/pam_modules.h pam/pam_modules.h', together=True)
6 conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True, headers='security/pam_appl.h')
7
8 # Solaris 10 does have new member in nss_XbyY_key
9 conf.CHECK_STRUCTURE_MEMBER('union nss_XbyY_key', 'ipnode.af_family', 
10                             define='HAVE_NSS_XBYY_KEY_IPNODE',
11                             headers='nss_dbdefs.h')
12
13 # Solaris has some extra fields in struct passwd that need to be
14 # initialised otherwise nscd crashes.
15
16 conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_comment',
17                             define='HAVE_PASSWD_PW_COMMENT',
18                             headers='pwd.h')
19
20 conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_age',
21                             define='HAVE_PASSWD_PW_AGE',
22                             headers='pwd.h')
23
24 # AIX 4.3.x and 5.1 do not have as many members in
25 # struct secmethod_table as AIX 5.2
26 conf.CHECK_STRUCTURE_MEMBER('struct secmethod_table', 'method_attrlist',
27                             define='HAVE_STRUCT_SECMETHOD_TABLE_METHOD_ATTRLIST',
28                             headers='usersec.h')
29 conf.CHECK_STRUCTURE_MEMBER('struct secmethod_table', 'method_version',
30                             define='HAVE_STRUCT_SECMETHOD_TABLE_METHOD_VERSION',
31                             headers='usersec.h')