[v1,7/7] configure: fix enabling -mcx16 flag for i?86 platforms

Message ID 1518595221-854-8-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • non-optimized (default) host support
Related show

Commit Message

Github ODP bot Feb. 14, 2018, 8 a.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Use correct pattern in case-host construction.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 462 (lumag:default-abi)
 ** https://github.com/Linaro/odp/pull/462
 ** Patch: https://github.com/Linaro/odp/pull/462.patch
 ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847
 ** Merge commit sha: 92a3ed64c30441cbca76e6f8ab5c086fe0c83a18
 **/
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/configure.ac b/configure.ac
index 24a788230..21718f07b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,7 +124,7 @@  ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA"
 # Check if compiler supports cmpxchng16 on x86-based architectures
 ##########################################################################
 case "${host}" in
-  i?86? | x86*)
+  i?86* | x86*)
   if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then
      ODP_CHECK_CFLAG([-mcx16])
   fi