]> git.ipfire.org Git - thirdparty/pdns.git/blame - m4/pdns_enable_gss_tsig.m4
Merge pull request #7523 from mind04/non-dnssec
[thirdparty/pdns.git] / m4 / pdns_enable_gss_tsig.m4
CommitLineData
e201cdf6
AT
1AC_DEFUN([PDNS_ENABLE_GSS_TSIG],[
2 AC_MSG_CHECKING([whether to enable experimental GSS-TSIG support])
3 AC_ARG_ENABLE([experimental_gss_tsig],
4 AS_HELP_STRING([--enable-experimental-gss-tsig],
5 [enable experimental GSS-TSIG support @<:@default=no@:>@]
6 ),
7 [enable_experimental_gss_tsig=$enableval],
8 [enable_experimental_gss_tsig=no]
9 )
10
11 AC_MSG_RESULT([$enable_experimental_gss_tsig])
12
13 AM_CONDITIONAL([GSS_TSIG],[test "x$enable_experimental_gss_tsig" != "xno"])
14 AC_SUBST(GSS_TSIG)
15 AS_IF([test "x$enable_experimental_gss_tsig" != "xno"],
16 [PKG_CHECK_MODULES([GSS], [krb5 krb5-gssapi gss],
17 [
18 AC_DEFINE([ENABLE_GSS_TSIG], [1], [Define to 1 if you want to enable GSS-TSIG support])
19 GSS_TSIG=yes
20 ],
21 [AC_MSG_ERROR([Required libraries for GSS-TSIG not found])]
22 )],
23 [GSS_TSIG=no])
24])