dnl Process this file with autoconf to produce a configure script. AC_INIT(inetd.c) test -z "$lsbindir" && lsbindir='${sbindir}' AC_SUBST(lsbindir) AC_PROG_CC AC_PROG_INSTALL AC_CHECK_HEADERS(rpc/rpcent.h) dnl This is based on AC_CHECK_TYPE, but checks in addition dnl to the usual places. AC_HEADER_STDC AC_MSG_CHECKING(for rlim_t) AC_CACHE_VAL(ac_cv_type_rlim_t, [AC_EGREP_CPP(dnl changequote(<<,>>)dnl <>dnl changequote([,]), [#include #include #if STDC_HEADERS #include #include #endif], ac_cv_type_rlim_t=yes, ac_cv_type_rlim_t=no)])dnl AC_MSG_RESULT($ac_cv_type_rlim_t) if test $ac_cv_type_rlim_t = no; then AC_DEFINE(rlim_t, long) fi AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname)) AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket)) AC_MSG_CHECKING(for libwrap) save_LIBS="$LIBS" LIBS="-L$ATHTOOLROOT/usr/athena/lib -lwrap $LIBS" AC_TRY_LINK( [int allow_severity, deny_severity;], [hosts_access();], [AC_MSG_RESULT(yes) AC_DEFINE(LIBWRAP) WRAP_LIB="-L$ATHTOOLROOT/usr/athena/lib -lwrap" WRAP_INCLUDES=-I$ATHTOOLROOT/usr/athena/include], AC_MSG_RESULT(no)) LIBS="$save_LIBS" AC_SUBST(WRAP_LIB) AC_SUBST(WRAP_INCLUDES) AC_OUTPUT(Makefile)