From 90752e89fbc047134de464f372f823f476901a3f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 24 Feb 2021 18:47:53 -0800 Subject: [PATCH] Restore a configure check lost in a rebase. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 46dbeb12d..b6c7eb59b 100644 --- a/configure.ac +++ b/configure.ac @@ -3492,6 +3492,11 @@ AS_CASE([$SELFTEST_VERSION], ]) +# Set SHA-3 and SHAKE256 flags +if test "$ENABLED_SHA3" = "yes" && test "$ENABLED_32BIT" = "no" +then + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA3" +fi AS_IF([test "x$ENABLED_FIPS" = "xyes"],[ENABLED_SHAKE256="no"]) if test "$ENABLED_SHAKE256" = "yes" || test "$ENABLED_SHAKE256" = "small"