diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/configure.ac | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 6d1030f649..caff525581 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2006-11-14 Ralf Corsépius <ralf.corsepius@rtems.org> + + * configure.ac: Require inttypes.h, check for stdint.h. + 2006-11-12 Ralf Corsépius <ralf.corsepius@rtems.org> * Makefile.am, configure.ac: Remove RTEMS_PROVIDES_STDINT_H, diff --git a/cpukit/configure.ac b/cpukit/configure.ac index f6385bf83b..51063a1b0c 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -88,10 +88,14 @@ AC_CHECK_HEADER([tar.h]) AC_CHECK_HEADER([sys/errno.h],[], [AC_MSG_ERROR([Missing required header sys/errno.h])]) -## if using newlib, force using stdint.h -AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes], +## if libc provides stdint.h, use it. +AS_IF([test x"${ac_cv_header_stdint_h}" = xyes], [RTEMS_USES_STDINT_H=yes], -[RTEMS_USES_STDINT_H=$ac_cv_header_stdint_h]) +[RTEMS_USES_STDINT_H=no]) + +## error out if libc doesn't at least provide inttypes.h +AS_IF([test x"${ac_cv_header_inttypes_h}" != xyes], +[AC_MSG_ERROR([Required header inttypes.h not found])]) AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes], [RTEMS_USES_TAR_H=yes], |