From 8cf5e9fd48199eb0137cd0bcf27c50ad20e06dbb Mon Sep 17 00:00:00 2001 From: Phillip Mienk Date: Thu, 16 Oct 2014 04:44:08 -0700 Subject: [PATCH] Correct declaration of HAVE_LIBSODIUM. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3bf15a95..0a74c08c 100644 --- a/configure.ac +++ b/configure.ac @@ -393,7 +393,11 @@ else [AC_MSG_WARN(libsodium is needed for CURVE security)]) fi -AM_CONDITIONAL(HAVE_SODIUM, test "x$have_sodium_library" = "xyes") +if test "x$have_sodium_library" != "xno"; then +AC_DEFINE(HAVE_LIBSODIUM, 1, [The libsodium library is to be used.]) +fi + +AM_CONDITIONAL(HAVE_SODIUM, test "x$have_sodium_library" != "xno") # build using pgm have_pgm_library="no"