… | |
… | |
15 | revoke \ |
15 | revoke \ |
16 | _getpty \ |
16 | _getpty \ |
17 | getpt \ |
17 | getpt \ |
18 | posix_openpt \ |
18 | posix_openpt \ |
19 | isastream \ |
19 | isastream \ |
|
|
20 | setuid \ |
|
|
21 | seteuid \ |
|
|
22 | setreuid \ |
|
|
23 | setresuid \ |
20 | ) |
24 | ) |
21 | |
25 | |
22 | have_clone=no |
26 | have_clone=no |
23 | |
27 | |
24 | AC_MSG_CHECKING(for /dev/ptym/clone) |
28 | AC_MSG_CHECKING(for /dev/ptym/clone) |
… | |
… | |
74 | fi |
78 | fi |
75 | ]) |
79 | ]) |
76 | |
80 | |
77 | AC_DEFUN([UTMP_CHECK], |
81 | AC_DEFUN([UTMP_CHECK], |
78 | [ |
82 | [ |
|
|
83 | support_utmp=yes |
|
|
84 | support_wtmp=yes |
|
|
85 | support_lastlog=yes |
|
|
86 | |
79 | AC_ARG_ENABLE(utmp, |
87 | AC_ARG_ENABLE(utmp, |
80 | [ --enable-utmp enable utmp (utmpx) support], |
88 | [ --enable-utmp enable utmp (utmpx) support], |
81 | [if test x$enableval = xyes -o x$enableval = xno; then |
89 | [if test x$enableval = xyes -o x$enableval = xno; then |
82 | support_utmp=$enableval |
90 | support_utmp=$enableval |
83 | fi]) |
91 | fi]) |
… | |
… | |
428 | }]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl |
436 | }]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl |
429 | AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])]) |
437 | AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])]) |
430 | if test x$path_lastlogx != x; then |
438 | if test x$path_lastlogx != x; then |
431 | AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx) |
439 | AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx) |
432 | fi |
440 | fi |
433 | |
|
|
434 | if test x$support_utmp != xyes; then |
|
|
435 | echo " utmp support: disabled" |
|
|
436 | echo |
|
|
437 | else |
|
|
438 | echo " utmp support: enabled |
|
|
439 | utmp file: $path_utmp |
|
|
440 | utmpx file: $path_utmpx |
|
|
441 | wtmp file: $path_wtmp |
|
|
442 | wtmpx file: $path_wtmpx |
|
|
443 | lastlog file: $path_lastlog |
|
|
444 | lastlogx file: $path_lastlogx" |
|
|
445 | fi |
|
|
446 | ]) |
441 | ]) |
447 | |
442 | |
448 | AC_DEFUN([SCM_RIGHTS_CHECK], |
443 | AC_DEFUN([SCM_RIGHTS_CHECK], |
449 | [ |
444 | [ |
450 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds, |
445 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds, |
451 | [AC_TRY_LINK([ |
446 | [AC_TRY_LINK([ |
452 | #include <cstddef> // broken bsds (is that redundant) need this |
447 | #include <cstddef> // broken bsds (is that redundant?) need this |
453 | #include <sys/types.h> |
448 | #include <sys/types.h> |
454 | #include <sys/socket.h> |
449 | #include <sys/socket.h> |
455 | #include <sys/uio.h> |
450 | #include <sys/uio.h> |
456 | ],[ |
451 | ],[ |
457 | { |
452 | { |