summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-11-18 03:14:37 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-11-18 03:14:37 +0000
commit943fe10fd3d0a6692d635b1ae1af5fc54dae35c0 (patch)
treea25260495ba201f9c509005963ce8d88d9cc0e21 /cpukit/aclocal
parent2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-943fe10fd3d0a6692d635b1ae1af5fc54dae35c0.tar.bz2
Integrate ITRON-type checks.
Diffstat (limited to 'cpukit/aclocal')
-rw-r--r--cpukit/aclocal/check-itron.m416
1 files changed, 11 insertions, 5 deletions
diff --git a/cpukit/aclocal/check-itron.m4 b/cpukit/aclocal/check-itron.m4
index 3beefa985b..fbe171ef67 100644
--- a/cpukit/aclocal/check-itron.m4
+++ b/cpukit/aclocal/check-itron.m4
@@ -7,10 +7,16 @@ AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
AC_CACHE_CHECK([whether CPU supports libitron],
rtems_cv_HAS_ITRON_API,
[dnl
- if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
- rtems_cv_HAS_ITRON_API="yes";
- else
- rtems_cv_HAS_ITRON_API="disabled";
- fi
+ AS_IF([test "${RTEMS_HAS_ITRON_API}" = "yes"],[
+# suppress itron if one these types is not available
+ AS_IF([test x"$ac_cv_type_int8_t" = xyes \
+ && test x"$ac_cv_type_uint8_t" = xyes \
+ && test x"$ac_cv_type_int16_t" = xyes \
+ && test x"$ac_cv_type_uint16_t" = xyes],
+ [rtems_cv_HAS_ITRON_API=yes],
+ [rtems_cv_HAS_ITRON_API=no])
+ ],[
+ rtems_cv_HAS_ITRON_API="disabled"
+ ])
])
])