- 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.
dnl ** what are the sizes of various types
dnl (these must come before GHC_CHECK_ALIGNMENT)
AC_CHECK_SIZEOF(unsigned int,4)
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
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)
GHC_CHECK_ALIGNMENT(float)
GHC_CHECK_ALIGNMENT(double)
-#
-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 ''
AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
echo ''