summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in39
1 files changed, 29 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index ec49b7f..0ad60c9 100644
--- a/configure.in
+++ b/configure.in
@@ -176,7 +176,7 @@ AC_HEADER_STDC
AC_HEADER_TIME
dnl Unix
AC_CHECK_HEADERS(sys/resource.h sys/time.h unistd.h sys/ioctl.h sys/stat.h)
-AC_CHECK_HEADERS(stddef.h setjmp.h)
+AC_CHECK_HEADERS(stddef.h setjmp.h stdint.h)
dnl Windows
AC_CHECK_HEADERS(io.h winsock.h sys/timeb.h)
@@ -207,18 +207,37 @@ AC_CHECK_SIZEOF(float, 4)
AC_CHECK_SIZEOF(double, 8)
AC_CHECK_SIZEOF(long double, 8)
-dnl Posix.1g types
+dnl Posix.1g types (C9x)
cat >>confdefs.h <<\EOF
#include <sys/types.h>
EOF
-AC_CHECK_SIZEOF( int8_t, 1)
-AC_CHECK_SIZEOF( uint8_t, 1)
-AC_CHECK_SIZEOF( int16_t, 2)
-AC_CHECK_SIZEOF(uint16_t, 2)
-AC_CHECK_SIZEOF( int32_t, 4)
-AC_CHECK_SIZEOF(uint32_t, 4)
-AC_CHECK_SIZEOF( int64_t, 8)
-AC_CHECK_SIZEOF(uint64_t, 8)
+AC_CHECK_SIZEOF( int8_t, 1)
+AC_CHECK_SIZEOF( uint8_t, 1)
+AC_CHECK_SIZEOF( int_least8_t, 1)
+AC_CHECK_SIZEOF( uint_least8_t, 1)
+AC_CHECK_SIZEOF( int_fast8_t, 1)
+AC_CHECK_SIZEOF( uint_fast8_t, 1)
+
+AC_CHECK_SIZEOF( int16_t, 2)
+AC_CHECK_SIZEOF( uint16_t, 2)
+AC_CHECK_SIZEOF( int_least16_t, 2)
+AC_CHECK_SIZEOF(uint_least16_t, 2)
+AC_CHECK_SIZEOF( int_fast16_t, 2)
+AC_CHECK_SIZEOF( uint_fast16_t, 2)
+
+AC_CHECK_SIZEOF( int32_t, 4)
+AC_CHECK_SIZEOF( uint32_t, 4)
+AC_CHECK_SIZEOF( int_least32_t, 4)
+AC_CHECK_SIZEOF(uint_least32_t, 4)
+AC_CHECK_SIZEOF( int_fast32_t, 4)
+AC_CHECK_SIZEOF( uint_fast32_t, 4)
+
+AC_CHECK_SIZEOF( int64_t, 8)
+AC_CHECK_SIZEOF( uint64_t, 8)
+AC_CHECK_SIZEOF( int_least64_t, 8)
+AC_CHECK_SIZEOF(uint_least64_t, 8)
+AC_CHECK_SIZEOF( int_fast64_t, 8)
+AC_CHECK_SIZEOF( uint_fast64_t, 8)
AC_CHECK_SIZEOF(size_t, 4)
cat >>confdefs.h <<\EOF