]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_enable_ipcipher.m4
Merge pull request #11062 from Habbie/docs-filterforward-4.5
[thirdparty/pdns.git] / m4 / pdns_enable_ipcipher.m4
1 AC_DEFUN([PDNS_ENABLE_IPCIPHER], [
2 AC_MSG_CHECKING([whether to enable ipcipher support])
3 HAVE_IPCIPHER=0
4 AC_ARG_ENABLE([ipcipher],
5 AS_HELP_STRING([--enable-ipcipher], [enable ipcipher support (requires libcrypto) @<:@default=auto@:>@]),
6 [enable_ipcipher=$enableval],
7 [enable_ipcipher=auto]
8 )
9 AC_MSG_RESULT([$enable_ipcipher])
10
11 AS_IF([test "x$enable_ipcipher" != "xno"], [
12 AS_IF([test "x$enable_ipcipher" = "xyes" -o "x$enable_ipcipher" = "xauto"], [
13 AM_COND_IF([HAVE_LIBCRYPTO], [
14 AC_DEFINE([HAVE_IPCIPHER], [1], [Define to 1 if you enable ipcipher support])
15 [HAVE_IPCIPHER=1]
16 ])
17 ])
18 ])
19 AM_CONDITIONAL([IPCIPHER], [test "x$HAVE_IPCIPHER" != "x0"])
20
21 AS_IF([test "x$enable_ipcipher" = "xyes"], [
22 AS_IF([test x"$HAVE_IPCIPHER" = "x0"], [
23 AC_MSG_ERROR([ipcipher support requested but libcrypto is not available])
24 ])
25 ])
26 ])