aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 28 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d7d5700..1d79f64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,10 +13,13 @@ AC_CHECK_LIB(rt, clock_gettime)
AX_PTHREAD([],
[AC_MSG_ERROR([POSIX threads support is required, but not available])])
+#
+# GnuTLS
+#
gnutls_status=probe
AC_ARG_WITH([gnutls],
- [AC_HELP_STRING([--without-gnutls],
- [do not use the GNU TLS library])],
+ [AC_HELP_STRING([--with-gnutls],
+ [use the GNU TLS library (default)])],
[case "$withval" in
yes|no) gnutls_status=$withval;;
*) AC_MSG_ERROR([bad value for --with-gnutls])
@@ -34,5 +37,28 @@ fi
AC_SUBST([LIBGNUTLS_CFLAGS])
AC_SUBST([LIBGNUTLS_LIBS])
+#
+# TCP wrappers
+#
+# **********************
+# TCP wrappers
+# **********************
+AC_ARG_WITH(tcp-wrappers,
+ AC_HELP_STRING([--with-tcp-wrappers],
+ [compile with TCP wrappers support (default)]),
+ [status_tcpwrap=${withval}],
+ [status_tcpwrap=yes])
+
+if test "$status_tcpwrap" = yes; then
+ AC_CHECK_LIB(nsl, main)
+ AC_CHECK_LIB(wrap, main,, [status_tcpwrap=no])
+ if test "$status_tcpwrap" = yes; then
+ AC_CHECK_HEADERS(tcpd.h,,[status_tcpwrap=no])
+ fi
+fi
+if test "$status_tcpwrap" = yes; then
+ AC_DEFINE([WITH_LIBWRAP],1,[Defined if compiling with libwrap])
+fi
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

Return to:

Send suggestions and report system problems to the System administrator.