diff mbox series

[v1,2/11] configure: use ODP_CHECK_FLAG to check for -mcx16

Message ID 1504638007-2671-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series None | expand

Commit Message

Github ODP bot Sept. 5, 2017, 6:59 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


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

---
/** Email created from pull request 165 (lumag:improve-build-3)
 ** https://github.com/Linaro/odp/pull/165
 ** Patch: https://github.com/Linaro/odp/pull/165.patch
 ** Base sha: 42184679185ce0c979e065349360167e3fce6ca0
 ** Merge commit sha: c9bd3cdd91bd495988653511548fd4525579db79
 **/
 configure.ac | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index df0a0f61..f6f69942 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,16 +339,7 @@  ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA"
 case "${host}" in
   i?86? | x86*)
   if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then
-     my_save_cflags="$CFLAGS"
-
-     CFLAGS=-mcx16
-     AC_MSG_CHECKING([whether CC supports -mcx16])
-     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
-  	    [AC_MSG_RESULT([yes])]
-  	    [ODP_CFLAGS="$ODP_CFLAGS $CFLAGS"],
-  	    [AC_MSG_RESULT([no])]
-  	    )
-     CFLAGS="$my_save_cflags"
+     ODP_CHECK_CFLAG([-mcx16])
   fi
   ;;
 esac