aboutsummaryrefslogtreecommitdiffstats
path: root/config/always-shellcheck.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/always-shellcheck.m4')
-rw-r--r--config/always-shellcheck.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/config/always-shellcheck.m4 b/config/always-shellcheck.m4
new file mode 100644
index 000000000..1e154e1c5
--- /dev/null
+++ b/config/always-shellcheck.m4
@@ -0,0 +1,7 @@
+dnl #
+dnl # Check if shellcheck is available.
+dnl #
+AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SHELLCHECK], [
+ AC_CHECK_PROG([SHELLCHECK], [shellcheck], [yes])
+ AM_CONDITIONAL([HAVE_SHELLCHECK], [test "x$SHELLCHECK" = "xyes"])
+])