From 835de9ceae0a5bfb6155d3e74c8ab53848bad8b1 Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Wed, 14 Nov 2007 04:26:25 -0800 Subject: [PATCH] Trying to add launchd detection to tell Xtrans to enable launchd support; fix me later. --- configure.ac | 5 ++++- include/dix-config.h.in | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5b0441675..e06c8e30b 100644 --- a/configure.ac +++ b/configure.ac @@ -96,6 +96,9 @@ AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h]) AC_CHECK_PROG(HAVE_LAUNCHD, [launchd], [yes], []) +if test "x$HAVE_LAUNCHD" = xyes; then + AC_DEFINE(HAS_LAUNCHD, 1, [launchd support available]) +fi dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -1753,7 +1756,7 @@ if test "x$XDARWIN" = xyes; then AC_SUBST([DARWIN_LIBS]) AC_CHECK_LIB([Xplugin],[xp_init],[:]) AC_SUBST([APPLE_APPLICATIONS_DIR]) - CFLAGS="${CFLAGS} -D__DARWIN__ -DDARWIN_WITH_QUARTZ -DROOTLESS_WORKAROUND" + CFLAGS="${CFLAGS} -DHAVE_LAUNCHD -D__DARWIN__ -DDARWIN_WITH_QUARTZ -DROOTLESS_WORKAROUND" PLIST_VERSION_STRING=$PACKAGE_VERSION AC_SUBST([PLIST_VERSION_STRING]) PLIST_VENDOR_WEB=$VENDOR_WEB diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 69fab5e53..837a5d518 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -142,6 +142,9 @@ /* Define to 1 if you have version 2.2 (or newer) of the drm library */ #undef HAVE_LIBDRM_2_2 +/* Define to 1 if launchd is available. */ +#undef HAVE_LAUNCHD + /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM