summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-12-08 11:58:44 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-09 17:28:18 +0100
commita071ba629b89dbbe458d0865a0c4ebc3f92d3524 (patch)
tree082f7b790e659edc100c9453b3960b9f5b79ab88 /configure
parent6d8b84e8d574ea583d54b3de5cb3d275c41f2caf (diff)
Cascade detection of SSE3 support and up
If SSE2 isn't supported, then SSE3 can't be either. Onwards and upwards for SSSE3, SSE4.1, SSE4.2 and AVX. The test for AVX2 was already there. Task-number: QTBUG-24773 Change-Id: I005258db52d8abcd407a99b8ebcc23cdea8e3d9f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index 99023dc8b5..6f540fa814 100755
--- a/configure
+++ b/configure
@@ -4224,6 +4224,9 @@ if [ "${CFG_SSE2}" = "auto" ]; then
fi
# detect sse3 support
+if [ "${CFG_SSE2}" = "no" ]; then
+ CFG_SSE3=no
+fi
if [ "${CFG_SSE3}" = "auto" ]; then
if compileTest common/sse3 "sse3"; then
CFG_SSE3=yes
@@ -4233,6 +4236,9 @@ if [ "${CFG_SSE3}" = "auto" ]; then
fi
# detect ssse3 support
+if [ "${CFG_SSE3}" = "no" ]; then
+ CFG_SSSE3=no
+fi
if [ "${CFG_SSSE3}" = "auto" ]; then
if compileTest common/ssse3 "ssse3"; then
CFG_SSSE3=yes
@@ -4242,6 +4248,9 @@ if [ "${CFG_SSSE3}" = "auto" ]; then
fi
# detect sse4.1 support
+if [ "${CFG_SSSE3}" = "no" ]; then
+ CFG_SSE4_1=no
+fi
if [ "${CFG_SSE4_1}" = "auto" ]; then
if compileTest common/sse4_1 "sse4_1"; then
CFG_SSE4_1=yes
@@ -4251,6 +4260,9 @@ if [ "${CFG_SSE4_1}" = "auto" ]; then
fi
# detect sse4.2 support
+if [ "${CFG_SSE4_1}" = "no" ]; then
+ CFG_SSE4_2=no
+fi
if [ "${CFG_SSE4_2}" = "auto" ]; then
if compileTest common/sse4_2 "sse4_2"; then
CFG_SSE4_2=yes
@@ -4260,6 +4272,9 @@ if [ "${CFG_SSE4_2}" = "auto" ]; then
fi
# detect avx support
+if [ "${CFG_SSE4_2}" = "no" ]; then
+ CFG_AVX=no
+fi
if [ "${CFG_AVX}" = "auto" ]; then
if compileTest common/avx "avx"; then
case "$XQMAKESPEC" in