Don't over-write ENABLED_FIPS with no if user didn't specify anything.

This commit is contained in:
Anthony Hu
2022-03-22 20:33:27 -04:00
parent b3319bd952
commit 3dd2219548

View File

@ -258,8 +258,13 @@ AS_CASE([$ENABLED_WOLFENGINE],
# FIPS 140
AC_ARG_ENABLE([fips],
[AS_HELP_STRING([--enable-fips],[Enable FIPS 140-2, Will NOT work w/o FIPS license (default: disabled)])],
[ENABLED_FIPS=$enableval],
[ENABLED_FIPS="no"])
[ENABLED_FIPS_REAL=$enableval],
[ENABLED_FIPS_REAL="no"])
if test "$ENABLED_FIPS_REAL" != "no"
then
ENABLED_FIPS="$ENABLED_FIPS_REAL"
fi
# The FIPS options are:
# no - FIPS build disabled, FIPS sources forbidden in build tree