diff options
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index edbe3897cd..7b185b9853 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -367,11 +367,23 @@ AC_DEFUN([GET_ARM_ISA], #endif] )], [AC_DEFINE(arm_HOST_ARCH_PRE_ARMv7, 1, [ARM pre v7]) - changequote(, )dnl ARM_ISA=ARMv6 - ARM_ISA_EXT="[]" - changequote([, ])dnl - ], + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM( + [], + [#if defined(__VFP_FP__) + return 0; + #else + no vfp + #endif] + )], + [changequote(, )dnl + ARM_ISA_EXT="[VFPv2]" + changequote([, ])dnl], + [changequote(, )dnl + ARM_ISA_EXT="[]" + changequote([, ])dnl] + )], [changequote(, )dnl ARM_ISA=ARMv7 ARM_ISA_EXT="[VFPv3,NEON]" |