[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A way to determine Architecture?
From: |
Lassi A. Tuura |
Subject: |
Re: A way to determine Architecture? |
Date: |
Thu, 22 May 2003 16:55:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401 |
> I am looking for a way to query the system about its own architecture. I
> just need some way to know if it is a LINUX, LINUX-ALPHA or something
> similar. I have not been ablo to find it out on the web or autoconf
> mailing list.
For C: uname(2). For shell scripts: config.guess or uname(1).
If you want more portable stuff:
http://lcgapp.cern.ch/lxr/SEAL/source/seal/Foundation/
SealBase/src/SystemInfo.cpp#L319
Cheers and hope this helps,
//lat
--
Courage is knowing what to fear. --Plato