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 <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2018-08-06 08:18:30 -04:00
parent 5cd844d09e
commit dbb399de05

View File

@ -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 "