*: If building clippy we must have python3

When building clippy we must have python 3.  Let's
ensure that we test for it and stop the auto-make
if it is not installed on the system.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-10-12 15:41:07 -04:00
parent 38e7e55306
commit 7f39a26c77
1 changed files with 1 additions and 0 deletions

View File

@ -797,6 +797,7 @@ fi
#
AS_IF([test "$host" = "$build"], [
AM_PATH_PYTHON([3])
AC_CHECK_HEADER([gelf.h], [], [
AC_MSG_ERROR([libelf headers are required for building clippy. (Host only when cross-compiling.)])
])