# HG changeset patch # User arpi # Date 1032205077 0 # Node ID 78678f03c28d5e1fb8206ca6956009cf0133b499 # Parent a2555f227a3d388e5b932dab3688c9ba2a01b29d WORDSIZE detection by Bj«Órn Sandell diff -r a2555f227a3d -r 78678f03c28d configure --- a/configure Mon Sep 16 16:53:25 2002 +0000 +++ b/configure Mon Sep 16 19:37:57 2002 +0000 @@ -1645,6 +1645,15 @@ fi echores "$_inttypes" +echocheck "word size" +_mp_wordsize="#undef MP_WORDSIZE" +cat > $TMPC << EOF +#include +#include +int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; } +EOF +cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize" +echores "$_wordsize" echocheck "stddef.h" cat > $TMPC << EOF @@ -4692,6 +4701,8 @@ /* Define this to any prefered value from 386 up to infinity with step 100 */ #define __CPU__ $iproc +$_mp_wordsize + $_def_linux $_def_vcd