xref: /freebsd/sys/contrib/openzfs/config/always-cppcheck.m4 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1dnl #
2dnl # Check if cppcheck is available.
3dnl #
4AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_CPPCHECK], [
5	AC_CHECK_PROG([CPPCHECK], [cppcheck], [cppcheck])
6	if test -z "$CPPCHECK"; then
7		CPPCHECK='@printf "skipping cppcheck because cppcheck is not installed\n"'
8	fi
9])
10