[NCLUG] simple way to determine 32 or 64 bit?

Matt Taggart taggart at carmen.fc.hp.com
Mon Jun 11 14:39:51 MDT 2001


"Michael Dwyer" writes...

> Doesn't the ./configure script do a 32/64 test sometimes?  How would you
> do it?  What would compile differently between a 32/64 machine that you
> could test for?

It seems there are as many ways as there are system. config.guess has the 
thankless job of doing this for autoconf based packages. If you poke around 
inside it you'll see some systems use bits of asm, some uname, and some stuff 
from /proc. The canonical location for config.guess(and config.sub) is

http://subversions.gnu.org/cgi-bin/cvsweb/config/

HTH,

-- 
Matt Taggart
taggart at fc.hp.com





More information about the NCLUG mailing list