2 dnl # 2.6.27 API change,
3 dnl # kobject KOBJ_NAME_LEN static limit removed. All users of this
4 dnl # constant were removed prior to 2.6.27, but to be on the safe
5 dnl # side this check ensures the constant is undefined.
7 AC_DEFUN([ZFS_AC_KERNEL_KOBJ_NAME_LEN], [
8 AC_MSG_CHECKING([whether kernel defines KOBJ_NAME_LEN])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/kobject.h>
12 int val __attribute__ ((unused));
16 AC_DEFINE(HAVE_KOBJ_NAME_LEN, 1,
17 [kernel defines KOBJ_NAME_LEN])