From dbb399de05baf516057ff2e14d2fc5a1f4dba762 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 6 Aug 2018 08:18:30 -0400 Subject: [PATCH] build-sys: Make sure python is installed for test cases Some test cases need either python 2 or 3. Make sure it is installed. Signed-off-by: Stefan Berger --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 57a9d8a..68a1bc8 100644 --- a/configure.ac +++ b/configure.ac @@ -311,6 +311,11 @@ if test "x$SOCAT" == "x"; then AC_MSG_ERROR([socat is required: socat package]) fi +AC_PATH_PROG([PYTHON], python) +if test "x$PYTHON" == "x"; then + AC_MSG_ERROR([python is required: python2 or python3 package]) +fi + TMP="$($CC -fstack-protector-strong 2>&1)" if echo $TMP | $GREP 'unrecognized command line option' >/dev/null; then HARDENING_CFLAGS="-fstack-protector -Wstack-protector "