newlib-cygwin/newlib/libm/machine/nds32/acinclude.m4

18 lines
603 B
Plaintext
Raw Normal View History

if test "${libm_machine_dir}" = "nds32"; then
dnl Use builtin macro to detect if FPU extension support is on.
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#if (__NDS32_EXT_FPU_SP__)
# error "Has nds32 FPU SP extension support"
#endif
]])], [has_nds32_fpu_sp="no"], [has_nds32_fpu_sp="yes"])
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#if (__NDS32_EXT_FPU_DP__)
# error "Has nds32 FPU DP extension support"
#endif
]])], [has_nds32_fpu_dp="no"], [has_nds32_fpu_dp="yes"])
fi
AM_CONDITIONAL(HAS_NDS32_FPU_SP, test "$has_nds32_fpu_sp" = "yes")
AM_CONDITIONAL(HAS_NDS32_FPU_DP, test "$has_nds32_fpu_dp" = "yes")