]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge changes from CUPS 1.5b1-r9774.
[thirdparty/cups.git] / config.h.in
CommitLineData
ef416fc2 1/*
b19ccc9e 2 * "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $"
ef416fc2 3 *
71e16022 4 * Configuration file for CUPS.
ef416fc2 5 *
0268488e 6 * Copyright 2007-2011 by Apple Inc.
b86bc4cf 7 * Copyright 1997-2007 by Easy Software Products.
ef416fc2 8 *
9 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14 */
15
16#ifndef _CUPS_CONFIG_H_
17#define _CUPS_CONFIG_H_
18
19/*
20 * Version of software...
21 */
22
23#define CUPS_SVERSION ""
24#define CUPS_MINIMAL ""
25
26
27/*
09ec0018 28 * Default user and groups...
ef416fc2 29 */
30
31#define CUPS_DEFAULT_USER "lp"
32#define CUPS_DEFAULT_GROUP "sys"
09ec0018 33#define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
b9faaae1 34#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
09ec0018 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
1f0275e3
MS
45/*
46 * Default logging settings...
47 */
48
49#define CUPS_DEFAULT_LOG_LEVEL "warn"
50#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
51
52
49d87452
MS
53/*
54 * Default fatal error settings...
55 */
56
57#define CUPS_DEFAULT_FATAL_ERRORS "config"
58
59
09ec0018 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
e00b005a 70#define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
ef416fc2 71
72
73/*
74 * Default IPP port...
75 */
76
77#define CUPS_DEFAULT_IPP_PORT 631
78
79
e53920b9 80/*
81 * Default printcap file...
82 */
83
84#define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
85
86
2e4ff8af
MS
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
f7deaa1a 95/*
96 * Default MaxCopies value...
97 */
98
99#define CUPS_DEFAULT_MAX_COPIES 100
100
101
ef416fc2 102/*
229681c1 103 * Do we have domain socket support, and if so what is the default one?
ef416fc2 104 */
105
106#undef CUPS_DEFAULT_DOMAINSOCKET
107
108
229681c1
MS
109/*
110 * Default WebInterface value...
111 */
112
113#undef CUPS_DEFAULT_WEBIF
114
115
ef416fc2 116/*
117 * Where are files stored?
118 *
119 * Note: These are defaults, which can be overridden by environment
120 * variables at run-time...
121 */
122
fa73b229 123#define CUPS_BINDIR "/usr/bin"
ef416fc2 124#define CUPS_CACHEDIR "/var/cache/cups"
125#define CUPS_DATADIR "/usr/share/cups"
126#define CUPS_DOCROOT "/usr/share/doc/cups"
127#define CUPS_FONTPATH "/usr/share/cups/fonts"
128#define CUPS_LOCALEDIR "/usr/share/locale"
129#define CUPS_LOGDIR "/var/logs/cups"
130#define CUPS_REQUESTS "/var/spool/cups"
fa73b229 131#define CUPS_SBINDIR "/usr/sbin"
ef416fc2 132#define CUPS_SERVERBIN "/usr/lib/cups"
133#define CUPS_SERVERROOT "/etc/cups"
134#define CUPS_STATEDIR "/var/run/cups"
135
136
137/*
138 * Do we have various image libraries?
139 */
140
141#undef HAVE_LIBPNG
142#undef HAVE_LIBZ
143#undef HAVE_LIBJPEG
144#undef HAVE_LIBTIFF
145
146
147/*
148 * Do we have PAM stuff?
149 */
150
151#ifndef HAVE_LIBPAM
152#define HAVE_LIBPAM 0
153#endif /* !HAVE_LIBPAM */
154
155#undef HAVE_PAM_PAM_APPL_H
a4924f6c 156#undef HAVE_PAM_SET_ITEM
ee571f26 157#undef HAVE_PAM_SETCRED
ef416fc2 158
159
160/*
161 * Do we have <shadow.h>?
162 */
163
164#undef HAVE_SHADOW_H
165
166
167/*
168 * Do we have <crypt.h>?
169 */
170
171#undef HAVE_CRYPT_H
172
173
2abf387c 174/*
175 * Do we have <scsi/sg.h>?
176 */
177
178#undef HAVE_SCSI_SG_H
179
180
ef416fc2 181/*
182 * Use <string.h>, <strings.h>, and/or <bstring.h>?
183 */
184
185#undef HAVE_STRING_H
186#undef HAVE_STRINGS_H
187#undef HAVE_BSTRING_H
188
eac3a0a0 189
ef416fc2 190/*
191 * Do we have the long long type?
192 */
193
194#undef HAVE_LONG_LONG
195
196#ifdef HAVE_LONG_LONG
197# define CUPS_LLFMT "%lld"
198# define CUPS_LLCAST (long long)
199#else
200# define CUPS_LLFMT "%ld"
201# define CUPS_LLCAST (long)
202#endif /* HAVE_LONG_LONG */
203
eac3a0a0 204
ef416fc2 205/*
206 * Do we have the strtoll() function?
207 */
208
209#undef HAVE_STRTOLL
210
211#ifndef HAVE_STRTOLL
212# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
213#endif /* !HAVE_STRTOLL */
214
eac3a0a0 215
ef416fc2 216/*
217 * Do we have the strXXX() functions?
218 */
219
220#undef HAVE_STRDUP
221#undef HAVE_STRCASECMP
222#undef HAVE_STRNCASECMP
223#undef HAVE_STRLCAT
224#undef HAVE_STRLCPY
225
226
227/*
228 * Do we have the geteuid() function?
229 */
230
231#undef HAVE_GETEUID
232
233
234/*
235 * Do we have the vsyslog() function?
236 */
237
238#undef HAVE_VSYSLOG
239
240
241/*
242 * Do we have the (v)snprintf() functions?
243 */
244
245#undef HAVE_SNPRINTF
246#undef HAVE_VSNPRINTF
247
248
249/*
250 * What signal functions to use?
251 */
252
253#undef HAVE_SIGSET
254#undef HAVE_SIGACTION
255
256
257/*
258 * What wait functions to use?
259 */
260
261#undef HAVE_WAITPID
262#undef HAVE_WAIT3
263
264
265/*
266 * Do we have the mallinfo function and malloc.h?
267 */
268
269#undef HAVE_MALLINFO
270#undef HAVE_MALLOC_H
271
272
fa73b229 273/*
274 * Do we have the POSIX ACL functions?
275 */
276
277#undef HAVE_ACL_INIT
278
279
ef416fc2 280/*
281 * Do we have the langinfo.h header file?
282 */
283
284#undef HAVE_LANGINFO_H
285
286
287/*
288 * Which encryption libraries do we have?
289 */
290
291#undef HAVE_CDSASSL
292#undef HAVE_GNUTLS
293#undef HAVE_LIBSSL
294#undef HAVE_SSL
295
296
ed486911 297/*
b86bc4cf 298 * What Security framework headers do we have?
ed486911 299 */
300
f7deaa1a 301#undef HAVE_AUTHORIZATION_H
eac3a0a0 302#undef HAVE_SECBASEPRIV_H
7cf5915e 303#undef HAVE_SECCERTIFICATE_H
eac3a0a0 304#undef HAVE_SECIDENTITYSEARCHPRIV_H
0268488e 305#undef HAVE_SECITEM_H
c7017ecc 306#undef HAVE_SECITEMPRIV_H
b86bc4cf 307#undef HAVE_SECPOLICY_H
308#undef HAVE_SECPOLICYPRIV_H
eac3a0a0 309#undef HAVE_SECURETRANSPORTPRIV_H
b86bc4cf 310
311
82f97232
MS
312/*
313 * Do we have the SecCertificateCopyData function?
314 */
315
316#undef HAVE_SECCERTIFICATECOPYDATA
317
318
b86bc4cf 319/*
320 * Do we have the SecIdentitySearchCreateWithPolicy function?
321 */
322
323#undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
ed486911 324
c8fef167 325
7cf5915e
MS
326/*
327 * Do we have the SecPolicyCreateSSL function?
328 */
329
330#undef HAVE_SECPOLICYCREATESSL
331
ed486911 332
c7017ecc
MS
333/*
334 * Do we have the SecPolicyCreateSSL function?
335 */
336
337#undef HAVE_SECPOLICYCREATESSL
338
339
7cf5915e
MS
340/*
341 * Do we have the cssmErrorString function?
342 */
343
344#undef HAVE_CSSMERRORSTRING
345
346
ef416fc2 347/*
b423cd4c 348 * Do we have the SLP library?
ef416fc2 349 */
350
351#undef HAVE_LIBSLP
352
353
b423cd4c 354/*
355 * Do we have an LDAP library?
356 */
357
358#undef HAVE_LDAP
359#undef HAVE_OPENLDAP
749b1e90
MS
360#undef HAVE_MOZILLA_LDAP
361#undef HAVE_LDAP_SSL_H
362#undef HAVE_LDAP_SSL
363#undef HAVE_LDAP_REBIND_PROC
b423cd4c 364
365
ef416fc2 366/*
367 * Do we have libpaper?
368 */
369
370#undef HAVE_LIBPAPER
371
372
f7deaa1a 373/*
374 * Do we have DNS Service Discovery (aka Bonjour)?
375 */
376
377#undef HAVE_DNSSD
378
379
ef416fc2 380/*
381 * Do we have <sys/ioctl.h>?
382 */
383
384#undef HAVE_SYS_IOCTL_H
385
386
c7017ecc
MS
387/*
388 * Does the "stat" structure contain the "st_gen" member?
389 */
390
391#undef HAVE_ST_GEN
392
393
ef416fc2 394/*
395 * Does the "tm" structure contain the "tm_gmtoff" member?
396 */
397
398#undef HAVE_TM_GMTOFF
399
400
401/*
402 * Do we have rresvport_af()?
403 */
404
405#undef HAVE_RRESVPORT_AF
406
407
408/*
409 * Do we have getaddrinfo()?
410 */
411
412#undef HAVE_GETADDRINFO
413
414
415/*
416 * Do we have getnameinfo()?
417 */
418
419#undef HAVE_GETNAMEINFO
420
421
422/*
423 * Do we have getifaddrs()?
424 */
425
426#undef HAVE_GETIFADDRS
427
428
429/*
430 * Do we have hstrerror()?
431 */
432
433#undef HAVE_HSTRERROR
434
435
49d87452
MS
436/*
437 * Do we have res_init()?
438 */
439
440#undef HAVE_RES_INIT
441
442
443/*
444 * Do we have <resolv.h>
445 */
446
447#undef HAVE_RESOLV_H
448
449
ef416fc2 450/*
451 * Do we have the <sys/sockio.h> header file?
452 */
453
454#undef HAVE_SYS_SOCKIO_H
455
456
457/*
458 * Does the sockaddr structure contain an sa_len parameter?
459 */
460
461#undef HAVE_STRUCT_SOCKADDR_SA_LEN
462
463
464/*
465 * Do we have the AIX usersec.h header file?
466 */
467
468#undef HAVE_USERSEC_H
469
536bc2c6 470
ef416fc2 471/*
472 * Do we have pthread support?
473 */
474
475#undef HAVE_PTHREAD_H
476
477
a4d04587 478/*
479 * Do we have launchd support?
480 */
481
482#undef HAVE_LAUNCH_H
483#undef HAVE_LAUNCHD
a4d04587 484
485
ef416fc2 486/*
487 * Various scripting languages...
488 */
489
490#undef HAVE_JAVA
491#define CUPS_JAVA "/usr/bin/java"
492#undef HAVE_PERL
493#define CUPS_PERL "/usr/bin/perl"
494#undef HAVE_PHP
495#define CUPS_PHP "/usr/bin/php"
496#undef HAVE_PYTHON
497#define CUPS_PYTHON "/usr/bin/python"
498
499
91c84a35
MS
500/*
501 * Location of the poppler/Xpdf pdftops program...
502 */
503
ae71f5de 504#undef HAVE_PDFTOPS
eac3a0a0 505#undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
91c84a35
MS
506#define CUPS_PDFTOPS "/usr/bin/pdftops"
507
508
ae71f5de
MS
509/*
510 * Location of the Ghostscript gs program...
511 */
512
513#undef HAVE_GHOSTSCRIPT
eac3a0a0 514#undef HAVE_GHOSTSCRIPT_PS2WRITE
ae71f5de
MS
515#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
516
517
fa73b229 518/*
519 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
520 */
521
522#undef HAVE_COREFOUNDATION
523#undef HAVE_SYSTEMCONFIGURATION
524
525
526/*
527 * Do we have CoreFoundation public and private headers?
528 */
529
530#undef HAVE_COREFOUNDATION_H
531#undef HAVE_CFPRIV_H
532#undef HAVE_CFBUNDLEPRIV_H
533
534
6d2f911b
MS
535/*
536 * Do we have ApplicationServices public headers?
537 */
538
539#undef HAVE_APPLICATIONSERVICES_H
540
541
542/*
543 * Do we have the SCDynamicStoreCopyComputerName function?
544 */
545
546#undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
547
548
fa73b229 549/*
eac3a0a0 550 * Do we have Mac OS X 10.4's mbr_XXX functions?
fa73b229 551 */
552
553#undef HAVE_MEMBERSHIP_H
7594b224 554#undef HAVE_MEMBERSHIPPRIV_H
fa73b229 555#undef HAVE_MBR_UID_TO_UUID
556
557
558/*
cc754834 559 * Do we have Darwin's notify_post header and function?
fa73b229 560 */
561
562#undef HAVE_NOTIFY_H
563#undef HAVE_NOTIFY_POST
564
565
84315f46
MS
566/*
567 * Do we have Darwin's IOKit private headers?
568 */
569
570#undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
571
572
e00b005a 573/*
574 * Do we have DBUS?
575 */
576
577#undef HAVE_DBUS
2abf387c 578#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
e00b005a 579
580
f7deaa1a 581/*
582 * Do we have the GSSAPI support library (for Kerberos support)?
583 */
584
eac3a0a0
MS
585#undef HAVE_GSS_ACQUIRE_CRED_EX_F
586#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
587#undef HAVE_GSS_GSSAPI_H
588#undef HAVE_GSS_GSSAPI_SPI_H
f7deaa1a 589#undef HAVE_GSSAPI
eac3a0a0 590#undef HAVE_GSSAPI_GENERIC_H
f7deaa1a 591#undef HAVE_GSSAPI_GSSAPI_H
eac3a0a0
MS
592#undef HAVE_GSSAPI_H
593#undef HAVE_GSSAPI_KRB5_H
f7deaa1a 594#undef HAVE_KRB5_H
f7deaa1a 595
596
597/*
598 * Default GSS service name...
599 */
600
601#define CUPS_DEFAULT_GSSSERVICENAME ""
602
603
604/*
605 * Select/poll interfaces...
606 */
607
608#undef HAVE_POLL
609#undef HAVE_EPOLL
610#undef HAVE_KQUEUE
611
612
7594b224 613/*
614 * Do we have the <dlfcn.h> header?
615 */
616
617#undef HAVE_DLFCN_H
618
619
db1f069b
MS
620/*
621 * Do we have <sys/param.h>?
622 */
623
624#undef HAVE_SYS_PARAM_H
625
626
bc44d920 627/*
628 * Do we have <sys/ucred.h>?
629 */
630
631#undef HAVE_SYS_UCRED_H
632
633
cc0d019f
MS
634/*
635 * Do we have removefile()?
636 */
637
638#undef HAVE_REMOVEFILE
639
640
a4924f6c
MS
641/*
642 * Do we have <sandbox.h>?
643 */
644
645#undef HAVE_SANDBOX_H
646
647
ac884b6a
MS
648/*
649 * Which random number generator function to use...
650 */
651
41681883 652#undef HAVE_ARC4RANDOM
ac884b6a 653#undef HAVE_RANDOM
ac884b6a
MS
654#undef HAVE_LRAND48
655
41681883
MS
656#ifdef HAVE_ARC4RANDOM
657# define CUPS_RAND() arc4random()
658# define CUPS_SRAND(v) arc4random_stir()
659#elif defined(HAVE_RANDOM)
660# define CUPS_RAND() random()
661# define CUPS_SRAND(v) srandom(v)
662#elif defined(HAVE_LRAND48)
663# define CUPS_RAND() lrand48()
664# define CUPS_SRAND(v) srand48(v)
665#else
666# define CUPS_RAND() rand()
667# define CUPS_SRAND(v) srand(v)
668#endif /* HAVE_ARC4RANDOM */
669
ac884b6a 670
178cb736
MS
671/*
672 * Do we have vproc_transaction_begin/end?
673 */
674
675#undef HAVE_VPROC_TRANSACTION_BEGIN
676
677
75bd9771
MS
678/*
679 * Do we have libusb?
680 */
681
682#undef HAVE_USB_H
683
684
749b1e90
MS
685/*
686 * Do we have libwrap and tcpd.h?
687 */
688
689#undef HAVE_TCPD_H
690
691
cc754834
MS
692/*
693 * Do we have <iconv.h>?
694 */
695
696#undef HAVE_ICONV_H
697
698
7cf5915e
MS
699/*
700 * Do we have statfs or statvfs and one of the corresponding headers?
701 */
702
703#undef HAVE_STATFS
704#undef HAVE_STATVFS
705#undef HAVE_SYS_MOUNT_H
706#undef HAVE_SYS_STATFS_H
707#undef HAVE_SYS_STATVFS_H
708#undef HAVE_SYS_VFS_H
709
710
0837b7e8
MS
711/*
712 * Location of Mac OS X localization bundle, if any.
713 */
714
715#undef CUPS_BUNDLEDIR
716
717
229681c1
MS
718/*
719 * Do we have the ColorSyncRegisterDevice function?
720 */
721
722#undef HAVE_COLORSYNCREGISTERDEVICE
723
724
eac3a0a0
MS
725/*
726 * Do we have XPC?
727 */
728
729#undef HAVE_XPC
730
731
ef416fc2 732#endif /* !_CUPS_CONFIG_H_ */
733
734/*
b19ccc9e 735 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".
ef416fc2 736 */