summaryrefslogtreecommitdiff
path: root/crypto/external/bsd/heimdal/dist/cf/dispatch.m4
blob: 68b39fd48ae79e31a18276a86c7edbeb6d58227a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

AC_DEFUN([rk_LIBDISPATCH],[

AC_CHECK_HEADERS([dispatch/dispatch.h])

AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
[#ifdef HAVE_DISPATCH_DISPATCH_H
#include <dispatch/dispatch.h>
#endif],[0,0,0])

if test "$ac_cv_func_dispatch_async_f" = yes ; then
    AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
    libdispatch=yes
else
    libdispatch=no
fi

AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes)

])