]> git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
Same changes for Print-URI/Send-URI.
[thirdparty/cups.git] / config.h.in
1 /*
2 * Configuration file for CUPS.
3 *
4 * Copyright 2007-2019 by Apple Inc.
5 * Copyright 1997-2007 by Easy Software Products.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
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 /*
23 * Default user and groups...
24 */
25
26 #define CUPS_DEFAULT_USER "lp"
27 #define CUPS_DEFAULT_GROUP "sys"
28 #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
29 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
30 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin"
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
41 /*
42 * Default logging settings...
43 */
44
45 #define CUPS_DEFAULT_LOG_LEVEL "warn"
46 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
47
48
49 /*
50 * Default fatal error settings...
51 */
52
53 #define CUPS_DEFAULT_FATAL_ERRORS "config"
54
55
56 /*
57 * Default browsing settings...
58 */
59
60 #define CUPS_DEFAULT_BROWSING 1
61 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS ""
62 #define CUPS_DEFAULT_DEFAULT_SHARED 1
63
64
65 /*
66 * Default IPP port...
67 */
68
69 #define CUPS_DEFAULT_IPP_PORT 631
70
71
72 /*
73 * Default printcap file...
74 */
75
76 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
77
78
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
87 /*
88 * Default MaxCopies value...
89 */
90
91 #define CUPS_DEFAULT_MAX_COPIES 9999
92
93
94 /*
95 * Do we have domain socket support, and if so what is the default one?
96 */
97
98 #undef CUPS_DEFAULT_DOMAINSOCKET
99
100
101 /*
102 * Default WebInterface value...
103 */
104
105 #undef CUPS_DEFAULT_WEBIF
106
107
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
115 #define CUPS_BINDIR "/usr/bin"
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"
123 #define CUPS_SBINDIR "/usr/sbin"
124 #define CUPS_SERVERBIN "/usr/lib/cups"
125 #define CUPS_SERVERROOT "/etc/cups"
126 #define CUPS_STATEDIR "/var/run/cups"
127
128
129 /*
130 * Do we have posix_spawn?
131 */
132
133 #undef HAVE_POSIX_SPAWN
134
135
136 /*
137 * Do we have ZLIB?
138 */
139
140 #undef HAVE_LIBZ
141 #undef HAVE_INFLATECOPY
142
143
144 /*
145 * Do we have PAM stuff?
146 */
147
148 #define HAVE_LIBPAM 0
149 #undef HAVE_PAM_PAM_APPL_H
150 #undef HAVE_PAM_SET_ITEM
151 #undef HAVE_PAM_SETCRED
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
168 /*
169 * Use <stdint.h>?
170 */
171
172 #undef HAVE_STDINT_H
173
174
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
183
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
198
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
209
210 /*
211 * Do we have the strXXX() functions?
212 */
213
214 #undef HAVE_STRDUP
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
226 /*
227 * Do we have the setpgid() function?
228 */
229
230 #undef HAVE_SETPGID
231
232
233 /*
234 * Do we have the vsyslog() function?
235 */
236
237 #undef HAVE_VSYSLOG
238
239
240 /*
241 * Do we have the systemd journal functions?
242 */
243
244 #undef HAVE_SYSTEMD_SD_JOURNAL_H
245
246
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
279 /*
280 * Do we have the POSIX ACL functions?
281 */
282
283 #undef HAVE_ACL_INIT
284
285
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
299 #undef HAVE_SSPISSL
300 #undef HAVE_SSL
301
302
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
310 /*
311 * Do we have the gnutls_priority_set_direct function?
312 */
313
314 #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT
315
316
317 /*
318 * What Security framework headers do we have?
319 */
320
321 #undef HAVE_AUTHORIZATION_H
322 #undef HAVE_SECCERTIFICATE_H
323 #undef HAVE_SECITEM_H
324 #undef HAVE_SECPOLICY_H
325
326
327 /*
328 * Do we have the SecGenerateSelfSignedCertificate function?
329 */
330
331 #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE
332
333
334 /*
335 * Do we have libpaper?
336 */
337
338 #undef HAVE_LIBPAPER
339
340
341 /*
342 * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)?
343 */
344
345 #undef HAVE_DNSSD
346
347
348 /*
349 * Do we have Avahi for DNS Service Discovery (aka Bonjour)?
350 */
351
352 #undef HAVE_AVAHI
353
354
355 /*
356 * Do we have <sys/ioctl.h>?
357 */
358
359 #undef HAVE_SYS_IOCTL_H
360
361
362 /*
363 * Does the "stat" structure contain the "st_gen" member?
364 */
365
366 #undef HAVE_ST_GEN
367
368
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
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
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
439 /*
440 * Do we have pthread support?
441 */
442
443 #undef HAVE_PTHREAD_H
444
445
446 /*
447 * Do we have on-demand support (launchd/systemd/upstart)?
448 */
449
450 #undef HAVE_ONDEMAND
451
452
453 /*
454 * Do we have launchd support?
455 */
456
457 #undef HAVE_LAUNCH_H
458 #undef HAVE_LAUNCHD
459
460
461 /*
462 * Do we have systemd support?
463 */
464
465 #undef HAVE_SYSTEMD
466
467
468 /*
469 * Do we have upstart support?
470 */
471
472 #undef HAVE_UPSTART
473
474
475 /*
476 * Do we have CoreFoundation public headers?
477 */
478
479 #undef HAVE_COREFOUNDATION_H
480
481
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
496 /*
497 * Do we have the getgrouplist() function?
498 */
499
500 #undef HAVE_GETGROUPLIST
501
502
503 /*
504 * Do we have macOS 10.4's mbr_XXX functions?
505 */
506
507 #undef HAVE_MEMBERSHIP_H
508 #undef HAVE_MBR_UID_TO_UUID
509
510
511 /*
512 * Do we have Darwin's notify_post header and function?
513 */
514
515 #undef HAVE_NOTIFY_H
516 #undef HAVE_NOTIFY_POST
517
518
519 /*
520 * Do we have DBUS?
521 */
522
523 #undef HAVE_DBUS
524 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
525 #undef HAVE_DBUS_THREADS_INIT
526
527
528 /*
529 * Do we have the GSSAPI support library (for Kerberos support)?
530 */
531
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
536 #undef HAVE_GSSAPI
537 #undef HAVE_GSSAPI_GSSAPI_H
538 #undef HAVE_GSSAPI_H
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
557 /*
558 * Do we have the <dlfcn.h> header?
559 */
560
561 #undef HAVE_DLFCN_H
562
563
564 /*
565 * Do we have <sys/param.h>?
566 */
567
568 #undef HAVE_SYS_PARAM_H
569
570
571 /*
572 * Do we have <sys/ucred.h>?
573 */
574
575 #undef HAVE_SYS_UCRED_H
576
577
578 /*
579 * Do we have removefile()?
580 */
581
582 #undef HAVE_REMOVEFILE
583
584
585 /*
586 * Do we have <sandbox.h>?
587 */
588
589 #undef HAVE_SANDBOX_H
590
591
592 /*
593 * Which random number generator function to use...
594 */
595
596 #undef HAVE_ARC4RANDOM
597 #undef HAVE_RANDOM
598 #undef HAVE_LRAND48
599
600 #ifdef HAVE_ARC4RANDOM
601 # define CUPS_RAND() arc4random()
602 # define CUPS_SRAND(v)
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
614
615 /*
616 * Do we have libusb?
617 */
618
619 #undef HAVE_LIBUSB
620
621
622 /*
623 * Do we have libwrap and tcpd.h?
624 */
625
626 #undef HAVE_TCPD_H
627
628
629 /*
630 * Do we have <iconv.h>?
631 */
632
633 #undef HAVE_ICONV_H
634
635
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
648 /*
649 * Location of macOS localization bundle, if any.
650 */
651
652 #undef CUPS_BUNDLEDIR
653
654
655 /*
656 * Do we have XPC?
657 */
658
659 #undef HAVE_XPC
660
661
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
679 #endif /* !_CUPS_CONFIG_H_ */