From: Martin Mares Date: Sat, 11 Aug 2018 12:01:51 +0000 (+0200) Subject: Configure: Settings for powerpc X-Git-Tag: v6.5.10~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9ef73a67dd942f6e369c2719847d2cc35e920c88;p=libucw.git Configure: Settings for powerpc --- diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index 7cd3da9e..b1475925 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -65,6 +65,8 @@ Test("ARCH", "Checking for machine architecture", sub { return "i386"; } elsif ($mach =~ /^(x86[_-]|amd)64$/) { return "amd64"; + } elsif ($mach eq 'powerpc') { + return $mach; } else { return "unknown ($mach)"; } @@ -85,6 +87,13 @@ if ($arch eq 'i386') { 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."; }