diff options
author | Ed Schouten <ed@80386.nl> | 2010-01-16 18:33:53 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2010-01-16 11:05:28 -0800 |
commit | 9792646873ac0e597cc65ef4a056444fd8f9a7fd (patch) | |
tree | 48ed4b0fe321d8f231d2323c182186c044ac3128 /configure.ac | |
parent | 9ca078f8ffc5ab0c4d0f58be26e885a7ad0b8f39 (diff) |
Allow sessreg to be built without <utmp.h>.
As of 9.0, FreeBSD will only support <utmpx.h>. It only implements the
POSIX interface with minor extensions. There is no need to write to
wtmp and lastlog separately, because this is already done by
pututxline(). Add additional checks to configure.ac to search for the
presence of utmpxname() and updwtmpx().
Signed-off-by: Ed Schouten <ed@80386.nl>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6e2f470..be1b4b4 100644 --- a/configure.ac +++ b/configure.ac @@ -39,13 +39,14 @@ AC_PROG_INSTALL XORG_DEFAULT_OPTIONS -AC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h]) +AC_CHECK_HEADERS([lastlog.h utmp.h utmpx.h sys/param.h]) AC_CHECK_MEMBER([struct utmpx.ut_syslen], HAVE_SYSLEN=1, HAVE_SYSLEN=0, [#include <utmpx.h>]) AC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN, [utmpx structure includes ut_syslen field]) +AC_CHECK_FUNCS([updwtmpx utmpxname]) AC_SYS_LARGEFILE |