lib/krb5: add utf8 support to build_logon_name() for the PAC
[heimdal.git] / cf / roken-frag.m4
blob5efecd51aa947ada720d85e20b159e02f73694b4
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 -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs)
33 AC_REQUIRE([rk_DB])
35 dnl C types
37 AC_REQUIRE([AC_TYPE_SIZE_T])
38 AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
39 AC_REQUIRE([AC_TYPE_PID_T])
40 AC_REQUIRE([AC_TYPE_UID_T])
41 AC_HAVE_TYPE([long long])
43 AC_REQUIRE([rk_RETSIGTYPE])
45 dnl Checks for header files.
46 AC_REQUIRE([AC_HEADER_STDC])
47 AC_REQUIRE([AC_HEADER_TIME])
49 AC_CHECK_HEADERS([\
50         arpa/inet.h                             \
51         config.h                                \
52         crypt.h                                 \
53         dirent.h                                \
54         errno.h                                 \
55         err.h                                   \
56         fcntl.h                                 \
57         fnmatch.h                               \
58         grp.h                                   \
59         ifaddrs.h                               \
60         netinet/in.h                            \
61         netinet/in6.h                           \
62         netinet/in_systm.h                      \
63         netinet6/in6.h                          \
64         paths.h                                 \
65         poll.h                                  \
66         pwd.h                                   \
67         rpcsvc/ypclnt.h                         \
68         search.h                                \
69         shadow.h                                \
70         stdint.h                                \
71         sys/bswap.h                             \
72         sys/ioctl.h                             \
73         sys/mman.h                              \
74         sys/param.h                             \
75         sys/resource.h                          \
76         sys/sockio.h                            \
77         sys/stat.h                              \
78         sys/time.h                              \
79         sys/tty.h                               \
80         sys/types.h                             \
81         sys/uio.h                               \
82         sys/utsname.h                           \
83         sys/wait.h                              \
84         syslog.h                                \
85         termios.h                               \
86         winsock2.h                              \
87         ws2tcpip.h                              \
88         unistd.h                                \
89         userconf.h                              \
90         usersec.h                               \
91         util.h                                  \
94 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
95 #include <stdint.h>
96 #endif])
98 dnl Sunpro 5.2 has a vis.h which is something different.
99 AC_CHECK_HEADERS(vis.h, , , [
100 #include <vis.h>
101 #ifndef VIS_SP
102 #error invis
103 #endif])
104         
105 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
106 #ifdef HAVE_SYS_TYPES_H
107 #include <sys/types.h>
108 #endif
111 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
112 #ifdef HAVE_SYS_TYPES_H
113 #include <sys/types.h>
114 #endif
117 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
118 #ifdef HAVE_SYS_TYPES_H
119 #include <sys/types.h>
120 #endif
121 #if HAVE_SYS_SOCKET_H
122 #include <sys/socket.h>
123 #endif])
125 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
126 #ifdef HAVE_SYS_TYPES_H
127 #include <sys/types.h>
128 #endif
129 #if HAVE_SYS_SOCKET_H
130 #include <sys/socket.h>
131 #endif
132 #ifdef HAVE_NETINET6_IN6_H
133 #include <netinet6/in6.h>
134 #endif
137 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
138 #ifdef HAVE_SYS_PARAM_H
139 #include <sys/param.h>
140 #endif
143 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
144 #ifdef HAVE_SYS_PARAM_H
145 #include <sys/param.h>
146 #endif
149 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
151 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
152 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
153 AM_CONDITIONAL(have_search_h, test "$ac_cv_header_search_h" = yes)
154 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
156 dnl Check for functions and libraries
158 AC_FIND_FUNC(socket, socket)
159 AC_FIND_FUNC(gethostbyname, nsl)
160 AC_FIND_FUNC(syslog, syslog)
162 AC_KRB_IPV6
164 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
166 rk_RESOLV
168 AC_BROKEN_SNPRINTF
169 AC_BROKEN_VSNPRINTF
171 AC_BROKEN_GLOB
172 if test "$ac_cv_func_glob_working" != yes; then
173         AC_LIBOBJ(glob)
175 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
178 AC_CHECK_FUNCS([                                \
179         asnprintf                               \
180         asprintf                                \
181         atexit                                  \
182         cgetent                                 \
183         getconfattr                             \
184         getprogname                             \
185         getrlimit                               \
186         getspnam                                \
187         issetugid                               \
188         on_exit                                 \
189         poll                                    \
190         random                                  \
191         setprogname                             \
192         strsvis                                 \
193         strsvisx                                \
194         strunvis                                \
195         strvis                                  \
196         strvisx                                 \
197         svis                                    \
198         sysconf                                 \
199         sysctl                                  \
200         tdelete                                 \
201         tfind                                   \
202         twalk                                   \
203         uname                                   \
204         unvis                                   \
205         vasnprintf                              \
206         vasprintf                               \
207         vis                                     \
210 if test "$ac_cv_func_cgetent" = no; then
211         AC_LIBOBJ(getcap)
213 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
215 AC_REQUIRE([AC_FUNC_GETLOGIN])
217 AC_REQUIRE([AC_FUNC_MMAP])
219 AC_FIND_FUNC_NO_LIBS(getsockopt,,
220 [#ifdef HAVE_SYS_TYPES_H
221 #include <sys/types.h>
222 #endif
223 #ifdef HAVE_SYS_SOCKET_H
224 #include <sys/socket.h>
225 #endif],
226 [0,0,0,0,0])
227 AC_FIND_FUNC_NO_LIBS(setsockopt,,
228 [#ifdef HAVE_SYS_TYPES_H
229 #include <sys/types.h>
230 #endif
231 #ifdef HAVE_SYS_SOCKET_H
232 #include <sys/socket.h>
233 #endif],
234 [0,0,0,0,0])
236 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
237 [#ifdef HAVE_NETDB_H
238 #include <netdb.h>
239 #endif],
241 AC_NEED_PROTO([
242 #ifdef HAVE_NETDB_H
243 #include <netdb.h>
244 #endif],
245 hstrerror)
247 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
248         [AC_NEED_PROTO([
249         #include <stdio.h>
250         #include <string.h>],
251         rk_func)])
253 AC_FIND_FUNC_NO_LIBS(bswap16,,
254 [#ifdef HAVE_SYS_TYPES_H
255 #include <sys/types.h>
256 #endif
257 #ifdef HAVE_SYS_BSWAP_H
258 #include <sys/bswap.h>
259 #endif],0)
261 AC_FIND_FUNC_NO_LIBS(bswap32,,
262 [#ifdef HAVE_SYS_TYPES_H
263 #include <sys/types.h>
264 #endif
265 #ifdef HAVE_SYS_BSWAP_H
266 #include <sys/bswap.h>
267 #endif],0)
269 AC_FIND_FUNC_NO_LIBS(pidfile,util,
270 [#ifdef HAVE_UTIL_H
271 #include <util.h>
272 #endif],0)
274 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
275 [#ifdef HAVE_NETDB_H
276 #include <netdb.h>
277 #endif
278 #ifdef HAVE_WS2TCPIP_H
279 #include <ws2tcpip.h>
280 #endif],[0,0,0,0])
282 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
283 [#ifdef HAVE_NETDB_H
284 #include <netdb.h>
285 #endif
286 #ifdef HAVE_WS2TCPIP_H
287 #include <ws2tcpip.h>
288 #endif],[0,0,0,0,0,0,0])
290 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
291 [#ifdef HAVE_NETDB_H
292 #include <netdb.h>
293 #endif
294 #ifdef HAVE_WS2TCPIP_H
295 #include <ws2tcpip.h>
296 #endif],[0])
298 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
299 [#ifdef HAVE_NETDB_H
300 #include <netdb.h>
301 #endif
302 #ifdef HAVE_WS2TCPIP_H
303 #include <ws2tcpip.h>
304 #endif],[0])
306 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
307 dnl servers to use daemon(), so its deprecated.
308 case "$host_os" in
309         darwin*)
310                 ;;
311         *)
312                 AC_DEFINE([SUPPORT_DETACH], 1,
313                     [Define if os support want to detach is daemonens.])
314                 AC_BROKEN([daemon]) ;;
315 esac
317 AC_BROKEN([                                     \
318         chown                                   \
319         copyhostent                             \
320         closefrom                               \
321         ecalloc                                 \
322         emalloc                                 \
323         erealloc                                \
324         estrdup                                 \
325         err                                     \
326         errx                                    \
327         fchown                                  \
328         flock                                   \
329         fnmatch                                 \
330         freehostent                             \
331         getcwd                                  \
332         getdtablesize                           \
333         getegid                                 \
334         geteuid                                 \
335         getgid                                  \
336         gethostname                             \
337         getifaddrs                              \
338         getipnodebyaddr                         \
339         getipnodebyname                         \
340         getopt                                  \
341         gettimeofday                            \
342         getuid                                  \
343         getusershell                            \
344         initgroups                              \
345         innetgr                                 \
346         iruserok                                \
347         localtime_r                             \
348         lstat                                   \
349         memmove                                 \
350         mkstemp                                 \
351         putenv                                  \
352         rcmd                                    \
353         readv                                   \
354         recvmsg                                 \
355         sendmsg                                 \
356         setegid                                 \
357         setenv                                  \
358         seteuid                                 \
359         strcasecmp                              \
360         strdup                                  \
361         strerror                                \
362         strftime                                \
363         strlcat                                 \
364         strlcpy                                 \
365         strlwr                                  \
366         strncasecmp                             \
367         strndup                                 \
368         strnlen                                 \
369         strptime                                \
370         strsep                                  \
371         strsep_copy                             \
372         strtok_r                                \
373         strupr                                  \
374         swab                                    \
375         tsearch                                 \
376         timegm                                  \
377         unsetenv                                \
378         verr                                    \
379         verrx                                   \
380         vsyslog                                 \
381         vwarn                                   \
382         vwarnx                                  \
383         warn                                    \
384         warnx                                   \
385         writev                                  \
388 AM_CONDITIONAL(have_fnmatch_h,
389         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
391 AC_FOREACH([rk_func], [strndup strsep strtok_r],
392         [AC_NEED_PROTO([#include <string.h>], rk_func)])
394 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
395 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
396 #include <vis.h>
397 #endif], rk_func)])
399 AC_MSG_CHECKING([checking for dirfd])
400 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
401 #ifdef HAVE_DIRENT_H
402 #include <dirent.h>
403 #endif
405         [[DIR *d = 0; dirfd(d);]])],
406         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
407 if test "$ac_rk_have_dirfd" = "yes" ; then
408         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
410 AC_MSG_RESULT($ac_rk_have_dirfd)
412 AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
413 #ifdef HAVE_DIRENT_H
414 #include <dirent.h>
415 #endif])
418 AC_BROKEN2(inet_aton,
419 [#ifdef HAVE_SYS_TYPES_H
420 #include <sys/types.h>
421 #endif
422 #ifdef HAVE_SYS_SOCKET_H
423 #include <sys/socket.h>
424 #endif
425 #ifdef HAVE_NETINET_IN_H
426 #include <netinet/in.h>
427 #endif
428 #ifdef HAVE_ARPA_INET_H
429 #include <arpa/inet.h>
430 #endif],
431 [0,0])
433 AC_BROKEN2(inet_ntop,
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, 0, 0])
448 AC_BROKEN2(inet_pton,
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])
464 dnl Check for sa_len in struct sockaddr, 
465 dnl needs to come before the getnameinfo test
467 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
468 #include <sys/socket.h>])
470 if test "$ac_cv_func_getaddrinfo" = "yes"; then
471   rk_BROKEN_GETADDRINFO
472   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
473         AC_LIBOBJ(getaddrinfo)
474         AC_LIBOBJ(freeaddrinfo)
475   fi
478 AC_NEED_PROTO([#include <stdlib.h>], setenv)
479 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
480 AC_NEED_PROTO([#include <unistd.h>], gethostname)
481 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
482 AC_NEED_PROTO([#include <unistd.h>], getusershell)
483 AC_NEED_PROTO([#include <unistd.h>], daemon)
484 AC_NEED_PROTO([
485 #ifdef HAVE_SYS_TYPES_H
486 #include <sys/types.h>
487 #endif
488 #ifdef HAVE_SYS_SOCKET_H
489 #include <sys/socket.h>
490 #endif
491 #ifdef HAVE_NETINET_IN_H
492 #include <netinet/in.h>
493 #endif
494 #ifdef HAVE_ARPA_INET_H
495 #include <arpa/inet.h>
496 #endif
497 #ifdef HAVE_NETDB_H
498 #include <netdb.h>
499 #endif
500 #ifdef HAVE_UNISTD_H
501 #include <unistd.h>
502 #endif],
503 iruserok)
505 AC_NEED_PROTO([
506 #ifdef HAVE_SYS_TYPES_H
507 #include <sys/types.h>
508 #endif
509 #ifdef HAVE_SYS_SOCKET_H
510 #include <sys/socket.h>
511 #endif
512 #ifdef HAVE_NETINET_IN_H
513 #include <netinet/in.h>
514 #endif
515 #ifdef HAVE_ARPA_INET_H
516 #include <arpa/inet.h>
517 #endif],
518 inet_aton)
520 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
522 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
524 dnl AC_KRB_FUNC_GETCWD_BROKEN
526 dnl strerror_r is great fun, on linux it exists before sus catched up,
527 dnl so the return type is diffrent, lets check for both
529 AC_PROTO_COMPAT([
530 #include <stdio.h>
531 #include <string.h>
533 strerror_r, int strerror_r(int, char *, size_t))
535 AC_CHECK_FUNC([strerror_r],
536     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
537         [Define if you have the function strerror_r.])])
540 dnl Checks for prototypes and declarations
543 AC_PROTO_COMPAT([
544 #ifdef HAVE_SYS_TYPES_H
545 #include <sys/types.h>
546 #endif
547 #ifdef HAVE_SYS_SOCKET_H
548 #include <sys/socket.h>
549 #endif
550 #ifdef HAVE_NETINET_IN_H
551 #include <netinet/in.h>
552 #endif
553 #ifdef HAVE_ARPA_INET_H
554 #include <arpa/inet.h>
555 #endif
556 #ifdef HAVE_NETDB_H
557 #include <netdb.h>
558 #endif
560 gethostbyname, struct hostent *gethostbyname(const char *))
562 AC_PROTO_COMPAT([
563 #ifdef HAVE_SYS_TYPES_H
564 #include <sys/types.h>
565 #endif
566 #ifdef HAVE_SYS_SOCKET_H
567 #include <sys/socket.h>
568 #endif
569 #ifdef HAVE_NETINET_IN_H
570 #include <netinet/in.h>
571 #endif
572 #ifdef HAVE_ARPA_INET_H
573 #include <arpa/inet.h>
574 #endif
575 #ifdef HAVE_NETDB_H
576 #include <netdb.h>
577 #endif
579 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
581 AC_PROTO_COMPAT([
582 #ifdef HAVE_SYS_TYPES_H
583 #include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_SOCKET_H
586 #include <sys/socket.h>
587 #endif
588 #ifdef HAVE_NETINET_IN_H
589 #include <netinet/in.h>
590 #endif
591 #ifdef HAVE_ARPA_INET_H
592 #include <arpa/inet.h>
593 #endif
594 #ifdef HAVE_NETDB_H
595 #include <netdb.h>
596 #endif
598 getservbyname, struct servent *getservbyname(const char *, const char *))
600 AC_PROTO_COMPAT([
601 #ifdef HAVE_SYS_TYPES_H
602 #include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_SOCKET_H
605 #include <sys/socket.h>
606 #endif
608 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
610 AC_PROTO_COMPAT([
611 #ifdef HAVE_SYSLOG_H
612 #include <syslog.h>
613 #endif
615 openlog, void openlog(const char *, int, int))
617 AC_NEED_PROTO([
618 #ifdef HAVE_CRYPT_H
619 #include <crypt.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 #include <unistd.h>
623 #endif
625 crypt)
627 dnl variables
629 rk_CHECK_VAR(h_errno, 
630 [#ifdef HAVE_SYS_TYPES_H
631 #include <sys/types.h>
632 #endif
633 #ifdef HAVE_NETDB_H
634 #include <netdb.h>
635 #endif
636 #ifdef HAVE_WS2TCPIP_H
637 #include <ws2tcpip.h>
638 #endif
641 rk_CHECK_VAR(h_errlist, 
642 [#ifdef HAVE_NETDB_H
643 #include <netdb.h>
644 #endif
645 #ifdef HAVE_WS2TCPIP_H
646 #include <ws2tcpip.h>
647 #endif])
649 rk_CHECK_VAR(h_nerr, 
650 [#ifdef HAVE_NETDB_H
651 #include <netdb.h>
652 #endif
653 #ifdef HAVE_WS2TCPIP_H
654 #include <ws2tcpip.h>
655 #endif])
657 rk_CHECK_VAR([__progname], 
658 [#ifdef HAVE_ERR_H
659 #include <err.h>
660 #endif])
662 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
663 #include <stdlib.h>
664 #ifdef HAVE_UNISTD_H
665 #include <unistd.h>
666 #endif])
669 dnl Check for fields in struct tm
672 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
673 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
676 dnl or do we have a variable `timezone' ?
679 rk_CHECK_VAR(timezone,[#include <time.h>])
680 rk_CHECK_VAR(altzone,[#include <time.h>])
682 AC_HAVE_TYPE([sa_family_t],[
683 #include <sys/types.h>
684 #ifdef HAVE_SYS_SOCKET_H
685 #include <sys/socket.h>
686 #endif
687 #ifdef HAVE_WS2TCPIP_H
688 #include <ws2tcpip.h>
689 #endif])
690 AC_HAVE_TYPE([socklen_t],[
691 #include <sys/types.h>
692 #ifdef HAVE_SYS_SOCKET_H
693 #include <sys/socket.h>
694 #endif
695 #ifdef HAVE_WS2TCPIP_H
696 #include <ws2tcpip.h>
697 #endif])
698 AC_HAVE_TYPE([struct sockaddr], [
699 #include <sys/types.h>
700 #ifdef HAVE_SYS_SOCKET_H
701 #include <sys/socket.h>
702 #endif
703 #ifdef HAVE_WS2TCPIP_H
704 #include <ws2tcpip.h>
705 #endif])
706 AC_HAVE_TYPE([struct sockaddr_storage], [
707 #include <sys/types.h>
708 #ifdef HAVE_SYS_SOCKET_H
709 #include <sys/socket.h>
710 #endif
711 #ifdef HAVE_WS2TCPIP_H
712 #include <ws2tcpip.h>
713 #endif])
714 AC_HAVE_TYPE([struct addrinfo], [
715 #include <sys/types.h>
716 #ifdef HAVE_NETDB_H
717 #include <netdb.h>
718 #endif
719 #ifdef HAVE_WS2TCPIP_H
720 #include <ws2tcpip.h>
721 #endif])
722 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
723 AC_HAVE_TYPE([struct iovec],[
724 #include <sys/types.h>
725 #include <sys/uio.h>
727 AC_HAVE_TYPE([struct msghdr],[
728 #include <sys/types.h>
729 #ifdef HAVE_SYS_SOCKET_H
730 #include <sys/socket.h>
731 #endif
732 #ifdef HAVE_WS2TCPIP_H
733 #include <ws2tcpip.h>
734 #endif])
737 dnl Check for struct winsize
740 AC_KRB_STRUCT_WINSIZE
743 dnl Check for struct spwd
746 AC_KRB_STRUCT_SPWD
749 # Check if we want samba's socket wrapper
752 samba_SOCKET_WRAPPER
754 dnl won't work with automake
755 dnl moved to AC_OUTPUT in configure.in
756 dnl AC_CONFIG_FILES($1/Makefile)
758 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
760 AC_SUBST(DIR_roken)dnl
761 AC_SUBST(LIB_roken)dnl
762 AC_SUBST(INCLUDES_roken)dnl