From 474952d3f1ec15a679c41e37eab566b5c766326e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 30 Apr 2016 16:23:02 +0200 Subject: [PATCH] Try using cpuid on NativeClient --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4767fe18..aeb0d208 100644 --- a/configure.ac +++ b/configure.ac @@ -569,7 +569,7 @@ AM_CONDITIONAL([HAVE_TI_MODE], [test $HAVE_TI_MODE_V = 1]) AC_SUBST(HAVE_TI_MODE_V) HAVE_CPUID_V=0 -AS_IF([test "$enable_asm" != "no"],[ +AS_IF([test "$enable_asm" != "no" -o "$host_os" = "nacl"],[ AC_MSG_CHECKING(for cpuid instruction) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ unsigned int cpu_info[4]; @@ -586,7 +586,7 @@ __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" : AC_SUBST(HAVE_CPUID_V) asm_hide_symbol="unsupported" -AS_IF([test "$enable_asm" != "no"],[ +AS_IF([test "$enable_asm" != "no" -o "$host_os" = "nacl"],[ AC_MSG_CHECKING(if the .private_extern asm directive is supported) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ __asm__ __volatile__ (".private_extern dummy_symbol \n"