+ dnl #
+ dnl # ZFS 0.7.0 feature: SPA_FEATURE_USEROBJ_ACCOUNTING
+ dnl #
+ LB_CHECK_COMPILE([if zfs has native dnode accounting supported],
+ dmu_objset_userobjspace_upgrade, [
+ #include <sys/dmu_objset.h>
+ ],[
+ dmu_objset_userobjspace_upgrade(NULL);
+ ],[
+ AC_DEFINE(HAVE_DMU_USEROBJ_ACCOUNTING, 1,
+ [Have native dnode accounting in ZFS])
+ ])