dnl
dnl $Id: linux-filldir-dt-type.m4,v 1.1.2.2 2000/09/13 07:02:58 lha Exp $
dnl

AC_DEFUN(AC_LINUX_FILLDIR_DT_TYPE, [
AC_CACHE_CHECK([for whether filldir_t includes a dt_type],
ac_cv_type_filldir_dt_type,
AC_TRY_COMPILE_KERNEL([#include <asm/current.h>
#include <linux/fs.h>],
[
int foo(void *a, const char *b, int c, off_t d, ino_t e, unsigned type);

filldir_t bar = foo;
],
ac_cv_type_filldir_dt_type=yes,
ac_cv_type_filldir_dt_type=no))

if test "$ac_cv_type_filldir_dt_type" = "yes"; then
  AC_DEFINE(HAVE_FILLDIR_T_DT_TYPE, 1, [define if filldir_t takes a dt_type argument])
fi
])
