tests: Use here-doc kadmin in Java test
[heimdal.git] / cf / dispatch.m4
blob76c5f47ee6fcf46b6eabf4c34499eee7e265b82e
2 AC_DEFUN([rk_LIBDISPATCH],[
4 AC_CHECK_PROGS(GCD_MIG, mig, no)
6 if test "$GCD_MIG" != no; then
7   AC_CHECK_HEADERS([dispatch/dispatch.h])
8   AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
9   [#ifdef HAVE_DISPATCH_DISPATCH_H
10   #include <dispatch/dispatch.h>
11   #endif],[0,0,0])
13   if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then
14       AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
15       libdispatch=yes
16   else
17       libdispatch=no
18   fi
21 AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes -a "$GCD_MIG" != no)