diff options
author | hpa <hpa> | 2001-04-23 19:30:26 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-04-23 19:30:26 +0000 |
commit | 772b990b91604fda561d3e6581e288873dd86988 (patch) | |
tree | bcbc1926b038add90e3c51ecc39b530935ffc441 /aclocal.m4 | |
parent | 7eb7968b7450687afb605fdfe97c15fa795797a5 (diff) | |
download | tftp-hpa-772b990b91604fda561d3e6581e288873dd86988.tar.gz |
Allow compilation without tcpwrappers.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -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)]) |