From 91fadb3feb9dc4990af61cfb242d1356d83ce6c9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 17 Nov 2006 09:50:45 +0000 Subject: Suppress itron if int8/int16_t are not provided. Introduce AM_CONDITIONAL(LIBITRON). Remove AM_CONDITIONAL(HAS_ITRON). --- cpukit/configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpukit/configure.ac') diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 8215de4853..87b8fd8c59 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -101,6 +101,13 @@ AC_CHECK_TYPES([ uint8_t, int8_t]) AC_CHECK_TYPES([uint16_t, int16_t]) AC_CHECK_TYPES([uint32_t, int32_t]) +# suppress itron if these types are not provided +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=no]) + AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes], [RTEMS_USES_TAR_H=yes], [RTEMS_USES_TAR_H=$ac_cv_header_tar_h]) @@ -256,7 +263,7 @@ AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes") AM_CONDITIONAL(HAS_MP,test x"$enable_multiprocessing" = x"yes" ) AM_CONDITIONAL(HAS_POSIX,test x"$rtems_cv_HAS_POSIX_API" = x"yes") -AM_CONDITIONAL(HAS_ITRON,test x"$rtems_cv_HAS_ITRON_API" = x"yes") +AM_CONDITIONAL(LIBITRON,test x"$rtems_cv_HAS_ITRON_API" = x"yes") AM_CONDITIONAL(HAS_NETWORKING,test x"$HAS_NETWORKING" = x"yes") AM_CONDITIONAL([NEED_SYS_CDEFS_H],[test x"$NEED_SYS_CDEFS_H" = x"yes"]) -- cgit v1.2.3