Showing with 25 additions and 0 deletions.
  1. +25 −0 configure.ac
25 changes: 25 additions & 0 deletions configure.ac
Expand Up @@ -167,6 +167,31 @@ AS_IF([test x"$strip" == x"yyy"], [
AC_MSG_NOTICE([Not using compiler options to reduce binary size!])
)

AC_CHECK_PROG([BASH],[bash],[yes])
AS_IF(
[test "x${BASH}" == x"yes"],
[],
[AC_MSG_WARN([Required executable bash not found, system tests require a bash shell!])])

AC_CHECK_PROG([PYTHON],[python],[yes])
AS_IF(
[test "x${PYTHON}" == x"yes"],
[],
[AC_MSG_WARN([Required executable python not found, some system tests will fail!])])

dnl macro that checks for specific modules in python
AC_DEFUN([AC_PYTHON_MODULE],
[AC_MSG_CHECKING([for module $1 in python])
echo "import $1" | python -
if test $? -ne 0 ; then
AC_MSG_RESULT([not found])
AC_MSG_WARN([System tests require pyyaml, some tests will fail!])
fi
AC_MSG_RESULT(found)
])

AC_PYTHON_MODULE([yaml])

AC_SUBST([EXTRA_CFLAGS])
AC_SUBST([EXTRA_LDFLAGS])

Expand Down