From: simonm Date: Tue, 3 Mar 1998 17:30:24 +0000 (+0000) Subject: [project @ 1998-03-03 17:30:14 by simonm] X-Git-Tag: Approx_2487_patches~893 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4a0aef4a7978ae8754013e07ed01fe2fbeb9029a;p=ghc-hetmet.git [project @ 1998-03-03 17:30:14 by simonm] Add some size tests. --- diff --git a/configure.in b/configure.in index 97acf32..7487fc9 100644 --- a/configure.in +++ b/configure.in @@ -470,6 +470,13 @@ 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 '' diff --git a/mk/config.h.in b/mk/config.h.in index 0596c44..6eac388 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -188,3 +188,12 @@ /* Define this if your time.h defines altzone */ #undef HAVE_ALTZONE + +/* sizeof(int) */ +#undef SIZEOF_INT + +/* sizeof(long) */ +#undef SIZEOF_LONG + +/* sizeof(void *) */ +#undef SIZEOF_VOID_P