diff --git a/configure.ac b/configure.ac index f12d47058..68915f1ea 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,13 @@ AM_INIT_AUTOMAKE(hercules,3.13) # (the version of our software package) AM_CONFIG_HEADER(config.h) # (the file the resulting configure script will produce) AM_MAINTAINER_MODE() AC_CANONICAL_HOST() # (sets $host_cpu, $host_vendor, and $host_os) + +# Work around a bug in CPU detection on Cortex CPUs +AS_IF([test "x$host_cpu" = 'xarmv7l'],[ + host_cpu=$(LANG=en_US lscpu | grep "Model name" | cut -d: -f2 | tr '[:upper:]' '[:lower:]') +]) +AC_SUBST([host_cpu]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) ###############################################################################