Applying the latest changes, i.e.:
# different sysctl variables for intel and ppc
my $is64bit = 0;
if (open(SYSCTL, 'sysctl -a 2>/dev/null |')) {
my ($key, $value);
while (<SYSCTL>) {
($key, $value) = $_ =~ /^(\S+)\s*\:\s*(.*?)\s*$/;
next unless (defined $key and defined $value);
if ($key =~
/^(hw.optional.x86_64|hw.optional.64bitops|hw.cpu64bit_capable)$/ and $value eq
"1") {
$is64bit = 1;
last;
}
}
close(SYSCTL);
}
works for me.
Thanks.
Dominique
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users