1 dnl $Id: tcp-wrappers.m4,v 1.1 2003-06-12 23:15:07 srittau 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)
21 AC_MSG_CHECKING([whether to enable the TCP wrappers])
22 if test "x$enable" == "xyes"; then
23 AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
27 if test "x$check" == "xyes"; then
28 AC_MSG_ERROR([libwrap not found])