diff --git a/configure b/configure index 29a6efa361..116ae43603 100755 --- a/configure +++ b/configure @@ -347,16 +347,12 @@ fi if [[ "${CONFIG[CRYPTO]}" = "y" ]]; then echo NOTE: Crypto is currently marked as experimental. Do not use in production. - set +e - nasm_ver=$(nasm -v | sed 's/[^0-9]*//g' | awk '{print substr ($0, 0, 5)}') - ipsec="$(find /usr -name intel-ipsec-mb.h 2>/dev/null)" - set -e - if [[ $nasm_ver -lt "21202" ]]; then + if [[ $(nasm -v | sed 's/[^0-9]*//g' | awk '{print substr ($0, 0, 5)}') -lt "21202" ]]; then echo Crypto requires NASM version 2.12.02 or newer. Please install echo or upgrade then re-run this script. exit 1 else - if [[ "$ipsec" == "" ]]; then + if [[ "$(find /usr -name intel-ipsec-mb.h 2>/dev/null)" == "" ]]; then echo "To enable crypto you must first go to the intel-ipsec-mb directory and " echo "run 'make' then 'sudo make install' then re-run this script." exit 1