summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-01-04 11:37:47 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-01-04 12:47:28 +0000
commit8387f0198e7a925d9d0754b2befb021ffa1307d7 (patch)
tree2814bbf353bd5f8a8e781d847392430f40fcab15 /distrib
parentd7d56f5852b975c865535495b45a8aba9a397c86 (diff)
downloadhaskell-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 'distrib')
-rw-r--r--distrib/configure.ac.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index a9fc134021..458f5f433f 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -90,6 +90,11 @@ FPTOOLS_SET_HASKELL_PLATFORM_VARS
FP_SETTINGS
+dnl WordSize for settings.in
+AC_CHECK_SIZEOF(void *, 4)
+WordSize=$ac_cv_sizeof_void_p
+AC_SUBST(WordSize)
+
#
dnl ** how to invoke `ar' and `ranlib'
#