]>
Commit | Line | Data |
---|---|---|
a4d04587 | 1 | dnl |
a74454a7 | 2 | dnl "$Id: cups-launchd.m4 5466 2006-04-26 19:52:27Z mike $" |
a4d04587 | 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 | ||
bd7854cb | 26 | AC_ARG_ENABLE(launchd, [ --enable-launchd turn on launchd support, default=yes]) |
a4d04587 | 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 | |
a74454a7 | 52 | dnl End of "$Id: cups-launchd.m4 5466 2006-04-26 19:52:27Z mike $". |
a4d04587 | 53 | dnl |