Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autoconf CPU detection on Raspberry Pi 3 #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])])

###############################################################################
Expand Down