1 dnl $Id: tcp-wrappers.m4,v 1.1.4.3 2004-01-03 01:49:54 bfernhomberg 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 netatalk_cv_tcpwrap=no
28 AC_MSG_CHECKING([whether to enable the TCP wrappers])
29 if test "x$enable" = "xyes"; then
30 AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
32 netatalk_cv_tcpwrap=yes
35 if test "x$check" = "xyes"; then
36 AC_MSG_ERROR([libwrap not found])