From ffab206daff55ff3801ffb383745e3e116f62601 Mon Sep 17 00:00:00 2001 From: "Martin R. Albrecht" Date: Sat, 6 Dec 2025 20:03:18 +0000 Subject: [PATCH 1/2] check if the cpu_vendor is Unknown first --- .gitignore | 1 + m4/ax_cache_size.m4 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 31205dc..a040def 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ test_alignment /compile_commands.json /.cache/ /scratch.c +/configure~ diff --git a/m4/ax_cache_size.m4 b/m4/ax_cache_size.m4 index a11344a..0b89a7e 100644 --- a/m4/ax_cache_size.m4 +++ b/m4/ax_cache_size.m4 @@ -59,7 +59,7 @@ AC_DEFUN([AX_CACHE_SIZE], else # Try CPUID (mostly for Linux without sysfs or during cross-compilation) - if test "x$ax_cv_cpu_vendor" != "xIntel"; then + if test "x$ax_cv_cpu_vendor" != "xUnknown" && test "x$ax_cv_cpu_vendor" != "xIntel"; then AX_GCC_X86_CPUID(0x80000000) cpu_exthigh=`echo $ax_cv_gcc_x86_cpuid_0x80000000 | cut -d ":" -f 1` if test "x$cpu_exthigh" \> "x80000004"; then From 09342759661c924da58f071553475612440cc2dd Mon Sep 17 00:00:00 2001 From: "Martin R. Albrecht" Date: Sat, 6 Dec 2025 22:07:50 +0000 Subject: [PATCH 2/2] lower case, too --- m4/ax_cache_size.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_cache_size.m4 b/m4/ax_cache_size.m4 index 0b89a7e..f9568c3 100644 --- a/m4/ax_cache_size.m4 +++ b/m4/ax_cache_size.m4 @@ -59,7 +59,7 @@ AC_DEFUN([AX_CACHE_SIZE], else # Try CPUID (mostly for Linux without sysfs or during cross-compilation) - if test "x$ax_cv_cpu_vendor" != "xUnknown" && test "x$ax_cv_cpu_vendor" != "xIntel"; then + if test "x$ax_cv_cpu_vendor" != "xUnknown" && test "x$ax_cv_cpu_vendor" != "xunknown" && test "x$ax_cv_cpu_vendor" != "xIntel"; then AX_GCC_X86_CPUID(0x80000000) cpu_exthigh=`echo $ax_cv_gcc_x86_cpuid_0x80000000 | cut -d ":" -f 1` if test "x$cpu_exthigh" \> "x80000004"; then