return "i386";
} elsif ($mach =~ /^(x86[_-]|amd)64$/) {
return "amd64";
+ } elsif ($mach eq 'powerpc') {
+ return $mach;
} else {
return "unknown ($mach)";
}
UnSet("CPU_BIG_ENDIAN");
Set("CPU_ALLOW_UNALIGNED");
Set("CPU_STRUCT_ALIGN" => 8);
+} elsif ($arch eq "powerpc") {
+ Set("CPU_AMD64");
+ UnSet("CPU_64BIT_POINTERS");
+ UnSet("CPU_LITTLE_ENDIAN");
+ Set("CPU_BIG_ENDIAN");
+ UnSet("CPU_ALLOW_UNALIGNED");
+ Set("CPU_STRUCT_ALIGN" => 4);
} elsif (!Get("CPU_LITTLE_ENDIAN") && !Get("CPU_BIG_ENDIAN")) {
Fail "Architecture not recognized, please set CPU_xxx variables manually.";
}