]>
Commit | Line | Data |
---|---|---|
3a57cba8 | 1 | /* |
c9d3f842 | 2 | * "$Id$" |
3a57cba8 | 3 | * |
3d94661a | 4 | * Configuration file for CUPS. |
3a57cba8 | 5 | * |
3d94661a | 6 | * Copyright 2007-2010 by Apple Inc. |
e12305dc | 7 | * Copyright 1997-2007 by Easy Software Products. |
3a57cba8 | 8 | * |
9 | * These coded instructions, statements, and computer programs are the | |
4e8d321f | 10 | * property of Apple Inc. and are protected by Federal copyright |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | * which should have been included with this file. If this file is | |
13 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
3a57cba8 | 14 | */ |
15 | ||
2d417cb3 | 16 | #ifndef _CUPS_CONFIG_H_ |
17 | #define _CUPS_CONFIG_H_ | |
18 | ||
3a57cba8 | 19 | /* |
20 | * Version of software... | |
21 | */ | |
22 | ||
18dcf583 | 23 | #define CUPS_SVERSION "" |
90ad5874 | 24 | #define CUPS_MINIMAL "" |
3a57cba8 | 25 | |
753453e4 | 26 | |
27 | /* | |
6dc66910 | 28 | * Default user and groups... |
753453e4 | 29 | */ |
30 | ||
31 | #define CUPS_DEFAULT_USER "lp" | |
32 | #define CUPS_DEFAULT_GROUP "sys" | |
6dc66910 | 33 | #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system" |
b07da210 | 34 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM" |
6dc66910 | 35 | |
36 | ||
37 | /* | |
38 | * Default file permissions... | |
39 | */ | |
40 | ||
41 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640 | |
42 | #define CUPS_DEFAULT_LOG_FILE_PERM 0644 | |
43 | ||
44 | ||
d7e5dcfa | 45 | /* |
46 | * Default logging settings... | |
47 | */ | |
48 | ||
49 | #define CUPS_DEFAULT_LOG_LEVEL "warn" | |
e1606ecf | 50 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions" |
d7e5dcfa | 51 | |
52 | ||
32cbd90e | 53 | /* |
54 | * Default fatal error settings... | |
55 | */ | |
56 | ||
57 | #define CUPS_DEFAULT_FATAL_ERRORS "config" | |
58 | ||
59 | ||
6dc66910 | 60 | /* |
61 | * Default browsing settings... | |
62 | */ | |
63 | ||
64 | #define CUPS_DEFAULT_BROWSING 1 | |
65 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS" | |
66 | #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS" | |
67 | #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1 | |
68 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
69 | #define CUPS_DEFAULT_IMPLICIT_CLASSES 1 | |
5bd8a9fa | 70 | #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1 |
753453e4 | 71 | |
72 | ||
1d9595ab | 73 | /* |
74 | * Default IPP port... | |
75 | */ | |
76 | ||
77 | #define CUPS_DEFAULT_IPP_PORT 631 | |
78 | ||
79 | ||
7e826c4a | 80 | /* |
81 | * Default printcap file... | |
82 | */ | |
83 | ||
84 | #define CUPS_DEFAULT_PRINTCAP "/etc/printcap" | |
85 | ||
86 | ||
8a56c565 | 87 | /* |
88 | * Default Samba and LPD config files... | |
89 | */ | |
90 | ||
91 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "" | |
92 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "" | |
93 | ||
94 | ||
38617900 | 95 | /* |
96 | * Default MaxCopies value... | |
97 | */ | |
98 | ||
99 | #define CUPS_DEFAULT_MAX_COPIES 100 | |
100 | ||
101 | ||
c6075312 | 102 | /* |
103 | * Do we have domain socket support? | |
104 | */ | |
105 | ||
c94f4aa9 | 106 | #undef CUPS_DEFAULT_DOMAINSOCKET |
c6075312 | 107 | |
108 | ||
a810d5d8 | 109 | /* |
110 | * Where are files stored? | |
f2bc527f | 111 | * |
112 | * Note: These are defaults, which can be overridden by environment | |
113 | * variables at run-time... | |
a810d5d8 | 114 | */ |
115 | ||
1f732f97 | 116 | #define CUPS_BINDIR "/usr/bin" |
f2bc527f | 117 | #define CUPS_CACHEDIR "/var/cache/cups" |
118 | #define CUPS_DATADIR "/usr/share/cups" | |
aff2356d | 119 | #define CUPS_DOCROOT "/usr/share/doc/cups" |
f2bc527f | 120 | #define CUPS_FONTPATH "/usr/share/cups/fonts" |
121 | #define CUPS_LOCALEDIR "/usr/share/locale" | |
122 | #define CUPS_LOGDIR "/var/logs/cups" | |
bd84e0d1 | 123 | #define CUPS_REQUESTS "/var/spool/cups" |
1f732f97 | 124 | #define CUPS_SBINDIR "/usr/sbin" |
f2bc527f | 125 | #define CUPS_SERVERBIN "/usr/lib/cups" |
126 | #define CUPS_SERVERROOT "/etc/cups" | |
d4102150 | 127 | #define CUPS_STATEDIR "/var/run/cups" |
bd84e0d1 | 128 | |
753453e4 | 129 | |
3a57cba8 | 130 | /* |
131 | * Do we have various image libraries? | |
132 | */ | |
133 | ||
a810d5d8 | 134 | #undef HAVE_LIBPNG |
135 | #undef HAVE_LIBZ | |
136 | #undef HAVE_LIBJPEG | |
137 | #undef HAVE_LIBTIFF | |
3a57cba8 | 138 | |
753453e4 | 139 | |
8e3eb75d | 140 | /* |
141 | * Do we have PAM stuff? | |
142 | */ | |
143 | ||
144 | #ifndef HAVE_LIBPAM | |
145 | #define HAVE_LIBPAM 0 | |
146 | #endif /* !HAVE_LIBPAM */ | |
147 | ||
ed6078a4 | 148 | #undef HAVE_PAM_PAM_APPL_H |
9dad4dd8 | 149 | #undef HAVE_PAM_SET_ITEM |
6385e0cc | 150 | #undef HAVE_PAM_SETCRED |
ed6078a4 | 151 | |
753453e4 | 152 | |
3a57cba8 | 153 | /* |
154 | * Do we have <shadow.h>? | |
155 | */ | |
156 | ||
a810d5d8 | 157 | #undef HAVE_SHADOW_H |
3a57cba8 | 158 | |
753453e4 | 159 | |
ba8a42d9 | 160 | /* |
161 | * Do we have <crypt.h>? | |
162 | */ | |
163 | ||
164 | #undef HAVE_CRYPT_H | |
165 | ||
753453e4 | 166 | |
fc50bd87 | 167 | /* |
168 | * Do we have <scsi/sg.h>? | |
169 | */ | |
170 | ||
171 | #undef HAVE_SCSI_SG_H | |
172 | ||
173 | ||
b5cb0608 | 174 | /* |
7ed5d5f2 | 175 | * Use <string.h>, <strings.h>, and/or <bstring.h>? |
b5cb0608 | 176 | */ |
177 | ||
178 | #undef HAVE_STRING_H | |
179 | #undef HAVE_STRINGS_H | |
7ed5d5f2 | 180 | #undef HAVE_BSTRING_H |
b5cb0608 | 181 | |
1479646d | 182 | /* |
183 | * Do we have the long long type? | |
184 | */ | |
185 | ||
186 | #undef HAVE_LONG_LONG | |
187 | ||
188 | #ifdef HAVE_LONG_LONG | |
189 | # define CUPS_LLFMT "%lld" | |
190 | # define CUPS_LLCAST (long long) | |
191 | #else | |
192 | # define CUPS_LLFMT "%ld" | |
193 | # define CUPS_LLCAST (long) | |
194 | #endif /* HAVE_LONG_LONG */ | |
195 | ||
196 | /* | |
197 | * Do we have the strtoll() function? | |
198 | */ | |
199 | ||
200 | #undef HAVE_STRTOLL | |
201 | ||
202 | #ifndef HAVE_STRTOLL | |
203 | # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) | |
204 | #endif /* !HAVE_STRTOLL */ | |
753453e4 | 205 | |
3a57cba8 | 206 | /* |
207 | * Do we have the strXXX() functions? | |
208 | */ | |
209 | ||
a810d5d8 | 210 | #undef HAVE_STRDUP |
211 | #undef HAVE_STRCASECMP | |
212 | #undef HAVE_STRNCASECMP | |
def978d5 | 213 | #undef HAVE_STRLCAT |
214 | #undef HAVE_STRLCPY | |
3a57cba8 | 215 | |
753453e4 | 216 | |
6bb5a528 | 217 | /* |
218 | * Do we have the geteuid() function? | |
219 | */ | |
220 | ||
221 | #undef HAVE_GETEUID | |
222 | ||
223 | ||
8a2c2126 | 224 | /* |
225 | * Do we have the vsyslog() function? | |
226 | */ | |
227 | ||
228 | #undef HAVE_VSYSLOG | |
229 | ||
753453e4 | 230 | |
ac9bff36 | 231 | /* |
232 | * Do we have the (v)snprintf() functions? | |
233 | */ | |
234 | ||
235 | #undef HAVE_SNPRINTF | |
236 | #undef HAVE_VSNPRINTF | |
237 | ||
753453e4 | 238 | |
3a57cba8 | 239 | /* |
5fba2863 | 240 | * What signal functions to use? |
241 | */ | |
242 | ||
243 | #undef HAVE_SIGSET | |
244 | #undef HAVE_SIGACTION | |
245 | ||
753453e4 | 246 | |
5fba2863 | 247 | /* |
248 | * What wait functions to use? | |
249 | */ | |
250 | ||
251 | #undef HAVE_WAITPID | |
252 | #undef HAVE_WAIT3 | |
253 | ||
753453e4 | 254 | |
5fba2863 | 255 | /* |
2bdd1992 | 256 | * Do we have the mallinfo function and malloc.h? |
8c57ced1 | 257 | */ |
258 | ||
2bdd1992 | 259 | #undef HAVE_MALLINFO |
8c57ced1 | 260 | #undef HAVE_MALLOC_H |
261 | ||
753453e4 | 262 | |
5c6b3ae4 | 263 | /* |
264 | * Do we have the POSIX ACL functions? | |
265 | */ | |
266 | ||
267 | #undef HAVE_ACL_INIT | |
268 | ||
269 | ||
9e55d0dc | 270 | /* |
271 | * Do we have the langinfo.h header file? | |
272 | */ | |
273 | ||
274 | #undef HAVE_LANGINFO_H | |
275 | ||
276 | ||
8c57ced1 | 277 | /* |
8dc749d9 | 278 | * Which encryption libraries do we have? |
e2ff7d86 | 279 | */ |
280 | ||
dcfcaeac | 281 | #undef HAVE_CDSASSL |
bcf61448 | 282 | #undef HAVE_GNUTLS |
dcfcaeac | 283 | #undef HAVE_LIBSSL |
284 | #undef HAVE_SSL | |
e2ff7d86 | 285 | |
753453e4 | 286 | |
91679419 | 287 | /* |
e12305dc | 288 | * What Security framework headers do we have? |
91679419 | 289 | */ |
290 | ||
753db4fd | 291 | #undef HAVE_AUTHORIZATION_H |
e12305dc | 292 | #undef HAVE_SECPOLICY_H |
293 | #undef HAVE_SECPOLICYPRIV_H | |
91679419 | 294 | #undef HAVE_SECBASEPRIV_H |
21d1e283 | 295 | #undef HAVE_SECIDENTITYSEARCHPRIV_H |
296 | ||
297 | ||
298 | /* | |
299 | * Do we have the SecIdentitySearchCreateWithPolicy function? | |
300 | */ | |
301 | ||
302 | #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY | |
91679419 | 303 | |
304 | ||
753453e4 | 305 | /* |
c52c6d95 | 306 | * Do we have the SLP library? |
753453e4 | 307 | */ |
308 | ||
309 | #undef HAVE_LIBSLP | |
310 | ||
311 | ||
c52c6d95 | 312 | /* |
313 | * Do we have an LDAP library? | |
314 | */ | |
315 | ||
316 | #undef HAVE_LDAP | |
317 | #undef HAVE_OPENLDAP | |
d4609d64 | 318 | #undef HAVE_MOZILLA_LDAP |
319 | #undef HAVE_LDAP_SSL_H | |
320 | #undef HAVE_LDAP_SSL | |
321 | #undef HAVE_LDAP_REBIND_PROC | |
c52c6d95 | 322 | |
323 | ||
b4f2ed46 | 324 | /* |
325 | * Do we have libpaper? | |
326 | */ | |
327 | ||
328 | #undef HAVE_LIBPAPER | |
329 | ||
330 | ||
2344229d | 331 | /* |
332 | * Do we have DNS Service Discovery (aka Bonjour)? | |
333 | */ | |
334 | ||
335 | #undef HAVE_DNSSD | |
336 | ||
337 | ||
957d43b0 | 338 | /* |
339 | * Do we have <sys/ioctl.h>? | |
340 | */ | |
341 | ||
342 | #undef HAVE_SYS_IOCTL_H | |
e2ff7d86 | 343 | |
753453e4 | 344 | |
753453e4 | 345 | /* |
346 | * Does the "tm" structure contain the "tm_gmtoff" member? | |
347 | */ | |
348 | ||
349 | #undef HAVE_TM_GMTOFF | |
350 | ||
351 | ||
e2ff7d86 | 352 | /* |
7c298ddc | 353 | * Do we have rresvport_af()? |
354 | */ | |
355 | ||
356 | #undef HAVE_RRESVPORT_AF | |
357 | ||
358 | ||
359 | /* | |
360 | * Do we have getaddrinfo()? | |
c3026ddc | 361 | */ |
362 | ||
7c298ddc | 363 | #undef HAVE_GETADDRINFO |
c3026ddc | 364 | |
365 | ||
c94f4aa9 | 366 | /* |
367 | * Do we have getnameinfo()? | |
368 | */ | |
369 | ||
370 | #undef HAVE_GETNAMEINFO | |
371 | ||
372 | ||
c3026ddc | 373 | /* |
211b4298 | 374 | * Do we have getifaddrs()? |
375 | */ | |
376 | ||
377 | #undef HAVE_GETIFADDRS | |
378 | ||
379 | ||
dfb69f7a | 380 | /* |
381 | * Do we have hstrerror()? | |
382 | */ | |
383 | ||
384 | #undef HAVE_HSTRERROR | |
385 | ||
386 | ||
36b81b47 | 387 | /* |
388 | * Do we have res_init()? | |
389 | */ | |
390 | ||
391 | #undef HAVE_RES_INIT | |
392 | ||
393 | ||
394 | /* | |
395 | * Do we have <resolv.h> | |
396 | */ | |
397 | ||
398 | #undef HAVE_RESOLV_H | |
399 | ||
400 | ||
042931ba | 401 | /* |
402 | * Do we have the <sys/sockio.h> header file? | |
403 | */ | |
404 | ||
405 | #undef HAVE_SYS_SOCKIO_H | |
406 | ||
407 | ||
211b4298 | 408 | /* |
409 | * Does the sockaddr structure contain an sa_len parameter? | |
410 | */ | |
411 | ||
412 | #undef HAVE_STRUCT_SOCKADDR_SA_LEN | |
413 | ||
414 | ||
0f1aeca7 | 415 | /* |
416 | * Do we have the AIX usersec.h header file? | |
417 | */ | |
418 | ||
419 | #undef HAVE_USERSEC_H | |
420 | ||
bdc2f5ca | 421 | |
03f61bf3 | 422 | /* |
423 | * Do we have pthread support? | |
424 | */ | |
425 | ||
426 | #undef HAVE_PTHREAD_H | |
427 | ||
0f1aeca7 | 428 | |
5db6985b | 429 | /* |
430 | * Do we have launchd support? | |
431 | */ | |
432 | ||
433 | #undef HAVE_LAUNCH_H | |
434 | #undef HAVE_LAUNCHD | |
435 | #define CUPS_DEFAULT_LAUNCHD_CONF "" | |
436 | ||
437 | ||
211b4298 | 438 | /* |
3721af07 | 439 | * Various scripting languages... |
440 | */ | |
441 | ||
442 | #undef HAVE_JAVA | |
443 | #define CUPS_JAVA "/usr/bin/java" | |
444 | #undef HAVE_PERL | |
445 | #define CUPS_PERL "/usr/bin/perl" | |
446 | #undef HAVE_PHP | |
447 | #define CUPS_PHP "/usr/bin/php" | |
448 | #undef HAVE_PYTHON | |
449 | #define CUPS_PYTHON "/usr/bin/python" | |
450 | ||
451 | ||
e1c806ac | 452 | /* |
453 | * Location of the poppler/Xpdf pdftops program... | |
454 | */ | |
455 | ||
a1ee6828 | 456 | #undef HAVE_PDFTOPS |
e1c806ac | 457 | #define CUPS_PDFTOPS "/usr/bin/pdftops" |
458 | ||
459 | ||
a1ee6828 | 460 | /* |
461 | * Location of the Ghostscript gs program... | |
462 | */ | |
463 | ||
464 | #undef HAVE_GHOSTSCRIPT | |
465 | #define CUPS_GHOSTSCRIPT "/usr/bin/gs" | |
466 | ||
467 | ||
42f22b2f | 468 | /* |
469 | * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks? | |
470 | */ | |
471 | ||
472 | #undef HAVE_COREFOUNDATION | |
473 | #undef HAVE_SYSTEMCONFIGURATION | |
474 | ||
475 | ||
476 | /* | |
477 | * Do we have CoreFoundation public and private headers? | |
478 | */ | |
479 | ||
480 | #undef HAVE_COREFOUNDATION_H | |
481 | #undef HAVE_CFPRIV_H | |
482 | #undef HAVE_CFBUNDLEPRIV_H | |
483 | ||
484 | ||
485 | /* | |
486 | * Do we have MacOSX 10.4's mbr_XXX functions()? | |
487 | */ | |
488 | ||
489 | #undef HAVE_MEMBERSHIP_H | |
68651a00 | 490 | #undef HAVE_MEMBERSHIPPRIV_H |
42f22b2f | 491 | #undef HAVE_MBR_UID_TO_UUID |
492 | ||
493 | ||
b89216d0 | 494 | /* |
495 | * Do we have Darwin's notify_post() header and function? | |
496 | */ | |
497 | ||
498 | #undef HAVE_NOTIFY_H | |
499 | #undef HAVE_NOTIFY_POST | |
500 | ||
501 | ||
b9af0be2 | 502 | /* |
503 | * Do we have DBUS? | |
504 | */ | |
505 | ||
506 | #undef HAVE_DBUS | |
2f4b5db0 | 507 | #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND |
b9af0be2 | 508 | |
509 | ||
c5e731d0 | 510 | /* |
511 | * Do we have the AppleTalk/at_proto.h header? | |
512 | */ | |
513 | ||
514 | #undef HAVE_APPLETALK_AT_PROTO_H | |
515 | ||
516 | ||
cf94bcb1 | 517 | /* |
518 | * Do we have the GSSAPI support library (for Kerberos support)? | |
519 | */ | |
520 | ||
521 | #undef HAVE_GSSAPI | |
522 | #undef HAVE_GSSAPI_H | |
523 | #undef HAVE_GSSAPI_GSSAPI_H | |
524 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | |
525 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | |
526 | #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY | |
8b3c3ab7 | 527 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE |
e89971c6 | 528 | #undef HAVE_KRB5_CC_NEW_UNIQUE |
4dc75c84 | 529 | #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID |
cf94bcb1 | 530 | #undef HAVE_KRB5_H |
531 | #undef HAVE_HEIMDAL | |
532 | ||
533 | ||
a99d043e | 534 | /* |
535 | * Default GSS service name... | |
536 | */ | |
537 | ||
538 | #define CUPS_DEFAULT_GSSSERVICENAME "" | |
539 | ||
540 | ||
9d4830a3 | 541 | /* |
542 | * Select/poll interfaces... | |
543 | */ | |
544 | ||
545 | #undef HAVE_POLL | |
546 | #undef HAVE_EPOLL | |
547 | #undef HAVE_KQUEUE | |
548 | ||
549 | ||
bb3ff448 | 550 | /* |
551 | * Do we have the <dlfcn.h> header? | |
552 | */ | |
553 | ||
554 | #undef HAVE_DLFCN_H | |
555 | ||
556 | ||
75cd763e | 557 | /* |
558 | * Do we have <sys/param.h>? | |
559 | */ | |
560 | ||
561 | #undef HAVE_SYS_PARAM_H | |
562 | ||
563 | ||
21cc7184 | 564 | /* |
565 | * Do we have <sys/ucred.h>? | |
566 | */ | |
567 | ||
568 | #undef HAVE_SYS_UCRED_H | |
569 | ||
570 | ||
a3e95b7e | 571 | /* |
572 | * Do we have removefile()? | |
573 | */ | |
574 | ||
575 | #undef HAVE_REMOVEFILE | |
576 | ||
577 | ||
fc988006 | 578 | /* |
579 | * Do we have <sandbox.h>? | |
580 | */ | |
581 | ||
582 | #undef HAVE_SANDBOX_H | |
583 | ||
584 | ||
7cd15c56 | 585 | /* |
586 | * Which random number generator function to use... | |
587 | */ | |
588 | ||
0d34d098 | 589 | #undef HAVE_ARC4RANDOM |
7cd15c56 | 590 | #undef HAVE_RANDOM |
7cd15c56 | 591 | #undef HAVE_LRAND48 |
592 | ||
0d34d098 | 593 | #ifdef HAVE_ARC4RANDOM |
594 | # define CUPS_RAND() arc4random() | |
595 | # define CUPS_SRAND(v) arc4random_stir() | |
596 | #elif defined(HAVE_RANDOM) | |
597 | # define CUPS_RAND() random() | |
598 | # define CUPS_SRAND(v) srandom(v) | |
599 | #elif defined(HAVE_LRAND48) | |
600 | # define CUPS_RAND() lrand48() | |
601 | # define CUPS_SRAND(v) srand48(v) | |
602 | #else | |
603 | # define CUPS_RAND() rand() | |
604 | # define CUPS_SRAND(v) srand(v) | |
605 | #endif /* HAVE_ARC4RANDOM */ | |
606 | ||
7cd15c56 | 607 | |
6e052688 | 608 | /* |
609 | * Do we have vproc_transaction_begin/end? | |
610 | */ | |
611 | ||
612 | #undef HAVE_VPROC_TRANSACTION_BEGIN | |
613 | ||
614 | ||
bdb5a5c3 | 615 | /* |
616 | * Do we have libusb? | |
617 | */ | |
618 | ||
619 | #undef HAVE_USB_H | |
620 | ||
621 | ||
5faeb470 | 622 | /* |
623 | * Do we have libwrap and tcpd.h? | |
624 | */ | |
625 | ||
626 | #undef HAVE_TCPD_H | |
627 | ||
628 | ||
2d417cb3 | 629 | #endif /* !_CUPS_CONFIG_H_ */ |
630 | ||
3721af07 | 631 | /* |
c9d3f842 | 632 | * End of "$Id$". |
3a57cba8 | 633 | */ |