Check for mig(1), not just libdispatch
This commit is contained in:
@@ -1,20 +1,23 @@
|
|||||||
|
|
||||||
AC_DEFUN([rk_LIBDISPATCH],[
|
AC_DEFUN([rk_LIBDISPATCH],[
|
||||||
|
|
||||||
AC_CHECK_HEADERS([dispatch/dispatch.h])
|
AC_CHECK_PROGS(GCD_MIG, mig, no)
|
||||||
|
|
||||||
AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
|
if test "$GCD_MIG" != no; then
|
||||||
[#ifdef HAVE_DISPATCH_DISPATCH_H
|
AC_CHECK_HEADERS([dispatch/dispatch.h])
|
||||||
#include <dispatch/dispatch.h>
|
AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
|
||||||
#endif],[0,0,0])
|
[#ifdef HAVE_DISPATCH_DISPATCH_H
|
||||||
|
#include <dispatch/dispatch.h>
|
||||||
|
#endif],[0,0,0])
|
||||||
|
|
||||||
|
if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then
|
||||||
|
AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
|
||||||
|
libdispatch=yes
|
||||||
|
else
|
||||||
|
libdispatch=no
|
||||||
|
fi
|
||||||
|
|
||||||
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
|
fi
|
||||||
|
AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes -a "$GCD_MIG" != no)
|
||||||
|
|
||||||
AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes)
|
])
|
||||||
|
|
||||||
])
|
|
||||||
|
Reference in New Issue
Block a user