1 AC_DEFUN([ACX_BOTAN_AES_GCM],[
2 AC_MSG_CHECKING(for Botan AES GCM support)
7 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
8 LIBS="$CRYPTO_LIBS $LIBS"
11 AC_CACHE_VAL([acx_cv_lib_botan_aes_gcm_support],[
12 acx_cv_lib_botan_aes_gcm_support=no
15 #include <botan/botan.h>
16 #include <botan/version.h>
19 using namespace Botan;
21 #if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(2,0,0)
24 #error "Botan too old"
29 AC_MSG_RESULT([Found AES GCM])
30 acx_cv_lib_botan_aes_gcm_support=yes
32 AC_MSG_RESULT([Cannot find AES GCM support, upgrade to Botan >= v2.0.0])
36 if test "x$acx_cv_lib_botan_aes_gcm_support" = xyes; then
37 AC_DEFINE([WITH_AES_GCM], [1],
38 [Compile with AES GCM])
41 CPPFLAGS=$tmp_CPPFLAGS