Die if lastlog not found
This commit is contained in:
parent
01c114cc80
commit
36fb30f6dd
|
@ -158,11 +158,15 @@ dnl Look for lastlog location
|
||||||
AC_MSG_CHECKING([location of lastlog file])
|
AC_MSG_CHECKING([location of lastlog file])
|
||||||
for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do
|
for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do
|
||||||
if test -f $lastlog ; then
|
if test -f $lastlog ; then
|
||||||
|
gotlastlog="yes"
|
||||||
AC_MSG_RESULT($lastlog)
|
AC_MSG_RESULT($lastlog)
|
||||||
AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog")
|
AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog")
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if test -z "$gotlastlog" ; then
|
||||||
|
AC_MSG_ERROR([*** Cannot find lastlog ***])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether libc defines __progname])
|
AC_MSG_CHECKING([whether libc defines __progname])
|
||||||
AC_TRY_LINK([],
|
AC_TRY_LINK([],
|
||||||
|
|
Loading…
Reference in New Issue