tests: Use here-doc kadmin in Java test
[heimdal.git] / cf / roken-frag.m4
blob90e514c20e1ab51c591360b00d9197d8597f7905
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         auxv.h                                  \
54         arpa/inet.h                             \
55         config.h                                \
56         crypt.h                                 \
57         dirent.h                                \
58         errno.h                                 \
59         err.h                                   \
60         fcntl.h                                 \
61         fnmatch.h                               \
62         grp.h                                   \
63         ifaddrs.h                               \
64         netinet/in.h                            \
65         netinet/in6.h                           \
66         netinet/in_systm.h                      \
67         netinet6/in6.h                          \
68         paths.h                                 \
69         poll.h                                  \
70         pwd.h                                   \
71         rpcsvc/ypclnt.h                         \
72         search.h                                \
73         shadow.h                                \
74         stdint.h                                \
75         sys/auxv.h                              \
76         sys/bswap.h                             \
77         sys/errno.h                             \
78         sys/exec_elf.h                          \
79         sys/ioctl.h                             \
80         sys/mman.h                              \
81         sys/param.h                             \
82         sys/resource.h                          \
83         sys/sockio.h                            \
84         sys/stat.h                              \
85         sys/time.h                              \
86         sys/tty.h                               \
87         sys/types.h                             \
88         sys/uio.h                               \
89         sys/utsname.h                           \
90         sys/wait.h                              \
91         syslog.h                                \
92         termios.h                               \
93         winsock2.h                              \
94         ws2tcpip.h                              \
95         unistd.h                                \
96         userconf.h                              \
97         usersec.h                               \
98         util.h                                  \
101 AC_HAVE_TYPE([auxv_t],[#ifdef HAVE_AUXV_H
102 #include <auxv.h>
103 #endif
104 #ifdef HAVE_SYS_AUXV_H
105 #include <sys/auxv.h>
106 #endif
109 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
110 #include <stdint.h>
111 #endif])
113 dnl Sunpro 5.2 has a vis.h which is something different.
114 AC_CHECK_HEADERS(vis.h, , , [
115 #include <vis.h>
116 #ifndef VIS_SP
117 #error invis
118 #endif])
119         
120 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
121 #ifdef HAVE_SYS_TYPES_H
122 #include <sys/types.h>
123 #endif
126 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
127 #ifdef HAVE_SYS_TYPES_H
128 #include <sys/types.h>
129 #endif
132 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
133 #ifdef HAVE_SYS_TYPES_H
134 #include <sys/types.h>
135 #endif
136 #if HAVE_SYS_SOCKET_H
137 #include <sys/socket.h>
138 #endif])
140 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
141 #ifdef HAVE_SYS_TYPES_H
142 #include <sys/types.h>
143 #endif
144 #if HAVE_SYS_SOCKET_H
145 #include <sys/socket.h>
146 #endif
147 #ifdef HAVE_NETINET6_IN6_H
148 #include <netinet6/in6.h>
149 #endif
152 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
153 #ifdef HAVE_SYS_PARAM_H
154 #include <sys/param.h>
155 #endif
158 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
159 #ifdef HAVE_SYS_PARAM_H
160 #include <sys/param.h>
161 #endif
164 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
166 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
167 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
168 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
169 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
171 dnl Check for functions and libraries
173 AC_KRB_IPV6
175 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
177 rk_RESOLV
179 AC_BROKEN_SNPRINTF
180 AC_BROKEN_VSNPRINTF
182 AC_CHECK_FUNCS([                                \
183         asnprintf                               \
184         asprintf                                \
185         atexit                                  \
186         getauxval                               \
187         getconfattr                             \
188         getprogname                             \
189         getrlimit                               \
190         issetugid                               \
191         memmem                                  \
192         mkdtemp                                 \
193         mkostemp                                \
194         on_exit                                 \
195         poll                                    \
196         random                                  \
197         secure_getenv                           \
198         setprogname                             \
199         strsvis                                 \
200         strsvisx                                \
201         strunvis                                \
202         strvis                                  \
203         strvisx                                 \
204         svis                                    \
205         sysconf                                 \
206         sysctl                                  \
207         tdelete                                 \
208         tfind                                   \
209         twalk                                   \
210         uname                                   \
211         unlinkat                                \
212         unvis                                   \
213         vasnprintf                              \
214         vasprintf                               \
215         vis                                     \
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(bswap64,,
273 [#ifdef HAVE_SYS_TYPES_H
274 #include <sys/types.h>
275 #endif
276 #ifdef HAVE_SYS_BSWAP_H
277 #include <sys/bswap.h>
278 #endif],0)
280 AC_FIND_FUNC_NO_LIBS(pidfile,util,
281 [#ifdef HAVE_UTIL_H
282 #include <util.h>
283 #endif],0)
285 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
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])
293 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
294 [#ifdef HAVE_NETDB_H
295 #include <netdb.h>
296 #endif
297 #ifdef HAVE_WS2TCPIP_H
298 #include <ws2tcpip.h>
299 #endif],[0,0,0,0,0,0,0])
301 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
302 [#ifdef HAVE_NETDB_H
303 #include <netdb.h>
304 #endif
305 #ifdef HAVE_WS2TCPIP_H
306 #include <ws2tcpip.h>
307 #endif],[0])
309 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
310 [#ifdef HAVE_NETDB_H
311 #include <netdb.h>
312 #endif
313 #ifdef HAVE_WS2TCPIP_H
314 #include <ws2tcpip.h>
315 #endif],[0])
317 AC_CHECK_LIB(util, emalloc)
319 case "$host_os" in
320         darwin*)
321                 ;;
322         *)
323                 AC_BROKEN([daemon]) ;;
324 esac
326 AC_BROKEN([                                     \
327         chown                                   \
328         copyhostent                             \
329         closefrom                               \
330         ecalloc                                 \
331         emalloc                                 \
332         erealloc                                \
333         estrdup                                 \
334         err                                     \
335         errx                                    \
336         fchown                                  \
337         flock                                   \
338         fnmatch                                 \
339         freehostent                             \
340         getcwd                                  \
341         getdtablesize                           \
342         getegid                                 \
343         geteuid                                 \
344         getgid                                  \
345         gethostname                             \
346         getifaddrs                              \
347         getipnodebyaddr                         \
348         getipnodebyname                         \
349         getopt                                  \
350         gettimeofday                            \
351         getuid                                  \
352         getusershell                            \
353         initgroups                              \
354         innetgr                                 \
355         localtime_r                             \
356         lstat                                   \
357         memmove                                 \
358         memset_s                                \
359         mergesort                               \
360         mergesort_r                             \
361         mkstemp                                 \
362         putenv                                  \
363         rcmd                                    \
364         readv                                   \
365         recvmsg                                 \
366         sendmsg                                 \
367         setegid                                 \
368         setenv                                  \
369         seteuid                                 \
370         strcasecmp                              \
371         strdup                                  \
372         strerror                                \
373         strftime                                \
374         strlcat                                 \
375         strlcpy                                 \
376         strlwr                                  \
377         strncasecmp                             \
378         strndup                                 \
379         strnlen                                 \
380         strptime                                \
381         strsep                                  \
382         strsep_copy                             \
383         strtok_r                                \
384         strtoll                                 \
385         strtoull                                \
386         strupr                                  \
387         swab                                    \
388         tsearch                                 \
389         timegm                                  \
390         unsetenv                                \
391         verr                                    \
392         verrx                                   \
393         vsyslog                                 \
394         vwarn                                   \
395         vwarnx                                  \
396         warn                                    \
397         warnx                                   \
398         writev                                  \
401 rk_LIBOBJ(closefrom)
403 AM_CONDITIONAL(have_fnmatch_h,
404         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
406 AC_FOREACH([rk_func], [strndup strsep strtok_r],
407         [AC_NEED_PROTO([#include <string.h>], rk_func)])
409 AC_CHECK_FUNC([strtoll],
410     [AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
411         [Define if you have the function strtoll.])])
413 AC_CHECK_FUNC([strtoull],
414     [AC_DEFINE_UNQUOTED(HAVE_STRTOULL, 1,
415         [Define if you have the function strtoull.])])
417 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
418 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
419 #include <vis.h>
420 #endif], rk_func)])
422 AC_MSG_CHECKING([checking for dirfd])
423 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
424 #ifdef HAVE_DIRENT_H
425 #include <dirent.h>
426 #endif
428         [[DIR *d = 0; dirfd(d);]])],
429         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
430 if test "$ac_rk_have_dirfd" = "yes" ; then
431         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
433 AC_MSG_RESULT($ac_rk_have_dirfd)
435 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
436 #ifdef HAVE_DIRENT_H
437 #include <dirent.h>
438 #endif])
440 AC_HAVE_STRUCT_FIELD(DIR, d_fd, [#include <sys/types.h>
441 #ifdef HAVE_DIRENT_H
442 #include <dirent.h>
443 #endif])
445 AC_BROKEN2(inet_aton,
446 [#ifdef HAVE_SYS_TYPES_H
447 #include <sys/types.h>
448 #endif
449 #ifdef HAVE_SYS_SOCKET_H
450 #include <sys/socket.h>
451 #endif
452 #ifdef HAVE_NETINET_IN_H
453 #include <netinet/in.h>
454 #endif
455 #ifdef HAVE_ARPA_INET_H
456 #include <arpa/inet.h>
457 #endif],
458 [0,0])
460 AC_BROKEN2(inet_ntop,
461 [#ifdef HAVE_SYS_TYPES_H
462 #include <sys/types.h>
463 #endif
464 #ifdef HAVE_SYS_SOCKET_H
465 #include <sys/socket.h>
466 #endif
467 #ifdef HAVE_NETINET_IN_H
468 #include <netinet/in.h>
469 #endif
470 #ifdef HAVE_ARPA_INET_H
471 #include <arpa/inet.h>
472 #endif],
473 [0, 0, 0, 0])
475 AC_BROKEN2(inet_pton,
476 [#ifdef HAVE_SYS_TYPES_H
477 #include <sys/types.h>
478 #endif
479 #ifdef HAVE_SYS_SOCKET_H
480 #include <sys/socket.h>
481 #endif
482 #ifdef HAVE_NETINET_IN_H
483 #include <netinet/in.h>
484 #endif
485 #ifdef HAVE_ARPA_INET_H
486 #include <arpa/inet.h>
487 #endif],
488 [0,0,0])
491 dnl Check for sa_len in struct sockaddr, 
492 dnl needs to come before the getnameinfo test
494 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
495 #include <sys/socket.h>])
497 #if test "$ac_cv_func_getaddrinfo" = "yes"; then
498 #  rk_BROKEN_GETADDRINFO
499 #  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
500 #       AC_LIBOBJ(getaddrinfo)
501 #       AC_LIBOBJ(freeaddrinfo)
502 #  fi
505 AC_NEED_PROTO([#include <stdlib.h>], setenv)
506 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
507 AC_NEED_PROTO([#include <unistd.h>], gethostname)
508 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
509 AC_NEED_PROTO([#include <unistd.h>], getusershell)
510 AC_NEED_PROTO([#include <unistd.h>], daemon)
512 AC_NEED_PROTO([
513 #ifdef HAVE_SYS_TYPES_H
514 #include <sys/types.h>
515 #endif
516 #ifdef HAVE_SYS_SOCKET_H
517 #include <sys/socket.h>
518 #endif
519 #ifdef HAVE_NETINET_IN_H
520 #include <netinet/in.h>
521 #endif
522 #ifdef HAVE_ARPA_INET_H
523 #include <arpa/inet.h>
524 #endif],
525 inet_aton)
527 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
529 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
531 dnl strerror_r is great fun, on linux it exists before sus catched up,
532 dnl so the return type is diffrent, lets check for both
534 AC_PROTO_COMPAT([
535 #include <stdio.h>
536 #include <string.h>
538 strerror_r, int strerror_r(int, char *, size_t))
540 AC_CHECK_FUNC([strerror_r],
541     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
542         [Define if you have the function strerror_r.])])
545 dnl Checks for prototypes and declarations
548 AC_PROTO_COMPAT([
549 #ifdef HAVE_SYS_TYPES_H
550 #include <sys/types.h>
551 #endif
552 #ifdef HAVE_SYS_SOCKET_H
553 #include <sys/socket.h>
554 #endif
555 #ifdef HAVE_NETINET_IN_H
556 #include <netinet/in.h>
557 #endif
558 #ifdef HAVE_ARPA_INET_H
559 #include <arpa/inet.h>
560 #endif
561 #ifdef HAVE_NETDB_H
562 #include <netdb.h>
563 #endif
565 gethostbyname, struct hostent *gethostbyname(const char *))
567 AC_PROTO_COMPAT([
568 #ifdef HAVE_SYS_TYPES_H
569 #include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_SOCKET_H
572 #include <sys/socket.h>
573 #endif
574 #ifdef HAVE_NETINET_IN_H
575 #include <netinet/in.h>
576 #endif
577 #ifdef HAVE_ARPA_INET_H
578 #include <arpa/inet.h>
579 #endif
580 #ifdef HAVE_NETDB_H
581 #include <netdb.h>
582 #endif
584 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
586 AC_PROTO_COMPAT([
587 #ifdef HAVE_SYS_TYPES_H
588 #include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_SOCKET_H
591 #include <sys/socket.h>
592 #endif
593 #ifdef HAVE_NETINET_IN_H
594 #include <netinet/in.h>
595 #endif
596 #ifdef HAVE_ARPA_INET_H
597 #include <arpa/inet.h>
598 #endif
599 #ifdef HAVE_NETDB_H
600 #include <netdb.h>
601 #endif
603 getservbyname, struct servent *getservbyname(const char *, const char *))
605 AC_PROTO_COMPAT([
606 #ifdef HAVE_SYS_TYPES_H
607 #include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_SOCKET_H
610 #include <sys/socket.h>
611 #endif
613 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
615 AC_PROTO_COMPAT([
616 #ifdef HAVE_SYSLOG_H
617 #include <syslog.h>
618 #endif
620 openlog, void openlog(const char *, int, int))
622 AC_NEED_PROTO([
623 #ifdef HAVE_CRYPT_H
624 #include <crypt.h>
625 #endif
626 #ifdef HAVE_UNISTD_H
627 #include <unistd.h>
628 #endif
630 crypt)
632 dnl variables
634 rk_CHECK_VAR(h_errno, 
635 [#ifdef HAVE_SYS_TYPES_H
636 #include <sys/types.h>
637 #endif
638 #ifdef HAVE_NETDB_H
639 #include <netdb.h>
640 #endif
641 #ifdef HAVE_WS2TCPIP_H
642 #include <ws2tcpip.h>
643 #endif
646 rk_CHECK_VAR(h_errlist, 
647 [#ifdef HAVE_NETDB_H
648 #include <netdb.h>
649 #endif
650 #ifdef HAVE_WS2TCPIP_H
651 #include <ws2tcpip.h>
652 #endif])
654 rk_CHECK_VAR(h_nerr, 
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([__progname], 
663 [#ifdef HAVE_ERR_H
664 #include <err.h>
665 #endif])
667 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
668 #include <stdlib.h>
669 #ifdef HAVE_UNISTD_H
670 #include <unistd.h>
671 #endif])
674 dnl Check for fields in struct tm
677 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
678 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
681 dnl or do we have a variable `timezone' ?
684 rk_CHECK_VAR(timezone,[#include <time.h>])
685 rk_CHECK_VAR(altzone,[#include <time.h>])
687 AC_HAVE_TYPE([sa_family_t],[
688 #include <sys/types.h>
689 #ifdef HAVE_SYS_SOCKET_H
690 #include <sys/socket.h>
691 #endif
692 #ifdef HAVE_WS2TCPIP_H
693 #include <ws2tcpip.h>
694 #endif])
695 AC_HAVE_TYPE([socklen_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([struct sockaddr], [
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_storage], [
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 addrinfo], [
720 #include <sys/types.h>
721 #ifdef HAVE_NETDB_H
722 #include <netdb.h>
723 #endif
724 #ifdef HAVE_WS2TCPIP_H
725 #include <ws2tcpip.h>
726 #endif])
727 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
728 AC_HAVE_TYPE([struct iovec],[
729 #include <sys/types.h>
730 #include <sys/uio.h>
732 AC_HAVE_TYPE([struct msghdr],[
733 #include <sys/types.h>
734 #ifdef HAVE_SYS_SOCKET_H
735 #include <sys/socket.h>
736 #endif
737 #ifdef HAVE_WS2TCPIP_H
738 #include <ws2tcpip.h>
739 #endif])
742 dnl Check for struct winsize
745 AC_KRB_STRUCT_WINSIZE
748 dnl Check for struct spwd
751 AC_KRB_STRUCT_SPWD
754 # Check if we want samba's socket wrapper
757 samba_SOCKET_WRAPPER
759 dnl won't work with automake
760 dnl moved to AC_OUTPUT in configure.in
761 dnl AC_CONFIG_FILES($1/Makefile)
763 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
765 AC_SUBST(DIR_roken)dnl
766 AC_SUBST(LIB_roken)dnl
767 AC_SUBST(INCLUDES_roken)dnl