From a81505b672bf3d013eb9303d51978e2e0b2a69f7 Mon Sep 17 00:00:00 2001 From: grinvader <> Date: Thu, 27 Oct 2005 23:00:15 +0000 Subject: [PATCH] Semantic fix. Should prevent people from whining that their Turion 64 are 'incorrectly' detected as k8. >:| --- zsnes/src/acinclude.m4 | 24 ++++++++++++------------ zsnes/src/configure.in | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/zsnes/src/acinclude.m4 b/zsnes/src/acinclude.m4 index 9f3d8564..08f40ae6 100644 --- a/zsnes/src/acinclude.m4 +++ b/zsnes/src/acinclude.m4 @@ -237,21 +237,21 @@ dnl -- End libpng autoconf macro dnl ---- -dnl -- Begin custom cpu detection autoconf macro +dnl -- Begin custom arch detection autoconf macro dnl Copyright (c) 2005 Nach, grinvader dnl Under the GPL License -dnl When copying, include from Begin to End custom cpu detection autoconf macro, +dnl When copying, include from Begin to End custom arch detection autoconf macro, dnl including those tags, so others can easily copy it too. dnl -dnl AM_CPU_DETECT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl AM_ARCH_DETECT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Reads the first entry in /proc/cpuinfo or uses cpuid to grab what is needed, -dnl outputs CPU_INFO -AC_DEFUN([AM_CPU_DETECT], +dnl outputs ARCH_INFO +AC_DEFUN([AM_ARCH_DETECT], [ -CPU_INFO="" +ARCH_INFO="" AC_MSG_CHECKING(for cpu info) -AC_ARG_ENABLE(cpucheck, [ --disable-cpucheck Do not try to autodetect cpu ],,enable_cpucheck=yes) +AC_ARG_ENABLE(cpucheck, [ --disable-cpucheck Do not try to autodetect cpu architecture ],,enable_cpucheck=yes) if test x$enable_cpucheck != xno; then AC_TRY_RUN([ @@ -544,7 +544,7 @@ if test x$enable_cpucheck != xno; then else { cpu = "i386"; } } - if ((fp = fopen("conf.cpuchk", "a"))) + if ((fp = fopen("conf.archchk", "a"))) { fprintf(fp, "%s", cpu); fclose(fp); @@ -558,18 +558,18 @@ if test x$enable_cpucheck != xno; then if test x$cpu_found = xyes; then AC_MSG_RESULT(found) - CPU_INFO=$(