summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorhpa <hpa>2001-04-23 19:30:26 +0000
committerhpa <hpa>2001-04-23 19:30:26 +0000
commit772b990b91604fda561d3e6581e288873dd86988 (patch)
treebcbc1926b038add90e3c51ecc39b530935ffc441 /aclocal.m4
parent7eb7968b7450687afb605fdfe97c15fa795797a5 (diff)
downloadtftp-hpa-772b990b91604fda561d3e6581e288873dd86988.tar.gz
Allow compilation without tcpwrappers.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m424
1 files changed, 21 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 60d9ed4..eebdbdb 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -71,9 +71,7 @@ int allow_severity = 0;
int deny_severity = 0;
],
[
- struct request_info ri;
-
- request_init(&ri, 0);
+ hosts_ctl("sample_daemon", STRING_UNKNOWN, STRING_UNKNOWN, STRING_UNKNOWN);
],
[
AC_DEFINE(HAVE_TCPWRAPPERS)
@@ -83,3 +81,23 @@ int deny_severity = 0;
AC_MSG_RESULT([no])
])])
+dnl ------------------------------------------------------------------------
+dnl PA_WITH_BOOL
+dnl
+dnl PA_WITH_BOOL(option, default, help, enable, disable)
+dnl
+dnl Provides a more convenient way to specify --with-option and
+dnl --without-option, with a default. default should be either 0 or 1.
+dnl ------------------------------------------------------------------------
+AC_DEFUN(PA_WITH_BOOL,
+[AC_ARG_WITH([$1], [$3],
+if test ["$withval"] != no; then
+[$4]
+else
+[$5]
+fi,
+if test [$2] -ne 0; then
+[$4]
+else
+[$5]
+fi)])