"make example" builds example.c if libgcrypt present

using AM_PATH_LIBGCRYPT to check for libgcrypt

removed AC_MSG_RESULT in configure.ac; added phony "example" target in Makefile.am if libcrypt not found
This commit is contained in:
Geremia
2016-02-27 23:56:29 -07:00
parent d2dde7a9ed
commit d0a9367017
3 changed files with 27 additions and 1 deletions

3
README
View File

@@ -5,7 +5,8 @@ Example dependencies:
Jansson 2.1 (to read JSON from stdin)
libgcrypt (for SHA256)
For usage, check out example.c
For usage, check out example.c. Run "make example" to build it.
Note that you must assign blkmk_sha256_impl to a function pointer:
bool mysha256(void *hash_out, const void *data, size_t datasz)
hash_out must be able to overlap with data!