Include <ucred.h> if we have getpeerucred()
[heimdal.git] / cf / dispatch.m4
blob68b39fd48ae79e31a18276a86c7edbeb6d58227a
2 AC_DEFUN([rk_LIBDISPATCH],[
4 AC_CHECK_HEADERS([dispatch/dispatch.h])
6 AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
7 [#ifdef HAVE_DISPATCH_DISPATCH_H
8 #include <dispatch/dispatch.h>
9 #endif],[0,0,0])
11 if test "$ac_cv_func_dispatch_async_f" = yes ; then
12     AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
13     libdispatch=yes
14 else
15     libdispatch=no
18 AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes)