blob: d15859ab63fd573336c9462d6c9032774bdd9ecb [file] [log] [blame]
NingSun0c89b3c2018-02-08 08:34:03 -08001AC_DEFUN([ACX_BOTAN_GNUMP],[
2 tmp_CPPFLAGS=$CPPFLAGS
3 tmp_LIBS=$LIBS
4
5 CPPFLAGS="$CPPFLAGS $BOTAN_INCLUDES"
6 LIBS="$LIBS $BOTAN_LIBS"
7
8 AC_LANG_PUSH([C++])
9 AC_LINK_IFELSE(
10 [AC_LANG_PROGRAM(
11 [#include <botan/build.h>],
12 [#ifndef BOTAN_HAS_ENGINE_GNU_MP
13 #error "No GNU MP support";
14 #endif])],
15 [AC_MSG_RESULT([checking for Botan GNU MP support... yes])],
16 [AC_MSG_RESULT([checking for Botan GNU MP support... no])
17 AC_MSG_WARN([
18====================================================
19Botan has not been built with GNU MP (--with-gnump).
20This will give negative impact on the performance.
21====================================================])]
22 )
23 AC_LANG_POP([C++])
24
25 CPPFLAGS=$tmp_CPPFLAGS
26 LIBS=$tmp_LIBS
27])