kadmin: del_enctype whitespace
[heimdal.git] / cf / roken-frag.m4
blobe4db259cebf172d60c27622951558feb8860b1ff
1 dnl $Id$
2 dnl
3 dnl some code to get roken working
4 dnl
5 dnl rk_ROKEN(subdir)
6 dnl
7 AC_DEFUN([rk_ROKEN], [
9 AC_REQUIRE([rk_CONFIG_HEADER])
11 DIR_roken=roken
12 LIB_roken='$(top_builddir)/$1/libroken.la'
13 INCLUDES_roken='-I$(top_builddir)/$1 -I$(top_srcdir)/$1'
15 dnl Checks for programs
16 AC_REQUIRE([AC_PROG_CC])
17 AC_REQUIRE([AC_PROG_AWK])
18 AC_REQUIRE([AC_OBJEXT])
19 AC_REQUIRE([AC_EXEEXT])
20 AC_REQUIRE([LT_INIT])
22 AC_REQUIRE([AC_MIPS_ABI])
24 AC_DEFINE(rk_PATH_DELIM, '/', [Path name delimiter])
26 dnl C characteristics
28 AC_REQUIRE([AC_C___ATTRIBUTE__])
29 AC_REQUIRE([AC_C_INLINE])
30 AC_REQUIRE([AC_C_CONST])
31 rk_WFLAGS(-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow)
33 dnl -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
34 dnl -Wcast-qual -Wswitch -Wformat=2 -Wwrite-strings
36 AC_REQUIRE([rk_DB])
38 dnl C types
40 AC_REQUIRE([AC_TYPE_SIZE_T])
41 AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
42 AC_REQUIRE([AC_TYPE_PID_T])
43 AC_REQUIRE([AC_TYPE_UID_T])
44 AC_HAVE_TYPE([long long])
46 AC_REQUIRE([rk_RETSIGTYPE])
48 dnl Checks for header files.
49 AC_REQUIRE([AC_HEADER_STDC])
50 AC_REQUIRE([AC_HEADER_TIME])
52 AC_CHECK_HEADERS([\
53         arpa/inet.h                             \
54         config.h                                \
55         crypt.h                                 \
56         dirent.h                                \
57         errno.h                                 \
58         err.h                                   \
59         fcntl.h                                 \
60         fnmatch.h                               \
61         grp.h                                   \
62         ifaddrs.h                               \
63         netinet/in.h                            \
64         netinet/in6.h                           \
65         netinet/in_systm.h                      \
66         netinet6/in6.h                          \
67         paths.h                                 \
68         poll.h                                  \
69         pwd.h                                   \
70         rpcsvc/ypclnt.h                         \
71         search.h                                \
72         shadow.h                                \
73         stdint.h                                \
74         sys/bswap.h                             \
75         sys/errno.h                             \
76         sys/ioctl.h                             \
77         sys/mman.h                              \
78         sys/param.h                             \
79         sys/resource.h                          \
80         sys/sockio.h                            \
81         sys/stat.h                              \
82         sys/time.h                              \
83         sys/tty.h                               \
84         sys/types.h                             \
85         sys/uio.h                               \
86         sys/utsname.h                           \
87         sys/wait.h                              \
88         syslog.h                                \
89         termios.h                               \
90         winsock2.h                              \
91         ws2tcpip.h                              \
92         unistd.h                                \
93         userconf.h                              \
94         usersec.h                               \
95         util.h                                  \
98 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
99 #include <stdint.h>
100 #endif])
102 dnl Sunpro 5.2 has a vis.h which is something different.
103 AC_CHECK_HEADERS(vis.h, , , [
104 #include <vis.h>
105 #ifndef VIS_SP
106 #error invis
107 #endif])
108         
109 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
110 #ifdef HAVE_SYS_TYPES_H
111 #include <sys/types.h>
112 #endif
115 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
116 #ifdef HAVE_SYS_TYPES_H
117 #include <sys/types.h>
118 #endif
121 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
122 #ifdef HAVE_SYS_TYPES_H
123 #include <sys/types.h>
124 #endif
125 #if HAVE_SYS_SOCKET_H
126 #include <sys/socket.h>
127 #endif])
129 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
130 #ifdef HAVE_SYS_TYPES_H
131 #include <sys/types.h>
132 #endif
133 #if HAVE_SYS_SOCKET_H
134 #include <sys/socket.h>
135 #endif
136 #ifdef HAVE_NETINET6_IN6_H
137 #include <netinet6/in6.h>
138 #endif
141 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
142 #ifdef HAVE_SYS_PARAM_H
143 #include <sys/param.h>
144 #endif
147 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
148 #ifdef HAVE_SYS_PARAM_H
149 #include <sys/param.h>
150 #endif
153 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
155 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
156 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
157 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
158 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
160 dnl Check for functions and libraries
162 AC_FIND_FUNC(socket, socket)
163 AC_FIND_FUNC(gethostbyname, nsl)
164 AC_FIND_FUNC(syslog, syslog)
166 AC_KRB_IPV6
168 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
170 rk_RESOLV
172 AC_BROKEN_SNPRINTF
173 AC_BROKEN_VSNPRINTF
175 AC_BROKEN_GLOB
176 if test "$ac_cv_func_glob_working" != yes; then
177         AC_LIBOBJ(glob)
179 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
182 AC_CHECK_FUNCS([                                \
183         asnprintf                               \
184         asprintf                                \
185         atexit                                  \
186         cgetent                                 \
187         getconfattr                             \
188         getprogname                             \
189         getrlimit                               \
190         getspnam                                \
191         issetugid                               \
192         on_exit                                 \
193         poll                                    \
194         random                                  \
195         setprogname                             \
196         strsvis                                 \
197         strsvisx                                \
198         strunvis                                \
199         strvis                                  \
200         strvisx                                 \
201         svis                                    \
202         sysconf                                 \
203         sysctl                                  \
204         tdelete                                 \
205         tfind                                   \
206         twalk                                   \
207         uname                                   \
208         unvis                                   \
209         vasnprintf                              \
210         vasprintf                               \
211         vis                                     \
214 if test "$ac_cv_func_cgetent" = no; then
215         AC_LIBOBJ(getcap)
217 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
219 AC_REQUIRE([AC_FUNC_GETLOGIN])
221 AC_REQUIRE([AC_FUNC_MMAP])
223 AC_FIND_FUNC_NO_LIBS(getsockopt,,
224 [#ifdef HAVE_SYS_TYPES_H
225 #include <sys/types.h>
226 #endif
227 #ifdef HAVE_SYS_SOCKET_H
228 #include <sys/socket.h>
229 #endif],
230 [0,0,0,0,0])
231 AC_FIND_FUNC_NO_LIBS(setsockopt,,
232 [#ifdef HAVE_SYS_TYPES_H
233 #include <sys/types.h>
234 #endif
235 #ifdef HAVE_SYS_SOCKET_H
236 #include <sys/socket.h>
237 #endif],
238 [0,0,0,0,0])
240 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
241 [#ifdef HAVE_NETDB_H
242 #include <netdb.h>
243 #endif],
245 AC_NEED_PROTO([
246 #ifdef HAVE_NETDB_H
247 #include <netdb.h>
248 #endif],
249 hstrerror)
251 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
252         [AC_NEED_PROTO([
253         #include <stdio.h>
254         #include <string.h>],
255         rk_func)])
257 AC_FIND_FUNC_NO_LIBS(bswap16,,
258 [#ifdef HAVE_SYS_TYPES_H
259 #include <sys/types.h>
260 #endif
261 #ifdef HAVE_SYS_BSWAP_H
262 #include <sys/bswap.h>
263 #endif],0)
265 AC_FIND_FUNC_NO_LIBS(bswap32,,
266 [#ifdef HAVE_SYS_TYPES_H
267 #include <sys/types.h>
268 #endif
269 #ifdef HAVE_SYS_BSWAP_H
270 #include <sys/bswap.h>
271 #endif],0)
273 AC_FIND_FUNC_NO_LIBS(pidfile,util,
274 [#ifdef HAVE_UTIL_H
275 #include <util.h>
276 #endif],0)
278 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
279 [#ifdef HAVE_NETDB_H
280 #include <netdb.h>
281 #endif
282 #ifdef HAVE_WS2TCPIP_H
283 #include <ws2tcpip.h>
284 #endif],[0,0,0,0])
286 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
287 [#ifdef HAVE_NETDB_H
288 #include <netdb.h>
289 #endif
290 #ifdef HAVE_WS2TCPIP_H
291 #include <ws2tcpip.h>
292 #endif],[0,0,0,0,0,0,0])
294 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
295 [#ifdef HAVE_NETDB_H
296 #include <netdb.h>
297 #endif
298 #ifdef HAVE_WS2TCPIP_H
299 #include <ws2tcpip.h>
300 #endif],[0])
302 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
303 [#ifdef HAVE_NETDB_H
304 #include <netdb.h>
305 #endif
306 #ifdef HAVE_WS2TCPIP_H
307 #include <ws2tcpip.h>
308 #endif],[0])
310 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
311 dnl servers to use daemon(), so its deprecated.
312 case "$host_os" in
313         darwin*)
314                 ;;
315         *)
316                 AC_DEFINE([SUPPORT_DETACH], 1,
317                     [Define if os support want to detach is daemonens.])
318                 AC_BROKEN([daemon]) ;;
319 esac
321 AC_BROKEN([                                     \
322         chown                                   \
323         copyhostent                             \
324         closefrom                               \
325         ecalloc                                 \
326         emalloc                                 \
327         erealloc                                \
328         estrdup                                 \
329         err                                     \
330         errx                                    \
331         fchown                                  \
332         flock                                   \
333         fnmatch                                 \
334         freehostent                             \
335         getcwd                                  \
336         getdtablesize                           \
337         getegid                                 \
338         geteuid                                 \
339         getgid                                  \
340         gethostname                             \
341         getifaddrs                              \
342         getipnodebyaddr                         \
343         getipnodebyname                         \
344         getopt                                  \
345         gettimeofday                            \
346         getuid                                  \
347         getusershell                            \
348         initgroups                              \
349         innetgr                                 \
350         iruserok                                \
351         localtime_r                             \
352         lstat                                   \
353         memmove                                 \
354         memset_s                                \
355         mkstemp                                 \
356         putenv                                  \
357         rcmd                                    \
358         readv                                   \
359         recvmsg                                 \
360         sendmsg                                 \
361         setegid                                 \
362         setenv                                  \
363         seteuid                                 \
364         strcasecmp                              \
365         strdup                                  \
366         strerror                                \
367         strftime                                \
368         strlcat                                 \
369         strlcpy                                 \
370         strlwr                                  \
371         strncasecmp                             \
372         strndup                                 \
373         strnlen                                 \
374         strptime                                \
375         strsep                                  \
376         strsep_copy                             \
377         strtok_r                                \
378         strtoll                                 \
379         strtoull                                \
380         strupr                                  \
381         swab                                    \
382         tsearch                                 \
383         timegm                                  \
384         unsetenv                                \
385         verr                                    \
386         verrx                                   \
387         vsyslog                                 \
388         vwarn                                   \
389         vwarnx                                  \
390         warn                                    \
391         warnx                                   \
392         writev                                  \
395 AM_CONDITIONAL(have_fnmatch_h,
396         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
398 AC_FOREACH([rk_func], [strndup strsep strtok_r],
399         [AC_NEED_PROTO([#include <string.h>], rk_func)])
401 AC_CHECK_FUNC([strtoll],
402     [AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
403         [Define if you have the function strtoll.])])
405 AC_CHECK_FUNC([strtoull],
406     [AC_DEFINE_UNQUOTED(HAVE_STRTOULL, 1,
407         [Define if you have the function strtoull.])])
409 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
410 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
411 #include <vis.h>
412 #endif], rk_func)])
414 AC_MSG_CHECKING([checking for dirfd])
415 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
416 #ifdef HAVE_DIRENT_H
417 #include <dirent.h>
418 #endif
420         [[DIR *d = 0; dirfd(d);]])],
421         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
422 if test "$ac_rk_have_dirfd" = "yes" ; then
423         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
425 AC_MSG_RESULT($ac_rk_have_dirfd)
427 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
428 #ifdef HAVE_DIRENT_H
429 #include <dirent.h>
430 #endif])
433 AC_BROKEN2(inet_aton,
434 [#ifdef HAVE_SYS_TYPES_H
435 #include <sys/types.h>
436 #endif
437 #ifdef HAVE_SYS_SOCKET_H
438 #include <sys/socket.h>
439 #endif
440 #ifdef HAVE_NETINET_IN_H
441 #include <netinet/in.h>
442 #endif
443 #ifdef HAVE_ARPA_INET_H
444 #include <arpa/inet.h>
445 #endif],
446 [0,0])
448 AC_BROKEN2(inet_ntop,
449 [#ifdef HAVE_SYS_TYPES_H
450 #include <sys/types.h>
451 #endif
452 #ifdef HAVE_SYS_SOCKET_H
453 #include <sys/socket.h>
454 #endif
455 #ifdef HAVE_NETINET_IN_H
456 #include <netinet/in.h>
457 #endif
458 #ifdef HAVE_ARPA_INET_H
459 #include <arpa/inet.h>
460 #endif],
461 [0, 0, 0, 0])
463 AC_BROKEN2(inet_pton,
464 [#ifdef HAVE_SYS_TYPES_H
465 #include <sys/types.h>
466 #endif
467 #ifdef HAVE_SYS_SOCKET_H
468 #include <sys/socket.h>
469 #endif
470 #ifdef HAVE_NETINET_IN_H
471 #include <netinet/in.h>
472 #endif
473 #ifdef HAVE_ARPA_INET_H
474 #include <arpa/inet.h>
475 #endif],
476 [0,0,0])
479 dnl Check for sa_len in struct sockaddr, 
480 dnl needs to come before the getnameinfo test
482 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
483 #include <sys/socket.h>])
485 if test "$ac_cv_func_getaddrinfo" = "yes"; then
486   rk_BROKEN_GETADDRINFO
487   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
488         AC_LIBOBJ(getaddrinfo)
489         AC_LIBOBJ(freeaddrinfo)
490   fi
493 AC_NEED_PROTO([#include <stdlib.h>], setenv)
494 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
495 AC_NEED_PROTO([#include <unistd.h>], gethostname)
496 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
497 AC_NEED_PROTO([#include <unistd.h>], getusershell)
498 AC_NEED_PROTO([#include <unistd.h>], daemon)
499 AC_NEED_PROTO([
500 #ifdef HAVE_SYS_TYPES_H
501 #include <sys/types.h>
502 #endif
503 #ifdef HAVE_SYS_SOCKET_H
504 #include <sys/socket.h>
505 #endif
506 #ifdef HAVE_NETINET_IN_H
507 #include <netinet/in.h>
508 #endif
509 #ifdef HAVE_ARPA_INET_H
510 #include <arpa/inet.h>
511 #endif
512 #ifdef HAVE_NETDB_H
513 #include <netdb.h>
514 #endif
515 #ifdef HAVE_UNISTD_H
516 #include <unistd.h>
517 #endif],
518 iruserok)
520 AC_NEED_PROTO([
521 #ifdef HAVE_SYS_TYPES_H
522 #include <sys/types.h>
523 #endif
524 #ifdef HAVE_SYS_SOCKET_H
525 #include <sys/socket.h>
526 #endif
527 #ifdef HAVE_NETINET_IN_H
528 #include <netinet/in.h>
529 #endif
530 #ifdef HAVE_ARPA_INET_H
531 #include <arpa/inet.h>
532 #endif],
533 inet_aton)
535 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
537 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
539 dnl AC_KRB_FUNC_GETCWD_BROKEN
541 dnl strerror_r is great fun, on linux it exists before sus catched up,
542 dnl so the return type is diffrent, lets check for both
544 AC_PROTO_COMPAT([
545 #include <stdio.h>
546 #include <string.h>
548 strerror_r, int strerror_r(int, char *, size_t))
550 AC_CHECK_FUNC([strerror_r],
551     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
552         [Define if you have the function strerror_r.])])
555 dnl Checks for prototypes and declarations
558 AC_PROTO_COMPAT([
559 #ifdef HAVE_SYS_TYPES_H
560 #include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_SOCKET_H
563 #include <sys/socket.h>
564 #endif
565 #ifdef HAVE_NETINET_IN_H
566 #include <netinet/in.h>
567 #endif
568 #ifdef HAVE_ARPA_INET_H
569 #include <arpa/inet.h>
570 #endif
571 #ifdef HAVE_NETDB_H
572 #include <netdb.h>
573 #endif
575 gethostbyname, struct hostent *gethostbyname(const char *))
577 AC_PROTO_COMPAT([
578 #ifdef HAVE_SYS_TYPES_H
579 #include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_SOCKET_H
582 #include <sys/socket.h>
583 #endif
584 #ifdef HAVE_NETINET_IN_H
585 #include <netinet/in.h>
586 #endif
587 #ifdef HAVE_ARPA_INET_H
588 #include <arpa/inet.h>
589 #endif
590 #ifdef HAVE_NETDB_H
591 #include <netdb.h>
592 #endif
594 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
596 AC_PROTO_COMPAT([
597 #ifdef HAVE_SYS_TYPES_H
598 #include <sys/types.h>
599 #endif
600 #ifdef HAVE_SYS_SOCKET_H
601 #include <sys/socket.h>
602 #endif
603 #ifdef HAVE_NETINET_IN_H
604 #include <netinet/in.h>
605 #endif
606 #ifdef HAVE_ARPA_INET_H
607 #include <arpa/inet.h>
608 #endif
609 #ifdef HAVE_NETDB_H
610 #include <netdb.h>
611 #endif
613 getservbyname, struct servent *getservbyname(const char *, const char *))
615 AC_PROTO_COMPAT([
616 #ifdef HAVE_SYS_TYPES_H
617 #include <sys/types.h>
618 #endif
619 #ifdef HAVE_SYS_SOCKET_H
620 #include <sys/socket.h>
621 #endif
623 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
625 AC_PROTO_COMPAT([
626 #ifdef HAVE_SYSLOG_H
627 #include <syslog.h>
628 #endif
630 openlog, void openlog(const char *, int, int))
632 AC_NEED_PROTO([
633 #ifdef HAVE_CRYPT_H
634 #include <crypt.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 #include <unistd.h>
638 #endif
640 crypt)
642 dnl variables
644 rk_CHECK_VAR(h_errno, 
645 [#ifdef HAVE_SYS_TYPES_H
646 #include <sys/types.h>
647 #endif
648 #ifdef HAVE_NETDB_H
649 #include <netdb.h>
650 #endif
651 #ifdef HAVE_WS2TCPIP_H
652 #include <ws2tcpip.h>
653 #endif
656 rk_CHECK_VAR(h_errlist, 
657 [#ifdef HAVE_NETDB_H
658 #include <netdb.h>
659 #endif
660 #ifdef HAVE_WS2TCPIP_H
661 #include <ws2tcpip.h>
662 #endif])
664 rk_CHECK_VAR(h_nerr, 
665 [#ifdef HAVE_NETDB_H
666 #include <netdb.h>
667 #endif
668 #ifdef HAVE_WS2TCPIP_H
669 #include <ws2tcpip.h>
670 #endif])
672 rk_CHECK_VAR([__progname], 
673 [#ifdef HAVE_ERR_H
674 #include <err.h>
675 #endif])
677 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
678 #include <stdlib.h>
679 #ifdef HAVE_UNISTD_H
680 #include <unistd.h>
681 #endif])
684 dnl Check for fields in struct tm
687 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
688 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
691 dnl or do we have a variable `timezone' ?
694 rk_CHECK_VAR(timezone,[#include <time.h>])
695 rk_CHECK_VAR(altzone,[#include <time.h>])
697 AC_HAVE_TYPE([sa_family_t],[
698 #include <sys/types.h>
699 #ifdef HAVE_SYS_SOCKET_H
700 #include <sys/socket.h>
701 #endif
702 #ifdef HAVE_WS2TCPIP_H
703 #include <ws2tcpip.h>
704 #endif])
705 AC_HAVE_TYPE([socklen_t],[
706 #include <sys/types.h>
707 #ifdef HAVE_SYS_SOCKET_H
708 #include <sys/socket.h>
709 #endif
710 #ifdef HAVE_WS2TCPIP_H
711 #include <ws2tcpip.h>
712 #endif])
713 AC_HAVE_TYPE([struct sockaddr], [
714 #include <sys/types.h>
715 #ifdef HAVE_SYS_SOCKET_H
716 #include <sys/socket.h>
717 #endif
718 #ifdef HAVE_WS2TCPIP_H
719 #include <ws2tcpip.h>
720 #endif])
721 AC_HAVE_TYPE([struct sockaddr_storage], [
722 #include <sys/types.h>
723 #ifdef HAVE_SYS_SOCKET_H
724 #include <sys/socket.h>
725 #endif
726 #ifdef HAVE_WS2TCPIP_H
727 #include <ws2tcpip.h>
728 #endif])
729 AC_HAVE_TYPE([struct addrinfo], [
730 #include <sys/types.h>
731 #ifdef HAVE_NETDB_H
732 #include <netdb.h>
733 #endif
734 #ifdef HAVE_WS2TCPIP_H
735 #include <ws2tcpip.h>
736 #endif])
737 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
738 AC_HAVE_TYPE([struct iovec],[
739 #include <sys/types.h>
740 #include <sys/uio.h>
742 AC_HAVE_TYPE([struct msghdr],[
743 #include <sys/types.h>
744 #ifdef HAVE_SYS_SOCKET_H
745 #include <sys/socket.h>
746 #endif
747 #ifdef HAVE_WS2TCPIP_H
748 #include <ws2tcpip.h>
749 #endif])
752 dnl Check for struct winsize
755 AC_KRB_STRUCT_WINSIZE
758 dnl Check for struct spwd
761 AC_KRB_STRUCT_SPWD
764 # Check if we want samba's socket wrapper
767 samba_SOCKET_WRAPPER
769 dnl won't work with automake
770 dnl moved to AC_OUTPUT in configure.in
771 dnl AC_CONFIG_FILES($1/Makefile)
773 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
775 AC_SUBST(DIR_roken)dnl
776 AC_SUBST(LIB_roken)dnl
777 AC_SUBST(INCLUDES_roken)dnl