Use utempter to update utmp if it's around for configure, from madmaverick9 at

roxxmail dot eu.
This commit is contained in:
Nicholas Marriott
2014-02-24 23:07:22 +00:00
parent 488583dc8d
commit 4273c1b80e
4 changed files with 25 additions and 0 deletions

View File

@ -144,6 +144,13 @@ if test "x$found_curses" = xno; then
AC_MSG_ERROR("curses not found")
fi
# Look for utempter
AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
if test "x$have_utempter" = xyes; then
AC_DEFINE(HAVE_UTEMPTER)
LIBS="$LIBS -lutempter"
fi
# Check for b64_ntop.
AC_MSG_CHECKING(for b64_ntop)
AC_TRY_LINK(