From 192388b2c5dfe5df6f0d2654a6705778a6c9d90c Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 8 Sep 2020 20:44:56 +0930 Subject: Add check for tools needed to build --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 038810b..c23cd49 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,12 @@ AC_CHECK_LIB([mbedtls], [mbedtls_ssl_init], [], [AC_MSG_ERROR([mbedtls not found AC_CHECK_LIB([mbedx509], [mbedtls_x509_crt_parse], [], [AC_MSG_ERROR([mbedtls not found])]) AC_CHECK_LIB([pthsem], [pth_init], [], [AC_MSG_ERROR([pthsem not found])]) +AC_CHECK_PROG(TOOL_XXD, [xxd], [yes]) +AS_IF([test x"$TOOL_XXD" != x"yes"], [AC_MSG_ERROR([xxd not found])]) +AC_CHECK_PROG(TOOL_SED, [sed], [yes]) +AS_IF([test x"$TOOL_SED" != x"yes"], [AC_MSG_ERROR([sed not found])]) + + AC_DEFINE_UNQUOTED( [PRNE_BUILD_ENTROPY], [{ $(xxd -l16 -ps /dev/urandom | sed -E s/\(\\S{2}\)/0x\&,\ /g | sed -E s/,\ \$//) }]) -- cgit