xref: /freebsd/sys/contrib/openzfs/config/always-zcp.m4 (revision 22649d4dba730d46244fd2dff4fd174903c8379f)
1dnl # SPDX-License-Identifier: CDDL-1.0
2dnl #
3dnl # Determine whether to enable zfs channel program support
4dnl #
5AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ZCP], [
6	AC_ARG_ENABLE(zcp,
7		AS_HELP_STRING([--enable-zcp],
8		[Enable zfs channel program support @<:@default=yes@:>@]),
9		[enable_zcp=$enableval],
10		[enable_zcp=yes])
11
12
13	AS_IF([test "x$enable_zcp" = xno], [
14		AC_DEFINE([DISABLE_ZCP], [1],
15		[Define to 1 to disable ZFS channel program support])
16	])
17
18	AM_CONDITIONAL([ZCP_ENABLED], [test "x$enable_zcp" = "xyes"])
19	AC_SUBST([ZCP_ENABLED], [$enable_zcp])
20	AC_MSG_CHECKING(for zfs channel program support)
21	AC_MSG_RESULT([$enable_zcp])
22])
23