Le 6 mars 2013 à 16:03, Joshua Root <[email protected]> a écrit :

> You can probably find out with sysctl if you really need to. (It's a Tcl
> proc wrapping sysctlbyname(3), no need to shell out.)

Ok, there is no built-in variable, then.

‘sysctl -n hw.machine’ on Intel gives directly the result (either 'i386' or 
'x86_64'). For PPC, I test ‘sysctl -n hw.cpusubtype’ to sort ppc from ppc64. 
Both work on Tiger and above, so there is no need for a catch block.

Vincent



_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to