diff --git a/configure b/configure index 46ec210b75..6ecb338fa8 100755 --- a/configure +++ b/configure @@ -432,7 +432,8 @@ than or equal to 4.14 will see significantly reduced performance. fi if [[ "${CONFIG[ISAL]}" = "y" ]] || [[ "${CONFIG[CRYPTO]}" = "y" ]]; then - if [[ $(nasm -v | awk '{print $3}' | sed 's/[^0-9]*//g') -lt "21303" ]]; then + ver=$(nasm -v | awk '{print $3}' | sed 's/[^0-9]*//g') + if [[ "${ver:0:1}" -le "2" ]] && [[ "${ver:0:3}" -le "213" ]] && [[ "${ver:0:5}" -lt "21303" ]]; then echo "Notice: ISA-L, compression & crypto auto-disabled due to nasm dependency." echo "These features require NASM version 2.13.03 or newer. Please install" echo "or upgrade then re-run this script."