diff options
author | Damian Szuberski <[email protected]> | 2022-11-17 03:27:53 +1000 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-12-01 12:39:44 -0800 |
commit | 2c50512ad2c6a53964be82420b819406bae69a89 (patch) | |
tree | ff873708bc822b7d13942ce877d9b04bba2eff35 | |
parent | c4468a70c35c92b434aeb7efdccc69370b5e2dc8 (diff) |
Make autodetection disable pyzfs for kernel/srpm configurations
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Richard Yao <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13394
Closes #14178
-rw-r--r-- | config/always-pyzfs.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/always-pyzfs.m4 b/config/always-pyzfs.m4 index 00e5d0e2c..efea49f5f 100644 --- a/config/always-pyzfs.m4 +++ b/config/always-pyzfs.m4 @@ -47,6 +47,16 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_PYZFS], [ AC_SUBST(DEFINE_PYZFS) dnl # + dnl # Autodetection disables pyzfs if kernel or srpm config + dnl # + AS_IF([test "x$enable_pyzfs" = xcheck], [ + AS_IF([test "x$ZFS_CONFIG" = xkernel -o "x$ZFS_CONFIG" = xsrpm ], [ + enable_pyzfs=no + AC_MSG_NOTICE([Disabling pyzfs for kernel/srpm config]) + ]) + ]) + + dnl # dnl # Python "packaging" (or, failing that, "distlib") module is required to build and install pyzfs dnl # AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [ |