CI: Move perl script to dist_noinst_DATA
[zfs.git] / config / kernel-truncate-setsize.m4
blob76c82ef3021b4a14e22959f9765ca3d0b62e80e7
1 dnl #
2 dnl # 2.6.35 API change
3 dnl # Added truncate_setsize() helper function.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_TRUNCATE_SETSIZE], [
6         ZFS_LINUX_TEST_SRC([truncate_setsize], [
7                 #include <linux/mm.h>
8         ], [
9                 truncate_setsize(NULL, 0);
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_TRUNCATE_SETSIZE], [
14         AC_MSG_CHECKING([whether truncate_setsize() is available])
15         ZFS_LINUX_TEST_RESULT_SYMBOL([truncate_setsize],
16             [truncate_setsize], [mm/truncate.c], [
17                 AC_MSG_RESULT(yes)
18         ], [
19                 ZFS_LINUX_TEST_ERROR([truncate_setsize])
20         ])