configure: try harder to parse nasm version
Nasm doesn't always include the patch version in its version string and we currently detect 2.14 as older than 2.13.03. Fix it by checking the major and minor version numbers separately. Change-Id: I37d1129775b17d252b84a911ee1c849f4f0e2ec7 Reported-by: James Bergsten <jamesx.bergsten@intel.com> Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452533 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
7685a48fd8
commit
00a6c491d2
3
configure
vendored
3
configure
vendored
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user