2022-01-23 13:23:28 +08:00
|
|
|
if test "${machine_dir}" = "spu"; then
|
2022-01-28 18:17:46 +08:00
|
|
|
AC_CACHE_CHECK([whether the compiler supports __ea], newlib_cv_spu_compiler_has_ea, [dnl
|
|
|
|
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
|
2022-01-23 13:23:28 +08:00
|
|
|
[[#if !defined (__EA32__) && !defined (__EA64__)
|
|
|
|
# error "__ea not supported"
|
|
|
|
#endif
|
2022-01-28 18:17:46 +08:00
|
|
|
]])], [newlib_cv_spu_compiler_has_ea=yes], [newlib_cv_spu_compiler_has_ea=no])])
|
2022-01-23 13:23:28 +08:00
|
|
|
fi
|
2022-01-28 18:17:46 +08:00
|
|
|
AM_CONDITIONAL(HAVE_SPU_EA, test "$newlib_cv_spu_compiler_has_ea" = yes)
|