]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-launchd.m4
1da73934f48f5d25ea5b9d51c4f2cb69c162f292
[thirdparty/cups.git] / config-scripts / cups-launchd.m4
1 dnl
2 dnl "$Id$"
3 dnl
4 dnl launchd stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7 dnl
8 dnl These coded instructions, statements, and computer programs are the
9 dnl property of Easy Software Products and are protected by Federal
10 dnl copyright law. Distribution and use rights are outlined in the file
11 dnl "LICENSE.txt" which should have been included with this file. If this
12 dnl file is missing or damaged please contact Easy Software Products
13 dnl at:
14 dnl
15 dnl Attn: CUPS Licensing Information
16 dnl Easy Software Products
17 dnl 44141 Airport View Drive, Suite 204
18 dnl Hollywood, Maryland 20636 USA
19 dnl
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
23 dnl
24
25
26 AC_ARG_ENABLE(launchd, [ --enable-launchd turn on launchd support, default=yes])
27
28 DEFAULT_LAUNCHD_CONF=""
29 LAUNCHDLIBS=""
30
31 if 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
45 fi
46
47 AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LAUNCHD_CONF, "$DEFAULT_LAUNCHD_CONF")
48 AC_SUBST(DEFAULT_LAUNCHD_CONF)
49 AC_SUBST(LAUNCHDLIBS)
50
51 dnl
52 dnl End of "$Id$".
53 dnl