891d50f5be8fb33fd7cfa125770c831b149243b0
[debian/amanda] / config / amanda / rsh-security.m4
1 # SYNOPSIS
2 #
3 #   AMANDA_RSH_SECURITY
4 #
5 # OVERVIEW
6 #
7 #   Handle configuration for RSH security, implementing the --with-rsh-security
8 #   option and checking for the relevant programs and options.
9 #
10 AC_DEFUN([AMANDA_RSH_SECURITY],
11 [
12     RSH_SECURITY=no
13     AC_ARG_WITH(rsh-security,
14         AS_HELP_STRING([--with-rsh-security], 
15                 [include RSH authentication]),
16         [
17             case "$withval" in
18                 n | no) : ;;
19                 y |  ye | yes) RSH_SECURITY=yes ;;
20                 *) AC_MSG_ERROR([*** You must not supply an argument to --with-rsh-security.])
21               ;;
22             esac
23         ],
24     )
25
26     if test "x$RSH_SECURITY" = "xyes"; then
27         AC_DEFINE(RSH_SECURITY,1,
28                 [Define if RSH transport should be enabled. ])
29     fi
30     AM_CONDITIONAL(WANT_RSH_SECURITY, test x"$RSH_SECURITY" = x"yes")
31 ])
32