1 dnl $Id: tcp-wrappers.m4,v 1.1.4.1 2003-09-09 16:42:22 didg Exp $
3 AC_DEFUN([NETATALK_TCP_WRAPPERS], [
5 AC_ARG_ENABLE(tcp-wrappers,
6 [ --disable-tcp-wrappers disable TCP wrappers support],
8 if test "x$enableval" == "xno"; then
17 if test "x$check" != "xno"; then
18 AC_CHECK_LIB(wrap, tcpd_warn, enable=yes)
20 if test "x$enable" == "xyes"; then
21 AC_CHECK_HEADERS(tcpd.h)
22 if test "x$ac_cv_header_tcpd_h" != "xyes"; then
27 AC_MSG_CHECKING([whether to enable the TCP wrappers])
28 if test "x$enable" == "xyes"; then
29 AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
33 if test "x$check" == "xyes"; then
34 AC_MSG_ERROR([libwrap not found])