xref: /freebsd/sys/contrib/openzfs/config/always-shellcheck.m4 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1dnl #
2dnl # Check if shellcheck and/or checkbashisms are available.
3dnl #
4AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SHELLCHECK], [
5	AC_CHECK_PROG([SHELLCHECK], [shellcheck], [yes])
6	AC_CHECK_PROG([CHECKBASHISMS], [checkbashisms], [yes])
7
8	AM_CONDITIONAL([HAVE_SHELLCHECK], [test "x$SHELLCHECK" = "xyes"])
9	AM_CONDITIONAL([HAVE_CHECKBASHISMS], [test "x$CHECKBASHISMS" = "xyes"])
10])
11