From: Martin Mares Date: Thu, 14 Apr 2005 09:58:34 +0000 (+0000) Subject: Moved endianity settings etc. to the per-CPU section. X-Git-Tag: holmes-import~790 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2c9cf5b6e38800f6d79e5140f3b8565961374627;p=libucw.git Moved endianity settings etc. to the per-CPU section. --- diff --git a/lib/autoconf.cfg b/lib/autoconf.cfg index 829b9b93..9a353a23 100644 --- a/lib/autoconf.cfg +++ b/lib/autoconf.cfg @@ -41,6 +41,11 @@ Test("CPU_ARCH", "Checking for CPU architecture", sub { Fail "Unable to determine machine type" if $? || $mach eq ""; if ($mach =~ /^i[0-9]86$/) { Set("CPU_I386"); + UnSet("CPU_64BIT_POINTERS"); + Set("CPU_LITTLE_ENDIAN"); + UnSet("CPU_BIG_ENDIAN"); + Set("CPU_ALLOW_UNALIGNED"); + Set("CPU_STRUCT_ALIGN" => 4); my $arch = ""; if (IsSet("CONFIG_EXACT_CPU") && IsSet("CONFIG_LINUX") && open X, "/proc/cpuinfo") { my %pc = (); @@ -144,13 +149,5 @@ if (IsSet("CONFIG_DEBUG")) { #CDEBUG+=-DDEBUG_DMALLOC #LIBS+=-ldmalloc -### CPU Type and Features ### - -Set("CPU_LITTLE_ENDIAN"); -#CPU_BIG_ENDIAN=1 -Set("CPU_ALLOW_UNALIGNED"); -Set("CPU_STRUCT_ALIGN" => 4); -Set("CPU_64BIT_POINTERS"); - # Return success 1;