From 18e91e78e558081eb867d717e9e7dd0f6d507af9 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sun, 15 Sep 2013 16:10:26 +0200 Subject: [PATCH] configure.ac: check for crypto++ headers --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index ae07423..efc38b5 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,11 @@ AC_PROG_INSTALL AC_CHECK_HEADERS([gmp.h], , AC_MSG_ERROR([Codecrypt requires gmp.h])) AC_CHECK_LIB(gmp, __gmpz_init, , AC_MSG_ERROR([Codecrypt requires libgmp])) +#check for presence of Crypto++ +AC_LANG_PUSH([C++]) +AC_CHECK_HEADERS([crypto++/sha.h crypto++/tiger.h crypto++/ripemd.h], , AC_MSG_ERROR([Codecrypt requires Crypto++])) +AC_LANG_POP([C++]) + #check for standard functions AC_CHECK_FUNCS([memset mkdir], , AC_MSG_ERROR([Required function missing]))