1 AC_DEFUN([LINUX_EXPORTS_TASKLIST_LOCK], [
2 AC_MSG_CHECKING([for exported tasklist_lock])
3 AC_CACHE_VAL([ac_cv_linux_exports_tasklist_lock], [
6 #include <linux/sched.h>],
8 extern rwlock_t tasklist_lock __attribute__((weak));
9 read_lock(&tasklist_lock);
11 ac_cv_linux_exports_tasklist_lock=yes,
12 ac_cv_linux_exports_tasklist_lock=no)])
13 AC_MSG_RESULT($ac_cv_linux_exports_tasklist_lock)])
16 AC_DEFUN([LINUX_CONFIG_H_EXISTS], [
17 AC_MSG_CHECKING([for linux/config.h existance])
18 AC_CACHE_VAL([ac_cv_linux_config_h_exists], [
20 [#include <linux/config.h>],
22 ac_cv_linux_config_h_exists=yes,
23 ac_cv_linux_config_h_exists=no)])
24 AC_MSG_RESULT($ac_cv_linux_config_h_exists)
25 if test "x$ac_cv_linux_config_h_exists" = "xyes"; then
26 AC_DEFINE([CONFIG_H_EXISTS], 1, [define if linux/config.h exists])
30 AC_DEFUN([LINUX_COMPLETION_H_EXISTS], [
31 AC_MSG_CHECKING([for linux/completion.h existance])
32 AC_CACHE_VAL([ac_cv_linux_completion_h_exists], [
34 [#include <linux/version.h>
35 #include <linux/completion.h>],
36 [struct completion _c;
37 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,8)
40 ac_cv_linux_completion_h_exists=yes,
41 ac_cv_linux_completion_h_exists=no)])
42 AC_MSG_RESULT($ac_cv_linux_completion_h_exists)])
44 AC_DEFUN([LINUX_EXPORTFS_H_EXISTS], [
45 AC_MSG_CHECKING([for linux/exportfs.h existence])
46 AC_CACHE_VAL([ac_cv_linux_exportfs_h_exists], [
48 [#include <linux/exportfs.h>],
50 ac_cv_linux_exportfs_h_exists=yes,
51 ac_cv_linux_exportfs_h_exists=no)])
52 AC_MSG_RESULT($ac_cv_linux_exportfs_h_exists)])
54 AC_DEFUN([LINUX_DEFINES_FOR_EACH_PROCESS], [
55 AC_MSG_CHECKING([for defined for_each_process])
56 AC_CACHE_VAL([ac_cv_linux_defines_for_each_process], [
58 [#include <linux/sched.h>],
59 [#ifndef for_each_process
60 #error for_each_process not defined
62 ac_cv_linux_defines_for_each_process=yes,
63 ac_cv_linux_defines_for_each_process=no)])
64 AC_MSG_RESULT($ac_cv_linux_defines_for_each_process)])
67 AC_DEFUN([LINUX_DEFINES_PREV_TASK], [
68 AC_MSG_CHECKING([for defined prev_task])
69 AC_CACHE_VAL([ac_cv_linux_defines_prev_task], [
71 [#include <linux/sched.h>],
73 #error prev_task not defined
75 ac_cv_linux_defines_prev_task=yes,
76 ac_cv_linux_defines_prev_task=no)])
77 AC_MSG_RESULT($ac_cv_linux_defines_prev_task)])
80 AC_DEFUN([LINUX_EXPORTS_INIT_MM], [
81 AC_MSG_CHECKING([for exported init_mm])
82 AC_CACHE_VAL([ac_cv_linux_exports_init_mm], [
84 [#include <linux/modversions.h>],
85 [#ifndef __ver_init_mm
86 #error init_mm not exported
88 ac_cv_linux_exports_init_mm=yes,
89 ac_cv_linux_exports_init_mm=no)])
90 AC_MSG_RESULT($ac_cv_linux_exports_init_mm)])
93 AC_DEFUN([LINUX_EXPORTS_KALLSYMS_ADDRESS], [
94 AC_MSG_CHECKING([for exported kallsyms_address_to_symbol])
95 AC_CACHE_VAL([ac_cv_linux_exports_kallsyms_address], [
97 [#include <linux/modversions.h>],
98 [#ifndef __ver_kallsyms_address_to_symbol
99 #error kallsyms_address_to_symbol not exported
101 ac_cv_linux_exports_kallsyms_address=yes,
102 ac_cv_linux_exports_kallsyms_address=no)])
103 AC_MSG_RESULT($ac_cv_linux_exports_kallsyms_address)])
106 AC_DEFUN([LINUX_EXPORTS_KALLSYMS_SYMBOL], [
107 AC_MSG_CHECKING([for exported kallsyms_symbol_to_address])
108 AC_CACHE_VAL([ac_cv_linux_exports_kallsyms_symbol], [
110 [#include <linux/modversions.h>],
111 [#ifndef __ver_kallsyms_symbol_to_address
112 #error kallsyms_symbol_to_address not exported
114 ac_cv_linux_exports_kallsyms_symbol=yes,
115 ac_cv_linux_exports_kallsyms_symbol=no)])
116 AC_MSG_RESULT($ac_cv_linux_exports_kallsyms_symbol)])
118 AC_DEFUN([LINUX_EXPORTS_SYS_CALL_TABLE], [
119 AC_MSG_CHECKING([for exported sys_call_table])
120 AC_CACHE_VAL([ac_cv_linux_exports_sys_call_table], [
122 [#include <linux/modversions.h>],
123 [#ifndef __ver_sys_call_table
124 #error sys_call_table not exported
126 ac_cv_linux_exports_sys_call_table=yes,
127 ac_cv_linux_exports_sys_call_table=no)])
128 AC_MSG_RESULT($ac_cv_linux_exports_sys_call_table)])
131 AC_DEFUN([LINUX_EXPORTS_IA32_SYS_CALL_TABLE], [
132 AC_MSG_CHECKING([for exported ia32_sys_call_table])
133 AC_CACHE_VAL([ac_cv_linux_exports_ia32_sys_call_table], [
135 [#include <linux/modversions.h>],
136 [#ifndef __ver_ia32_sys_call_table
137 #error ia32_sys_call_table not exported
139 ac_cv_linux_exports_ia32_sys_call_table=yes,
140 ac_cv_linux_exports_ia32_sys_call_table=no)])
141 AC_MSG_RESULT($ac_cv_linux_exports_ia32_sys_call_table)])
144 AC_DEFUN([LINUX_EXPORTS_SYS_CHDIR], [
145 AC_MSG_CHECKING([for exported sys_chdir])
146 AC_CACHE_VAL([ac_cv_linux_exports_sys_chdir], [
148 [extern asmlinkage long sys_chdir(void) __attribute__((weak));],
149 [void *address = &sys_chdir;
150 printk("%p\n", address);],
151 ac_cv_linux_exports_sys_chdir=yes,
152 ac_cv_linux_exports_sys_chdir=no)])
153 AC_MSG_RESULT($ac_cv_linux_exports_sys_chdir)])
156 AC_DEFUN([LINUX_EXPORTS_SYS_CLOSE], [
157 AC_MSG_CHECKING([for exported sys_close])
158 AC_CACHE_VAL([ac_cv_linux_exports_sys_close], [
160 [extern asmlinkage long sys_close(void) __attribute__((weak));],
161 [void *address = &sys_close;
162 printk("%p\n", address);],
163 ac_cv_linux_exports_sys_close=yes,
164 ac_cv_linux_exports_sys_close=no)])
165 AC_MSG_RESULT($ac_cv_linux_exports_sys_close)])
168 AC_DEFUN([LINUX_EXPORTS_SYS_OPEN], [
169 AC_MSG_CHECKING([for exported sys_open])
170 AC_CACHE_VAL([ac_cv_linux_exports_sys_open], [
172 [extern asmlinkage long sys_open(void) __attribute__((weak));],
173 [void *address = &sys_open;
174 printk("%p\n", address);],
175 ac_cv_linux_exports_sys_open=yes,
176 ac_cv_linux_exports_sys_open=no)])
177 AC_MSG_RESULT($ac_cv_linux_exports_sys_open)])
180 AC_DEFUN([LINUX_EXPORTS_SYS_WAIT4], [
181 AC_MSG_CHECKING([for exported sys_wait4])
182 AC_CACHE_VAL([ac_cv_linux_exports_sys_wait4], [
184 [extern asmlinkage long sys_wait4(void) __attribute__((weak));],
185 [void *address = &sys_wait4;
186 printk("%p\n", address);],
187 ac_cv_linux_exports_sys_wait4=yes,
188 ac_cv_linux_exports_sys_wait4=no)])
189 AC_MSG_RESULT($ac_cv_linux_exports_sys_wait4)])
192 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_BLKSIZE], [
193 AC_MSG_CHECKING([for i_blksize in struct inode])
194 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_blksize], [
196 [#include <linux/fs.h>],
197 [struct inode _inode;
198 printk("%d\n", _inode.i_blksize);],
199 ac_cv_linux_fs_struct_inode_has_i_blksize=yes,
200 ac_cv_linux_fs_struct_inode_has_i_blksize=no)])
201 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_blksize)])
203 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_BLKBITS], [
204 AC_MSG_CHECKING([for i_blkbits in struct inode])
205 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_blkbits], [
207 [#include <linux/fs.h>],
208 [struct inode _inode;
209 printk("%d\n", _inode.i_blkbits);],
210 ac_cv_linux_fs_struct_inode_has_i_blkbits=yes,
211 ac_cv_linux_fs_struct_inode_has_i_blkbits=no)])
212 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_blkbits)
213 if test "x$ac_cv_linux_fs_struct_inode_has_i_blkbits" = "xyes"; then
214 AC_DEFINE(STRUCT_INODE_HAS_I_BLKBITS, 1, [define if your struct inode has i_blkbits])
218 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_CDEV], [
219 AC_MSG_CHECKING([for i_cdev in struct inode])
220 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_cdev], [
222 [#include <linux/fs.h>],
223 [struct inode _inode;
224 printk("%d\n", _inode.i_cdev);],
225 ac_cv_linux_fs_struct_inode_has_i_cdev=yes,
226 ac_cv_linux_fs_struct_inode_has_i_cdev=no)])
227 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)])
230 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_DEVICES], [
231 AC_MSG_CHECKING([for i_devices in struct inode])
232 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_devices], [
234 [#include <linux/fs.h>],
235 [struct inode _inode;
236 printk("%d\n", _inode.i_devices);],
237 ac_cv_linux_fs_struct_inode_has_i_devices=yes,
238 ac_cv_linux_fs_struct_inode_has_i_devices=no)])
239 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_devices)])
242 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS], [
243 AC_MSG_CHECKING([for i_dirty_data_buffers in struct inode])
244 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers], [
246 [#include <linux/fs.h>],
247 [struct inode _inode;
248 printk("%d\n", _inode.i_dirty_data_buffers);],
249 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=yes,
250 ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=no)])
251 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers)])
254 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_INOTIFY_LOCK], [
255 AC_MSG_CHECKING([for inotify_lock in struct inode])
256 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_inotify_lock], [
258 [#include <linux/fs.h>],
259 [struct inode _inode;
260 printk("%d\n", _inode.inotify_lock);],
261 ac_cv_linux_fs_struct_inode_has_inotify_lock=yes,
262 ac_cv_linux_fs_struct_inode_has_inotify_lock=no)])
263 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_inotify_lock)])
265 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_INOTIFY_SEM], [
266 AC_MSG_CHECKING([for inotify_sem in struct inode])
267 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_inotify_sem], [
269 [#include <linux/fs.h>],
270 [struct inode _inode;
271 printk("%x\n", _inode.inotify_sem);],
272 ac_cv_linux_fs_struct_inode_has_inotify_sem=yes,
273 ac_cv_linux_fs_struct_inode_has_inotify_sem=no)])
274 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_inotify_sem)])
277 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_MAPPING_OVERLOAD], [
278 AC_MSG_CHECKING([for i_mapping_overload in struct inode])
279 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_mapping_overload], [
281 [#include <linux/fs.h>],
282 [struct inode _inode;
283 printk("%d\n", _inode.i_mapping_overload);],
284 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=yes,
285 ac_cv_linux_fs_struct_inode_has_i_mapping_overload=no)])
286 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mapping_overload)])
289 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_MMAP_SHARED], [
290 AC_MSG_CHECKING([for i_mmap_shared in struct inode])
291 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_mmap_shared], [
293 [#include <linux/fs.h>],
294 [struct inode _inode;
295 printk("%d\n", _inode.i_mmap_shared);],
296 ac_cv_linux_fs_struct_inode_has_i_mmap_shared=yes,
297 ac_cv_linux_fs_struct_inode_has_i_mmap_shared=no)])
298 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mmap_shared)])
301 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_MUTEX], [
302 AC_MSG_CHECKING([for i_mutex in struct inode])
303 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_mutex], [
305 [#include <linux/fs.h>],
306 [struct inode _inode;
307 printk("%d\n", _inode.i_mutex);],
308 ac_cv_linux_fs_struct_inode_has_i_mutex=yes,
309 ac_cv_linux_fs_struct_inode_has_i_mutex=no)])
310 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mutex)])
313 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_SECURITY], [
314 AC_MSG_CHECKING([for i_security in struct inode])
315 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_security], [
317 [#include <linux/fs.h>],
318 [struct inode _inode;
319 printk("%d\n", _inode.i_security);],
320 ac_cv_linux_fs_struct_inode_has_i_security=yes,
321 ac_cv_linux_fs_struct_inode_has_i_security=no)])
322 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_security)])
325 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_SB_LIST], [
326 AC_MSG_CHECKING([for i_sb_list in struct inode])
327 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_sb_list], [
329 [#include <linux/fs.h>],
330 [struct inode _inode;
331 printk("%d\n", _inode.i_sb_list);],
332 ac_cv_linux_fs_struct_inode_has_i_sb_list=yes,
333 ac_cv_linux_fs_struct_inode_has_i_sb_list=no)])
334 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_sb_list)])
337 AC_DEFUN([LINUX_RECALC_SIGPENDING_ARG_TYPE], [
338 AC_MSG_CHECKING([for recalc_sigpending arg type])
339 AC_CACHE_VAL([ac_cv_linux_func_recalc_sigpending_takes_void], [
341 [#include <linux/sched.h>],
342 [recalc_sigpending();],
343 ac_cv_linux_func_recalc_sigpending_takes_void=yes,
344 ac_cv_linux_func_recalc_sigpending_takes_void=no)])
345 AC_MSG_RESULT($ac_cv_linux_func_recalc_sigpending_takes_void)])
348 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_PARENT], [
349 AC_MSG_CHECKING([for parent in struct task_struct])
350 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_parent], [
352 [#include <linux/sched.h>],
353 [struct task_struct _tsk;
354 printk("%d\n", _tsk.parent);],
355 ac_cv_linux_sched_struct_task_struct_has_parent=yes,
356 ac_cv_linux_sched_struct_task_struct_has_parent=no)])
357 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_parent)])
360 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_TGID], [
361 AC_MSG_CHECKING([for tgid in struct task_struct])
362 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_tgid], [
364 [#include <linux/sched.h>],
365 [struct task_struct _tsk;
366 printk("%d\n", _tsk.tgid);],
367 ac_cv_linux_sched_struct_task_struct_has_tgid=yes,
368 ac_cv_linux_sched_struct_task_struct_has_tgid=no)])
369 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_tgid)])
372 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_REAL_PARENT], [
373 AC_MSG_CHECKING([for real_parent in struct task_struct])
374 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_real_parent], [
376 [#include <linux/sched.h>],
377 [struct task_struct _tsk;
378 printk("%d\n", _tsk.real_parent);],
379 ac_cv_linux_sched_struct_task_struct_has_real_parent=yes,
380 ac_cv_linux_sched_struct_task_struct_has_real_parent=no)])
381 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_real_parent)])
384 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIG], [
385 AC_MSG_CHECKING([for sig in struct task_struct])
386 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_sig], [
388 [#include <linux/sched.h>],
389 [struct task_struct _tsk;
390 printk("%d\n", _tsk.sig);],
391 ac_cv_linux_sched_struct_task_struct_has_sig=yes,
392 ac_cv_linux_sched_struct_task_struct_has_sig=no)])
393 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_sig)])
396 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK], [
397 AC_MSG_CHECKING([for sigmask_lock in struct task_struct])
398 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_sigmask_lock], [
400 [#include <linux/sched.h>],
401 [struct task_struct _tsk;
402 printk("%d\n", _tsk.sigmask_lock);],
403 ac_cv_linux_sched_struct_task_struct_has_sigmask_lock=yes,
404 ac_cv_linux_sched_struct_task_struct_has_sigmask_lock=no)])
405 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_sigmask_lock)])
408 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGHAND], [
409 AC_MSG_CHECKING([for sighand in struct task_struct])
410 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_sighand], [
412 [#include <linux/sched.h>],
413 [struct task_struct _tsk;
414 printk("%d\n", _tsk.sighand);],
415 ac_cv_linux_sched_struct_task_struct_has_sighand=yes,
416 ac_cv_linux_sched_struct_task_struct_has_sighand=no)])
417 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_sighand)])
420 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_RLIM], [
421 AC_MSG_CHECKING([for rlim in struct task_struct])
422 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_rlim], [
424 [#include <linux/sched.h>],
425 [struct task_struct _tsk;
426 printk("%d\n", _tsk.rlim);],
427 ac_cv_linux_sched_struct_task_struct_has_rlim=yes,
428 ac_cv_linux_sched_struct_task_struct_has_rlim=no)])
429 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_rlim)])
432 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGNAL_RLIM], [
433 AC_MSG_CHECKING([for signal->rlim in struct task_struct])
434 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_signal_rlim], [
436 [#include <linux/sched.h>],
437 [struct task_struct _tsk;
438 printk("%d\n", _tsk.signal->rlim);],
439 ac_cv_linux_sched_struct_task_struct_has_signal_rlim=yes,
440 ac_cv_linux_sched_struct_task_struct_has_signal_rlim=no)])
441 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_signal_rlim)])
444 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_EXIT_STATE], [
445 AC_MSG_CHECKING([for exit_state in struct task_struct])
446 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_exit_state], [
448 [#include <linux/sched.h>],
449 [struct task_struct _tsk;
450 printk("%d\n", _tsk.exit_state);],
451 ac_cv_linux_sched_struct_task_struct_has_exit_state=yes,
452 ac_cv_linux_sched_struct_task_struct_has_exit_state=no)])
453 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_exit_state)])
456 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_THREAD_INFO], [
457 AC_MSG_CHECKING([for thread_info in struct task_struct])
458 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_thread_info], [
460 [#include <linux/sched.h>],
461 [struct task_struct _tsk;
462 printk("%d\n", _tsk.thread_info);],
463 ac_cv_linux_sched_struct_task_struct_has_thread_info=yes,
464 ac_cv_linux_sched_struct_task_struct_has_thread_info=no)])
465 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_thread_info)])
468 AC_DEFUN([LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE], [
469 AC_MSG_CHECKING([for alloc_inode in struct super_operations])
470 AC_CACHE_VAL([ac_cv_linux_fs_struct_super_has_alloc_inode], [
472 [#include <linux/fs.h>],
473 [struct super_operations _super;
474 printk("%p\n", _super.alloc_inode);],
475 ac_cv_linux_fs_struct_super_has_alloc_inode=yes,
476 ac_cv_linux_fs_struct_super_has_alloc_inode=no)])
477 AC_MSG_RESULT($ac_cv_linux_fs_struct_super_has_alloc_inode)])
480 AC_DEFUN([LINUX_KERNEL_POSIX_LOCK_FILE_WAIT_ARG], [
481 AC_MSG_CHECKING([for 3rd argument in posix_lock_file found in new kernels])
482 AC_CACHE_VAL([ac_cv_linux_kernel_posix_lock_file_wait_arg], [
484 [#include <linux/fs.h>],
485 [posix_lock_file(0,0,0);],
486 ac_cv_linux_kernel_posix_lock_file_wait_arg=yes,
487 ac_cv_linux_kernel_posix_lock_file_wait_arg=no)])
488 AC_MSG_RESULT($ac_cv_linux_kernel_posix_lock_file_wait_arg)])
491 AC_DEFUN([LINUX_KERNEL_SOCK_CREATE], [
492 AC_MSG_CHECKING([for 5th argument in sock_create found in some SELinux kernels])
493 AC_CACHE_VAL([ac_cv_linux_kernel_sock_create_v], [
495 [#include <linux/net.h>],
496 [sock_create(0,0,0,0,0);],
497 ac_cv_linux_kernel_sock_create_v=yes,
498 ac_cv_linux_kernel_sock_create_v=no)])
499 AC_MSG_RESULT($ac_cv_linux_kernel_sock_create_v)])
502 AC_DEFUN([LINUX_KERNEL_PAGE_FOLLOW_LINK], [
503 AC_MSG_CHECKING([for page_follow_link_light vs page_follow_link])
504 AC_CACHE_VAL([ac_cv_linux_kernel_page_follow_link], [
505 save_CPPFLAGS="$CPPFLAGS"
506 CPPFLAGS="$CPPFLAGS -Werror-implicit-function-declaration"
508 [#include <linux/fs.h>],
509 [page_follow_link(0,0);],
510 ac_cv_linux_kernel_page_follow_link=yes,
511 ac_cv_linux_kernel_page_follow_link=no)
512 CPPFLAGS="$save_CPPFLAGS"])
513 AC_MSG_RESULT($ac_cv_linux_kernel_page_follow_link)])
516 AC_DEFUN([LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_GFP_MASK], [
517 AC_MSG_CHECKING([for gfp_mask in struct address_space])
518 AC_CACHE_VAL([ac_cv_linux_fs_struct_address_space_has_gfp_mask], [
520 [#include <linux/fs.h>],
521 [struct address_space _a;
522 printk("%d\n", _a.gfp_mask);],
523 ac_cv_linux_fs_struct_address_space_has_gfp_mask=yes,
524 ac_cv_linux_fs_struct_address_space_has_gfp_mask=no)])
525 AC_MSG_RESULT($ac_cv_linux_fs_struct_address_space_has_gfp_mask)])
528 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_BYTES], [
529 AC_MSG_CHECKING([for i_bytes in struct inode])
530 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_bytes], [
532 [#include <linux/fs.h>],
533 [struct inode _inode;
534 printk("%d\n", _inode.i_bytes);],
535 ac_cv_linux_fs_struct_inode_has_i_bytes=yes,
536 ac_cv_linux_fs_struct_inode_has_i_bytes=no)])
537 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_bytes)])
540 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_ALLOC_SEM], [
541 AC_MSG_CHECKING([for i_alloc_sem in struct inode])
542 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_alloc_sem], [
544 [#include <linux/fs.h>],
546 printk("%x\n", _i.i_alloc_sem);],
547 ac_cv_linux_fs_struct_inode_has_i_alloc_sem=yes,
548 ac_cv_linux_fs_struct_inode_has_i_alloc_sem=no)])
549 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_alloc_sem)])
552 AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM], [
553 AC_MSG_CHECKING([for i_truncate_sem in struct inode])
554 AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_truncate_sem], [
556 [#include <linux/fs.h>],
558 printk("%x\n", _i.i_truncate_sem);],
559 ac_cv_linux_fs_struct_inode_has_i_truncate_sem=yes,
560 ac_cv_linux_fs_struct_inode_has_i_truncate_sem=no)])
561 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_truncate_sem)])
564 AC_DEFUN([LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK], [
565 AC_MSG_CHECKING([for page_lock in struct address_space])
566 AC_CACHE_VAL([ac_cv_linux_fs_struct_address_space_has_page_lock], [
568 [#include <linux/fs.h>],
569 [struct address_space _a_s;
570 printk("%x\n", _a_s.page_lock);],
571 ac_cv_linux_fs_struct_address_space_has_page_lock=yes,
572 ac_cv_linux_fs_struct_address_space_has_page_lock=no)])
573 AC_MSG_RESULT($ac_cv_linux_fs_struct_address_space_has_page_lock)])
576 AC_DEFUN([LINUX_INODE_SETATTR_RETURN_TYPE], [
577 AC_MSG_CHECKING([for inode_setattr return type])
578 AC_CACHE_VAL([ac_cv_linux_func_inode_setattr_returns_int], [
580 [#include <linux/fs.h>],
581 [struct inode _inode;
584 i = inode_setattr(&_inode, &_iattr);],
585 ac_cv_linux_func_inode_setattr_returns_int=yes,
586 ac_cv_linux_func_inode_setattr_returns_int=no)])
587 AC_MSG_RESULT($ac_cv_linux_func_inode_setattr_returns_int)])
590 AC_DEFUN([LINUX_WRITE_INODE_RETURN_TYPE], [
591 AC_MSG_CHECKING([for write_inode return type])
592 AC_CACHE_VAL([ac_cv_linux_func_write_inode_returns_int], [
594 [#include <linux/fs.h>],
595 [struct inode _inode;
596 struct super_operations _sops;
598 i = _sops.write_inode(&_inode, 0);],
599 ac_cv_linux_func_write_inode_returns_int=yes,
600 ac_cv_linux_func_write_inode_returns_int=no)])
601 AC_MSG_RESULT($ac_cv_linux_func_write_inode_returns_int)])
604 AC_DEFUN([LINUX_AOP_WRITEBACK_CONTROL], [
605 AC_MSG_CHECKING([whether address_space_operations.writepage takes a writeback_control])
606 AC_CACHE_VAL([ac_cv_linux_func_a_writepage_takes_writeback_control], [
608 [#include <linux/fs.h>
609 #include <linux/mm.h>
610 #include <linux/writeback.h>],
611 [struct address_space_operations _aops;
613 struct writeback_control _writeback_control;
614 (void)_aops.writepage(&_page, &_writeback_control);],
615 ac_cv_linux_func_a_writepage_takes_writeback_control=yes,
616 ac_cv_linux_func_a_writepage_takes_writeback_control=no)])
617 AC_MSG_RESULT($ac_cv_linux_func_a_writepage_takes_writeback_control)])
620 AC_DEFUN([LINUX_REFRIGERATOR], [
621 AC_MSG_CHECKING([whether refrigerator takes PF_FREEZE])
622 AC_CACHE_VAL([ac_cv_linux_func_refrigerator_takes_pf_freeze], [
624 [#include <linux/sched.h>
625 #ifdef FREEZER_H_EXISTS
626 #include <linux/freezer.h>
628 [refrigerator(PF_FREEZE);],
629 ac_cv_linux_func_refrigerator_takes_pf_freeze=yes,
630 ac_cv_linux_func_refrigerator_takes_pf_freeze=no)])
631 AC_MSG_RESULT($ac_cv_linux_func_refrigerator_takes_pf_freeze)])
634 AC_DEFUN([LINUX_IOP_I_CREATE_TAKES_NAMEIDATA], [
635 AC_MSG_CHECKING([whether inode_operations.create takes a nameidata])
636 AC_CACHE_VAL([ac_cv_linux_func_i_create_takes_nameidata], [
638 [#include <linux/fs.h>
639 #include <linux/namei.h>],
640 [struct inode _inode;
641 struct dentry _dentry;
642 struct nameidata _nameidata;
643 (void)_inode.i_op->create(&_inode, &_dentry, 0, &_nameidata);],
644 ac_cv_linux_func_i_create_takes_nameidata=yes,
645 ac_cv_linux_func_i_create_takes_nameidata=no)])
646 AC_MSG_RESULT($ac_cv_linux_func_i_create_takes_nameidata)])
649 AC_DEFUN([LINUX_IOP_I_LOOKUP_TAKES_NAMEIDATA], [
650 AC_MSG_CHECKING([whether inode_operations.lookup takes a nameidata])
651 AC_CACHE_VAL([ac_cv_linux_func_i_lookup_takes_nameidata], [
653 [#include <linux/fs.h>
654 #include <linux/namei.h>],
655 [struct inode _inode;
656 struct dentry _dentry;
657 struct nameidata _nameidata;
658 (void)_inode.i_op->lookup(&_inode, &_dentry, &_nameidata);],
659 ac_cv_linux_func_i_lookup_takes_nameidata=yes,
660 ac_cv_linux_func_i_lookup_takes_nameidata=no)])
661 AC_MSG_RESULT($ac_cv_linux_func_i_lookup_takes_nameidata)])
664 AC_DEFUN([LINUX_IOP_I_PERMISSION_TAKES_NAMEIDATA], [
665 AC_MSG_CHECKING([whether inode_operations.permission takes a nameidata])
666 AC_CACHE_VAL([ac_cv_linux_func_i_permission_takes_nameidata], [
668 [#include <linux/fs.h>
669 #include <linux/namei.h>],
670 [struct inode _inode;
671 struct dentry _dentry;
672 struct nameidata _nameidata;
673 (void)_inode.i_op->permission(&_inode, 0, &_nameidata);],
674 ac_cv_linux_func_i_permission_takes_nameidata=yes,
675 ac_cv_linux_func_i_permission_takes_nameidata=no)])
676 AC_MSG_RESULT($ac_cv_linux_func_i_permission_takes_nameidata)])
679 AC_DEFUN([LINUX_IOP_I_PUT_LINK_TAKES_COOKIE], [
680 AC_MSG_CHECKING([whether inode_operations.put_link takes an opaque cookie])
681 AC_CACHE_VAL([ac_cv_linux_func_i_put_link_takes_cookie], [
683 [#include <linux/fs.h>
684 #include <linux/namei.h>],
685 [struct inode _inode;
686 struct dentry _dentry;
687 struct nameidata _nameidata;
689 (void)_inode.i_op->put_link(&_dentry, &_nameidata, cookie);],
690 ac_cv_linux_func_i_put_link_takes_cookie=yes,
691 ac_cv_linux_func_i_put_link_takes_cookie=no)])
692 AC_MSG_RESULT($ac_cv_linux_func_i_put_link_takes_cookie)])
695 AC_DEFUN([LINUX_DOP_D_REVALIDATE_TAKES_NAMEIDATA], [
696 AC_MSG_CHECKING([whether dentry_operations.d_revalidate takes a nameidata])
697 AC_CACHE_VAL([ac_cv_linux_func_d_revalidate_takes_nameidata], [
699 [#include <linux/fs.h>
700 #include <linux/namei.h>],
701 [struct dentry _dentry;
702 struct nameidata _nameidata;
703 (void)_dentry.d_op->d_revalidate(&_dentry, &_nameidata);],
704 ac_cv_linux_func_d_revalidate_takes_nameidata=yes,
705 ac_cv_linux_func_d_revalidate_takes_nameidata=no)])
706 AC_MSG_RESULT($ac_cv_linux_func_d_revalidate_takes_nameidata)])
708 AC_DEFUN([LINUX_GET_SB_HAS_STRUCT_VFSMOUNT], [
709 AC_MSG_CHECKING([for struct vfsmount * in get_sb_nodev()])
710 AC_CACHE_VAL([ac_cv_linux_get_sb_has_struct_vfsmount], [
712 [#include <linux/fs.h>],
713 [get_sb_nodev(0,0,0,0,0);],
714 ac_cv_linux_get_sb_has_struct_vfsmount=yes,
715 ac_cv_linux_get_sb_has_struct_vfsmount=no)])
716 AC_MSG_RESULT($ac_cv_linux_get_sb_has_struct_vfsmount)])
718 AC_DEFUN([LINUX_STATFS_TAKES_DENTRY], [
719 AC_MSG_CHECKING([for dentry in statfs])
720 AC_CACHE_VAL([ac_cv_linux_statfs_takes_dentry], [
722 [#include <linux/fs.h>
723 #include <linux/statfs.h>],
725 extern int vfs_statfs(struct dentry *, struct kstatfs *);
727 ac_cv_linux_statfs_takes_dentry=yes,
728 ac_cv_linux_statfs_takes_dentry=no)])
729 AC_MSG_RESULT($ac_cv_linux_statfs_takes_dentry)])
732 AC_DEFUN([LINUX_KEY_TYPE_H_EXISTS], [
733 AC_MSG_CHECKING([for linux/key-type.h existance])
734 AC_CACHE_VAL([ac_cv_linux_key_type_h_exists], [
736 [#include <linux/key-type.h>],
738 ac_cv_linux_key_type_h_exists=yes,
739 ac_cv_linux_key_type_h_exists=no)])
740 AC_MSG_RESULT($ac_cv_linux_key_type_h_exists)
741 if test "x$ac_cv_linux_key_type_h_exists" = "xyes"; then
742 AC_DEFINE([KEY_TYPE_H_EXISTS], 1, [define if linux/key-type.h exists])
745 AC_DEFUN([LINUX_LINUX_KEYRING_SUPPORT], [
746 AC_MSG_CHECKING([for linux kernel keyring support])
747 AC_CACHE_VAL([ac_cv_linux_keyring_support], [
749 [#include <linux/rwsem.h>
750 #ifdef KEY_TYPE_H_EXISTS
751 #include <linux/key-type.h>
753 #include <linux/key.h>
754 #include <linux/keyctl.h>],
756 request_key(NULL, NULL, NULL);
757 #if !defined(KEY_POS_VIEW) || !defined(KEY_POS_SEARCH) || !defined(KEY_POS_SETATTR)
758 #error "Your linux/key.h does not contain KEY_POS_VIEW or KEY_POS_SEARCH or KEY_POS_SETATTR"
761 #error rebuild your kernel with CONFIG_KEYS
763 ac_cv_linux_keyring_support=yes,
764 ac_cv_linux_keyring_support=no)])
765 AC_MSG_RESULT($ac_cv_linux_keyring_support)
766 if test "x$ac_cv_linux_keyring_support" = "xyes"; then
767 AC_DEFINE([LINUX_KEYRING_SUPPORT], 1, [define if your kernel has keyring support])
770 AC_DEFUN([LINUX_KEY_ALLOC_NEEDS_STRUCT_TASK], [
771 AC_MSG_CHECKING([if key_alloc() takes a struct task *])
772 AC_CACHE_VAL([ac_cv_key_alloc_needs_struct_task], [
774 [#include <linux/rwsem.h>
775 #include <linux/key.h>
777 [(void) key_alloc(NULL, NULL, 0, 0, NULL, 0, 0);],
778 ac_cv_key_alloc_needs_struct_task=yes,
779 ac_cv_key_alloc_needs_struct_task=no)])
780 AC_MSG_RESULT($ac_cv_key_alloc_needs_struct_task)
781 if test "x$ac_cv_key_alloc_needs_struct_task" = "xyes"; then
782 AC_DEFINE([KEY_ALLOC_NEEDS_STRUCT_TASK], 1, [define if key_alloc takes a struct task *])
785 AC_DEFUN([LINUX_DO_SYNC_READ], [
786 AC_MSG_CHECKING([for linux do_sync_read()])
787 AC_CACHE_VAL([ac_cv_linux_do_sync_read], [
788 save_CPPFLAGS="$CPPFLAGS"
789 CPPFLAGS="$CPPFLAGS -Werror-implicit-function-declaration"
791 [#include <linux/fs.h>],
792 [do_sync_read(NULL, NULL, 0, NULL);],
793 ac_cv_linux_do_sync_read=yes,
794 ac_cv_linux_do_sync_read=no)
795 CPPFLAGS="$save_CPPFLAGS"])
796 AC_MSG_RESULT($ac_cv_linux_do_sync_read)
797 if test "x$ac_cv_linux_do_sync_read" = "xyes"; then
798 AC_DEFINE([DO_SYNC_READ], 1, [define if your kernel has do_sync_read()])
801 AC_DEFUN([LINUX_GENERIC_FILE_AIO_READ], [
802 AC_MSG_CHECKING([for linux generic_file_aio_read()])
803 AC_CACHE_VAL([ac_cv_linux_generic_file_aio_read], [
804 save_CPPFLAGS="$CPPFLAGS"
805 CPPFLAGS="$CPPFLAGS -Werror-implicit-function-declaration"
807 [#include <linux/fs.h>],
808 [generic_file_aio_read(NULL, NULL, 0, 0);],
809 ac_cv_linux_generic_file_aio_read=yes,
810 ac_cv_linux_generic_file_aio_read=no)
811 CPPFLAGS="$save_CPPFLAGS"])
812 AC_MSG_RESULT($ac_cv_linux_generic_file_aio_read)
813 if test "x$ac_cv_linux_generic_file_aio_read" = "xyes"; then
814 AC_DEFINE([GENERIC_FILE_AIO_READ], 1, [define if your kernel has generic_file_aio_read()])
817 AC_DEFUN([LINUX_FREEZER_H_EXISTS], [
818 AC_MSG_CHECKING([for linux/freezer.h existance])
819 AC_CACHE_VAL([ac_cv_linux_freezer_h_exists], [
821 [#include <linux/freezer.h>],
823 ac_cv_linux_freezer_h_exists=yes,
824 ac_cv_linux_freezer_h_exists=no)])
825 AC_MSG_RESULT($ac_cv_linux_freezer_h_exists)
826 if test "x$ac_cv_linux_freezer_h_exists" = "xyes"; then
827 AC_DEFINE([FREEZER_H_EXISTS], 1, [define if linux/freezer.h exists])
830 AC_DEFUN([LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_TODO], [
831 AC_MSG_CHECKING([for todo in struct task_struct])
832 AC_CACHE_VAL([ac_cv_linux_sched_struct_task_struct_has_todo], [
834 [#include <linux/sched.h>],
835 [struct task_struct _tsk;
836 printk("%d\n", _tsk.todo);],
837 ac_cv_linux_sched_struct_task_struct_has_todo=yes,
838 ac_cv_linux_sched_struct_task_struct_has_todo=no)])
839 AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_todo)])
841 AC_DEFUN([LINUX_INIT_WORK_HAS_DATA], [
842 AC_MSG_CHECKING([whether INIT_WORK has a _data argument])
843 AC_CACHE_VAL([ac_cv_linux_init_work_has_data], [
845 [#include <linux/kernel.h>
846 #include <linux/workqueue.h>],
848 void f(struct work_struct *w) {}
849 struct work_struct *w;
852 ac_cv_linux_init_work_has_data=yes,
853 ac_cv_linux_init_work_has_data=no)])
854 AC_MSG_RESULT($ac_cv_linux_init_work_has_data)])
857 AC_DEFUN([LINUX_FS_STRUCT_FOP_HAS_FLOCK], [
858 AC_MSG_CHECKING([for flock in struct file_operations])
859 AC_CACHE_VAL([ac_cv_linux_fs_struct_fop_has_flock], [
861 [#include <linux/fs.h>],
862 [struct file_operations _fop;
863 _fop.flock(NULL, 0, NULL);],
864 ac_cv_linux_fs_struct_fop_has_flock=yes,
865 ac_cv_linux_fs_struct_fop_has_flock=no)])
866 AC_MSG_RESULT($ac_cv_linux_fs_struct_fop_has_flock)])
868 AC_DEFUN([LINUX_REGISTER_SYSCTL_TABLE_NOFLAG], [
869 AC_MSG_CHECKING([whether register_sysctl_table has an insert_at_head flag argument])
870 AC_CACHE_VAL([ac_cv_linux_register_sysctl_table_noflag], [
872 [#include <linux/sysctl.h>],
874 register_sysctl_table (t);],
875 ac_cv_linux_register_sysctl_table_noflag=yes,
876 ac_cv_linux_register_sysctl_table_noflag=no)])
877 AC_MSG_RESULT($ac_cv_linux_register_sysctl_table_noflag)])
879 AC_DEFUN([LINUX_FOP_F_FLUSH_TAKES_FL_OWNER_T], [
880 AC_MSG_CHECKING([whether file_operations.flush takes a fl_owner_t])
881 AC_CACHE_VAL([ac_cv_linux_func_f_flush_takes_fl_owner_t], [
883 [#include <linux/fs.h>],
884 [struct inode _inode;
887 (void)_inode.i_fop->flush(&_file, &id);],
888 ac_cv_linux_func_f_flush_takes_fl_owner_t=yes,
889 ac_cv_linux_func_f_flush_takes_fl_owner_t=no)])
890 AC_MSG_RESULT($ac_cv_linux_func_f_flush_takes_fl_owner_t)])
892 AC_DEFUN([LINUX_HAVE_KMEM_CACHE_T], [
893 AC_MSG_CHECKING([whether kmem_cache_t exists])
894 AC_CACHE_VAL([ac_cv_linux_have_kmem_cache_t], [
896 [#include <linux/slab.h>],
898 ac_cv_linux_have_kmem_cache_t=yes,
899 ac_cv_linux_have_kmem_cache_t=no)])
900 AC_MSG_RESULT($ac_cv_linux_have_kmem_cache_t)])
902 AC_DEFUN([LINUX_KMEM_CACHE_CREATE_TAKES_DTOR], [
903 AC_MSG_CHECKING([whether kmem_cache_create takes a destructor argument])
904 AC_CACHE_VAL([ac_cv_linux_kmem_cache_create_takes_dtor], [
906 [#include <linux/slab.h>],
907 [kmem_cache_create(NULL, 0, 0, 0, NULL, NULL);],
908 ac_cv_linux_kmem_cache_create_takes_dtor=yes,
909 ac_cv_linux_kmem_cache_create_takes_dtor=no)])
910 AC_MSG_RESULT($ac_cv_linux_kmem_cache_create_takes_dtor)])
912 AC_DEFUN([LINUX_FS_STRUCT_FOP_HAS_SENDFILE], [
913 AC_MSG_CHECKING([for sendfile in struct file_operations])
914 AC_CACHE_VAL([ac_cv_linux_fs_struct_fop_has_sendfile], [
916 [#include <linux/fs.h>],
917 [struct file_operations _fop;
918 _fop.sendfile(NULL, NULL, 0, 0, NULL);],
919 ac_cv_linux_fs_struct_fop_has_sendfile=yes,
920 ac_cv_linux_fs_struct_fop_has_sendfile=no)])
921 AC_MSG_RESULT($ac_cv_linux_fs_struct_fop_has_sendfile)])
923 AC_DEFUN([LINUX_HAVE_SVC_ADDR_IN], [
924 AC_MSG_CHECKING([whether svc_addr_in exists])
925 AC_CACHE_VAL([ac_cv_linux_have_svc_addr_in], [
927 [#include <linux/sunrpc/svc.h>],
928 [svc_addr_in(NULL);],
929 ac_cv_linux_have_svc_addr_in=yes,
930 ac_cv_linux_have_svc_addr_in=no)])
931 AC_MSG_RESULT($ac_cv_linux_have_svc_addr_in)])
933 AC_DEFUN([LINUX_FS_STRUCT_FOP_HAS_SPLICE], [
934 AC_MSG_CHECKING([for splice_write and splice_read in struct file_operations])
935 AC_CACHE_VAL([ac_cv_linux_fs_struct_fop_has_splice], [
937 [#include <linux/fs.h>],
938 [struct file_operations _fop;
939 _fop.splice_write(NULL, NULL, NULL, 0, 0);
940 _fop.splice_read(NULL, NULL, NULL, 0, 0);],
941 ac_cv_linux_fs_struct_fop_has_splice=yes,
942 ac_cv_linux_fs_struct_fop_has_splice=no)])
943 AC_MSG_RESULT($ac_cv_linux_fs_struct_fop_has_splice)])
945 AC_DEFUN([LINUX_HAVE_CURRENT_KERNEL_TIME], [
946 AC_MSG_CHECKING([for current_kernel_time()])
947 AC_CACHE_VAL([ac_cv_linux_have_current_kernel_time], [
949 [#include <linux/time.h>],
950 [struct timespec s = current_kernel_time();],
951 ac_cv_linux_have_current_kernel_time=yes,
952 ac_cv_linux_have_current_kernel_time=no)])
953 AC_MSG_RESULT($ac_cv_linux_have_current_kernel_time)])
955 AC_DEFUN([LINUX_KMEM_CACHE_INIT], [
956 AC_MSG_CHECKING([for new kmem_cache init function parameters])
957 AC_CACHE_VAL([ac_cv_linux_kmem_cache_init], [
959 [#include <linux/slab.h>],
960 [extern struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
962 void (*)(struct kmem_cache *, void *));
964 ac_cv_linux_kmem_cache_init=yes,
965 ac_cv_linux_kmem_cache_init=no)])
966 AC_MSG_RESULT($ac_cv_linux_kmem_cache_init)])
968 AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [
969 AC_MSG_CHECKING([for sysctl table checking])
970 AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [
972 [#include <linux/sysctl.h>],
973 [ extern int sysctl_check_table(int) __attribute__((weak));
974 sysctl_check_table(NULL);],
975 ac_cv_linux_sysctl_table_checking=no,
976 ac_cv_linux_sysctl_table_checking=yes)])
977 AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)])