build: h_errno for heimdal
[nivanova/samba-autobuild/.git] / source4 / heimdal_build / wscript_configure
1 conf.CHECK_TYPE('u_char', 'uint8_t')
2 conf.CHECK_TYPE('u_int32_t', 'uint32_t')
3
4 conf.CHECK_HEADERS('err.h')
5
6 conf.CHECK_HEADERS('ifaddrs.h')
7 conf.CHECK_HEADERS('''crypt.h curses.h errno.h inttypes.h netdb.h signal.h sys/bswap.h
8                       sys/file.h sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h
9                       sys/utsname.h term.h termcap.h time.h timezone.h ttyname.h netinet/in.h
10                       netinet/in6.h netinet6/in6.h libintl.h''')
11
12 conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname inet_aton gethostname getnameinfo
13                     iruserok putenv rcmd readv sendmsg setitimer socket strlwr strncasecmp
14                     strptime strsep strsep_copy strtok_r strupr swab umask uname unsetenv
15                     closefrom hstrerror err warn errx warnx flock getipnodebyname
16                     getipnodebyaddr freehostent writev''')
17
18 conf.CHECK_FUNCS('bswap16')
19 conf.CHECK_FUNCS('bswap32')
20
21 conf.DEFINE('HAVE_KRB_STRUCT_WINSIZE', 1)
22 conf.DEFINE('VOID_RETSIGTYPE', 1)
23
24 conf.CHECK_VARIABLE('h_errno')
25
26 # strangely enough, we need it with another define too
27 conf.CHECK_VARIABLE('h_errno', define='HAVE_DECL_H_ERRNO')
28
29 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
30 conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv')
31 conf.CHECK_VARIABLE('_res')
32 conf.CHECK_HEADERS('pty.h util.h libutil.h')
33 conf.CHECK_FUNCS_IN('openpty', 'util')
34 conf.CHECK_FUNCS_IN('gettext', 'intl')
35
36
37 conf.DEFINE('HAVE_COM_ERR',1)
38 conf.DEFINE('HAVE_KRB5',1)
39 conf.DEFINE('HAVE_GSSAPI',1)
40
41 conf.DEFINE('SAMBA4_INTERNAL_HEIMDAL', 1)