[project @ 1998-03-11 14:26:23 by simonm]
authorsimonm <unknown>
Wed, 11 Mar 1998 14:26:23 +0000 (14:26 +0000)
committersimonm <unknown>
Wed, 11 Mar 1998 14:26:23 +0000 (14:26 +0000)
- move SIZEOF checks together (previous commit added SIZEOF checks to
   a different part of the file).

 - check alignment of longs:  unsigned ints are no good, because we need to
   check whether f.e. a float can be put on the stack, which is
   StgWord aligned, and currently an StgWord is basically a long.

configure.in

index f14eab2..ef4f952 100644 (file)
@@ -453,11 +453,14 @@ AC_ALTZONE
 dnl ** what are the sizes of various types
 dnl    (these must come before GHC_CHECK_ALIGNMENT)
 AC_CHECK_SIZEOF(unsigned int,4)
-AC_CHECK_SIZEOF(float,4)
-AC_CHECK_SIZEOF(double,8)
+AC_CHECK_SIZEOF(float,       4)
+AC_CHECK_SIZEOF(double,      8)
+AC_CHECK_SIZEOF(long,        4)
+AC_CHECK_SIZEOF(void *,      4)
 
 dnl ** what are alignment constraints on various types
 GHC_CHECK_ALIGNMENT(unsigned int) dnl redundant but harmless
+GHC_CHECK_ALIGNMENT(long)
 GHC_CHECK_ALIGNMENT(float)
 GHC_CHECK_ALIGNMENT(double)
 
@@ -481,13 +484,6 @@ dnl ** check for leading underscores in symbol names
 #
 AC_UNDERSCORE
 
-#
-dnl ** check the size of various C types
-#
-AC_CHECK_SIZEOF(int,    4)
-AC_CHECK_SIZEOF(long,   4)
-AC_CHECK_SIZEOF(void *, 4)
-
 AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
 
 echo ''