Merge "BuildSystem: Allow own CFLAGS on ./configure."

This commit is contained in:
Joshua Colp 2016-07-13 06:42:57 -05:00 committed by Gerrit Code Review
commit c48016e2f2
2 changed files with 6 additions and 17 deletions

12
configure vendored
View File

@ -17930,19 +17930,13 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
$as_echo_n "checking for -march=native support... " >&6; }
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
if test "${CONFIG_CFLAGS}" = ""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
AST_NATIVE_ARCH=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
$as_echo "user CFLAGS present" >&6; }
AST_NATIVE_ARCH=
fi
AST_NATIVE_ARCH=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
AST_NATIVE_ARCH=
AST_NATIVE_ARCH=0
fi

View File

@ -1217,16 +1217,11 @@ AC_SUBST(AST_SHADOW_WARNINGS)
AC_MSG_CHECKING(for -march=native support)
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
if test "${CONFIG_CFLAGS}" = ""; then
AC_MSG_RESULT(yes)
AST_NATIVE_ARCH=1
else
AC_MSG_RESULT(user CFLAGS present)
AST_NATIVE_ARCH=
fi
AC_MSG_RESULT(yes)
AST_NATIVE_ARCH=1
else
AC_MSG_RESULT(no)
AST_NATIVE_ARCH=
AST_NATIVE_ARCH=0
fi
AC_SUBST(AST_NATIVE_ARCH)