]>
Commit | Line | Data |
---|---|---|
ee89ca58 | 1 | AC_DEFUN([PDNS_WITH_LIBDECAF],[ |
21a8834a | 2 | AC_MSG_CHECKING([whether we will be linking in libdecaf]) |
ee89ca58 JS |
3 | AC_ARG_WITH([libdecaf], |
4 | [AS_HELP_STRING([--with-libdecaf],[use libdecaf @<:@default=no@:>@])], | |
5 | [with_libdecaf=$withval], | |
6 | [with_libdecaf=no] | |
21a8834a | 7 | ) |
ee89ca58 | 8 | AC_MSG_RESULT([$with_libdecaf]) |
21a8834a | 9 | |
ee89ca58 | 10 | AM_CONDITIONAL([LIBDECAF],[test "x$with_libdecaf" != "xno"]) |
21a8834a | 11 | |
ee89ca58 | 12 | AS_IF([test "x$with_libdecaf" != "xno"],[ |
21a8834a KM |
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 | ],[ | |
0cb6df8a KM |
19 | AC_MSG_ERROR([Could not find libdecaf]) |
20 | ]) | |
21a8834a | 21 | LIBS="$save_LIBS" |
0cb6df8a | 22 | ]) |
21a8834a | 23 | ]) |