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