diff options
author | Louai Al-Khanji <louai.al-khanji@theqtcompany.com> | 2015-10-15 11:25:41 +0300 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-10-19 02:12:04 +0000 |
commit | bd8d5810ddcd200ece3829880805be9828780233 (patch) | |
tree | 42449dae46d87a828e6bf31c3d6e18835542ecb1 | |
parent | f5eeadb92d36faac80dee04069f9eeea596d2012 (diff) |
Fix avx512 feature test
The check was broken on non-bash and producing errors like this:
/home/louai/work/qt5/qtbase/configure: 4528: [: Illegal number:
Change-Id: I5e78ad002cd7cfb401f2646510e0923f77c55f98
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4526,7 +4526,7 @@ if [ "${CFG_AVX512}" = "auto" ]; then CFG_AVX512=f CFG_AVX512_UPPER=AVX512F for feature in er cd pf dq bw vl ifma vbmi; do - if [ -n "BASH_VERSION" ] && [ "${BASH_VERSION%%.*}" -gt 3 ]; then + if [ -n "$BASH_VERSION" ] && [ "${BASH_VERSION%%.*}" -gt 3 ]; then upper=${feature^^*} elif [ -n "$ZSH_VERSION" ]; then upper=${(U)feature} |