Re: [AMBER-Developers] Automatically detecting 32 bit compiles in configure

From: Mengjuei Hsieh <mengjueh.uci.edu>
Date: Thu, 11 Mar 2010 12:02:53 -0800

On Thu, Mar 11, 2010 at 01:36:18PM -0500, Volodymyr Babin wrote:
> Compile/run a short C-program that prints sizeof() of something relevant?
> Something like
> #include <stdio.h>
> int main(){
> printf ("%d\n", sizeof(void*));
> }
> Best,
> Volodymyr

I like Dr. Babin's idea more, if it returns 8, the architecture would
be 64-bit. Using uname might not be very accurate thanks to Mac OS X
10.6's "backward-compatible uname".

Best,
-- 
Mengjuei Hsieh, Luo Research Group, Molecular Biology & Biochemistry,
University of California Irvine.
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Mar 11 2010 - 12:30:02 PST
Custom Search