]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_with_libdecaf.m4
Merge pull request #7908 from omoerbeek/rec-4.1.14-changelog
[thirdparty/pdns.git] / m4 / pdns_with_libdecaf.m4
1 AC_DEFUN([PDNS_WITH_LIBDECAF],[
2 AC_MSG_CHECKING([whether we will be linking in libdecaf])
3 AC_ARG_WITH([libdecaf],
4 [AS_HELP_STRING([--with-libdecaf],[use libdecaf @<:@default=no@:>@])],
5 [with_libdecaf=$withval],
6 [with_libdecaf=no]
7 )
8 AC_MSG_RESULT([$with_libdecaf])
9
10 AM_CONDITIONAL([LIBDECAF],[test "x$with_libdecaf" != "xno"])
11
12 AS_IF([test "x$with_libdecaf" != "xno"],[
13 save_LIBS=$LIBS
14 LIBS=""
15 AC_SEARCH_LIBS([decaf_ed25519_sign],[decaf],[
16 AC_DEFINE([HAVE_LIBDECAF],[1],[Define to 1 if you have libdecaf])
17 AC_SUBST([LIBDECAF_LIBS],["$LIBS"])
18 ],[
19 AC_MSG_ERROR([Could not find libdecaf])
20 ])
21 LIBS="$save_LIBS"
22 ])
23 ])