diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-01-04 11:37:47 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-01-04 12:47:28 +0000 |
commit | 8387f0198e7a925d9d0754b2befb021ffa1307d7 (patch) | |
tree | 2814bbf353bd5f8a8e781d847392430f40fcab15 /configure.ac | |
parent | d7d56f5852b975c865535495b45a8aba9a397c86 (diff) | |
download | haskell-8387f0198e7a925d9d0754b2befb021ffa1307d7.tar.gz |
Store the word size as determined by configure, in the settings file (#5735)
Now target32bit works for all targets without any manual intervention,
as it should do. #5735 was a portability regression.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8d747075b0..eda926b97f 100644 --- a/configure.ac +++ b/configure.ac @@ -574,6 +574,10 @@ fi AC_CHECK_SIZEOF(unsigned short, 2) AC_CHECK_SIZEOF(void *, 4) +dnl for use in settings.in +WordSize=$ac_cv_sizeof_void_p +AC_SUBST(WordSize) + dnl ** what are alignment constraints on various types FP_CHECK_ALIGNMENT(char) FP_CHECK_ALIGNMENT(double) |