4 # Wrapper for AC_CONFIG_SUBDIR
6 AC_DEFUN([LC_CONFIG_SRCDIR], [
7 AC_CONFIG_SRCDIR([lustre/obdclass/obdo.c])
15 # lustre specific paths
17 AC_DEFUN([LC_PATH_DEFAULTS], [
18 # ptlrpc kernel build requires this
23 rootsbindir='$(CROSS_PATH)/sbin'
26 demodir='$(docdir)/demo'
29 pkgexampledir='${pkgdatadir}/examples'
30 AC_SUBST(pkgexampledir)
36 # is the target os supported?
38 AC_DEFUN([LC_TARGET_SUPPORTED], [
47 ]) # LC_TARGET_SUPPORTED
50 # LC_CONFIG_OBD_BUFFER_SIZE
52 # the maximum buffer size of lctl ioctls
54 AC_DEFUN([LC_CONFIG_OBD_BUFFER_SIZE], [
55 AC_MSG_CHECKING([for maximum OBD ioctl size])
56 AC_ARG_WITH([obd-buffer-size],
57 AC_HELP_STRING([--with-obd-buffer-size=[size]],
58 [set lctl ioctl maximum bytes (default=8192)]),
59 [OBD_BUFFER_SIZE=$with_obd_buffer_size],
60 [OBD_BUFFER_SIZE=8192])
61 AC_MSG_RESULT([$OBD_BUFFER_SIZE bytes])
62 AC_DEFINE_UNQUOTED(CONFIG_LUSTRE_OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE,
64 ]) # LC_CONFIG_OBD_BUFFER_SIZE
67 # LC_GLIBC_SUPPORT_FHANDLES
69 AC_DEFUN([LC_GLIBC_SUPPORT_FHANDLES], [
70 AC_CHECK_FUNCS([name_to_handle_at],
71 [AC_DEFINE(HAVE_FHANDLE_GLIBC_SUPPORT, 1,
72 [file handle and related syscalls are supported])],
73 [AC_MSG_WARN([file handle and related syscalls are not supported])])
74 ]) # LC_GLIBC_SUPPORT_FHANDLES
77 # LC_FUNC_DEV_SET_RDONLY
79 # check whether dev_set_rdonly is exported. This is needed until we
80 # have another mechanism to fence IO from the underlying device.
82 AC_DEFUN([LC_FUNC_DEV_SET_RDONLY], [
83 LB_CHECK_EXPORT([dev_set_rdonly], [block/ll_rw_block.c block/blk-core.c],
84 [AC_DEFINE(HAVE_DEV_SET_RDONLY, 1,
85 [kernel exports dev_set_rdonly])],
86 [AC_MSG_WARN([kernel missing dev_set_rdonly patch for testing])])
87 ]) # LC_FUNC_DEV_SET_RDONLY
92 # Ensure stack size big than 8k in Lustre server (all kernels)
94 AC_DEFUN([LC_STACK_SIZE], [
95 LB_CHECK_COMPILE([if stack size big than 8k],
97 #include <linux/thread_info.h>
99 #if THREAD_SIZE < 8192
100 #error "stack size < 8192"
102 ], [], [AC_MSG_ERROR([
104 Lustre requires that Linux is configured with at least a 8KB stack.
111 # Allow the user to set the MDS thread upper limit
113 AC_DEFUN([LC_MDS_MAX_THREADS], [
114 AC_MSG_CHECKING([for maximum number of MDS threads])
115 AC_ARG_WITH([mds_max_threads],
116 AC_HELP_STRING([--with-mds-max-threads=count],
117 [maximum threads available on the MDS: (default=512)]),
118 [AC_DEFINE_UNQUOTED(MDS_MAX_THREADS, $with_mds_max_threads,
119 [maximum number of MDS threads])])
120 AC_MSG_RESULT([$with_mds_max_threads])
121 ]) # LC_MDS_MAX_THREADS
126 # the pinger is temporary, until we have the recovery node in place
128 AC_DEFUN([LC_CONFIG_PINGER], [
129 AC_MSG_CHECKING([whether to enable Lustre pinger support])
130 AC_ARG_ENABLE([pinger],
131 AC_HELP_STRING([--disable-pinger],
132 [disable recovery pinger support]),
133 [], [enable_pinger="yes"])
134 AC_MSG_RESULT([$enable_pinger])
135 AS_IF([test "x$enable_pinger" != xno],
136 [AC_DEFINE(ENABLE_PINGER, 1,[Use the Pinger])])
137 ]) # LC_CONFIG_PINGER
142 # do checksum of bulk data between client and OST
144 AC_DEFUN([LC_CONFIG_CHECKSUM], [
145 AC_MSG_CHECKING([whether to enable data checksum support])
146 AC_ARG_ENABLE([checksum],
147 AC_HELP_STRING([--disable-checksum],
148 [disable data checksum support]),
149 [], [enable_checksum="yes"])
150 AC_MSG_RESULT([$enable_checksum])
151 AS_IF([test "x$enable_checksum" != xno],
152 [AC_DEFINE(ENABLE_CHECKSUM, 1, [do data checksums])])
153 ]) # LC_CONFIG_CHECKSUM
156 # LC_CONFIG_HEALTH_CHECK_WRITE
158 # Turn off the actual write to the disk
160 AC_DEFUN([LC_CONFIG_HEALTH_CHECK_WRITE], [
161 AC_MSG_CHECKING([whether to enable a write with the health check])
162 AC_ARG_ENABLE([health_write],
163 AC_HELP_STRING([--enable-health_write],
164 [enable disk writes when doing health check]),
165 [], [enable_health_write="no"])
166 AC_MSG_RESULT([$enable_health_write])
167 AS_IF([test "x$enable_health_write" != xno],
168 [AC_DEFINE(USE_HEALTH_CHECK_WRITE, 1, [Write when Checking Health])])
169 ]) # LC_CONFIG_HEALTH_CHECK_WRITE
172 # LC_CONFIG_LRU_RESIZE
174 AC_DEFUN([LC_CONFIG_LRU_RESIZE], [
175 AC_MSG_CHECKING([whether to enable lru self-adjusting])
176 AC_ARG_ENABLE([lru_resize],
177 AC_HELP_STRING([--enable-lru-resize],
178 [enable lru resize support]),
179 [], [enable_lru_resize="yes"])
180 AC_MSG_RESULT([$enable_lru_resize])
181 AS_IF([test "x$enable_lru_resize" != xno],
182 [AC_DEFINE(HAVE_LRU_RESIZE_SUPPORT, 1, [Enable lru resize support])])
183 ]) # LC_CONFIG_LRU_RESIZE
188 # Quota support. The kernel must support CONFIG_QUOTA.
190 AC_DEFUN([LC_QUOTA_CONFIG], [
191 LB_CHECK_CONFIG_IM([QUOTA], [],
194 Lustre quota requires that CONFIG_QUOTA is enabled in your kernel.
199 # LC_EXPORT_TRUNCATE_COMPLETE_PAGE
201 # truncate_complete_page() has never been exported from an upstream kernel
202 # remove_from_page_cache() was exported between 2.6.35 and 2.6.38
203 # delete_from_page_cache() is exported from 2.6.39
205 AC_DEFUN([LC_EXPORT_TRUNCATE_COMPLETE_PAGE], [
206 LB_CHECK_EXPORT([truncate_complete_page], [mm/truncate.c],
207 [AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
208 [kernel export truncate_complete_page])])
209 LB_CHECK_EXPORT([remove_from_page_cache], [mm/filemap.c],
210 [AC_DEFINE(HAVE_REMOVE_FROM_PAGE_CACHE, 1,
211 [kernel export remove_from_page_cache])])
212 LB_CHECK_EXPORT([delete_from_page_cache], [mm/filemap.c],
213 [AC_DEFINE(HAVE_DELETE_FROM_PAGE_CACHE, 1,
214 [kernel export delete_from_page_cache])])
215 ]) # LC_EXPORT_TRUNCATE_COMPLETE_PAGE
220 AC_DEFUN([LC_CAPA_CRYPTO], [
221 LB_CHECK_CONFIG_IM([CRYPTO], [],
222 [AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO is enabled in your kernel.])])
223 LB_CHECK_CONFIG_IM([CRYPTO_HMAC], [],
224 [AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO_HMAC is enabled in your kernel.])])
225 LB_CHECK_CONFIG_IM([CRYPTO_SHA1], [],
226 [AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO_SHA1 is enabled in your kernel.])])
230 # LC_CONFIG_RMTCLIENT
233 dnl the AES symbol usually tied with arch, e.g. CRYPTO_AES_586
235 AC_DEFUN([LC_CONFIG_RMTCLIENT], [
236 LB_CHECK_CONFIG_IM([CRYPTO_AES], [],
239 Lustre remote client require that CONFIG_CRYPTO_AES is enabled in your kernel.
241 ]) # LC_CONFIG_RMTCLIENT
244 # LC_CONFIG_GSS_KEYRING
246 # default 'auto', tests for dependencies, if found, enables;
247 # only called if gss is enabled
249 AC_DEFUN([LC_CONFIG_GSS_KEYRING], [
250 AC_MSG_CHECKING([whether to enable gss keyring backend])
251 AC_ARG_ENABLE([gss_keyring],
252 [AC_HELP_STRING([--disable-gss-keyring],
253 [disable gss keyring backend])],
254 [], [enable_gss_keyring="auto"])
255 AC_MSG_RESULT([$enable_gss_keyring])
256 AS_IF([test "x$enable_gss_keyring" != xno], [
257 LB_CHECK_CONFIG_IM([KEYS], [], [
258 gss_keyring_conf_test="fail"
261 GSS keyring backend require that CONFIG_KEYS be enabled in your kernel.
264 AC_CHECK_LIB([keyutils], [keyctl_search], [], [
265 gss_keyring_conf_test="fail"
268 libkeyutils is not found, which is required by gss keyring backend
271 AS_IF([test "x$gss_keyring_conf_test" != xfail], [
272 AC_DEFINE([HAVE_GSS_KEYRING], [1],
273 [Define this if you enable gss keyring backend])
274 enable_gss_keyring="yes"
276 AS_IF([test "x$enable_gss_keyring" = xyes], [
279 Cannot enable gss_keyring. See above for details.
284 Cannot enable gss keyring. See above for details.
289 ]) # LC_CONFIG_GSS_KEYRING
294 AC_DEFUN([LC_CONFIG_SUNRPC], [
295 LB_CHECK_CONFIG_IM([SUNRPC], [], [
296 AS_IF([test "x$sunrpc_required" = xyes], [
299 kernel SUNRPC support is required by using GSS.
302 ]) # LC_CONFIG_SUNRPC
305 # LC_CONFIG_GSS (default 'auto' (tests for dependencies, if found, enables))
307 # Build gss and related tools of Lustre. Currently both kernel and user space
308 # parts are depend on linux platform.
310 AC_DEFUN([LC_CONFIG_GSS], [
311 AC_MSG_CHECKING([whether to enable gss/krb5 support])
313 [AC_HELP_STRING([--enable-gss], [enable gss/krb5 support])],
314 [], [enable_gss="auto"])
315 AC_MSG_RESULT([$enable_gss])
317 AS_IF([test "x$enable_gss" != xno], [
318 LC_CONFIG_GSS_KEYRING
319 sunrpc_required=$enable_gss
323 LB_CHECK_CONFIG_IM([CRYPTO_MD5], [],
324 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
325 LB_CHECK_CONFIG_IM([CRYPTO_SHA1], [],
326 [AC_MSG_WARN([kernel SHA1 support is recommended by using GSS.])])
327 LB_CHECK_CONFIG_IM([CRYPTO_SHA256], [],
328 [AC_MSG_WARN([kernel SHA256 support is recommended by using GSS.])])
329 LB_CHECK_CONFIG_IM([CRYPTO_SHA512], [],
330 [AC_MSG_WARN([kernel SHA512 support is recommended by using GSS.])])
332 require_krb5=$enable_gss
336 AS_IF([test -n "$KRBDIR"], [
337 AC_CHECK_LIB([gssapi], [gss_export_lucid_sec_context], [
338 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi"
339 gss_conf_test="success"
341 AC_CHECK_LIB([gssglue], [gss_export_lucid_sec_context], [
342 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssglue"
343 gss_conf_test="success"
345 AS_IF([test "x$enable_gss" = xyes], [
348 libgssapi or libgssglue is not found, which is required by GSS.
353 libgssapi or libgssglue is not found, which is required by GSS.
358 AC_SUBST(GSSAPI_LIBS)
361 AS_IF([test "x$gss_conf_test" = xsuccess], [
362 AC_DEFINE([HAVE_GSS], [1], [Define this is if you enable gss])
369 # LC_INODE_PERMISION_2ARGS
371 # up to v2.6.27 had a 3 arg version (inode, mask, nameidata)
372 # v2.6.27->v2.6.37 had a 2 arg version (inode, mask)
373 # v2.6.37->v3.0 had a 3 arg version (inode, mask, nameidata)
374 # v3.1 onward have a 2 arg version (inode, mask)
376 AC_DEFUN([LC_INODE_PERMISION_2ARGS], [
377 LB_CHECK_COMPILE([if 'inode_operations->permission' has two args],
378 inode_ops_permission_2args, [
379 #include <linux/fs.h>
381 struct inode *inode __attribute__ ((unused));
384 inode->i_op->permission(NULL, 0);
386 AC_DEFINE(HAVE_INODE_PERMISION_2ARGS, 1,
387 [inode_operations->permission has two args])
389 ]) # LC_INODE_PERMISION_2ARGS
392 # LC_BLK_QUEUE_MAX_SEGMENTS
394 # 2.6.32 replaces 2 functions blk_queue_max_phys_segments and blk_queue_max_hw_segments by blk_queue_max_segments
396 AC_DEFUN([LC_BLK_QUEUE_MAX_SEGMENTS], [
397 LB_CHECK_COMPILE([if 'blk_queue_max_segments' is defined],
398 blk_queue_max_segments, [
399 #include <linux/blkdev.h>
401 blk_queue_max_segments(NULL, 0);
403 AC_DEFINE(HAVE_BLK_QUEUE_MAX_SEGMENTS, 1,
404 [blk_queue_max_segments is defined])
406 ]) # LC_BLK_QUEUE_MAX_SEGMENTS
409 # LC_HAVE_DQUOT_FS_DISK_QUOTA
411 # 2.6.34 has quotactl_ops->[sg]et_dqblk that take struct fs_disk_quota
413 AC_DEFUN([LC_HAVE_DQUOT_FS_DISK_QUOTA], [
414 tmp_flags="$EXTRA_KCFLAGS"
415 EXTRA_KCFLAGS="-Werror"
416 LB_CHECK_COMPILE([if 'quotactl_ops.set_dqblk' takes struct fs_disk_quota],
418 #include <linux/fs.h>
419 #include <linux/quota.h>
421 ((struct quotactl_ops *)0)->set_dqblk(NULL, 0, 0, (struct fs_disk_quota*)0);
423 AC_DEFINE(HAVE_DQUOT_FS_DISK_QUOTA, 1,
424 [quotactl_ops.set_dqblk takes struct fs_disk_quota])
426 LB_CHECK_COMPILE([if 'quotactl_ops.set_dqblk' takes struct kqid & fs_disk_quota],
427 kqid_fs_disk_quota, [
428 #include <linux/fs.h>
429 #include <linux/quota.h>
431 ((struct quotactl_ops *)0)->set_dqblk((struct super_block*)0, *((struct kqid*)0), (struct fs_disk_quota*)0);
433 AC_DEFINE(HAVE_DQUOT_FS_DISK_QUOTA, 1,
434 [quotactl_ops.set_dqblk takes struct fs_disk_quota])
435 AC_DEFINE(HAVE_DQUOT_KQID, 1,
436 [quotactl_ops.set_dqblk takes struct kqid])
439 EXTRA_KCFLAGS="$tmp_flags"
440 ]) # LC_HAVE_DQUOT_FS_DISK_QUOTA
443 # LC_HAVE_DQUOT_SUSPEND
445 # 2.6.34 has renamed dquot options to dquot_*, check for dquot_suspend
447 AC_DEFUN([LC_HAVE_DQUOT_SUSPEND], [
448 LB_CHECK_COMPILE([if 'dquot_suspend' is defined],
450 #include <linux/quotaops.h>
452 dquot_suspend(NULL, -1);
454 AC_DEFINE(HAVE_DQUOT_SUSPEND, 1, [dquot_suspend is defined])
456 ]) # LC_HAVE_DQUOT_SUSPEND
461 # Check if kernel has been patched for 64-bit quota limits support.
462 # The upstream version of this patch in RHEL6 2.6.32 kernels introduces
463 # the constant QFMT_VFS_V1 in include/linux/quota.h, so we can check for
464 # that in the absence of quotaio_v1.h in the kernel headers.
466 AC_DEFUN([LC_QUOTA64], [
467 tmp_flags="$EXTRA_KCFLAGS"
468 EXTRA_KCFLAGS="-I$LINUX/fs"
469 LB_CHECK_COMPILE([if kernel has 64-bit quota limits support],
471 #include <linux/kernel.h>
472 #include <linux/fs.h>
473 #if defined(HAVE_FS_QUOTA_QUOTAIO_H)
474 #include <quota/quotaio_v2.h>
475 struct v2r1_disk_dqblk dqblk_r1;
477 #include <linux/quota.h>
478 int ver = QFMT_VFS_V1;
481 AC_DEFINE(HAVE_QUOTA64, 1, [have quota64])
483 LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],
484 [AC_MSG_ERROR([You have got no 64-bit kernel quota support.])])
486 EXTRA_KCFLAGS=$tmp_flags
490 # LC_HAVE_ADD_WAIT_QUEUE_EXCLUSIVE
492 # 2.6.34 adds __add_wait_queue_exclusive
494 AC_DEFUN([LC_HAVE_ADD_WAIT_QUEUE_EXCLUSIVE], [
495 LB_CHECK_COMPILE([if '__add_wait_queue_exclusive' exists],
496 __add_wait_queue_exclusive, [
497 #include <linux/wait.h>
499 wait_queue_head_t queue;
501 __add_wait_queue_exclusive(&queue, &wait);
503 AC_DEFINE(HAVE___ADD_WAIT_QUEUE_EXCLUSIVE, 1,
504 [__add_wait_queue_exclusive exists])
506 ]) # LC_HAVE_ADD_WAIT_QUEUE_EXCLUSIVE
509 # LC_FS_STRUCT_RWLOCK
511 # 2.6.36 fs_struct.lock use spinlock instead of rwlock.
513 AC_DEFUN([LC_FS_STRUCT_RWLOCK], [
514 LB_CHECK_COMPILE([if 'fs_struct.lock' use rwlock],
516 #include <asm/atomic.h>
517 #include <linux/spinlock.h>
518 #include <linux/fs_struct.h>
520 ((struct fs_struct *)0)->lock = (rwlock_t){ 0 };
522 AC_DEFINE(HAVE_FS_STRUCT_RWLOCK, 1, [fs_struct.lock use rwlock])
524 ]) # LC_FS_STRUCT_RWLOCK
527 # LC_SBOPS_EVICT_INODE
529 # 2.6.36 super_operations add evict_inode method. it hybird of
530 # delete_inode & clear_inode.
532 AC_DEFUN([LC_SBOPS_EVICT_INODE], [
533 LB_CHECK_COMPILE([if 'super_operations.evict_inode' exist],
534 super_ops_evict_inode, [
535 #include <linux/fs.h>
537 ((struct super_operations *)0)->evict_inode(NULL);
539 AC_DEFINE(HAVE_SBOPS_EVICT_INODE, 1,
540 [super_operations.evict_inode() is exist in kernel])
542 ]) # LC_SBOPS_EVICT_INODE
547 # 2.6.35 file_operations.fsync taken 2 arguments.
548 # 3.0.0 file_operations.fsync takes 4 arguments.
550 AC_DEFUN([LC_FILE_FSYNC], [
551 LB_CHECK_COMPILE([if 'file_operations.fsync' takes 4 arguments],
552 file_ops_fsync_4args, [
553 #include <linux/fs.h>
555 ((struct file_operations *)0)->fsync(NULL, 0, 0, 0);
557 AC_DEFINE(HAVE_FILE_FSYNC_4ARGS, 1,
558 [file_operations.fsync takes 4 arguments])
560 LB_CHECK_COMPILE([if 'file_operations.fsync' takes 2 arguments],
561 file_ops_fsync_2args, [
562 #include <linux/fs.h>
564 ((struct file_operations *)0)->fsync(NULL, 0);
566 AC_DEFINE(HAVE_FILE_FSYNC_2ARGS, 1,
567 [file_operations.fsync takes 2 arguments])
575 # 2.6.37 remove kernel_locked
577 AC_DEFUN([LC_KERNEL_LOCKED], [
578 LB_CHECK_COMPILE([if 'kernel_locked' is defined],
580 #include <linux/smp_lock.h>
584 AC_DEFINE(HAVE_KERNEL_LOCKED, 1, [kernel_locked is defined])
586 ]) # LC_KERNEL_LOCKED
591 # 2.6.38 dentry_operations.d_compare() taken 7 arguments.
593 AC_DEFUN([LC_D_COMPARE_7ARGS], [
594 LB_CHECK_COMPILE([if 'dentry_operations.d_compare()' taken 7 arguments],
595 dentry_ops_d_compare_7arg, [
596 #include <linux/dcache.h>
598 ((struct dentry_operations*)0)->d_compare(NULL,NULL,NULL,NULL,0,NULL,NULL);
600 AC_DEFINE(HAVE_D_COMPARE_7ARGS, 1, [d_compare need 7 arguments])
602 ]) # LC_D_COMPARE_7ARGS
607 # 2.6.38 dentry_operations.d_delete() defined 'const' for 1st parameter.
609 AC_DEFUN([LC_D_DELETE_CONST], [
610 tmp_flags="$EXTRA_KCFLAGS"
611 EXTRA_KCFLAGS="-Werror"
612 LB_CHECK_COMPILE([if 'dentry_operations.d_delete()' has const declare on first parameter],
613 dentry_ops_d_delete_1st_const, [
614 #include <linux/dcache.h>
616 const struct dentry *d = NULL;
617 ((struct dentry_operations*)0)->d_delete(d);
619 AC_DEFINE(HAVE_D_DELETE_CONST, const,
620 [d_delete first parameter declared const])
622 AC_DEFINE(HAVE_D_DELETE_CONST, [],
623 [d_delete first parameter declared is not const])
625 EXTRA_KCFLAGS="$tmp_flags"
626 ]) # LC_D_DELETE_CONST
631 # 2.6.38 dcache_lock removed. rcu-walk commited.
633 AC_DEFUN([LC_DCACHE_LOCK], [
634 LB_CHECK_COMPILE([if 'dcache_lock' is exist],
636 #include <linux/dcache.h>
638 spin_lock(&dcache_lock);
640 AC_DEFINE(HAVE_DCACHE_LOCK, 1,
641 [dcache_lock is exist])
648 # 2.6.38 inode.i_rcu added.
650 AC_DEFUN([LC_INODE_I_RCU], [
651 LB_CHECK_COMPILE([if 'inode.i_rcu' exists],
653 #include <linux/fs.h>
656 struct rcu_head rcu = {};
659 AC_DEFINE(HAVE_INODE_I_RCU, 1,
660 [inode.i_rcu exists])
665 # LC_BLKDEV_GET_BY_DEV
667 # 2.6.38 export blkdev_get_by_dev
669 AC_DEFUN([LC_BLKDEV_GET_BY_DEV], [
670 LB_CHECK_EXPORT([blkdev_get_by_dev], [fs/block_dev.c],
671 [AC_DEFINE(HAVE_BLKDEV_GET_BY_DEV, 1,
672 [blkdev_get_by_dev is exported by the kernel])])
673 ]) # LC_BLKDEV_GET_BY_DEV
676 # LC_EXPORT_SIMPLE_SETATTR
678 # 2.6.38 export simple_setattr
680 AC_DEFUN([LC_EXPORT_SIMPLE_SETATTR], [
681 LB_CHECK_EXPORT([simple_setattr], [fs/libfs.c],
682 [AC_DEFINE(HAVE_SIMPLE_SETATTR, 1,
683 [simple_setattr is exported by the kernel])])
684 ]) # LC_EXPORT_SIMPLE_SETATTR
689 # truncate callback removed since 2.6.39
691 AC_DEFUN([LC_IOP_TRUNCATE], [
692 LB_CHECK_COMPILE([if 'inode_operations' has '.truncate' member function],
693 inode_ops_truncate, [
694 #include <linux/fs.h>
696 ((struct inode_operations *)0)->truncate(NULL);
698 AC_DEFINE(HAVE_INODEOPS_TRUNCATE, 1,
699 [inode_operations has .truncate member function])
704 # LC_REQUEST_QUEUE_UNPLUG_FN
706 # 2.6.39 remove unplug_fn from request_queue.
708 AC_DEFUN([LC_REQUEST_QUEUE_UNPLUG_FN], [
709 LB_CHECK_COMPILE([if 'request_queue' has 'unplug_fn' field],
710 request_queue_unplug_fn, [
711 #include <linux/blkdev.h>
713 do {} while(sizeof(((struct request_queue *)0)->unplug_fn));
715 AC_DEFINE(HAVE_REQUEST_QUEUE_UNPLUG_FN, 1,
716 [request_queue has unplug_fn field])
718 ]) # LC_REQUEST_QUEUE_UNPLUG_FN
721 # LC_HAVE_FSTYPE_MOUNT
723 # 2.6.39 replace get_sb with mount in struct file_system_type
725 AC_DEFUN([LC_HAVE_FSTYPE_MOUNT], [
726 LB_CHECK_COMPILE([if 'file_system_type' has 'mount' field],
727 file_system_type_mount, [
728 #include <linux/fs.h>
730 struct file_system_type fst;
731 void *i = (void *) fst.mount;
733 AC_DEFINE(HAVE_FSTYPE_MOUNT, 1,
734 [struct file_system_type has mount field])
736 ]) # LC_HAVE_FSTYPE_MOUNT
739 # LC_HAVE_FHANDLE_SYSCALLS
741 # 2.6.39 The open_by_handle_at() and name_to_handle_at() system calls were
742 # added to Linux kernel 2.6.39.
743 # Check if client supports these functions
745 AC_DEFUN([LC_HAVE_FHANDLE_SYSCALLS], [
746 LB_CHECK_CONFIG_IM([FHANDLE],[
747 AC_DEFINE(HAVE_FHANDLE_SYSCALLS, 1,
748 [kernel supports fhandles and related syscalls])
750 ]) # LC_HAVE_FHANDLE_SYSCALLS
753 # LC_HAVE_INODE_OWNER_OR_CAPABLE
755 # 2.6.39 renames is_owner_or_cap to inode_owner_or_capable
757 AC_DEFUN([LC_HAVE_INODE_OWNER_OR_CAPABLE], [
758 LB_CHECK_COMPILE([if 'inode_owner_or_capable' exist],
759 inode_owner_or_capable, [
760 #include <linux/fs.h>
762 inode_owner_or_capable(NULL);
764 AC_DEFINE(HAVE_INODE_OWNER_OR_CAPABLE, 1,
765 [inode_owner_or_capable exist])
767 ]) # LC_HAVE_INODE_OWNER_OR_CAPABLE
770 # LC_DIRTY_INODE_WITH_FLAG
772 # 3.0 dirty_inode() has a flag parameter
773 # see kernel commit aa38572954ade525817fe88c54faebf85e5a61c0
775 AC_DEFUN([LC_DIRTY_INODE_WITH_FLAG], [
776 LB_CHECK_COMPILE([if 'dirty_inode' super_operation takes flag],
777 dirty_inode_super_operation_flag, [
778 #include <linux/fs.h>
781 inode->i_sb->s_op->dirty_inode(NULL, 0);
783 AC_DEFINE(HAVE_DIRTY_INODE_HAS_FLAG, 1,
784 [dirty_inode super_operation takes flag])
786 ]) # LC_DIRTY_INODE_WITH_FLAG
789 # LC_GENERIC_PERMISSION
791 # 2.6.38 generic_permission taken 4 parameters.
792 # in fact, it means rcu-walk aware permission bring.
794 # 3.1 generic_permission taken 2 parameters.
795 # see kernel commit 2830ba7f34ebb27c4e5b8b6ef408cd6d74860890
797 AC_DEFUN([LC_GENERIC_PERMISSION], [
798 LB_CHECK_COMPILE([if 'generic_permission' take 2 arguments],
799 generic_permission_2args, [
800 #include <linux/fs.h>
802 generic_permission(NULL, 0);
804 AC_DEFINE(HAVE_GENERIC_PERMISSION_2ARGS, 1,
805 [generic_permission taken 2 arguments])
807 LB_CHECK_COMPILE([if 'generic_permission' take 4 arguments],
808 generic_permission_4args, [
809 #include <linux/fs.h>
811 generic_permission(NULL, 0, 0, NULL);
813 AC_DEFINE(HAVE_GENERIC_PERMISSION_4ARGS, 1,
814 [generic_permission taken 4 arguments])
817 ]) # LC_GENERIC_PERMISSION
820 # LC_LM_XXX_LOCK_MANAGER_OPS
822 # 3.1 renames lock-manager ops(lock_manager_operations) from fl_xxx to lm_xxx
823 # see kernel commit 8fb47a4fbf858a164e973b8ea8ef5e83e61f2e50
825 AC_DEFUN([LC_LM_XXX_LOCK_MANAGER_OPS], [
826 LB_CHECK_COMPILE([if 'lock-manager' ops renamed to 'lm_xxx'],
827 lock_manager_ops_lm_xxx, [
828 #include <linux/fs.h>
830 struct lock_manager_operations lm_ops;
831 lm_ops.lm_compare_owner = NULL;
833 AC_DEFINE(HAVE_LM_XXX_LOCK_MANAGER_OPS, 1,
834 [lock-manager ops renamed to lm_xxx])
836 ]) # LC_LM_XXX_LOCK_MANAGER_OPS
841 # 3.1 kills inode->i_alloc_sem, use i_dio_count and inode_dio_wait/
842 # inode_dio_done instead.
843 # see kernel commit bd5fe6c5eb9c548d7f07fe8f89a150bb6705e8e3
845 AC_DEFUN([LC_INODE_DIO_WAIT], [
846 LB_CHECK_COMPILE([if 'inode->i_alloc_sem' is killed and use inode_dio_wait/done],
848 #include <linux/fs.h>
850 inode_dio_wait((struct inode *)0);
851 inode_dio_done((struct inode *)0);
853 AC_DEFINE(HAVE_INODE_DIO_WAIT, 1,
854 [inode->i_alloc_sem is killed and use inode_dio_wait/done])
856 ]) # LC_INODE_DIO_WAIT
861 # 3.1 adds get_acl method to inode_operations to read ACL from disk.
862 # see kernel commit 4e34e719e457f2e031297175410fc0bd4016a085
864 AC_DEFUN([LC_IOP_GET_ACL], [
865 LB_CHECK_COMPILE([if 'inode_operations' has '.get_acl' member function],
867 #include <linux/fs.h>
869 struct inode_operations iop;
872 AC_DEFINE(HAVE_IOP_GET_ACL, 1,
873 [inode_operations has .get_acl member function])
878 # LC_FILE_LLSEEK_SIZE
880 # 3.1 introduced generic_file_llseek_size()
882 AC_DEFUN([LC_FILE_LLSEEK_SIZE], [
883 LB_CHECK_EXPORT([generic_file_llseek_size], [fs/read_write.c],
884 [AC_DEFINE(HAVE_FILE_LLSEEK_SIZE, 1,
885 [generic_file_llseek_size is exported by the kernel])])
886 ]) # LC_FILE_LLSEEK_SIZE
889 # LC_RADIX_EXCEPTION_ENTRY
890 # 3.1 adds radix_tree_exception_entry.
892 AC_DEFUN([LC_RADIX_EXCEPTION_ENTRY], [
893 LB_CHECK_COMPILE([radix_tree_exceptional_entry exist],
894 radix_tree_exceptional_entry, [
895 #include <linux/radix-tree.h>
897 radix_tree_exceptional_entry(NULL);
899 AC_DEFINE(HAVE_RADIX_EXCEPTION_ENTRY, 1,
900 [radix_tree_exceptional_entry exist])
902 ]) # LC_RADIX_EXCEPTION_ENTRY
905 # LC_HAVE_VOID_MAKE_REQUEST_FN
907 # 3.2 request_queue.make_request_fn defined as function returns with void
908 # see kernel commit 5a7bbad27a410350e64a2d7f5ec18fc73836c14f
910 AC_DEFUN([LC_HAVE_VOID_MAKE_REQUEST_FN], [
911 LB_CHECK_COMPILE([if 'request_queue.make_request_fn' returns void but not int],
912 make_request_fn_void, [
913 #include <linux/blkdev.h>
916 make_request_fn *mrf;
917 ret = mrf(NULL, NULL);
919 AC_DEFINE(HAVE_VOID_MAKE_REQUEST_FN, 1,
920 [request_queue.make_request_fn returns void but not int])
922 ]) # LC_HAVE_VOID_MAKE_REQUEST_FN
925 # LC_HAVE_PROTECT_I_NLINK
927 # 3.2 protects inode->i_nlink from direct modification
928 # see kernel commit a78ef704a8dd430225955f0709b22d4a6ba21deb
929 # at the same time adds set_nlink(), so checks set_nlink() for it.
931 AC_DEFUN([LC_HAVE_PROTECT_I_NLINK], [
932 LB_CHECK_COMPILE([if 'inode->i_nlink' is protected from direct modification],
933 inode_i_nlink_protected, [
934 #include <linux/fs.h>
939 AC_DEFINE(HAVE_PROTECT_I_NLINK, 1,
940 [inode->i_nlink is protected from direct modification])
942 ]) # LC_HAVE_PROTECT_I_NLINK
945 # LC_HAVE_MIGRATE_HEADER
947 # 3.3 introduces migrate_mode.h and migratepage has 4 args
949 AC_DEFUN([LC_HAVE_MIGRATE_HEADER], [
950 LB_CHECK_FILE([$LINUX/include/linux/migrate.h], [
951 AC_DEFINE(HAVE_MIGRATE_H, 1,
952 [kernel has include/linux/migrate.h])
954 LB_CHECK_FILE([$LINUX/include/linux/migrate_mode.h], [
955 AC_DEFINE(HAVE_MIGRATE_MODE_H, 1,
956 [kernel has include/linux/migrate_mode.h])
959 ]) # LC_HAVE_MIGRATE_HEADER
962 # LC_MIGRATEPAGE_4ARGS
964 AC_DEFUN([LC_MIGRATEPAGE_4ARGS], [
965 LB_CHECK_COMPILE([if 'address_space_operations.migratepage' has 4 args],
966 address_space_ops_migratepage_4args, [
967 #include <linux/fs.h>
968 #ifdef HAVE_MIGRATE_H
969 #include <linux/migrate.h>
970 #elif defined(HAVE_MIGRATE_MODE_H)
971 #include <linux/migrate_mode.h>
974 struct address_space_operations aops;
975 aops.migratepage(NULL, NULL, NULL, MIGRATE_ASYNC);
977 AC_DEFINE(HAVE_MIGRATEPAGE_4ARGS, 1,
978 [address_space_operations.migratepage has 4 args])
980 ]) # LC_MIGRATEPAGE_4ARGS
983 # LC_SUPEROPS_USE_DENTRY
985 # 3.3 switchs super_operations to use dentry as parameter (but not vfsmount)
986 # see kernel commit 34c80b1d93e6e20ca9dea0baf583a5b5510d92d4
988 AC_DEFUN([LC_SUPEROPS_USE_DENTRY], [
989 tmp_flags="$EXTRA_KCFLAGS"
990 EXTRA_KCFLAGS="-Werror"
991 LB_CHECK_COMPILE([if 'super_operations' use 'dentry' as parameter],
993 #include <linux/fs.h>
994 int show_options(struct seq_file *seq, struct dentry *root) {
998 struct super_operations ops;
999 ops.show_options = show_options;
1001 AC_DEFINE(HAVE_SUPEROPS_USE_DENTRY, 1,
1002 [super_operations use dentry as parameter])
1004 EXTRA_KCFLAGS="$tmp_flags"
1005 ]) # LC_SUPEROPS_USE_DENTRY
1008 # LC_INODEOPS_USE_UMODE_T
1010 # 3.3 switchs inode_operations to use umode_t as parameter (but not int)
1011 # see kernel commit 1a67aafb5f72a436ca044293309fa7e6351d6a35
1013 AC_DEFUN([LC_INODEOPS_USE_UMODE_T], [
1014 tmp_flags="$EXTRA_KCFLAGS"
1015 EXTRA_KCFLAGS="-Werror"
1016 LB_CHECK_COMPILE([if 'inode_operations' use 'umode_t' as parameter],
1017 inode_ops_umode_t, [
1018 #include <linux/fs.h>
1019 #include <linux/types.h>
1020 int my_mknod(struct inode *dir, struct dentry *dchild,
1021 umode_t mode, dev_t dev)
1026 struct inode_operations ops;
1027 ops.mknod = my_mknod;
1029 AC_DEFINE(HAVE_INODEOPS_USE_UMODE_T, 1,
1030 [inode_operations use umode_t as parameter])
1032 EXTRA_KCFLAGS="$tmp_flags"
1033 ]) # LC_INODEOPS_USE_UMODE_T
1036 # LC_KMAP_ATOMIC_HAS_1ARG
1038 # 3.4 kmap_atomic removes second argument
1039 # see kernel commit 1ec9c5ddc17aa398f05646abfcbaf315b544e62f
1041 AC_DEFUN([LC_KMAP_ATOMIC_HAS_1ARG], [
1042 LB_CHECK_COMPILE([if 'kmap_atomic' has only 1 argument],
1044 #include <linux/highmem.h>
1048 AC_DEFINE(HAVE_KMAP_ATOMIC_HAS_1ARG, 1,
1049 [have kmap_atomic has only 1 argument])
1051 ]) # LC_KMAP_ATOMIC_HAS_1ARG
1054 # LC_HAVE_D_MAKE_ROOT
1056 # 3.4 converts d_alloc_root to d_make_root
1057 # see kernel commit 32991ab305ace7017c62f8eecbe5eb36dc32e13b
1059 AC_DEFUN([LC_HAVE_D_MAKE_ROOT], [
1060 LB_CHECK_COMPILE([if have 'd_make_root'],
1062 #include <linux/fs.h>
1064 d_make_root((struct inode *)NULL);
1066 AC_DEFINE(HAVE_D_MAKE_ROOT, 1,
1069 ]) # LC_HAVE_D_MAKE_ROOT
1072 # LC_HAVE_CACHE_REGISTER
1074 # 3.4 cache_register/cache_unregister are removed
1075 # see kernel commit 2c5f846747526e2b83c5f1b8e69016be0e2e87c0
1076 # Note, since 2.6.37 cache_register_net/cache_unregister_net
1077 # are defined, but not exported.
1078 # 3.3 cache_register_net/cache_unregister_net are
1079 # exported and replacing cache_register/cache_unregister in 3.4
1081 AC_DEFUN([LC_HAVE_CACHE_REGISTER], [
1082 LB_CHECK_COMPILE([if have 'cache_register'],
1084 #include <linux/sunrpc/cache.h>
1086 cache_register(NULL);
1088 AC_DEFINE(HAVE_CACHE_REGISTER, 1,
1089 [have cache_register])
1091 ]) # LC_HAVE_CACHE_REGISTER
1094 # LC_HAVE_CLEAR_INODE
1096 # 3.5 renames end_writeback() back to clear_inode()...
1097 # see kernel commit dbd5768f87ff6fb0a4fe09c4d7b6c4a24de99430
1099 AC_DEFUN([LC_HAVE_CLEAR_INODE], [
1100 LB_CHECK_COMPILE([if have 'clear_inode'],
1102 #include <linux/fs.h>
1104 clear_inode((struct inode *)NULL);
1106 AC_DEFINE(HAVE_CLEAR_INODE, 1,
1109 ]) # LC_HAVE_CLEAR_INODE
1112 # LC_HAVE_ENCODE_FH_PARENT
1114 # 3.5 encode_fh has parent inode passed in directly
1115 # see kernel commit b0b0382b
1117 AC_DEFUN([LC_HAVE_ENCODE_FH_PARENT], [
1118 tmp_flags="$EXTRA_KCFLAGS"
1119 EXTRA_KCFLAGS="-Werror"
1120 LB_CHECK_COMPILE([if 'encode_fh' have parent inode as parameter],
1121 encode_fh_parent_inode, [
1122 #include <linux/exportfs.h>
1123 #include <linux/fs.h>
1124 #include <linux/types.h>
1125 int ll_encode_fh(struct inode *i, __u32 *a, int *b, struct inode *p)
1130 struct export_operations exp_op;
1131 exp_op.encode_fh = ll_encode_fh;
1133 AC_DEFINE(HAVE_ENCODE_FH_PARENT, 1,
1134 [have parent inode as parameter])
1136 EXTRA_KCFLAGS="$tmp_flags"
1137 ]) # LC_HAVE_ENCODE_FH_PARENT
1140 # LC_FILE_LLSEEK_SIZE_5ARG
1142 # 3.5 has generic_file_llseek_size with 5 args
1144 AC_DEFUN([LC_FILE_LLSEEK_SIZE_5ARG], [
1145 LB_CHECK_COMPILE([if Linux kernel has 'generic_file_llseek_size' with 5 args],
1146 generic_file_llseek_size_5args, [
1147 #include <linux/fs.h>
1149 generic_file_llseek_size(NULL, 0, 0, 0, 0);
1151 AC_DEFINE(HAVE_FILE_LLSEEK_SIZE_5ARGS, 1,
1152 [kernel has generic_file_llseek_size with 5 args])
1154 ]) # LC_FILE_LLSEEK_SIZE_5ARG
1157 # LC_LLITE_DATA_IS_LIST
1159 # 3.6 switch i_dentry/d_alias from list to hlist
1161 # In the upstream kernels d_alias first changes
1162 # to a hlist and then in later version, 3.11, gets
1163 # moved to the union d_u. Due to some distros having
1164 # d_alias in the d_u union as a struct list, which
1165 # has never existed upstream stream, we can't test
1166 # if d_alias is a list or hlist directly. If ever
1167 # i_dentry and d_alias even up different combos then
1168 # the build will fail. In that case then we will need
1169 # to separate out the i_dentry and d_alias test below.
1171 AC_DEFUN([LC_DATA_FOR_LLITE_IS_LIST], [
1172 tmp_flags="$EXTRA_KCFLAGS"
1173 EXTRA_KCFLAGS="-Werror"
1174 LB_CHECK_COMPILE([if 'i_dentry/d_alias' uses 'list'],
1175 i_dentry_d_alias_list, [
1176 #include <linux/fs.h>
1179 INIT_LIST_HEAD(&inode.i_dentry);
1181 AC_DEFINE(DATA_FOR_LLITE_IS_LIST, 1,
1182 [both i_dentry/d_alias uses list])
1184 EXTRA_KCFLAGS="$tmp_flags"
1185 ]) # LC_DATA_FOR_LLITE_IS_LIST
1188 # LC_DENTRY_OPEN_USE_PATH
1190 # 3.6 dentry_open uses struct path as first argument
1191 # see kernel commit 765927b2
1193 AC_DEFUN([LC_DENTRY_OPEN_USE_PATH], [
1194 tmp_flags="$EXTRA_KCFLAGS"
1195 EXTRA_KCFLAGS="-Werror"
1196 LB_CHECK_COMPILE([if 'dentry_open' uses 'struct path' as first argument],
1198 #include <linux/fs.h>
1199 #include <linux/path.h>
1202 dentry_open(&path, 0, NULL);
1204 AC_DEFINE(HAVE_DENTRY_OPEN_USE_PATH, 1,
1205 [dentry_open uses struct path as first argument])
1207 EXTRA_KCFLAGS="$tmp_flags"
1208 ]) # LC_DENTRY_OPEN_USE_PATH
1211 # LC_HAVE_IOP_ATOMIC_OPEN
1213 # 3.6 vfs adds iop->atomic_open
1215 AC_DEFUN([LC_HAVE_IOP_ATOMIC_OPEN], [
1216 LB_CHECK_COMPILE([if 'iop' has 'atomic_open'],
1217 inode_ops_atomic_open, [
1218 #include <linux/fs.h>
1220 struct inode_operations iop;
1221 iop.atomic_open = NULL;
1223 AC_DEFINE(HAVE_IOP_ATOMIC_OPEN, 1,
1224 [have iop atomic_open])
1226 ]) # LC_HAVE_IOP_ATOMIC_OPEN
1229 # LC_HAVE_POSIXACL_USER_NS
1231 # 3.7 posix_acl_{to,from}_xattr take struct user_namespace
1233 AC_DEFUN([LC_HAVE_POSIXACL_USER_NS], [
1234 LB_CHECK_COMPILE([if 'posix_acl_to_xattr' takes 'struct user_namespace'],
1235 posix_acl_to_xattr_user_namespace, [
1236 #include <linux/fs.h>
1237 #include <linux/posix_acl_xattr.h>
1239 posix_acl_to_xattr((struct user_namespace *)NULL, NULL, NULL, 0);
1241 AC_DEFINE(HAVE_POSIXACL_USER_NS, 1,
1242 [posix_acl_to_xattr takes struct user_namespace])
1244 ]) # LC_HAVE_POSIXACL_USER_NS
1247 # LC_HAVE_FILE_F_INODE
1249 # 3.8 struct file has new member f_inode
1251 AC_DEFUN([LC_HAVE_FILE_F_INODE], [
1252 LB_CHECK_COMPILE([if 'struct file' has member 'f_inode'],
1254 #include <linux/fs.h>
1256 ((struct file *)0)->f_inode = NULL;
1258 AC_DEFINE(HAVE_FILE_F_INODE, 1,
1259 [struct file has member f_inode])
1261 ]) # LC_HAVE_FILE_F_INODE
1264 # LC_HAVE_SUNRPC_UPCALL_HAS_3ARGS
1266 AC_DEFUN([LC_HAVE_SUNRPC_UPCALL_HAS_3ARGS], [
1267 LB_CHECK_COMPILE([if 'sunrpc_cache_pipe_upcall' takes 3 args],
1268 sunrpc_cache_pipe_upcall_3args, [
1269 #include <linux/sunrpc/cache.h>
1271 sunrpc_cache_pipe_upcall(NULL, NULL, NULL);
1273 AC_DEFINE(HAVE_SUNRPC_UPCALL_HAS_3ARGS, 1,
1274 [sunrpc_cache_pipe_upcall takes 3 args])
1276 ]) # LC_HAVE_SUNRPC_UPCALL_HAS_3ARGS
1279 # LC_HAVE_HLIST_FOR_EACH_3ARG
1281 # 3.9 uses hlist_for_each_entry with 3 args
1282 # b67bfe0d42cac56c512dd5da4b1b347a23f4b70a
1284 AC_DEFUN([LC_HAVE_HLIST_FOR_EACH_3ARG], [
1285 LB_CHECK_COMPILE([if 'hlist_for_each_entry' has 3 args],
1286 hlist_for_each_entry_3args, [
1287 #include <linux/list.h>
1288 #include <linux/fs.h>
1290 struct hlist_head *head = NULL;
1291 struct inode *inode;
1293 hlist_for_each_entry(inode, head, i_hash) {
1297 AC_DEFINE(HAVE_HLIST_FOR_EACH_3ARG, 1,
1298 [hlist_for_each_entry has 3 args])
1300 ]) # LC_HAVE_HLIST_FOR_EACH_3ARG
1303 # LC_HAVE_BIO_END_SECTOR
1305 # 3.9 introduces bio_end_sector macro
1306 # f73a1c7d117d07a96d89475066188a2b79e53c48
1308 AC_DEFUN([LC_HAVE_BIO_END_SECTOR], [
1309 LB_CHECK_COMPILE([if 'bio_end_sector' is defined],
1311 #include <linux/bio.h>
1315 bio_end_sector(&bio);
1317 AC_DEFINE(HAVE_BIO_END_SECTOR, 1,
1318 [bio_end_sector is defined])
1320 ]) # LC_HAVE_BIO_END_SECTOR
1323 # LC_HAVE_REMOVE_PROC_SUBTREE
1325 # 3.10 introduced remove_proc_subtree
1327 AC_DEFUN([LC_HAVE_REMOVE_PROC_SUBTREE], [
1328 LB_CHECK_COMPILE([if 'remove_proc_subtree' is defined],
1329 remove_proc_subtree, [
1330 #include <linux/proc_fs.h>
1332 remove_proc_subtree(NULL, NULL);
1334 AC_DEFINE(HAVE_REMOVE_PROC_SUBTREE, 1,
1335 [remove_proc_subtree is defined])
1337 ]) # LC_HAVE_REMOVE_PROC_SUBTREE
1340 # LC_HAVE_PROC_REMOVE
1342 # 3.10 introduced proc_remove
1344 AC_DEFUN([LC_HAVE_PROC_REMOVE], [
1345 LB_CHECK_COMPILE([if 'proc_remove' is defined],
1347 #include <linux/proc_fs.h>
1351 AC_DEFINE(HAVE_PROC_REMOVE, 1,
1352 [proc_remove is defined])
1354 ]) # LC_HAVE_PROC_REMOVE
1357 # LC_BLKDEV_RELEASE_RETURN_INT
1359 # 3.10 release for block device doesn't return int
1361 AC_DEFUN([LC_BLKDEV_RELEASE_RETURN_INT], [
1362 LB_CHECK_COMPILE([if 'block_device_operations' release returns 'int'],
1363 block_device_ops_release_return_int, [
1364 #include <linux/blkdev.h>
1366 struct block_device_operations fops;
1367 int i __attribute__ ((unused));
1369 i = fops.release(NULL, 0);
1371 AC_DEFINE(HAVE_BLKDEV_RELEASE_RETURN_INT, 1,
1372 [block device release returns int])
1374 ]) # LC_BLKDEV_RELEASE_RETURN_INT
1377 # LC_INVALIDATE_RANGE
1379 # 3.11 invalidatepage requires the length of the range to invalidate
1381 AC_DEFUN([LC_INVALIDATE_RANGE], [
1382 LB_CHECK_COMPILE([if 'address_space_operations.invalidatepage' requires 3 arguments],
1383 address_space_ops_invalidatepage_3args, [
1384 #include <linux/fs.h>
1386 struct address_space_operations a_ops;
1387 a_ops.invalidatepage(NULL, 0, 0);
1389 AC_DEFINE(HAVE_INVALIDATE_RANGE, 1,
1390 [address_space_operations.invalidatepage needs 3 arguments])
1392 ]) # LC_INVALIDATE_RANGE
1395 # LC_HAVE_DIR_CONTEXT
1397 # 3.11 readdir now takes the new struct dir_context
1399 AC_DEFUN([LC_HAVE_DIR_CONTEXT], [
1400 LB_CHECK_COMPILE([if 'dir_context' exist],
1402 #include <linux/fs.h>
1404 struct dir_context ctx;
1407 AC_DEFINE(HAVE_DIR_CONTEXT, 1,
1408 [dir_context exist])
1410 ]) # LC_HAVE_DIR_CONTEXT
1413 # LC_D_COMPARE_5ARGS
1415 # 3.11 dentry_operations.d_compare() taken 5 arguments.
1417 AC_DEFUN([LC_D_COMPARE_5ARGS], [
1418 LB_CHECK_COMPILE([if 'd_compare' taken 5 arguments],
1420 #include <linux/dcache.h>
1422 ((struct dentry_operations*)0)->d_compare(NULL,NULL,0,NULL,NULL);
1424 AC_DEFINE(HAVE_D_COMPARE_5ARGS, 1,
1425 [d_compare need 5 arguments])
1427 ]) # LC_D_COMPARE_5ARGS
1432 # 3.11 need to access d_count to get dentry reference count
1434 AC_DEFUN([LC_HAVE_DCOUNT], [
1435 LB_CHECK_COMPILE([if 'd_count' exist],
1437 #include <linux/dcache.h>
1442 AC_DEFINE(HAVE_D_COUNT, 1,
1448 # LC_OLDSIZE_TRUNCATE_PAGECACHE
1450 # 3.12 truncate_pagecache without oldsize parameter
1452 AC_DEFUN([LC_OLDSIZE_TRUNCATE_PAGECACHE], [
1453 LB_CHECK_COMPILE([if 'truncate_pagecache' with 'old_size' parameter],
1454 truncate_pagecache_old_size, [
1455 #include <linux/mm.h>
1457 truncate_pagecache(NULL, 0, 0);
1459 AC_DEFINE(HAVE_OLDSIZE_TRUNCATE_PAGECACHE, 1,
1462 ]) # LC_OLDSIZE_TRUNCATE_PAGECACHE
1465 # LC_HAVE_DENTRY_D_U_D_ALIAS
1467 # 3.11 kernel moved d_alias to the union d_u in struct dentry
1469 # Some distros move d_alias to d_u but it is still a struct list
1471 AC_DEFUN([LC_HAVE_DENTRY_D_U_D_ALIAS], [
1472 AS_IF([test "x$lb_cv_compile_i_dentry_d_alias_list" = xyes], [
1473 LB_CHECK_COMPILE([if list 'dentry.d_u.d_alias' exist],
1475 #include <linux/list.h>
1476 #include <linux/dcache.h>
1479 INIT_LIST_HEAD(&de.d_u.d_alias);
1481 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
1482 [list dentry.d_u.d_alias exist])
1485 LB_CHECK_COMPILE([if hlist 'dentry.d_u.d_alias' exist],
1487 #include <linux/list.h>
1488 #include <linux/dcache.h>
1491 INIT_HLIST_NODE(&de.d_u.d_alias);
1493 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
1494 [hlist dentry.d_u.d_alias exist])
1497 ]) # LC_HAVE_DENTRY_D_U_D_ALIAS
1500 # LC_HAVE_DENTRY_D_CHILD
1502 # 3.11 kernel d_child has been moved out of the union d_u
1505 AC_DEFUN([LC_HAVE_DENTRY_D_CHILD], [
1506 LB_CHECK_COMPILE([if 'dentry.d_child' exist],
1508 #include <linux/list.h>
1509 #include <linux/dcache.h>
1512 INIT_LIST_HEAD(&de.d_child);
1514 AC_DEFINE(HAVE_DENTRY_D_CHILD, 1,
1515 [dentry.d_child exist])
1517 ]) # LC_HAVE_DENTRY_D_CHILD
1522 # 3.12 ki_left removed from struct kiocb
1524 AC_DEFUN([LC_KIOCB_KI_LEFT], [
1525 LB_CHECK_COMPILE([if 'struct kiocb' with 'ki_left' member],
1527 #include <linux/aio.h>
1529 ((struct kiocb*)0)->ki_left = 0;
1531 AC_DEFINE(HAVE_KIOCB_KI_LEFT, 1,
1534 ]) # LC_KIOCB_KI_LEFT
1537 # LC_VFS_RENAME_5ARGS
1539 # 3.13 has vfs_rename with 5 args
1541 AC_DEFUN([LC_VFS_RENAME_5ARGS], [
1542 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 5 args],
1544 #include <linux/fs.h>
1546 vfs_rename(NULL, NULL, NULL, NULL, NULL);
1548 AC_DEFINE(HAVE_VFS_RENAME_5ARGS, 1,
1549 [kernel has vfs_rename with 5 args])
1551 ]) # LC_VFS_RENAME_5ARGS
1554 # LC_VFS_UNLINK_3ARGS
1556 # 3.13 has vfs_unlink with 3 args
1558 AC_DEFUN([LC_VFS_UNLINK_3ARGS], [
1559 LB_CHECK_COMPILE([if Linux kernel has 'vfs_unlink' with 3 args],
1561 #include <linux/fs.h>
1563 vfs_unlink(NULL, NULL, NULL);
1565 AC_DEFINE(HAVE_VFS_UNLINK_3ARGS, 1,
1566 [kernel has vfs_unlink with 3 args])
1568 ]) # LC_VFS_UNLINK_3ARGS
1573 # 3.14 move some of its data in struct bio into the new
1576 AC_DEFUN([LC_HAVE_BVEC_ITER], [
1577 LB_CHECK_COMPILE([if Linux kernel has struct bvec_iter],
1579 #include <linux/bio.h>
1581 struct bvec_iter iter;
1582 iter.bi_bvec_done = 0;
1584 AC_DEFINE(HAVE_BVEC_ITER, 1,
1585 [kernel has struct bvec_iter])
1587 ]) # LC_HAVE_BVEC_ITER
1590 # LC_HAVE_TRUNCATE_IPAGE_FINAL
1592 # 3.14 bring truncate_inode_pages_final for evict_inode
1594 AC_DEFUN([LC_HAVE_TRUNCATE_IPAGES_FINAL], [
1595 LB_CHECK_COMPILE([if Linux kernel has truncate_inode_pages_final],
1596 truncate_ipages_final, [
1597 #include <linux/mm.h>
1599 truncate_inode_pages_final(NULL);
1601 AC_DEFINE(HAVE_TRUNCATE_INODE_PAGES_FINAL, 1,
1602 [kernel has truncate_inode_pages_final])
1604 ]) # LC_HAVE_TRUNCATE_IPAGES_FINAL
1607 # LC_VFS_RENAME_6ARGS
1609 # 3.15 has vfs_rename with 6 args
1611 AC_DEFUN([LC_VFS_RENAME_6ARGS], [
1612 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 6 args],
1614 #include <linux/fs.h>
1616 vfs_rename(NULL, NULL, NULL, NULL, NULL, NULL);
1618 AC_DEFINE(HAVE_VFS_RENAME_6ARGS, 1,
1619 [kernel has vfs_rename with 6 args])
1621 ]) # LC_VFS_RENAME_6ARGS
1626 # Lustre linux kernel checks
1628 AC_DEFUN([LC_PROG_LINUX], [
1629 AC_MSG_NOTICE([Lustre kernel checks
1630 ==============================================================================])
1634 LC_CONFIG_HEALTH_CHECK_WRITE
1635 LC_CONFIG_LRU_RESIZE
1636 LC_LLITE_LLOOP_MODULE
1638 LC_GLIBC_SUPPORT_FHANDLES
1644 LC_BLK_QUEUE_MAX_SEGMENTS
1647 LC_HAVE_DQUOT_FS_DISK_QUOTA
1648 LC_HAVE_DQUOT_SUSPEND
1649 LC_HAVE_ADD_WAIT_QUEUE_EXCLUSIVE
1653 LC_EXPORT_SIMPLE_SETATTR
1654 LC_EXPORT_TRUNCATE_COMPLETE_PAGE
1658 LC_SBOPS_EVICT_INODE
1664 LC_BLKDEV_GET_BY_DEV
1665 LC_GENERIC_PERMISSION
1672 LC_REQUEST_QUEUE_UNPLUG_FN
1673 LC_HAVE_FHANDLE_SYSCALLS
1674 LC_HAVE_FSTYPE_MOUNT
1676 LC_HAVE_INODE_OWNER_OR_CAPABLE
1679 LC_DIRTY_INODE_WITH_FLAG
1682 LC_LM_XXX_LOCK_MANAGER_OPS
1686 LC_INODE_PERMISION_2ARGS
1687 LC_RADIX_EXCEPTION_ENTRY
1690 LC_HAVE_VOID_MAKE_REQUEST_FN
1691 LC_HAVE_PROTECT_I_NLINK
1694 LC_HAVE_MIGRATE_HEADER
1695 LC_MIGRATEPAGE_4ARGS
1696 LC_SUPEROPS_USE_DENTRY
1697 LC_INODEOPS_USE_UMODE_T
1698 LC_HAVE_CACHE_REGISTER
1702 LC_KMAP_ATOMIC_HAS_1ARG
1706 LC_HAVE_ENCODE_FH_PARENT
1707 LC_FILE_LLSEEK_SIZE_5ARG
1710 LC_DATA_FOR_LLITE_IS_LIST
1711 LC_DENTRY_OPEN_USE_PATH
1712 LC_HAVE_IOP_ATOMIC_OPEN
1715 LC_HAVE_POSIXACL_USER_NS
1718 LC_HAVE_FILE_F_INODE
1719 LC_HAVE_SUNRPC_UPCALL_HAS_3ARGS
1722 LC_HAVE_HLIST_FOR_EACH_3ARG
1723 LC_HAVE_BIO_END_SECTOR
1726 LC_BLKDEV_RELEASE_RETURN_INT
1727 LC_HAVE_REMOVE_PROC_SUBTREE
1735 LC_HAVE_DENTRY_D_U_D_ALIAS
1736 LC_HAVE_DENTRY_D_CHILD
1739 LC_OLDSIZE_TRUNCATE_PAGECACHE
1748 LC_HAVE_TRUNCATE_IPAGES_FINAL
1754 AS_IF([test "x$enable_server" != xno], [
1755 LC_FUNC_DEV_SET_RDONLY
1765 # Check whether to build the client side of Lustre
1767 AC_DEFUN([LC_CONFIG_CLIENT], [
1768 AC_MSG_CHECKING([whether to build Lustre client support])
1769 AC_ARG_ENABLE([client],
1770 AC_HELP_STRING([--disable-client],
1771 [disable Lustre client support]),
1772 [], [enable_client="yes"])
1773 AC_MSG_RESULT([$enable_client])
1774 ]) # LC_CONFIG_CLIENT
1779 AC_DEFUN([LB_CONFIG_MPITESTS], [
1780 AC_ARG_ENABLE([mpitests],
1781 AC_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
1782 [include mpi tests]), [
1783 enable_mpitests="yes"
1786 MPICC_WRAPPER="mpicc"
1789 enable_mpitests="no"
1792 MPICC_WRAPPER=$enableval
1796 enable_mpitests="yes"
1797 MPICC_WRAPPER="mpicc"
1800 if test "x$enable_mpitests" != "xno"; then
1803 AC_CACHE_CHECK([whether mpitests can be built],
1804 lb_cv_mpi_tests, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
1808 MPI_Initialized(&flag);
1811 ])], [lb_cv_mpi_tests="yes"], [lb_cv_mpi_tests="no"
1812 enable_mpitests=$lb_cv_mpi_tests])
1816 AC_SUBST(MPICC_WRAPPER)
1817 ]) # LB_CONFIG_MPITESTS
1822 # whether to enable quota support global control
1824 AC_DEFUN([LC_CONFIG_QUOTA], [
1825 AC_MSG_CHECKING([whether to enable quota support global control])
1826 AC_ARG_ENABLE([quota],
1827 AC_HELP_STRING([--enable-quota],
1828 [enable quota support]),
1829 [], [enable_quota="yes"])
1830 AS_IF([test "x$enable_quota" = xyes],
1831 [AC_MSG_RESULT([yes])],
1832 [AC_MSG_RESULT([no])])
1833 ]) # LC_CONFIG_QUOTA
1838 AC_DEFUN([LC_QUOTA], [
1842 AS_IF([test "x$enable_quota" != xno -a "x$enable_utils" != xno], [
1843 AC_CHECK_HEADER([sys/quota.h],
1844 [AC_DEFINE(HAVE_SYS_QUOTA_H, 1,
1845 [Define to 1 if you have <sys/quota.h>.])],
1846 [AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
1851 # LC_CONFIG_NODEMAP_PROC_DEBUG
1853 # enable nodemap proc file debugging
1855 AC_DEFUN([LC_NODEMAP_PROC_DEBUG], [
1856 AC_MSG_CHECKING([whether to enable nodemap proc debug])
1857 AC_ARG_ENABLE([nodemap_proc_debug],
1858 AC_HELP_STRING([--enable-nodemap-proc-debug],
1859 [enable nodemap proc debug]),
1860 [], [enable_nodemap_proc_debug="no"])
1861 AC_MSG_RESULT([$enable_nodemap_proc_debug])
1862 AS_IF([test "x$enable_nodemap_proc_debug" != xno],
1863 [AC_DEFINE(NODEMAP_PROC_DEBUG, 1,
1864 [enable nodemap proc debug support])])
1865 ]) # LC_NODEMAP_PROC_DEBUG
1868 # LC_LLITE_LLOOP_MODULE
1870 # lloop_llite.ko does not currently work with page sizes
1873 AC_DEFUN([LC_LLITE_LLOOP_MODULE], [
1874 LB_CHECK_COMPILE([whether to enable 'llite_lloop' module],
1875 enable_llite_lloop_module, [
1876 #include <asm/page.h>
1878 #if PAGE_SIZE >= 65536
1879 #error "PAGE_SIZE >= 65536"
1882 [enable_llite_lloop_module="yes"],
1883 [enable_llite_lloop_module="no"])
1884 ]) # LC_LLITE_LLOOP_MODULE
1889 # configure support for optional OSD implementation
1891 AC_DEFUN([LC_OSD_ADDON], [
1892 AC_MSG_CHECKING([whether to use OSD addon])
1894 AC_HELP_STRING([--with-osd=path],
1895 [set path to optional osd]),
1902 OSDADDON="$with_osd"
1909 AS_IF([test $ENABLEOSDADDON -eq 0], [
1913 OSDMODNAME=$(basename $OSDADDON)
1914 AS_IF([test -e $LUSTRE/$OSDMODNAME], [
1915 AC_MSG_RESULT([can't link])
1917 ], [ln -s $OSDADDON $LUSTRE/$OSDMODNAME], [
1918 AC_MSG_RESULT([$OSDMODNAME])
1919 OSDADDON="subdir-m += $OSDMODNAME"
1921 AC_MSG_RESULT([can't link])
1931 # other configure checks
1933 AC_DEFUN([LC_CONFIGURE], [
1934 AC_MSG_NOTICE([Lustre core checks
1935 ==============================================================================])
1937 LC_CONFIG_OBD_BUFFER_SIZE
1939 AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"],
1940 [CFLAGS="$CFLAGS -Werror"])
1942 # maximum MDS thread count
1945 # lustre/utils/llverdev.c
1946 AC_CHECK_HEADERS([blkid/blkid.h])
1948 # libcfs/include/libcfs/linux/linux-prim.h, ...
1949 AC_CHECK_HEADERS([linux/types.h sys/types.h linux/unistd.h unistd.h])
1951 # libcfs/include/libcfs/linux/linux-prim.h
1952 AC_CHECK_HEADERS([linux/random.h], [], [],
1953 [#ifdef HAVE_LINUX_TYPES_H
1954 #include <linux/types.h>
1959 AC_CHECK_HEADERS([ext2fs/ext2fs.h])
1962 AC_CHECK_LIB([selinux], [is_selinux_enabled],
1963 [AC_CHECK_HEADERS([selinux/selinux.h],
1964 [SELINUX="-lselinux"
1965 AC_DEFINE([HAVE_SELINUX], 1,
1966 [support for selinux ])],
1969 No libselinux-devel package found, unable to build selinux enabled tools
1974 No selinux package found, unable to build selinux enabled tools
1980 AC_MSG_CHECKING([whether to report minimum OST free space])
1981 AC_ARG_ENABLE([mindf],
1982 AC_HELP_STRING([--enable-mindf],
1983 [Make statfs report the minimum available space on any single OST instead of the sum of free space on all OSTs]),
1984 [], [enable_mindf="no"])
1985 AC_MSG_RESULT([$enable_mindf])
1986 AS_IF([test "$enable_mindf" = "yes"],
1987 [AC_DEFINE([MIN_DF], 1, [Report minimum OST free space])])
1989 AC_MSG_CHECKING([whether to randomly failing memory alloc])
1990 AC_ARG_ENABLE([fail_alloc],
1991 AC_HELP_STRING([--disable-fail-alloc],
1992 [disable randomly alloc failure]),
1993 [], [enable_fail_alloc="yes"])
1994 AC_MSG_RESULT([$enable_fail_alloc])
1995 AS_IF([test "x$enable_fail_alloc" != xno],
1996 [AC_DEFINE([RANDOM_FAIL_ALLOC], 1,
1997 [enable randomly alloc failure])])
1999 AC_MSG_CHECKING([whether to check invariants (expensive cpu-wise)])
2000 AC_ARG_ENABLE([invariants],
2001 AC_HELP_STRING([--enable-invariants],
2002 [enable invariant checking (cpu intensive)]),
2003 [], [enable_invariants="no"])
2004 AC_MSG_RESULT([$enable_invariants])
2005 AS_IF([test "x$enable_invariants" = xyes],
2006 [AC_DEFINE([CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK], 1,
2007 [enable invariant checking])])
2009 AC_MSG_CHECKING([whether to track references with lu_ref])
2010 AC_ARG_ENABLE([lu_ref],
2011 AC_HELP_STRING([--enable-lu_ref],
2012 [enable lu_ref reference tracking code]),
2013 [], [enable_lu_ref="no"])
2014 AC_MSG_RESULT([$enable_lu_ref])
2015 AS_IF([test "x$enable_lu_ref" = xyes],
2016 [AC_DEFINE([USE_LU_REF], 1,
2017 [enable lu_ref reference tracking code])])
2019 AC_MSG_CHECKING([whether to enable page state tracking])
2020 AC_ARG_ENABLE([pgstate-track],
2021 AC_HELP_STRING([--enable-pgstate-track],
2022 [enable page state tracking]),
2023 [], [enable_pgstat_track="no"])
2024 AC_MSG_RESULT([$enable_pgstat_track])
2025 AS_IF([test "x$enable_pgstat_track" = xyes],
2026 [AC_DEFINE([CONFIG_DEBUG_PAGESTATE_TRACKING], 1,
2027 [enable page state tracking code])])
2033 # AM_CONDITIONALS for lustre
2035 AC_DEFUN([LC_CONDITIONALS], [
2036 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
2037 AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
2038 AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
2039 AM_CONDITIONAL(SPLIT, test x$enable_split = xyes)
2040 AM_CONDITIONAL(BLKID, test x$ac_cv_header_blkid_blkid_h = xyes)
2041 AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes)
2042 AM_CONDITIONAL(GSS, test x$enable_gss = xyes)
2043 AM_CONDITIONAL(GSS_KEYRING, test x$enable_gss_keyring = xyes)
2044 AM_CONDITIONAL(GSS_PIPEFS, test x$enable_gss_pipefs = xyes)
2045 AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes)
2046 AM_CONDITIONAL(LLITE_LLOOP, test x$enable_llite_lloop_module = xyes)
2047 ]) # LC_CONDITIONALS
2052 # files that should be generated with AC_OUTPUT
2054 AC_DEFUN([LC_CONFIG_FILES],
2058 lustre/autoconf/Makefile
2059 lustre/conf/Makefile
2060 lustre/contrib/Makefile
2062 lustre/include/Makefile
2063 lustre/include/lustre_ver.h
2064 lustre/include/lustre/Makefile
2065 lustre/kernel_patches/targets/3.10-rhel7.target
2066 lustre/kernel_patches/targets/2.6-rhel6.6.target
2067 lustre/kernel_patches/targets/2.6-rhel6.target
2068 lustre/kernel_patches/targets/2.6-rhel5.target
2069 lustre/kernel_patches/targets/2.6-sles11.target
2070 lustre/kernel_patches/targets/3.0-sles11.target
2071 lustre/kernel_patches/targets/3.0-sles11sp3.target
2072 lustre/kernel_patches/targets/2.6-fc11.target
2073 lustre/kernel_patches/targets/2.6-fc12.target
2074 lustre/kernel_patches/targets/2.6-fc15.target
2075 lustre/kernel_patches/targets/3.x-fc18.target
2076 lustre/ldlm/Makefile
2078 lustre/fid/autoMakefile
2079 lustre/llite/Makefile
2080 lustre/llite/autoMakefile
2082 lustre/lov/autoMakefile
2084 lustre/mdc/autoMakefile
2086 lustre/lmv/autoMakefile
2087 lustre/lfsck/Makefile
2088 lustre/lfsck/autoMakefile
2090 lustre/mdt/autoMakefile
2092 lustre/mdd/autoMakefile
2094 lustre/fld/autoMakefile
2095 lustre/obdclass/Makefile
2096 lustre/obdclass/autoMakefile
2097 lustre/obdclass/linux/Makefile
2098 lustre/obdecho/Makefile
2099 lustre/obdecho/autoMakefile
2101 lustre/ofd/autoMakefile
2103 lustre/osc/autoMakefile
2105 lustre/ost/autoMakefile
2106 lustre/osd-ldiskfs/Makefile
2107 lustre/osd-ldiskfs/autoMakefile
2108 lustre/osd-zfs/Makefile
2109 lustre/osd-zfs/autoMakefile
2111 lustre/mgc/autoMakefile
2113 lustre/mgs/autoMakefile
2114 lustre/target/Makefile
2115 lustre/ptlrpc/Makefile
2116 lustre/ptlrpc/autoMakefile
2117 lustre/ptlrpc/gss/Makefile
2118 lustre/ptlrpc/gss/autoMakefile
2119 lustre/quota/Makefile
2120 lustre/quota/autoMakefile
2121 lustre/scripts/Makefile
2122 lustre/tests/Makefile
2123 lustre/tests/mpi/Makefile
2124 lustre/utils/Makefile
2125 lustre/utils/gss/Makefile
2127 lustre/osp/autoMakefile
2129 lustre/lod/autoMakefile
2131 ]) # LC_CONFIG_FILES