5 AC_DEFUN([AC_LINUX_FUNC_INIT_MUTEX], [
6 AC_CACHE_CHECK([for init_MUTEX],
7 ac_cv_func_init_mutex, [
8 save_CPPFLAGS="$CPPFLAGS"
9 CPPFLAGS="$CPPFLAGS $test_KERNEL_CFLAGS $KERNEL_CPPFLAGS"
10 AC_EGREP_CPP([init_MUTEX],
11 [#include <asm/semaphore.h>
15 ac_cv_func_init_mutex=yes,
16 ac_cv_func_init_mutex=no)]
17 CPPFLAGS="$save_CPPFLAGS"
19 if test "$ac_cv_func_init_mutex" = "yes"; then
20 AC_DEFINE(HAVE_INIT_MUTEX, 1,
21 [define if you have a function init_MUTEX])