diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-21 15:51:32 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-21 23:56:18 -0700 |
commit | ca7b9e6c817681b9cec738e43cf020ac19b5e732 (patch) | |
tree | 65be2193ea142f137683e19d82c33bbd448fe663 | |
parent | 3960115dbc83ec1eb8d9c8e90466af3fa0b32abd (diff) |
configure.ac: Add check for libdispatch when building for darwin
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | include/dix-config.h.in | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 9e04ff015..887dae571 100644 --- a/configure.ac +++ b/configure.ac @@ -726,9 +726,9 @@ case $host_os in save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -framework Carbon" AC_LINK_IFELSE([char FSFindFolder(); int main() { FSFindFolder(); return 0;}], - [xorg_cv_Carbon_framework=yes], - [xorg_cv_Carbon_framework=no]) - LDFLAGS=$save_LDFLAGS]) + [xorg_cv_Carbon_framework=yes], + [xorg_cv_Carbon_framework=no]) + LDFLAGS=$save_LDFLAGS]) if test "X$xorg_cv_Carbon_framework" = Xyes; then XQUARTZ=yes @@ -737,6 +737,10 @@ case $host_os in fi fi + AC_CHECK_FUNC(dispatch_async, + AC_DEFINE([HAVE_LIBDISPATCH], 1, [Define to 1 if you have the libdispatch (GCD) available]), + []) + if test "x$XQUARTZ" = xyes ; then XQUARTZ=yes XVFB=no diff --git a/include/dix-config.h.in b/include/dix-config.h.in index fd9ecced2..14229b435 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -136,6 +136,9 @@ /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM +/* Define to 1 if you have the libdispatch (GCD) available */ +#undef HAVE_LIBDISPATCH + /* Define to 1 if you have the `link' function. */ #undef HAVE_LINK |