ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/ptytty.m4
(Generate patch)

Comparing rxvt-unicode/ptytty.m4 (file contents):
Revision 1.3 by ayin, Sun Jan 22 17:05:15 2006 UTC vs.
Revision 1.8 by ayin, Sun Sep 10 14:33:41 2006 UTC

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
22have_clone=no 26have_clone=no
23 27
24AC_MSG_CHECKING(for /dev/ptym/clone) 28AC_MSG_CHECKING(for /dev/ptym/clone)
74fi 78fi
75]) 79])
76 80
77AC_DEFUN([UTMP_CHECK], 81AC_DEFUN([UTMP_CHECK],
78[ 82[
83support_utmp=yes
84support_wtmp=yes
85support_lastlog=yes
86
87AC_ARG_ENABLE(utmp,
88 [ --enable-utmp enable utmp (utmpx) support],
89 [if test x$enableval = xyes -o x$enableval = xno; then
90 support_utmp=$enableval
91 fi])
92
93AC_ARG_ENABLE(wtmp,
94 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)],
95 [if test x$enableval = xyes -o x$enableval = xno; then
96 support_wtmp=$enableval
97 fi])
98
99AC_ARG_ENABLE(lastlog,
100 [ --enable-lastlog enable lastlog support (requires --enable-utmp)],
101 [if test x$enableval = xyes -o x$enableval = xno; then
102 support_lastlog=$enableval
103 fi])
104
105if test x$support_utmp = xyes; then
106 AC_DEFINE(UTMP_SUPPORT, 1, Define if you want to have utmp/utmpx support)
107fi
108if test x$support_wtmp = xyes; then
109 AC_DEFINE(WTMP_SUPPORT, 1, Define if you want to have wtmp support when utmp/utmpx is enabled)
110fi
111if test x$support_lastlog = xyes; then
112 AC_DEFINE(LASTLOG_SUPPORT, 1, Define if you want to have lastlog support when utmp/utmpx is enabled)
113fi
114
79AC_CHECK_FUNCS( \ 115AC_CHECK_FUNCS( \
80 ttyslot \ 116 ttyslot \
81 updwtmp \ 117 updwtmp \
82 updwtmpx \ 118 updwtmpx \
83) 119)
406 442
407AC_DEFUN([SCM_RIGHTS_CHECK], 443AC_DEFUN([SCM_RIGHTS_CHECK],
408[ 444[
409AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds, 445AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds,
410[AC_TRY_LINK([ 446[AC_TRY_LINK([
411#include <cstddef> // broken bsds (is that redundant) need this 447#include <cstddef> // broken bsds (is that redundant?) need this
412#include <sys/types.h> 448#include <sys/types.h>
413#include <sys/socket.h> 449#include <sys/socket.h>
414#include <sys/uio.h> 450#include <sys/uio.h>
415],[ 451],[
416{ 452{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines