]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-launchd.m4
Merge changes from CUPS 1.5svn-r9000.
[thirdparty/cups.git] / config-scripts / cups-launchd.m4
CommitLineData
a4d04587 1dnl
bc44d920 2dnl "$Id: cups-launchd.m4 6649 2007-07-11 21:46:42Z mike $"
a4d04587 3dnl
f8b3a85b 4dnl launchd stuff for CUPS.
a4d04587 5dnl
f8b3a85b 6dnl Copyright 2007-2010 by Apple Inc.
a4d04587 7dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
8dnl
9dnl These coded instructions, statements, and computer programs are the
bc44d920 10dnl property of Apple Inc. and are protected by Federal copyright
11dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12dnl which should have been included with this file. If this file is
13dnl file is missing or damaged, see the license at "http://www.cups.org/".
a4d04587 14dnl
15
16
bf3816c7 17AC_ARG_ENABLE(launchd, [ --disable-launchd disable launchd support])
a4d04587 18
19DEFAULT_LAUNCHD_CONF=""
20LAUNCHDLIBS=""
21
22if test x$enable_launchd != xno; then
23 AC_CHECK_FUNC(launch_msg, AC_DEFINE(HAVE_LAUNCHD))
24 AC_CHECK_HEADER(launch.h, AC_DEFINE(HAVE_LAUNCH_H))
25
26 case "$uname" in
27 Darwin*)
28 # Darwin, MacOS X
29 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
30 # liblaunch is already part of libSystem
31 ;;
32 *)
33 # All others; this test will need to be updated
34 ;;
35 esac
36fi
37
a4d04587 38AC_SUBST(DEFAULT_LAUNCHD_CONF)
39AC_SUBST(LAUNCHDLIBS)
40
41dnl
bc44d920 42dnl End of "$Id: cups-launchd.m4 6649 2007-07-11 21:46:42Z mike $".
a4d04587 43dnl