check for sizes of short, size_t, uintptr_t, and
authorMarius Vollmer <mvo@zagadka.de>
Mon, 12 Nov 2001 00:58:33 +0000 (00:58 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 12 Nov 2001 00:58:33 +0000 (00:58 +0000)
ptrdiff_t.  Checking for a size also checks automatically for the
existence of the type, so we don't check for the existence of
uintptr_t, ptrdiff_t and long long ourselves.

configure.in

index 07a4ee4..1cbecb3 100644 (file)
@@ -176,8 +176,10 @@ AC_C_CONST
 AC_C_INLINE
 AC_C_BIGENDIAN
 
+AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(size_t)
 
 dnl Check for integral types that can represent the range of pointers.
 dnl If these types don't exist on this platform, they are replaced by
@@ -185,17 +187,10 @@ dnl "unsigned long" and "long", respectively.
 
 AC_CHECK_HEADERS(stdint.h)
 AC_CHECK_HEADERS(inttypes.h)
-AC_CHECK_TYPES([uintptr_t, ptrdiff_t])
-
-AC_CACHE_CHECK([for long longs], scm_cv_long_longs,
-              AC_TRY_COMPILE(,
-                             [long long a],
-                             scm_cv_long_longs=yes,
-                             scm_cv_long_longs=no))
-if test "$scm_cv_long_longs" = yes; then
-  AC_DEFINE(HAVE_LONG_LONGS)
-  AC_CHECK_SIZEOF(long long)
-fi
+AC_CHECK_SIZEOF(uintptr_t)
+AC_CHECK_SIZEOF(ptrdiff_t)
+
+AC_CHECK_SIZEOF(long long)
 
 AC_CHECK_SIZEOF(void *)