From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@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 | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac index dd82b66ec..799d0b7b7 100644 --- a/configure.ac +++ b/configure.ac @@ -163,14 +163,6 @@ AS_CASE([$host], ) AC_SUBST([ARCH_DIR]) -########################################################################## -# Warn on the defaults if arch is undefined -########################################################################## -if test "${ARCH_DIR}" = "default"; -then - AC_MSG_WARN([ARCH_DIR is undefined, please add your ARCH_DIR based on host=${host}]) -fi - ########################################################################## # Architecture for ABI support ########################################################################## @@ -185,6 +177,23 @@ AS_CASE([$host], ) AC_SUBST([ARCH_ABI]) +AC_ARG_ENABLE([host-optimization], + [AS_HELP_STRING([--disable-host-optimization], + [disables using host-specific ARCH and ABI files])], + [], [enable_host_optimization=yes]) +if test "x$enable_host_optimization" = "xno" ; then + ARCH_DIR=default + ARCH_ABI=default-linux +fi + +########################################################################## +# Warn on the defaults if arch is undefined +########################################################################## +if test "${ARCH_DIR}" = "default"; +then + AC_MSG_WARN([ARCH_DIR is undefined, please add your ARCH_DIR based on host=${host}]) +fi + if test "${ARCH_ABI}" = "default-linux"; then AC_MSG_WARN([ARCH_ABI is undefined, please add your ARCH_ABI based on host=${host}])