From: simonm Date: Wed, 11 Mar 1998 14:26:23 +0000 (+0000) Subject: [project @ 1998-03-11 14:26:23 by simonm] X-Git-Tag: Approx_2487_patches~878 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3c8de5a6f6fe71efdce5559165283a9b9daf2d85;p=ghc-hetmet.git [project @ 1998-03-11 14:26:23 by simonm] - 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. --- diff --git a/configure.in b/configure.in index f14eab2..ef4f952 100644 --- a/configure.in +++ b/configure.in @@ -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 ''