Move kadmin and ktutil to /usr/bin.
[heimdal.git] / cf / roken-frag.m4
blob5c82d27ee16aa2393f6ef00820b9abf269605752
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([AC_PROG_LIBTOOL])
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/ioctl.h                             \
76         sys/mman.h                              \
77         sys/param.h                             \
78         sys/resource.h                          \
79         sys/sockio.h                            \
80         sys/stat.h                              \
81         sys/time.h                              \
82         sys/tty.h                               \
83         sys/types.h                             \
84         sys/uio.h                               \
85         sys/utsname.h                           \
86         sys/wait.h                              \
87         syslog.h                                \
88         termios.h                               \
89         winsock2.h                              \
90         ws2tcpip.h                              \
91         unistd.h                                \
92         userconf.h                              \
93         usersec.h                               \
94         util.h                                  \
97 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
98 #include <stdint.h>
99 #endif])
101 dnl Sunpro 5.2 has a vis.h which is something different.
102 AC_CHECK_HEADERS(vis.h, , , [
103 #include <vis.h>
104 #ifndef VIS_SP
105 #error invis
106 #endif])
107         
108 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
109 #ifdef HAVE_SYS_TYPES_H
110 #include <sys/types.h>
111 #endif
114 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
115 #ifdef HAVE_SYS_TYPES_H
116 #include <sys/types.h>
117 #endif
120 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
121 #ifdef HAVE_SYS_TYPES_H
122 #include <sys/types.h>
123 #endif
124 #if HAVE_SYS_SOCKET_H
125 #include <sys/socket.h>
126 #endif])
128 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
129 #ifdef HAVE_SYS_TYPES_H
130 #include <sys/types.h>
131 #endif
132 #if HAVE_SYS_SOCKET_H
133 #include <sys/socket.h>
134 #endif
135 #ifdef HAVE_NETINET6_IN6_H
136 #include <netinet6/in6.h>
137 #endif
140 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
141 #ifdef HAVE_SYS_PARAM_H
142 #include <sys/param.h>
143 #endif
146 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
147 #ifdef HAVE_SYS_PARAM_H
148 #include <sys/param.h>
149 #endif
152 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
154 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
155 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
156 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
157 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
159 dnl Check for functions and libraries
161 AC_FIND_FUNC(socket, socket)
162 AC_FIND_FUNC(gethostbyname, nsl)
163 AC_FIND_FUNC(syslog, syslog)
165 AC_KRB_IPV6
167 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
169 rk_RESOLV
171 AC_BROKEN_SNPRINTF
172 AC_BROKEN_VSNPRINTF
174 AC_BROKEN_GLOB
175 if test "$ac_cv_func_glob_working" != yes; then
176         AC_LIBOBJ(glob)
178 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
181 AC_CHECK_FUNCS([                                \
182         asnprintf                               \
183         asprintf                                \
184         atexit                                  \
185         cgetent                                 \
186         getconfattr                             \
187         getprogname                             \
188         getrlimit                               \
189         getspnam                                \
190         issetugid                               \
191         on_exit                                 \
192         poll                                    \
193         random                                  \
194         setprogname                             \
195         strsvis                                 \
196         strsvisx                                \
197         strunvis                                \
198         strvis                                  \
199         strvisx                                 \
200         svis                                    \
201         sysconf                                 \
202         sysctl                                  \
203         tdelete                                 \
204         tfind                                   \
205         twalk                                   \
206         uname                                   \
207         unvis                                   \
208         vasnprintf                              \
209         vasprintf                               \
210         vis                                     \
213 if test "$ac_cv_func_cgetent" = no; then
214         AC_LIBOBJ(getcap)
216 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
218 AC_REQUIRE([AC_FUNC_GETLOGIN])
220 AC_REQUIRE([AC_FUNC_MMAP])
222 AC_FIND_FUNC_NO_LIBS(getsockopt,,
223 [#ifdef HAVE_SYS_TYPES_H
224 #include <sys/types.h>
225 #endif
226 #ifdef HAVE_SYS_SOCKET_H
227 #include <sys/socket.h>
228 #endif],
229 [0,0,0,0,0])
230 AC_FIND_FUNC_NO_LIBS(setsockopt,,
231 [#ifdef HAVE_SYS_TYPES_H
232 #include <sys/types.h>
233 #endif
234 #ifdef HAVE_SYS_SOCKET_H
235 #include <sys/socket.h>
236 #endif],
237 [0,0,0,0,0])
239 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
240 [#ifdef HAVE_NETDB_H
241 #include <netdb.h>
242 #endif],
244 AC_NEED_PROTO([
245 #ifdef HAVE_NETDB_H
246 #include <netdb.h>
247 #endif],
248 hstrerror)
250 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
251         [AC_NEED_PROTO([
252         #include <stdio.h>
253         #include <string.h>],
254         rk_func)])
256 AC_FIND_FUNC_NO_LIBS(bswap16,,
257 [#ifdef HAVE_SYS_TYPES_H
258 #include <sys/types.h>
259 #endif
260 #ifdef HAVE_SYS_BSWAP_H
261 #include <sys/bswap.h>
262 #endif],0)
264 AC_FIND_FUNC_NO_LIBS(bswap32,,
265 [#ifdef HAVE_SYS_TYPES_H
266 #include <sys/types.h>
267 #endif
268 #ifdef HAVE_SYS_BSWAP_H
269 #include <sys/bswap.h>
270 #endif],0)
272 AC_FIND_FUNC_NO_LIBS(pidfile,util,
273 [#ifdef HAVE_UTIL_H
274 #include <util.h>
275 #endif],0)
277 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
278 [#ifdef HAVE_NETDB_H
279 #include <netdb.h>
280 #endif
281 #ifdef HAVE_WS2TCPIP_H
282 #include <ws2tcpip.h>
283 #endif],[0,0,0,0])
285 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
286 [#ifdef HAVE_NETDB_H
287 #include <netdb.h>
288 #endif
289 #ifdef HAVE_WS2TCPIP_H
290 #include <ws2tcpip.h>
291 #endif],[0,0,0,0,0,0,0])
293 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
294 [#ifdef HAVE_NETDB_H
295 #include <netdb.h>
296 #endif
297 #ifdef HAVE_WS2TCPIP_H
298 #include <ws2tcpip.h>
299 #endif],[0])
301 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
302 [#ifdef HAVE_NETDB_H
303 #include <netdb.h>
304 #endif
305 #ifdef HAVE_WS2TCPIP_H
306 #include <ws2tcpip.h>
307 #endif],[0])
309 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
310 dnl servers to use daemon(), so its deprecated.
311 case "$host_os" in
312         darwin*)
313                 ;;
314         *)
315                 AC_DEFINE([SUPPORT_DETACH], 1,
316                     [Define if os support want to detach is daemonens.])
317                 AC_BROKEN([daemon]) ;;
318 esac
320 AC_BROKEN([                                     \
321         chown                                   \
322         copyhostent                             \
323         closefrom                               \
324         ecalloc                                 \
325         emalloc                                 \
326         erealloc                                \
327         estrdup                                 \
328         err                                     \
329         errx                                    \
330         fchown                                  \
331         flock                                   \
332         fnmatch                                 \
333         freehostent                             \
334         getcwd                                  \
335         getdtablesize                           \
336         getegid                                 \
337         geteuid                                 \
338         getgid                                  \
339         gethostname                             \
340         getifaddrs                              \
341         getipnodebyaddr                         \
342         getipnodebyname                         \
343         getopt                                  \
344         gettimeofday                            \
345         getuid                                  \
346         getusershell                            \
347         initgroups                              \
348         innetgr                                 \
349         iruserok                                \
350         localtime_r                             \
351         lstat                                   \
352         memmove                                 \
353         mkstemp                                 \
354         putenv                                  \
355         rcmd                                    \
356         readv                                   \
357         recvmsg                                 \
358         sendmsg                                 \
359         setegid                                 \
360         setenv                                  \
361         seteuid                                 \
362         strcasecmp                              \
363         strdup                                  \
364         strerror                                \
365         strftime                                \
366         strlcat                                 \
367         strlcpy                                 \
368         strlwr                                  \
369         strncasecmp                             \
370         strndup                                 \
371         strnlen                                 \
372         strptime                                \
373         strsep                                  \
374         strsep_copy                             \
375         strtok_r                                \
376         strtoll                                 \
377         strtoull                                \
378         strupr                                  \
379         swab                                    \
380         tsearch                                 \
381         timegm                                  \
382         unsetenv                                \
383         verr                                    \
384         verrx                                   \
385         vsyslog                                 \
386         vwarn                                   \
387         vwarnx                                  \
388         warn                                    \
389         warnx                                   \
390         writev                                  \
393 AM_CONDITIONAL(have_fnmatch_h,
394         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
396 AC_FOREACH([rk_func], [strndup strsep strtok_r],
397         [AC_NEED_PROTO([#include <string.h>], rk_func)])
399 AC_CHECK_FUNC([strtoll],
400     [AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
401         [Define if you have the function strtoll.])])
403 AC_CHECK_FUNC([strtoull],
404     [AC_DEFINE_UNQUOTED(HAVE_STRTOULL, 1,
405         [Define if you have the function strtoull.])])
407 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
408 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
409 #include <vis.h>
410 #endif], rk_func)])
412 AC_MSG_CHECKING([checking for dirfd])
413 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
414 #ifdef HAVE_DIRENT_H
415 #include <dirent.h>
416 #endif
418         [[DIR *d = 0; dirfd(d);]])],
419         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
420 if test "$ac_rk_have_dirfd" = "yes" ; then
421         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
423 AC_MSG_RESULT($ac_rk_have_dirfd)
425 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
426 #ifdef HAVE_DIRENT_H
427 #include <dirent.h>
428 #endif])
431 AC_BROKEN2(inet_aton,
432 [#ifdef HAVE_SYS_TYPES_H
433 #include <sys/types.h>
434 #endif
435 #ifdef HAVE_SYS_SOCKET_H
436 #include <sys/socket.h>
437 #endif
438 #ifdef HAVE_NETINET_IN_H
439 #include <netinet/in.h>
440 #endif
441 #ifdef HAVE_ARPA_INET_H
442 #include <arpa/inet.h>
443 #endif],
444 [0,0])
446 AC_BROKEN2(inet_ntop,
447 [#ifdef HAVE_SYS_TYPES_H
448 #include <sys/types.h>
449 #endif
450 #ifdef HAVE_SYS_SOCKET_H
451 #include <sys/socket.h>
452 #endif
453 #ifdef HAVE_NETINET_IN_H
454 #include <netinet/in.h>
455 #endif
456 #ifdef HAVE_ARPA_INET_H
457 #include <arpa/inet.h>
458 #endif],
459 [0, 0, 0, 0])
461 AC_BROKEN2(inet_pton,
462 [#ifdef HAVE_SYS_TYPES_H
463 #include <sys/types.h>
464 #endif
465 #ifdef HAVE_SYS_SOCKET_H
466 #include <sys/socket.h>
467 #endif
468 #ifdef HAVE_NETINET_IN_H
469 #include <netinet/in.h>
470 #endif
471 #ifdef HAVE_ARPA_INET_H
472 #include <arpa/inet.h>
473 #endif],
474 [0,0,0])
477 dnl Check for sa_len in struct sockaddr, 
478 dnl needs to come before the getnameinfo test
480 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
481 #include <sys/socket.h>])
483 if test "$ac_cv_func_getaddrinfo" = "yes"; then
484   rk_BROKEN_GETADDRINFO
485   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
486         AC_LIBOBJ(getaddrinfo)
487         AC_LIBOBJ(freeaddrinfo)
488   fi
491 AC_NEED_PROTO([#include <stdlib.h>], setenv)
492 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
493 AC_NEED_PROTO([#include <unistd.h>], gethostname)
494 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
495 AC_NEED_PROTO([#include <unistd.h>], getusershell)
496 AC_NEED_PROTO([#include <unistd.h>], daemon)
497 AC_NEED_PROTO([
498 #ifdef HAVE_SYS_TYPES_H
499 #include <sys/types.h>
500 #endif
501 #ifdef HAVE_SYS_SOCKET_H
502 #include <sys/socket.h>
503 #endif
504 #ifdef HAVE_NETINET_IN_H
505 #include <netinet/in.h>
506 #endif
507 #ifdef HAVE_ARPA_INET_H
508 #include <arpa/inet.h>
509 #endif
510 #ifdef HAVE_NETDB_H
511 #include <netdb.h>
512 #endif
513 #ifdef HAVE_UNISTD_H
514 #include <unistd.h>
515 #endif],
516 iruserok)
518 AC_NEED_PROTO([
519 #ifdef HAVE_SYS_TYPES_H
520 #include <sys/types.h>
521 #endif
522 #ifdef HAVE_SYS_SOCKET_H
523 #include <sys/socket.h>
524 #endif
525 #ifdef HAVE_NETINET_IN_H
526 #include <netinet/in.h>
527 #endif
528 #ifdef HAVE_ARPA_INET_H
529 #include <arpa/inet.h>
530 #endif],
531 inet_aton)
533 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
535 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
537 dnl AC_KRB_FUNC_GETCWD_BROKEN
539 dnl strerror_r is great fun, on linux it exists before sus catched up,
540 dnl so the return type is diffrent, lets check for both
542 AC_PROTO_COMPAT([
543 #include <stdio.h>
544 #include <string.h>
546 strerror_r, int strerror_r(int, char *, size_t))
548 AC_CHECK_FUNC([strerror_r],
549     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
550         [Define if you have the function strerror_r.])])
553 dnl Checks for prototypes and declarations
556 AC_PROTO_COMPAT([
557 #ifdef HAVE_SYS_TYPES_H
558 #include <sys/types.h>
559 #endif
560 #ifdef HAVE_SYS_SOCKET_H
561 #include <sys/socket.h>
562 #endif
563 #ifdef HAVE_NETINET_IN_H
564 #include <netinet/in.h>
565 #endif
566 #ifdef HAVE_ARPA_INET_H
567 #include <arpa/inet.h>
568 #endif
569 #ifdef HAVE_NETDB_H
570 #include <netdb.h>
571 #endif
573 gethostbyname, struct hostent *gethostbyname(const char *))
575 AC_PROTO_COMPAT([
576 #ifdef HAVE_SYS_TYPES_H
577 #include <sys/types.h>
578 #endif
579 #ifdef HAVE_SYS_SOCKET_H
580 #include <sys/socket.h>
581 #endif
582 #ifdef HAVE_NETINET_IN_H
583 #include <netinet/in.h>
584 #endif
585 #ifdef HAVE_ARPA_INET_H
586 #include <arpa/inet.h>
587 #endif
588 #ifdef HAVE_NETDB_H
589 #include <netdb.h>
590 #endif
592 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
594 AC_PROTO_COMPAT([
595 #ifdef HAVE_SYS_TYPES_H
596 #include <sys/types.h>
597 #endif
598 #ifdef HAVE_SYS_SOCKET_H
599 #include <sys/socket.h>
600 #endif
601 #ifdef HAVE_NETINET_IN_H
602 #include <netinet/in.h>
603 #endif
604 #ifdef HAVE_ARPA_INET_H
605 #include <arpa/inet.h>
606 #endif
607 #ifdef HAVE_NETDB_H
608 #include <netdb.h>
609 #endif
611 getservbyname, struct servent *getservbyname(const char *, const char *))
613 AC_PROTO_COMPAT([
614 #ifdef HAVE_SYS_TYPES_H
615 #include <sys/types.h>
616 #endif
617 #ifdef HAVE_SYS_SOCKET_H
618 #include <sys/socket.h>
619 #endif
621 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
623 AC_PROTO_COMPAT([
624 #ifdef HAVE_SYSLOG_H
625 #include <syslog.h>
626 #endif
628 openlog, void openlog(const char *, int, int))
630 AC_NEED_PROTO([
631 #ifdef HAVE_CRYPT_H
632 #include <crypt.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 #include <unistd.h>
636 #endif
638 crypt)
640 dnl variables
642 rk_CHECK_VAR(h_errno, 
643 [#ifdef HAVE_SYS_TYPES_H
644 #include <sys/types.h>
645 #endif
646 #ifdef HAVE_NETDB_H
647 #include <netdb.h>
648 #endif
649 #ifdef HAVE_WS2TCPIP_H
650 #include <ws2tcpip.h>
651 #endif
654 rk_CHECK_VAR(h_errlist, 
655 [#ifdef HAVE_NETDB_H
656 #include <netdb.h>
657 #endif
658 #ifdef HAVE_WS2TCPIP_H
659 #include <ws2tcpip.h>
660 #endif])
662 rk_CHECK_VAR(h_nerr, 
663 [#ifdef HAVE_NETDB_H
664 #include <netdb.h>
665 #endif
666 #ifdef HAVE_WS2TCPIP_H
667 #include <ws2tcpip.h>
668 #endif])
670 rk_CHECK_VAR([__progname], 
671 [#ifdef HAVE_ERR_H
672 #include <err.h>
673 #endif])
675 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
676 #include <stdlib.h>
677 #ifdef HAVE_UNISTD_H
678 #include <unistd.h>
679 #endif])
682 dnl Check for fields in struct tm
685 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
686 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
689 dnl or do we have a variable `timezone' ?
692 rk_CHECK_VAR(timezone,[#include <time.h>])
693 rk_CHECK_VAR(altzone,[#include <time.h>])
695 AC_HAVE_TYPE([sa_family_t],[
696 #include <sys/types.h>
697 #ifdef HAVE_SYS_SOCKET_H
698 #include <sys/socket.h>
699 #endif
700 #ifdef HAVE_WS2TCPIP_H
701 #include <ws2tcpip.h>
702 #endif])
703 AC_HAVE_TYPE([socklen_t],[
704 #include <sys/types.h>
705 #ifdef HAVE_SYS_SOCKET_H
706 #include <sys/socket.h>
707 #endif
708 #ifdef HAVE_WS2TCPIP_H
709 #include <ws2tcpip.h>
710 #endif])
711 AC_HAVE_TYPE([struct sockaddr], [
712 #include <sys/types.h>
713 #ifdef HAVE_SYS_SOCKET_H
714 #include <sys/socket.h>
715 #endif
716 #ifdef HAVE_WS2TCPIP_H
717 #include <ws2tcpip.h>
718 #endif])
719 AC_HAVE_TYPE([struct sockaddr_storage], [
720 #include <sys/types.h>
721 #ifdef HAVE_SYS_SOCKET_H
722 #include <sys/socket.h>
723 #endif
724 #ifdef HAVE_WS2TCPIP_H
725 #include <ws2tcpip.h>
726 #endif])
727 AC_HAVE_TYPE([struct addrinfo], [
728 #include <sys/types.h>
729 #ifdef HAVE_NETDB_H
730 #include <netdb.h>
731 #endif
732 #ifdef HAVE_WS2TCPIP_H
733 #include <ws2tcpip.h>
734 #endif])
735 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
736 AC_HAVE_TYPE([struct iovec],[
737 #include <sys/types.h>
738 #include <sys/uio.h>
740 AC_HAVE_TYPE([struct msghdr],[
741 #include <sys/types.h>
742 #ifdef HAVE_SYS_SOCKET_H
743 #include <sys/socket.h>
744 #endif
745 #ifdef HAVE_WS2TCPIP_H
746 #include <ws2tcpip.h>
747 #endif])
750 dnl Check for struct winsize
753 AC_KRB_STRUCT_WINSIZE
756 dnl Check for struct spwd
759 AC_KRB_STRUCT_SPWD
762 # Check if we want samba's socket wrapper
765 samba_SOCKET_WRAPPER
767 dnl won't work with automake
768 dnl moved to AC_OUTPUT in configure.in
769 dnl AC_CONFIG_FILES($1/Makefile)
771 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
773 AC_SUBST(DIR_roken)dnl
774 AC_SUBST(LIB_roken)dnl
775 AC_SUBST(INCLUDES_roken)dnl