dnl Process this file with autoconf to produce a configure script.
AC_INIT(cleanup.c)

test -z "$lsbindir" && lsbindir='${sbindir}'
AC_SUBST(lsbindir)

AC_PROG_CC
AC_PROG_INSTALL

AC_CHECK_FUNCS(getutxent)

AC_CANONICAL_HOST
case $host_os in
solaris*)
	AC_DEFINE(SOLARIS)
	AC_CHECK_LIB(elf, nlist)
	AC_CHECK_LIB(kvm, kvm_read)
	;;
irix*)
	AC_DEFINE(IRIX)
	;;
netbsd*)
	AC_DEFINE(NETBSD)
	AC_CHECK_LIB(kvm, kvm_open)
	;;
linux*)
	AC_DEFINE(LINUX)
	;;
osf*)
	AC_DEFINE(OSF)
	;;
esac

AC_MSG_CHECKING(for /etc/master.passwd)
if test -f /etc/master.passwd; then
	AC_DEFINE(HAVE_MASTER_PASSWD)
	AC_MSG_RESULT(yes)
else
	AC_MSG_RESULT(no)
fi

ATHENA_AFS
ATHENA_KRB4
ATHENA_HESIOD_REQUIRED

AC_OUTPUT(Makefile)
