]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-launchd.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-launchd.m4
CommitLineData
a4d04587 1dnl
2dnl "$Id$"
3dnl
4dnl launchd stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25
bd7854cb 26AC_ARG_ENABLE(launchd, [ --enable-launchd turn on launchd support, default=yes])
a4d04587 27
28DEFAULT_LAUNCHD_CONF=""
29LAUNCHDLIBS=""
30
31if test x$enable_launchd != xno; then
32 AC_CHECK_FUNC(launch_msg, AC_DEFINE(HAVE_LAUNCHD))
33 AC_CHECK_HEADER(launch.h, AC_DEFINE(HAVE_LAUNCH_H))
34
35 case "$uname" in
36 Darwin*)
37 # Darwin, MacOS X
38 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
39 # liblaunch is already part of libSystem
40 ;;
41 *)
42 # All others; this test will need to be updated
43 ;;
44 esac
45fi
46
47AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LAUNCHD_CONF, "$DEFAULT_LAUNCHD_CONF")
48AC_SUBST(DEFAULT_LAUNCHD_CONF)
49AC_SUBST(LAUNCHDLIBS)
50
51dnl
52dnl End of "$Id$".
53dnl