Fix minor sah_select_bitness.m4 bugs

"${1}" gets substituted by "dummy"
Duplicated AC_MSG_RESULT prompts
This commit is contained in:
Jia Yuan Lo 2021-01-22 01:08:39 +08:00 committed by GitHub
parent b94e1c934c
commit 7b702d26d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -47,7 +47,7 @@ AC_DEFUN([SAH_SELECT_BITNESS],[
AC_REQUIRE_CPP
${CC} ${CFLAGS} ${CPPFLAGS} -m$1 -fno-lto -c conftest.$ac_ext 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
if test -f conftest.${OBJEXT}; then
if test -n "$(file conftest.${OBJEXT} | grep -i ${1}-bit)"; then
if test -n "$(file conftest.${OBJEXT} | grep -i $1-bit)"; then
CFLAGS="${CFLAGS} -m$1"
AC_MSG_RESULT([ok use $1])
else
@ -55,8 +55,9 @@ AC_DEFUN([SAH_SELECT_BITNESS],[
fi
fi
/bin/rm conftest.$ac_ext conftest.${OBJEXT}
else
AC_MSG_RESULT([ok use $1])
fi
AC_MSG_RESULT([ok use $1])
AC_LANG_POP([C])
AC_LANG_PUSH([C++])
@ -66,7 +67,7 @@ AC_DEFUN([SAH_SELECT_BITNESS],[
AC_REQUIRE_CPP
${CXX} ${CXXFLAGS} ${CPPFLAGS} -m$1 -fno-lto -c conftest.$ac_ext 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
if test -f conftest.${OBJEXT}; then
if test -n "$(file conftest.${OBJEXT} | grep -i ${1}-bit)"; then
if test -n "$(file conftest.${OBJEXT} | grep -i $1-bit)"; then
CXXFLAGS="${CXXFLAGS} -m$1"
AC_MSG_RESULT([ok use $1])
else
@ -74,8 +75,9 @@ AC_DEFUN([SAH_SELECT_BITNESS],[
fi
fi
/bin/rm conftest.$ac_ext conftest.${OBJEXT}
else
AC_MSG_RESULT([ok use $1])
fi
AC_MSG_RESULT([ok use $1])
AC_LANG_POP([C++])
COMPILER_MODEL_BITS=$1