AC_INIT(ftpd.c)
AC_PREFIX_DEFAULT(/usr/local/v6)

AC_PROG_CC
AC_PROG_CPP
AC_PROG_YACC
AC_PROG_LN_S
AC_PROG_INSTALL
INSTALL_LIB="\${INSTALL_DATA}"
AC_SUBST(INSTALL_LIB)
INSTALL_DIR="\${INSTALL} -d"
AC_SUBST(INSTALL_DIR)

AC_CHECK_LIB(crypt, crypt)

AC_CHECK_HEADER(shadow.h,
	CFLAGS="$CFLAGS -DUSE_SHADOW=1",
	CFLAGS="$CFLAGS -DUSE_SHADOW=0")

AC_REPLACE_FUNCS(daemon setproctitle isexpired vis)

CFLAGS="$CFLAGS -DHASSETPROCTITLE -I."

AC_OUTPUT(Makefile)
