linux-splice-support-20071106
[openafs.git] / src / cf / solaris-pcorefile.m4
1 AC_DEFUN([SOLARIS_PROC_HAS_P_COREFILE], [
2 AC_MSG_CHECKING(for p_corefile in struct proc)
3 AC_CACHE_VAL(ac_cv_solaris_proc_has_p_corefile,
4 [
5 AC_TRY_COMPILE(
6 [#define _KERNEL
7 #include <sys/proc.h>],
8 [struct proc _proc;
9 (void) _proc.p_corefile;], 
10 ac_cv_solaris_proc_has_p_corefile=yes,
11 ac_cv_solaris_proc_has_p_corefile=no)])
12 AC_MSG_RESULT($ac_cv_solaris_proc_has_p_corefile)
13 if test "$ac_cv_solaris_proc_has_p_corefile" = "yes"; then
14   AC_DEFINE(HAVE_P_COREFILE, 1, [define if struct proc has p_corefile])
15 fi
16 ])
17