2022-01-23 13:23:28 +08:00
|
|
|
if test "${machine_dir}" = "nds32"; then
|
|
|
|
dnl Use builtin macro to detect if this is for "AndeStar ISA V3m".
|
2022-01-28 18:17:46 +08:00
|
|
|
AC_CACHE_CHECK([for nds32 V3M ISA], newlib_cv_nds32_isa_v3m, [dnl
|
|
|
|
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
|
2022-01-23 13:23:28 +08:00
|
|
|
[[#ifdef __NDS32_ISA_V3M__
|
|
|
|
# error "This is nds32_isa_v3m."
|
|
|
|
#endif
|
2022-01-28 18:17:46 +08:00
|
|
|
]])], [newlib_cv_nds32_isa_v3m="no"], [newlib_cv_nds32_isa_v3m="yes"])])
|
2022-01-23 13:23:28 +08:00
|
|
|
fi
|
|
|
|
|
2022-01-28 18:17:46 +08:00
|
|
|
AM_CONDITIONAL(IS_NDS32_ISA_V3M, test "$newlib_cv_nds32_isa_v3m" = "yes")
|