Skip to content
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