From d62a2e0100ba533fee3e7d7a12f90ed9d95736e8 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 14 Nov 2006 09:14:58 +0000 Subject: =?UTF-8?q?2006-11-14=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac: Require inttypes.h, check for stdint.h. --- cpukit/configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cpukit/configure.ac') 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], -- cgit v1.2.3