]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
5a1d7a17 | 2 | * Configuration file for CUPS. |
ef416fc2 | 3 | * |
fa26ab95 | 4 | * Copyright 2007-2019 by Apple Inc. |
5a1d7a17 | 5 | * Copyright 1997-2007 by Easy Software Products. |
ef416fc2 | 6 | * |
fa26ab95 MS |
7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more |
8 | * information. | |
ef416fc2 | 9 | */ |
10 | ||
11 | #ifndef _CUPS_CONFIG_H_ | |
12 | #define _CUPS_CONFIG_H_ | |
13 | ||
14 | /* | |
15 | * Version of software... | |
16 | */ | |
17 | ||
18 | #define CUPS_SVERSION "" | |
19 | #define CUPS_MINIMAL "" | |
20 | ||
21 | ||
22 | /* | |
09ec0018 | 23 | * Default user and groups... |
ef416fc2 | 24 | */ |
25 | ||
26 | #define CUPS_DEFAULT_USER "lp" | |
27 | #define CUPS_DEFAULT_GROUP "sys" | |
09ec0018 | 28 | #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system" |
b9faaae1 | 29 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM" |
6961465f | 30 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin" |
09ec0018 | 31 | |
32 | ||
33 | /* | |
34 | * Default file permissions... | |
35 | */ | |
36 | ||
37 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640 | |
38 | #define CUPS_DEFAULT_LOG_FILE_PERM 0644 | |
39 | ||
40 | ||
1f0275e3 MS |
41 | /* |
42 | * Default logging settings... | |
43 | */ | |
44 | ||
45 | #define CUPS_DEFAULT_LOG_LEVEL "warn" | |
46 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions" | |
47 | ||
48 | ||
49d87452 MS |
49 | /* |
50 | * Default fatal error settings... | |
51 | */ | |
52 | ||
53 | #define CUPS_DEFAULT_FATAL_ERRORS "config" | |
54 | ||
55 | ||
09ec0018 | 56 | /* |
57 | * Default browsing settings... | |
58 | */ | |
59 | ||
60 | #define CUPS_DEFAULT_BROWSING 1 | |
a2326b5b | 61 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "" |
09ec0018 | 62 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 |
ef416fc2 | 63 | |
64 | ||
65 | /* | |
66 | * Default IPP port... | |
67 | */ | |
68 | ||
69 | #define CUPS_DEFAULT_IPP_PORT 631 | |
70 | ||
71 | ||
e53920b9 | 72 | /* |
73 | * Default printcap file... | |
74 | */ | |
75 | ||
76 | #define CUPS_DEFAULT_PRINTCAP "/etc/printcap" | |
77 | ||
78 | ||
2e4ff8af MS |
79 | /* |
80 | * Default Samba and LPD config files... | |
81 | */ | |
82 | ||
83 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "" | |
84 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "" | |
85 | ||
86 | ||
f7deaa1a | 87 | /* |
88 | * Default MaxCopies value... | |
89 | */ | |
90 | ||
1e564ac8 | 91 | #define CUPS_DEFAULT_MAX_COPIES 9999 |
f7deaa1a | 92 | |
93 | ||
ef416fc2 | 94 | /* |
229681c1 | 95 | * Do we have domain socket support, and if so what is the default one? |
ef416fc2 | 96 | */ |
97 | ||
98 | #undef CUPS_DEFAULT_DOMAINSOCKET | |
99 | ||
100 | ||
229681c1 MS |
101 | /* |
102 | * Default WebInterface value... | |
103 | */ | |
104 | ||
105 | #undef CUPS_DEFAULT_WEBIF | |
106 | ||
107 | ||
ef416fc2 | 108 | /* |
109 | * Where are files stored? | |
110 | * | |
111 | * Note: These are defaults, which can be overridden by environment | |
112 | * variables at run-time... | |
113 | */ | |
114 | ||
fa73b229 | 115 | #define CUPS_BINDIR "/usr/bin" |
ef416fc2 | 116 | #define CUPS_CACHEDIR "/var/cache/cups" |
117 | #define CUPS_DATADIR "/usr/share/cups" | |
118 | #define CUPS_DOCROOT "/usr/share/doc/cups" | |
119 | #define CUPS_FONTPATH "/usr/share/cups/fonts" | |
120 | #define CUPS_LOCALEDIR "/usr/share/locale" | |
121 | #define CUPS_LOGDIR "/var/logs/cups" | |
122 | #define CUPS_REQUESTS "/var/spool/cups" | |
fa73b229 | 123 | #define CUPS_SBINDIR "/usr/sbin" |
ef416fc2 | 124 | #define CUPS_SERVERBIN "/usr/lib/cups" |
125 | #define CUPS_SERVERROOT "/etc/cups" | |
126 | #define CUPS_STATEDIR "/var/run/cups" | |
127 | ||
128 | ||
c82f05ea MS |
129 | /* |
130 | * Do we have posix_spawn? | |
131 | */ | |
132 | ||
133 | #undef HAVE_POSIX_SPAWN | |
134 | ||
135 | ||
ef416fc2 | 136 | /* |
0cb67df3 | 137 | * Do we have ZLIB? |
ef416fc2 | 138 | */ |
139 | ||
ef416fc2 | 140 | #undef HAVE_LIBZ |
db8b865d | 141 | #undef HAVE_INFLATECOPY |
ef416fc2 | 142 | |
143 | ||
144 | /* | |
145 | * Do we have PAM stuff? | |
146 | */ | |
147 | ||
ef416fc2 | 148 | #define HAVE_LIBPAM 0 |
ef416fc2 | 149 | #undef HAVE_PAM_PAM_APPL_H |
a4924f6c | 150 | #undef HAVE_PAM_SET_ITEM |
ee571f26 | 151 | #undef HAVE_PAM_SETCRED |
ef416fc2 | 152 | |
153 | ||
154 | /* | |
155 | * Do we have <shadow.h>? | |
156 | */ | |
157 | ||
158 | #undef HAVE_SHADOW_H | |
159 | ||
160 | ||
161 | /* | |
162 | * Do we have <crypt.h>? | |
163 | */ | |
164 | ||
165 | #undef HAVE_CRYPT_H | |
166 | ||
167 | ||
5a9febac MS |
168 | /* |
169 | * Use <stdint.h>? | |
170 | */ | |
171 | ||
172 | #undef HAVE_STDINT_H | |
173 | ||
174 | ||
ef416fc2 | 175 | /* |
176 | * Use <string.h>, <strings.h>, and/or <bstring.h>? | |
177 | */ | |
178 | ||
179 | #undef HAVE_STRING_H | |
180 | #undef HAVE_STRINGS_H | |
181 | #undef HAVE_BSTRING_H | |
182 | ||
eac3a0a0 | 183 | |
ef416fc2 | 184 | /* |
185 | * Do we have the long long type? | |
186 | */ | |
187 | ||
188 | #undef HAVE_LONG_LONG | |
189 | ||
190 | #ifdef HAVE_LONG_LONG | |
191 | # define CUPS_LLFMT "%lld" | |
192 | # define CUPS_LLCAST (long long) | |
193 | #else | |
194 | # define CUPS_LLFMT "%ld" | |
195 | # define CUPS_LLCAST (long) | |
196 | #endif /* HAVE_LONG_LONG */ | |
197 | ||
eac3a0a0 | 198 | |
ef416fc2 | 199 | /* |
200 | * Do we have the strtoll() function? | |
201 | */ | |
202 | ||
203 | #undef HAVE_STRTOLL | |
204 | ||
205 | #ifndef HAVE_STRTOLL | |
206 | # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) | |
207 | #endif /* !HAVE_STRTOLL */ | |
208 | ||
eac3a0a0 | 209 | |
ef416fc2 | 210 | /* |
211 | * Do we have the strXXX() functions? | |
212 | */ | |
213 | ||
214 | #undef HAVE_STRDUP | |
ef416fc2 | 215 | #undef HAVE_STRLCAT |
216 | #undef HAVE_STRLCPY | |
217 | ||
218 | ||
219 | /* | |
220 | * Do we have the geteuid() function? | |
221 | */ | |
222 | ||
223 | #undef HAVE_GETEUID | |
224 | ||
225 | ||
88f9aafc MS |
226 | /* |
227 | * Do we have the setpgid() function? | |
228 | */ | |
229 | ||
230 | #undef HAVE_SETPGID | |
231 | ||
232 | ||
ef416fc2 | 233 | /* |
234 | * Do we have the vsyslog() function? | |
235 | */ | |
236 | ||
237 | #undef HAVE_VSYSLOG | |
238 | ||
239 | ||
0dc4a6bf MS |
240 | /* |
241 | * Do we have the systemd journal functions? | |
242 | */ | |
243 | ||
244 | #undef HAVE_SYSTEMD_SD_JOURNAL_H | |
245 | ||
246 | ||
ef416fc2 | 247 | /* |
248 | * Do we have the (v)snprintf() functions? | |
249 | */ | |
250 | ||
251 | #undef HAVE_SNPRINTF | |
252 | #undef HAVE_VSNPRINTF | |
253 | ||
254 | ||
255 | /* | |
256 | * What signal functions to use? | |
257 | */ | |
258 | ||
259 | #undef HAVE_SIGSET | |
260 | #undef HAVE_SIGACTION | |
261 | ||
262 | ||
263 | /* | |
264 | * What wait functions to use? | |
265 | */ | |
266 | ||
267 | #undef HAVE_WAITPID | |
268 | #undef HAVE_WAIT3 | |
269 | ||
270 | ||
271 | /* | |
272 | * Do we have the mallinfo function and malloc.h? | |
273 | */ | |
274 | ||
275 | #undef HAVE_MALLINFO | |
276 | #undef HAVE_MALLOC_H | |
277 | ||
278 | ||
fa73b229 | 279 | /* |
280 | * Do we have the POSIX ACL functions? | |
281 | */ | |
282 | ||
283 | #undef HAVE_ACL_INIT | |
284 | ||
285 | ||
ef416fc2 | 286 | /* |
287 | * Do we have the langinfo.h header file? | |
288 | */ | |
289 | ||
290 | #undef HAVE_LANGINFO_H | |
291 | ||
292 | ||
293 | /* | |
294 | * Which encryption libraries do we have? | |
295 | */ | |
296 | ||
297 | #undef HAVE_CDSASSL | |
298 | #undef HAVE_GNUTLS | |
1e564ac8 | 299 | #undef HAVE_SSPISSL |
ef416fc2 | 300 | #undef HAVE_SSL |
301 | ||
302 | ||
9483577f MS |
303 | /* |
304 | * Do we have the gnutls_transport_set_pull_timeout_function function? | |
305 | */ | |
306 | ||
307 | #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION | |
308 | ||
309 | ||
19ba6878 MS |
310 | /* |
311 | * Do we have the gnutls_priority_set_direct function? | |
312 | */ | |
313 | ||
314 | #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT | |
315 | ||
316 | ||
ed486911 | 317 | /* |
b86bc4cf | 318 | * What Security framework headers do we have? |
ed486911 | 319 | */ |
320 | ||
f7deaa1a | 321 | #undef HAVE_AUTHORIZATION_H |
7cf5915e | 322 | #undef HAVE_SECCERTIFICATE_H |
0268488e | 323 | #undef HAVE_SECITEM_H |
b86bc4cf | 324 | #undef HAVE_SECPOLICY_H |
b86bc4cf | 325 | |
326 | ||
eb66bc71 MS |
327 | /* |
328 | * Do we have the SecGenerateSelfSignedCertificate function? | |
329 | */ | |
330 | ||
331 | #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE | |
332 | ||
333 | ||
ef416fc2 | 334 | /* |
335 | * Do we have libpaper? | |
336 | */ | |
337 | ||
338 | #undef HAVE_LIBPAPER | |
339 | ||
340 | ||
f7deaa1a | 341 | /* |
3e7fe0ca | 342 | * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)? |
f7deaa1a | 343 | */ |
344 | ||
345 | #undef HAVE_DNSSD | |
346 | ||
347 | ||
3e7fe0ca MS |
348 | /* |
349 | * Do we have Avahi for DNS Service Discovery (aka Bonjour)? | |
350 | */ | |
351 | ||
352 | #undef HAVE_AVAHI | |
353 | ||
354 | ||
ef416fc2 | 355 | /* |
356 | * Do we have <sys/ioctl.h>? | |
357 | */ | |
358 | ||
359 | #undef HAVE_SYS_IOCTL_H | |
360 | ||
361 | ||
c7017ecc MS |
362 | /* |
363 | * Does the "stat" structure contain the "st_gen" member? | |
364 | */ | |
365 | ||
366 | #undef HAVE_ST_GEN | |
367 | ||
368 | ||
ef416fc2 | 369 | /* |
370 | * Does the "tm" structure contain the "tm_gmtoff" member? | |
371 | */ | |
372 | ||
373 | #undef HAVE_TM_GMTOFF | |
374 | ||
375 | ||
376 | /* | |
377 | * Do we have rresvport_af()? | |
378 | */ | |
379 | ||
380 | #undef HAVE_RRESVPORT_AF | |
381 | ||
382 | ||
383 | /* | |
384 | * Do we have getaddrinfo()? | |
385 | */ | |
386 | ||
387 | #undef HAVE_GETADDRINFO | |
388 | ||
389 | ||
390 | /* | |
391 | * Do we have getnameinfo()? | |
392 | */ | |
393 | ||
394 | #undef HAVE_GETNAMEINFO | |
395 | ||
396 | ||
397 | /* | |
398 | * Do we have getifaddrs()? | |
399 | */ | |
400 | ||
401 | #undef HAVE_GETIFADDRS | |
402 | ||
403 | ||
404 | /* | |
405 | * Do we have hstrerror()? | |
406 | */ | |
407 | ||
408 | #undef HAVE_HSTRERROR | |
409 | ||
410 | ||
49d87452 MS |
411 | /* |
412 | * Do we have res_init()? | |
413 | */ | |
414 | ||
415 | #undef HAVE_RES_INIT | |
416 | ||
417 | ||
418 | /* | |
419 | * Do we have <resolv.h> | |
420 | */ | |
421 | ||
422 | #undef HAVE_RESOLV_H | |
423 | ||
424 | ||
ef416fc2 | 425 | /* |
426 | * Do we have the <sys/sockio.h> header file? | |
427 | */ | |
428 | ||
429 | #undef HAVE_SYS_SOCKIO_H | |
430 | ||
431 | ||
432 | /* | |
433 | * Does the sockaddr structure contain an sa_len parameter? | |
434 | */ | |
435 | ||
436 | #undef HAVE_STRUCT_SOCKADDR_SA_LEN | |
437 | ||
438 | ||
ef416fc2 | 439 | /* |
440 | * Do we have pthread support? | |
441 | */ | |
442 | ||
443 | #undef HAVE_PTHREAD_H | |
444 | ||
445 | ||
1166bf58 MS |
446 | /* |
447 | * Do we have on-demand support (launchd/systemd/upstart)? | |
448 | */ | |
449 | ||
450 | #undef HAVE_ONDEMAND | |
451 | ||
452 | ||
a4d04587 | 453 | /* |
454 | * Do we have launchd support? | |
455 | */ | |
456 | ||
457 | #undef HAVE_LAUNCH_H | |
458 | #undef HAVE_LAUNCHD | |
a4d04587 | 459 | |
460 | ||
1720786e MS |
461 | /* |
462 | * Do we have systemd support? | |
463 | */ | |
464 | ||
465 | #undef HAVE_SYSTEMD | |
466 | ||
1166bf58 | 467 | |
441de8b2 BN |
468 | /* |
469 | * Do we have upstart support? | |
470 | */ | |
471 | ||
472 | #undef HAVE_UPSTART | |
473 | ||
1720786e | 474 | |
fa73b229 | 475 | /* |
fa26ab95 | 476 | * Do we have CoreFoundation public headers? |
fa73b229 | 477 | */ |
478 | ||
479 | #undef HAVE_COREFOUNDATION_H | |
fa73b229 | 480 | |
481 | ||
6d2f911b MS |
482 | /* |
483 | * Do we have ApplicationServices public headers? | |
484 | */ | |
485 | ||
486 | #undef HAVE_APPLICATIONSERVICES_H | |
487 | ||
488 | ||
489 | /* | |
490 | * Do we have the SCDynamicStoreCopyComputerName function? | |
491 | */ | |
492 | ||
493 | #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME | |
494 | ||
495 | ||
6eb98aee MS |
496 | /* |
497 | * Do we have the getgrouplist() function? | |
498 | */ | |
499 | ||
500 | #undef HAVE_GETGROUPLIST | |
8072030b | 501 | |
6eb98aee | 502 | |
fa73b229 | 503 | /* |
8072030b | 504 | * Do we have macOS 10.4's mbr_XXX functions? |
fa73b229 | 505 | */ |
506 | ||
507 | #undef HAVE_MEMBERSHIP_H | |
fa73b229 | 508 | #undef HAVE_MBR_UID_TO_UUID |
509 | ||
510 | ||
511 | /* | |
cc754834 | 512 | * Do we have Darwin's notify_post header and function? |
fa73b229 | 513 | */ |
514 | ||
515 | #undef HAVE_NOTIFY_H | |
516 | #undef HAVE_NOTIFY_POST | |
517 | ||
518 | ||
e00b005a | 519 | /* |
520 | * Do we have DBUS? | |
521 | */ | |
522 | ||
523 | #undef HAVE_DBUS | |
2abf387c | 524 | #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND |
0cf0c416 | 525 | #undef HAVE_DBUS_THREADS_INIT |
e00b005a | 526 | |
527 | ||
f7deaa1a | 528 | /* |
529 | * Do we have the GSSAPI support library (for Kerberos support)? | |
530 | */ | |
531 | ||
eac3a0a0 MS |
532 | #undef HAVE_GSS_ACQUIRE_CRED_EX_F |
533 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE | |
534 | #undef HAVE_GSS_GSSAPI_H | |
535 | #undef HAVE_GSS_GSSAPI_SPI_H | |
f7deaa1a | 536 | #undef HAVE_GSSAPI |
f7deaa1a | 537 | #undef HAVE_GSSAPI_GSSAPI_H |
eac3a0a0 | 538 | #undef HAVE_GSSAPI_H |
f7deaa1a | 539 | |
540 | ||
541 | /* | |
542 | * Default GSS service name... | |
543 | */ | |
544 | ||
545 | #define CUPS_DEFAULT_GSSSERVICENAME "" | |
546 | ||
547 | ||
548 | /* | |
549 | * Select/poll interfaces... | |
550 | */ | |
551 | ||
552 | #undef HAVE_POLL | |
553 | #undef HAVE_EPOLL | |
554 | #undef HAVE_KQUEUE | |
555 | ||
556 | ||
7594b224 | 557 | /* |
558 | * Do we have the <dlfcn.h> header? | |
559 | */ | |
560 | ||
561 | #undef HAVE_DLFCN_H | |
562 | ||
563 | ||
db1f069b MS |
564 | /* |
565 | * Do we have <sys/param.h>? | |
566 | */ | |
567 | ||
568 | #undef HAVE_SYS_PARAM_H | |
569 | ||
570 | ||
bc44d920 | 571 | /* |
572 | * Do we have <sys/ucred.h>? | |
573 | */ | |
574 | ||
575 | #undef HAVE_SYS_UCRED_H | |
576 | ||
577 | ||
cc0d019f MS |
578 | /* |
579 | * Do we have removefile()? | |
580 | */ | |
581 | ||
582 | #undef HAVE_REMOVEFILE | |
583 | ||
584 | ||
a4924f6c MS |
585 | /* |
586 | * Do we have <sandbox.h>? | |
587 | */ | |
588 | ||
589 | #undef HAVE_SANDBOX_H | |
590 | ||
591 | ||
ac884b6a MS |
592 | /* |
593 | * Which random number generator function to use... | |
594 | */ | |
595 | ||
41681883 | 596 | #undef HAVE_ARC4RANDOM |
ac884b6a | 597 | #undef HAVE_RANDOM |
ac884b6a MS |
598 | #undef HAVE_LRAND48 |
599 | ||
41681883 MS |
600 | #ifdef HAVE_ARC4RANDOM |
601 | # define CUPS_RAND() arc4random() | |
ed26f50f | 602 | # define CUPS_SRAND(v) |
41681883 MS |
603 | #elif defined(HAVE_RANDOM) |
604 | # define CUPS_RAND() random() | |
605 | # define CUPS_SRAND(v) srandom(v) | |
606 | #elif defined(HAVE_LRAND48) | |
607 | # define CUPS_RAND() lrand48() | |
608 | # define CUPS_SRAND(v) srand48(v) | |
609 | #else | |
610 | # define CUPS_RAND() rand() | |
611 | # define CUPS_SRAND(v) srand(v) | |
612 | #endif /* HAVE_ARC4RANDOM */ | |
613 | ||
ac884b6a | 614 | |
75bd9771 MS |
615 | /* |
616 | * Do we have libusb? | |
617 | */ | |
618 | ||
12f89d24 | 619 | #undef HAVE_LIBUSB |
75bd9771 MS |
620 | |
621 | ||
749b1e90 MS |
622 | /* |
623 | * Do we have libwrap and tcpd.h? | |
624 | */ | |
625 | ||
626 | #undef HAVE_TCPD_H | |
627 | ||
628 | ||
cc754834 MS |
629 | /* |
630 | * Do we have <iconv.h>? | |
631 | */ | |
632 | ||
633 | #undef HAVE_ICONV_H | |
634 | ||
635 | ||
7cf5915e MS |
636 | /* |
637 | * Do we have statfs or statvfs and one of the corresponding headers? | |
638 | */ | |
639 | ||
640 | #undef HAVE_STATFS | |
641 | #undef HAVE_STATVFS | |
642 | #undef HAVE_SYS_MOUNT_H | |
643 | #undef HAVE_SYS_STATFS_H | |
644 | #undef HAVE_SYS_STATVFS_H | |
645 | #undef HAVE_SYS_VFS_H | |
646 | ||
647 | ||
0837b7e8 | 648 | /* |
8072030b | 649 | * Location of macOS localization bundle, if any. |
0837b7e8 MS |
650 | */ |
651 | ||
652 | #undef CUPS_BUNDLEDIR | |
653 | ||
654 | ||
eac3a0a0 MS |
655 | /* |
656 | * Do we have XPC? | |
657 | */ | |
658 | ||
659 | #undef HAVE_XPC | |
12f89d24 MS |
660 | |
661 | ||
f3c17241 MS |
662 | /* |
663 | * Do we have the C99 abs() function? | |
664 | */ | |
665 | ||
666 | #undef HAVE_ABS | |
667 | #if !defined(HAVE_ABS) && !defined(abs) | |
668 | # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L | |
669 | # define abs(x) _cups_abs(x) | |
670 | static inline int _cups_abs(int i) { return (i < 0 ? -i : i); } | |
671 | # elif defined(_MSC_VER) | |
672 | # define abs(x) _cups_abs(x) | |
673 | static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } | |
674 | # else | |
675 | # define abs(x) ((x) < 0 ? -(x) : (x)) | |
676 | # endif /* __GNUC__ || __STDC_VERSION__ */ | |
677 | #endif /* !HAVE_ABS && !abs */ | |
678 | ||
ef416fc2 | 679 | #endif /* !_CUPS_CONFIG_H_ */ |