autoconf test for dirfd and dd_fd
[heimdal.git] / cf / roken-frag.m4
blob0c50498f8d437e2d260ec1fb8e70752d920ee569
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 dnl C characteristics
26 AC_REQUIRE([AC_C___ATTRIBUTE__])
27 AC_REQUIRE([AC_C_INLINE])
28 AC_REQUIRE([AC_C_CONST])
29 rk_WFLAGS(-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs)
31 AC_REQUIRE([rk_DB])
33 dnl C types
35 AC_REQUIRE([AC_TYPE_SIZE_T])
36 AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
37 AC_REQUIRE([AC_TYPE_PID_T])
38 AC_REQUIRE([AC_TYPE_UID_T])
39 AC_HAVE_TYPE([long long])
41 AC_REQUIRE([rk_RETSIGTYPE])
43 dnl Checks for header files.
44 AC_REQUIRE([AC_HEADER_STDC])
45 AC_REQUIRE([AC_HEADER_TIME])
47 AC_CHECK_HEADERS([\
48         arpa/inet.h                             \
49         config.h                                \
50         crypt.h                                 \
51         dirent.h                                \
52         errno.h                                 \
53         err.h                                   \
54         fcntl.h                                 \
55         fnmatch.h                               \
56         grp.h                                   \
57         ifaddrs.h                               \
58         netinet/in.h                            \
59         netinet/in6.h                           \
60         netinet/in_systm.h                      \
61         netinet6/in6.h                          \
62         paths.h                                 \
63         poll.h                                  \
64         pwd.h                                   \
65         rpcsvc/ypclnt.h                         \
66         shadow.h                                \
67         stdint.h                                \
68         sys/bswap.h                             \
69         sys/ioctl.h                             \
70         sys/mman.h                              \
71         sys/param.h                             \
72         sys/resource.h                          \
73         sys/sockio.h                            \
74         sys/stat.h                              \
75         sys/time.h                              \
76         sys/tty.h                               \
77         sys/types.h                             \
78         sys/uio.h                               \
79         sys/utsname.h                           \
80         sys/wait.h                              \
81         syslog.h                                \
82         termios.h                               \
83         winsock2.h                              \
84         ws2tcpip.h                              \
85         unistd.h                                \
86         userconf.h                              \
87         usersec.h                               \
88         util.h                                  \
91 AC_HAVE_TYPE([uintptr_t],[#ifdef HAVE_STDINT_H
92 #include <stdint.h>
93 #endif])
95 dnl Sunpro 5.2 has a vis.h which is something different.
96 AC_CHECK_HEADERS(vis.h, , , [
97 #include <vis.h>
98 #ifndef VIS_SP
99 #error invis
100 #endif])
101         
102 AC_CHECK_HEADERS(netdb.h, , , [AC_INCLUDES_DEFAULT
103 #ifdef HAVE_SYS_TYPES_H
104 #include <sys/types.h>
105 #endif
108 AC_CHECK_HEADERS(sys/socket.h, , , [AC_INCLUDES_DEFAULT
109 #ifdef HAVE_SYS_TYPES_H
110 #include <sys/types.h>
111 #endif
114 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
115 #ifdef HAVE_SYS_TYPES_H
116 #include <sys/types.h>
117 #endif
118 #if HAVE_SYS_SOCKET_H
119 #include <sys/socket.h>
120 #endif])
122 AC_CHECK_HEADERS(netinet6/in6_var.h, , , [AC_INCLUDES_DEFAULT
123 #ifdef HAVE_SYS_TYPES_H
124 #include <sys/types.h>
125 #endif
126 #if HAVE_SYS_SOCKET_H
127 #include <sys/socket.h>
128 #endif
129 #ifdef HAVE_NETINET6_IN6_H
130 #include <netinet6/in6.h>
131 #endif
134 AC_CHECK_HEADERS(sys/sysctl.h, , , [AC_INCLUDES_DEFAULT
135 #ifdef HAVE_SYS_PARAM_H
136 #include <sys/param.h>
137 #endif
140 AC_CHECK_HEADERS(sys/proc.h, , , [AC_INCLUDES_DEFAULT
141 #ifdef HAVE_SYS_PARAM_H
142 #include <sys/param.h>
143 #endif
146 AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
148 AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
149 AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
150 AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
152 dnl Check for functions and libraries
154 AC_FIND_FUNC(socket, socket)
155 AC_FIND_FUNC(gethostbyname, nsl)
156 AC_FIND_FUNC(syslog, syslog)
158 AC_KRB_IPV6
160 AC_FIND_FUNC(gethostbyname2, inet6 ip6)
162 rk_RESOLV
164 AC_BROKEN_SNPRINTF
165 AC_BROKEN_VSNPRINTF
167 AC_BROKEN_GLOB
168 if test "$ac_cv_func_glob_working" != yes; then
169         AC_LIBOBJ(glob)
171 AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
174 AC_CHECK_FUNCS([                                \
175         asnprintf                               \
176         asprintf                                \
177         atexit                                  \
178         cgetent                                 \
179         getconfattr                             \
180         getprogname                             \
181         getrlimit                               \
182         getspnam                                \
183         initstate                               \
184         issetugid                               \
185         on_exit                                 \
186         poll                                    \
187         random                                  \
188         setprogname                             \
189         setstate                                \
190         strsvis                                 \
191         strsvisx                                \
192         strunvis                                \
193         strvis                                  \
194         strvisx                                 \
195         svis                                    \
196         sysconf                                 \
197         sysctl                                  \
198         uname                                   \
199         unvis                                   \
200         vasnprintf                              \
201         vasprintf                               \
202         vis                                     \
205 if test "$ac_cv_func_cgetent" = no; then
206         AC_LIBOBJ(getcap)
208 AM_CONDITIONAL(have_cgetent, test "$ac_cv_func_cgetent" = yes)
210 AC_REQUIRE([AC_FUNC_GETLOGIN])
212 AC_REQUIRE([AC_FUNC_MMAP])
214 AC_FIND_FUNC_NO_LIBS(getsockopt,,
215 [#ifdef HAVE_SYS_TYPES_H
216 #include <sys/types.h>
217 #endif
218 #ifdef HAVE_SYS_SOCKET_H
219 #include <sys/socket.h>
220 #endif],
221 [0,0,0,0,0])
222 AC_FIND_FUNC_NO_LIBS(setsockopt,,
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])
231 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
232 [#ifdef HAVE_NETDB_H
233 #include <netdb.h>
234 #endif],
236 AC_NEED_PROTO([
237 #ifdef HAVE_NETDB_H
238 #include <netdb.h>
239 #endif],
240 hstrerror)
242 AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
243         [AC_NEED_PROTO([
244         #include <stdio.h>
245         #include <string.h>],
246         rk_func)])
248 AC_FIND_FUNC_NO_LIBS(bswap16,,
249 [#ifdef HAVE_SYS_TYPES_H
250 #include <sys/types.h>
251 #endif
252 #ifdef HAVE_SYS_BSWAP_H
253 #include <sys/bswap.h>
254 #endif],0)
256 AC_FIND_FUNC_NO_LIBS(bswap32,,
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(pidfile,util,
265 [#ifdef HAVE_UTIL_H
266 #include <util.h>
267 #endif],0)
269 AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
270 [#ifdef HAVE_NETDB_H
271 #include <netdb.h>
272 #endif
273 #ifdef HAVE_WS2TCPIP_H
274 #include <ws2tcpip.h>
275 #endif],[0,0,0,0])
277 AC_FIND_IF_NOT_BROKEN(getnameinfo,,
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,0,0,0])
285 AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
286 [#ifdef HAVE_NETDB_H
287 #include <netdb.h>
288 #endif
289 #ifdef HAVE_WS2TCPIP_H
290 #include <ws2tcpip.h>
291 #endif],[0])
293 AC_FIND_IF_NOT_BROKEN(gai_strerror,,
294 [#ifdef HAVE_NETDB_H
295 #include <netdb.h>
296 #endif
297 #ifdef HAVE_WS2TCPIP_H
298 #include <ws2tcpip.h>
299 #endif],[0])
301 dnl Darwin is weird, and in some senses not unix, launchd doesn't want
302 dnl servers to use daemon(), so its deprecated.
303 case "$host_os" in
304         darwin*)
305                 ;;
306         *)
307                 AC_DEFINE([SUPPORT_DETACH], 1,
308                     [Define if os support want to detach is daemonens.])
309                 AC_BROKEN([daemon]) ;;
310 esac
312 AC_BROKEN([                                     \
313         chown                                   \
314         copyhostent                             \
315         closefrom                               \
316         ecalloc                                 \
317         emalloc                                 \
318         erealloc                                \
319         estrdup                                 \
320         err                                     \
321         errx                                    \
322         fchown                                  \
323         flock                                   \
324         fnmatch                                 \
325         freehostent                             \
326         getcwd                                  \
327         getdtablesize                           \
328         getegid                                 \
329         geteuid                                 \
330         getgid                                  \
331         gethostname                             \
332         getifaddrs                              \
333         getipnodebyaddr                         \
334         getipnodebyname                         \
335         getopt                                  \
336         gettimeofday                            \
337         getuid                                  \
338         getusershell                            \
339         initgroups                              \
340         innetgr                                 \
341         iruserok                                \
342         localtime_r                             \
343         lstat                                   \
344         memmove                                 \
345         mkstemp                                 \
346         putenv                                  \
347         rcmd                                    \
348         readv                                   \
349         recvmsg                                 \
350         sendmsg                                 \
351         setegid                                 \
352         setenv                                  \
353         seteuid                                 \
354         strcasecmp                              \
355         strdup                                  \
356         strerror                                \
357         strftime                                \
358         strlcat                                 \
359         strlcpy                                 \
360         strlwr                                  \
361         strncasecmp                             \
362         strndup                                 \
363         strnlen                                 \
364         strptime                                \
365         strsep                                  \
366         strsep_copy                             \
367         strtok_r                                \
368         strupr                                  \
369         swab                                    \
370         timegm                                  \
371         unsetenv                                \
372         verr                                    \
373         verrx                                   \
374         vsyslog                                 \
375         vwarn                                   \
376         vwarnx                                  \
377         warn                                    \
378         warnx                                   \
379         writev                                  \
382 AM_CONDITIONAL(have_fnmatch_h,
383         test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
385 AC_FOREACH([rk_func], [strndup strsep strtok_r],
386         [AC_NEED_PROTO([#include <string.h>], rk_func)])
388 AC_FOREACH([rk_func], [strsvis strsvisx strunvis strvis strvisx svis unvis vis],
389 [AC_NEED_PROTO([#ifdef HAVE_VIS_H
390 #include <vis.h>
391 #endif], rk_func)])
393 AC_MSG_CHECKING([checking for dirfd])
394 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
395 #ifdef HAVE_DIRENT_H
396 #include <dirent.h>
397 #endif
399         [[DIR *d = 0; dirfd(d);]])],
400         [ac_rk_have_dirfd=yes], [ac_rk_have_dirfd=no])
401 if test "$ac_rk_have_dirfd" = "yes" ; then
402         AC_DEFINE_UNQUOTED(HAVE_DIRFD, 1, [have a dirfd function/macro])
404 AC_MSG_RESULT($ac_rk_have_dirfd)
406 AC_HAVE_STRUCT_FIELD(struct dirent, dd_fd, [#include <sys/types.h>
407 #ifdef HAVE_DIRENT_H
408 #include <dirent.h>
409 #endif])
412 AC_BROKEN2(inet_aton,
413 [#ifdef HAVE_SYS_TYPES_H
414 #include <sys/types.h>
415 #endif
416 #ifdef HAVE_SYS_SOCKET_H
417 #include <sys/socket.h>
418 #endif
419 #ifdef HAVE_NETINET_IN_H
420 #include <netinet/in.h>
421 #endif
422 #ifdef HAVE_ARPA_INET_H
423 #include <arpa/inet.h>
424 #endif],
425 [0,0])
427 AC_BROKEN2(inet_ntop,
428 [#ifdef HAVE_SYS_TYPES_H
429 #include <sys/types.h>
430 #endif
431 #ifdef HAVE_SYS_SOCKET_H
432 #include <sys/socket.h>
433 #endif
434 #ifdef HAVE_NETINET_IN_H
435 #include <netinet/in.h>
436 #endif
437 #ifdef HAVE_ARPA_INET_H
438 #include <arpa/inet.h>
439 #endif],
440 [0, 0, 0, 0])
442 AC_BROKEN2(inet_pton,
443 [#ifdef HAVE_SYS_TYPES_H
444 #include <sys/types.h>
445 #endif
446 #ifdef HAVE_SYS_SOCKET_H
447 #include <sys/socket.h>
448 #endif
449 #ifdef HAVE_NETINET_IN_H
450 #include <netinet/in.h>
451 #endif
452 #ifdef HAVE_ARPA_INET_H
453 #include <arpa/inet.h>
454 #endif],
455 [0,0,0])
458 dnl Check for sa_len in struct sockaddr, 
459 dnl needs to come before the getnameinfo test
461 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
462 #include <sys/socket.h>])
464 if test "$ac_cv_func_getaddrinfo" = "yes"; then
465   rk_BROKEN_GETADDRINFO
466   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
467         AC_LIBOBJ(getaddrinfo)
468         AC_LIBOBJ(freeaddrinfo)
469   fi
472 AC_NEED_PROTO([#include <stdlib.h>], setenv)
473 AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
474 AC_NEED_PROTO([#include <unistd.h>], gethostname)
475 AC_NEED_PROTO([#include <unistd.h>], mkstemp)
476 AC_NEED_PROTO([#include <unistd.h>], getusershell)
477 AC_NEED_PROTO([#include <unistd.h>], daemon)
478 AC_NEED_PROTO([
479 #ifdef HAVE_SYS_TYPES_H
480 #include <sys/types.h>
481 #endif
482 #ifdef HAVE_SYS_SOCKET_H
483 #include <sys/socket.h>
484 #endif
485 #ifdef HAVE_NETINET_IN_H
486 #include <netinet/in.h>
487 #endif
488 #ifdef HAVE_ARPA_INET_H
489 #include <arpa/inet.h>
490 #endif
491 #ifdef HAVE_NETDB_H
492 #include <netdb.h>
493 #endif
494 #ifdef HAVE_UNISTD_H
495 #include <unistd.h>
496 #endif],
497 iruserok)
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 inet_aton)
514 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
516 AC_REQUIRE([rk_BROKEN_REALLOC])dnl
518 dnl AC_KRB_FUNC_GETCWD_BROKEN
520 dnl strerror_r is great fun, on linux it exists before sus catched up,
521 dnl so the return type is diffrent, lets check for both
523 AC_PROTO_COMPAT([
524 #include <stdio.h>
525 #include <string.h>
527 strerror_r, int strerror_r(int, char *, size_t))
529 AC_CHECK_FUNC([strerror_r],
530     [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
531         [Define if you have the function strerror_r.])])
534 dnl Checks for prototypes and declarations
537 AC_PROTO_COMPAT([
538 #ifdef HAVE_SYS_TYPES_H
539 #include <sys/types.h>
540 #endif
541 #ifdef HAVE_SYS_SOCKET_H
542 #include <sys/socket.h>
543 #endif
544 #ifdef HAVE_NETINET_IN_H
545 #include <netinet/in.h>
546 #endif
547 #ifdef HAVE_ARPA_INET_H
548 #include <arpa/inet.h>
549 #endif
550 #ifdef HAVE_NETDB_H
551 #include <netdb.h>
552 #endif
554 gethostbyname, struct hostent *gethostbyname(const char *))
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 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
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 getservbyname, struct servent *getservbyname(const char *, const char *))
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
602 getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
604 AC_PROTO_COMPAT([
605 #ifdef HAVE_SYSLOG_H
606 #include <syslog.h>
607 #endif
609 openlog, void openlog(const char *, int, int))
611 AC_NEED_PROTO([
612 #ifdef HAVE_CRYPT_H
613 #include <crypt.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 #include <unistd.h>
617 #endif
619 crypt)
621 dnl variables
623 rk_CHECK_VAR(h_errno, 
624 [#ifdef HAVE_SYS_TYPES_H
625 #include <sys/types.h>
626 #endif
627 #ifdef HAVE_NETDB_H
628 #include <netdb.h>
629 #endif
630 #ifdef HAVE_WS2TCPIP_H
631 #include <ws2tcpip.h>
632 #endif
635 rk_CHECK_VAR(h_errlist, 
636 [#ifdef HAVE_NETDB_H
637 #include <netdb.h>
638 #endif
639 #ifdef HAVE_WS2TCPIP_H
640 #include <ws2tcpip.h>
641 #endif])
643 rk_CHECK_VAR(h_nerr, 
644 [#ifdef HAVE_NETDB_H
645 #include <netdb.h>
646 #endif
647 #ifdef HAVE_WS2TCPIP_H
648 #include <ws2tcpip.h>
649 #endif])
651 rk_CHECK_VAR([__progname], 
652 [#ifdef HAVE_ERR_H
653 #include <err.h>
654 #endif])
656 AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[
657 #include <stdlib.h>
658 #ifdef HAVE_UNISTD_H
659 #include <unistd.h>
660 #endif])
663 dnl Check for fields in struct tm
666 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
667 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
670 dnl or do we have a variable `timezone' ?
673 rk_CHECK_VAR(timezone,[#include <time.h>])
674 rk_CHECK_VAR(altzone,[#include <time.h>])
676 AC_HAVE_TYPE([sa_family_t],[
677 #include <sys/types.h>
678 #ifdef HAVE_SYS_SOCKET_H
679 #include <sys/socket.h>
680 #endif
681 #ifdef HAVE_WS2TCPIP_H
682 #include <ws2tcpip.h>
683 #endif])
684 AC_HAVE_TYPE([socklen_t],[
685 #include <sys/types.h>
686 #ifdef HAVE_SYS_SOCKET_H
687 #include <sys/socket.h>
688 #endif
689 #ifdef HAVE_WS2TCPIP_H
690 #include <ws2tcpip.h>
691 #endif])
692 AC_HAVE_TYPE([struct sockaddr], [
693 #include <sys/types.h>
694 #ifdef HAVE_SYS_SOCKET_H
695 #include <sys/socket.h>
696 #endif
697 #ifdef HAVE_WS2TCPIP_H
698 #include <ws2tcpip.h>
699 #endif])
700 AC_HAVE_TYPE([struct sockaddr_storage], [
701 #include <sys/types.h>
702 #ifdef HAVE_SYS_SOCKET_H
703 #include <sys/socket.h>
704 #endif
705 #ifdef HAVE_WS2TCPIP_H
706 #include <ws2tcpip.h>
707 #endif])
708 AC_HAVE_TYPE([struct addrinfo], [
709 #include <sys/types.h>
710 #ifdef HAVE_NETDB_H
711 #include <netdb.h>
712 #endif
713 #ifdef HAVE_WS2TCPIP_H
714 #include <ws2tcpip.h>
715 #endif])
716 AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
717 AC_HAVE_TYPE([struct iovec],[
718 #include <sys/types.h>
719 #include <sys/uio.h>
721 AC_HAVE_TYPE([struct msghdr],[
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])
731 dnl Check for struct winsize
734 AC_KRB_STRUCT_WINSIZE
737 dnl Check for struct spwd
740 AC_KRB_STRUCT_SPWD
743 # Check if we want samba's socket wrapper
746 samba_SOCKET_WRAPPER
748 dnl won't work with automake
749 dnl moved to AC_OUTPUT in configure.in
750 dnl AC_CONFIG_FILES($1/Makefile)
752 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
754 AC_SUBST(DIR_roken)dnl
755 AC_SUBST(LIB_roken)dnl
756 AC_SUBST(INCLUDES_roken)dnl