From 2bde78fdac01380a359b6e6a8c466757553f846f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 10 Aug 2002 07:32:21 +0000 Subject: [PATCH] linux-symbol-export-test-20020810 test for tasklist_lock being exported discussion on openafs-devel to follow --- src/cf/linux-test4.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index a21a2365fb..07e276426a 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -1,3 +1,19 @@ +AC_DEFUN(LINUX_EXPORTS_TASKLIST_LOCK, [ +AC_MSG_CHECKING(for exported tasklist_lock) +save_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS" +AC_CACHE_VAL(ac_cv_linux_exports_tasklist_lock, +[ +AC_TRY_COMPILE( +[#include ], +[#ifndef __ver_tasklist_lock +#error tasklist_lock not exported +#endif], +ac_cv_linux_exports_tasklist_lock=yes, +ac_cv_linux_exports_tasklist_lock=no)]) +AC_MSG_RESULT($ac_cv_linux_exports_tasklist_lock) +CPPFLAGS="$save_CPPFLAGS"]) + AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_MMAP_SHARED, [ AC_MSG_CHECKING(for i_mmap_shared in struct inode) save_CPPFLAGS="$CPPFLAGS"