X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Famanda%2Fbsdtcp-security.m4;h=10192e1dfd6bcfe868f8dfb77ea78234aac83634;hb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;hp=044415b8ea1386565451c1728231faac21293d2c;hpb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;p=debian%2Famanda diff --git a/config/amanda/bsdtcp-security.m4 b/config/amanda/bsdtcp-security.m4 index 044415b..10192e1 100644 --- a/config/amanda/bsdtcp-security.m4 +++ b/config/amanda/bsdtcp-security.m4 @@ -7,18 +7,18 @@ # Handle configuration for BSDTCP security, implementing the # --with-bsdtcp-security option. # -# Defines BSDTCP_SECURITY, and sets AM_CONDITIONAL WANT_BSDTCP_SECURITY, -# if the user has selected this mechanism. +# Defines and substitutes BSDTCP_SECURITY, and sets AM_CONDITIONAL +# WANT_BSDTCP_SECURITY, if the user has selected this mechanism. # AC_DEFUN([AMANDA_BSDTCP_SECURITY], [ - BSDTCP_SECURITY="no" + BSDTCP_SECURITY="yes" AC_ARG_WITH(bsdtcp-security, AS_HELP_STRING([--with-bsdtcp-security], [include BSDTCP authentication]), [ case "$withval" in - n | no) : ;; + n | no) BSDTCP_SECURITY=no ;; y | ye | yes) BSDTCP_SECURITY=yes ;; *) AC_MSG_ERROR([*** You must not supply an argument to --with-bsdtcp-security.]) ;; @@ -30,5 +30,7 @@ AC_DEFUN([AMANDA_BSDTCP_SECURITY], AC_DEFINE(BSDTCP_SECURITY,1, [Define if BSDTCP transport should be enabled.]) fi + AM_CONDITIONAL(WANT_BSDTCP_SECURITY, test x"$BSDTCP_SECURITY" = x"yes") + AC_SUBST(BSDTCP_SECURITY) ])