Add checking jq command since it is needed to validate tests Cc: Santosh Sivaraj <sant...@fossix.org> Signed-off-by: QI Fuli <qi.f...@fujitsu.com> Link: https://github.com/pmem/ndctl/issues/141 --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac index 5ec8d2f..839836b 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,12 @@ fi AC_SUBST([XMLTO]) fi +AC_CHECK_PROG(JQ, [jq], [$(which jq)], [missing]) +if test "x$JQ" = xmissing; then + AC_MSG_ERROR([jq command needed to validate tests]) +fi +AC_SUBST([JQ]) + AC_C_TYPEOF AC_DEFINE([HAVE_STATEMENT_EXPR], 1, [Define to 1 if you have statement expressions.]) -- 2.29.2 _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org