1 dnl ######################################################################
2 dnl check if libwrap (if exists), requires the caller to define the variables
3 dnl deny_severity and allow_severity.
4 AC_DEFUN([AMU_CHECK_LIBWRAP_SEVERITY],
6 AC_CACHE_CHECK([if libwrap wants caller to define allow_severity and deny_severity], ac_cv_need_libwrap_severity_vars, [
7 # save, then reset $LIBS back to original value
10 # run program one without defining our own severity variables
17 ],[ac_tmp_val1="yes"],[ac_tmp_val1="no"])
18 # run program two with defining our own severity variables
21 int deny_severity, allow_severity, rfc931_timeout;
26 ],[ac_tmp_val2="yes"],[ac_tmp_val2="no"])
27 # restore original value of $LIBS
29 # now decide what to do
30 if test "$ac_tmp_val1" = "no" && test "$ac_tmp_val2" = "yes"
32 ac_cv_need_libwrap_severity_vars="yes"
34 ac_cv_need_libwrap_severity_vars="no"
37 if test "$ac_cv_need_libwrap_severity_vars" = "yes"
39 AC_DEFINE(NEED_LIBWRAP_SEVERITY_VARIABLES)