From 2c9cf5b6e38800f6d79e5140f3b8565961374627 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 14 Apr 2005 09:58:34 +0000 Subject: [PATCH] Moved endianity settings etc. to the per-CPU section. --- lib/autoconf.cfg | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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; -- 2.39.2