configure: fix typo and add exit on error

When wrong nasm was detected we marched on anyway. As seen in CI, the build
of ipsec just fails sorta ugly with an older version.

Change-Id: I03d1e5774386e6aed354e8cb6877160f507a5c58
Signed-off-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/423754
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Paul Luse 2018-08-28 12:55:04 -07:00 committed by Jim Harris
parent 745a54e420
commit b324f73cb6

3
configure vendored
View File

@ -345,7 +345,8 @@ if [[ "$CONFIG_CRYPTO" = "y" ]]; then
set -e
if [[ $nasm_ver -lt "21202" ]]; then
echo Crypto requires NASM version 2.12.02 or newer. Please install
echo or upgrade then re-run this scrip.
echo or upgrade then re-run this script.
exit 1
else
if [[ "$ipsec" == "" ]]; then
echo "To enable crypto you must first go to the intel-ipsec-mb directory and "