]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge changes from CUPS 1.4svn-r7817.
[thirdparty/cups.git] / config.h.in
CommitLineData
ef416fc2 1/*
75bd9771 2 * "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $"
ef416fc2 3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
ae71f5de 6 * Copyright 2007-2008 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"
355e94dc 34#define CUPS_DEFAULT_PRINTADMIN_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
09ec0018 53/*
54 * Default browsing settings...
55 */
56
57#define CUPS_DEFAULT_BROWSING 1
58#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS"
59#define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS"
60#define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
61#define CUPS_DEFAULT_DEFAULT_SHARED 1
62#define CUPS_DEFAULT_IMPLICIT_CLASSES 1
e00b005a 63#define CUPS_DEFAULT_USE_NETWORK_DEFAULT 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
92#define CUPS_DEFAULT_MAX_COPIES 100
93
94
ef416fc2 95/*
96 * Do we have domain socket support?
97 */
98
99#undef CUPS_DEFAULT_DOMAINSOCKET
100
101
102/*
103 * Where are files stored?
104 *
105 * Note: These are defaults, which can be overridden by environment
106 * variables at run-time...
107 */
108
fa73b229 109#define CUPS_BINDIR "/usr/bin"
ef416fc2 110#define CUPS_CACHEDIR "/var/cache/cups"
111#define CUPS_DATADIR "/usr/share/cups"
112#define CUPS_DOCROOT "/usr/share/doc/cups"
113#define CUPS_FONTPATH "/usr/share/cups/fonts"
114#define CUPS_LOCALEDIR "/usr/share/locale"
115#define CUPS_LOGDIR "/var/logs/cups"
116#define CUPS_REQUESTS "/var/spool/cups"
fa73b229 117#define CUPS_SBINDIR "/usr/sbin"
ef416fc2 118#define CUPS_SERVERBIN "/usr/lib/cups"
119#define CUPS_SERVERROOT "/etc/cups"
120#define CUPS_STATEDIR "/var/run/cups"
121
122
123/*
124 * Do we have various image libraries?
125 */
126
127#undef HAVE_LIBPNG
128#undef HAVE_LIBZ
129#undef HAVE_LIBJPEG
130#undef HAVE_LIBTIFF
131
132
133/*
134 * Do we have PAM stuff?
135 */
136
137#ifndef HAVE_LIBPAM
138#define HAVE_LIBPAM 0
139#endif /* !HAVE_LIBPAM */
140
141#undef HAVE_PAM_PAM_APPL_H
a4924f6c 142#undef HAVE_PAM_SET_ITEM
ef416fc2 143
144
145/*
146 * Do we have <shadow.h>?
147 */
148
149#undef HAVE_SHADOW_H
150
151
152/*
153 * Do we have <crypt.h>?
154 */
155
156#undef HAVE_CRYPT_H
157
158
2abf387c 159/*
160 * Do we have <scsi/sg.h>?
161 */
162
163#undef HAVE_SCSI_SG_H
164
165
ef416fc2 166/*
167 * Use <string.h>, <strings.h>, and/or <bstring.h>?
168 */
169
170#undef HAVE_STRING_H
171#undef HAVE_STRINGS_H
172#undef HAVE_BSTRING_H
173
174/*
175 * Do we have the long long type?
176 */
177
178#undef HAVE_LONG_LONG
179
180#ifdef HAVE_LONG_LONG
181# define CUPS_LLFMT "%lld"
182# define CUPS_LLCAST (long long)
183#else
184# define CUPS_LLFMT "%ld"
185# define CUPS_LLCAST (long)
186#endif /* HAVE_LONG_LONG */
187
188/*
189 * Do we have the strtoll() function?
190 */
191
192#undef HAVE_STRTOLL
193
194#ifndef HAVE_STRTOLL
195# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
196#endif /* !HAVE_STRTOLL */
197
198/*
199 * Do we have the strXXX() functions?
200 */
201
202#undef HAVE_STRDUP
203#undef HAVE_STRCASECMP
204#undef HAVE_STRNCASECMP
205#undef HAVE_STRLCAT
206#undef HAVE_STRLCPY
207
208
209/*
210 * Do we have the geteuid() function?
211 */
212
213#undef HAVE_GETEUID
214
215
216/*
217 * Do we have the vsyslog() function?
218 */
219
220#undef HAVE_VSYSLOG
221
222
223/*
224 * Do we have the (v)snprintf() functions?
225 */
226
227#undef HAVE_SNPRINTF
228#undef HAVE_VSNPRINTF
229
230
231/*
232 * What signal functions to use?
233 */
234
235#undef HAVE_SIGSET
236#undef HAVE_SIGACTION
237
238
239/*
240 * What wait functions to use?
241 */
242
243#undef HAVE_WAITPID
244#undef HAVE_WAIT3
245
246
247/*
248 * Do we have the mallinfo function and malloc.h?
249 */
250
251#undef HAVE_MALLINFO
252#undef HAVE_MALLOC_H
253
254
fa73b229 255/*
256 * Do we have the POSIX ACL functions?
257 */
258
259#undef HAVE_ACL_INIT
260
261
ef416fc2 262/*
263 * Do we have the langinfo.h header file?
264 */
265
266#undef HAVE_LANGINFO_H
267
268
269/*
270 * Which encryption libraries do we have?
271 */
272
273#undef HAVE_CDSASSL
274#undef HAVE_GNUTLS
275#undef HAVE_LIBSSL
276#undef HAVE_SSL
277
278
ed486911 279/*
b86bc4cf 280 * What Security framework headers do we have?
ed486911 281 */
282
f7deaa1a 283#undef HAVE_AUTHORIZATION_H
b86bc4cf 284#undef HAVE_SECPOLICY_H
285#undef HAVE_SECPOLICYPRIV_H
ed486911 286#undef HAVE_SECBASEPRIV_H
b86bc4cf 287#undef HAVE_SECIDENTITYSEARCHPRIV_H
288
289
290/*
291 * Do we have the SecIdentitySearchCreateWithPolicy function?
292 */
293
294#undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
ed486911 295
296
ef416fc2 297/*
b423cd4c 298 * Do we have the SLP library?
ef416fc2 299 */
300
301#undef HAVE_LIBSLP
302
303
b423cd4c 304/*
305 * Do we have an LDAP library?
306 */
307
308#undef HAVE_LDAP
309#undef HAVE_OPENLDAP
749b1e90
MS
310#undef HAVE_MOZILLA_LDAP
311#undef HAVE_LDAP_SSL_H
312#undef HAVE_LDAP_SSL
313#undef HAVE_LDAP_REBIND_PROC
b423cd4c 314
315
ef416fc2 316/*
317 * Do we have libpaper?
318 */
319
320#undef HAVE_LIBPAPER
321
322
f7deaa1a 323/*
324 * Do we have DNS Service Discovery (aka Bonjour)?
325 */
326
327#undef HAVE_DNSSD
328
329
330/*
331 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
332 */
333
334#undef HAVE_COREFOUNDATION
335#undef HAVE_SYSTEMCONFIGURATION
336
337
ef416fc2 338/*
339 * Do we have <sys/ioctl.h>?
340 */
341
342#undef HAVE_SYS_IOCTL_H
343
344
345/*
346 * Do we have mkstemp() and/or mkstemps()?
347 */
348
349#undef HAVE_MKSTEMP
350#undef HAVE_MKSTEMPS
351
352
353/*
354 * Does the "tm" structure contain the "tm_gmtoff" member?
355 */
356
357#undef HAVE_TM_GMTOFF
358
359
360/*
361 * Do we have rresvport_af()?
362 */
363
364#undef HAVE_RRESVPORT_AF
365
366
367/*
368 * Do we have getaddrinfo()?
369 */
370
371#undef HAVE_GETADDRINFO
372
373
374/*
375 * Do we have getnameinfo()?
376 */
377
378#undef HAVE_GETNAMEINFO
379
380
381/*
382 * Do we have getifaddrs()?
383 */
384
385#undef HAVE_GETIFADDRS
386
387
388/*
389 * Do we have hstrerror()?
390 */
391
392#undef HAVE_HSTRERROR
393
394
395/*
396 * Do we have the <sys/sockio.h> header file?
397 */
398
399#undef HAVE_SYS_SOCKIO_H
400
401
402/*
403 * Does the sockaddr structure contain an sa_len parameter?
404 */
405
406#undef HAVE_STRUCT_SOCKADDR_SA_LEN
407
408
409/*
410 * Do we have the AIX usersec.h header file?
411 */
412
413#undef HAVE_USERSEC_H
414
415/*
416 * Do we have pthread support?
417 */
418
419#undef HAVE_PTHREAD_H
420
421
a4d04587 422/*
423 * Do we have launchd support?
424 */
425
426#undef HAVE_LAUNCH_H
427#undef HAVE_LAUNCHD
428#define CUPS_DEFAULT_LAUNCHD_CONF ""
429
430
ef416fc2 431/*
432 * Various scripting languages...
433 */
434
435#undef HAVE_JAVA
436#define CUPS_JAVA "/usr/bin/java"
437#undef HAVE_PERL
438#define CUPS_PERL "/usr/bin/perl"
439#undef HAVE_PHP
440#define CUPS_PHP "/usr/bin/php"
441#undef HAVE_PYTHON
442#define CUPS_PYTHON "/usr/bin/python"
443
444
91c84a35
MS
445/*
446 * Location of the poppler/Xpdf pdftops program...
447 */
448
ae71f5de 449#undef HAVE_PDFTOPS
91c84a35
MS
450#define CUPS_PDFTOPS "/usr/bin/pdftops"
451
452
ae71f5de
MS
453/*
454 * Location of the Ghostscript gs program...
455 */
456
457#undef HAVE_GHOSTSCRIPT
458#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
459
460
fa73b229 461/*
462 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
463 */
464
465#undef HAVE_COREFOUNDATION
466#undef HAVE_SYSTEMCONFIGURATION
467
468
469/*
470 * Do we have CoreFoundation public and private headers?
471 */
472
473#undef HAVE_COREFOUNDATION_H
474#undef HAVE_CFPRIV_H
475#undef HAVE_CFBUNDLEPRIV_H
476
477
478/*
479 * Do we have MacOSX 10.4's mbr_XXX functions()?
480 */
481
482#undef HAVE_MEMBERSHIP_H
7594b224 483#undef HAVE_MEMBERSHIPPRIV_H
fa73b229 484#undef HAVE_MBR_UID_TO_UUID
485
486
487/*
488 * Do we have Darwin's notify_post() header and function?
489 */
490
491#undef HAVE_NOTIFY_H
492#undef HAVE_NOTIFY_POST
493
494
e00b005a 495/*
496 * Do we have DBUS?
497 */
498
499#undef HAVE_DBUS
2abf387c 500#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
e00b005a 501
502
a74454a7 503/*
504 * Do we have the AppleTalk/at_proto.h header?
505 */
506
507#undef HAVE_APPLETALK_AT_PROTO_H
508
509
f7deaa1a 510/*
511 * Do we have the GSSAPI support library (for Kerberos support)?
512 */
513
514#undef HAVE_GSSAPI
515#undef HAVE_GSSAPI_H
516#undef HAVE_GSSAPI_GSSAPI_H
517#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
518#undef HAVE_GSSAPI_GSSAPI_KRB5_H
519#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
520#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
c24d2134 521#undef HAVE_KRB5_CC_NEW_UNIQUE
f7deaa1a 522#undef HAVE_KRB5_H
523#undef HAVE_HEIMDAL
524
525
526/*
527 * Default GSS service name...
528 */
529
530#define CUPS_DEFAULT_GSSSERVICENAME ""
531
532
533/*
534 * Select/poll interfaces...
535 */
536
537#undef HAVE_POLL
538#undef HAVE_EPOLL
539#undef HAVE_KQUEUE
540
541
7594b224 542/*
543 * Do we have the <dlfcn.h> header?
544 */
545
546#undef HAVE_DLFCN_H
547
548
db1f069b
MS
549/*
550 * Do we have <sys/param.h>?
551 */
552
553#undef HAVE_SYS_PARAM_H
554
555
bc44d920 556/*
557 * Do we have <sys/ucred.h>?
558 */
559
560#undef HAVE_SYS_UCRED_H
561
562
cc0d019f
MS
563/*
564 * Do we have removefile()?
565 */
566
567#undef HAVE_REMOVEFILE
568
569
a4924f6c
MS
570/*
571 * Do we have <sandbox.h>?
572 */
573
574#undef HAVE_SANDBOX_H
575
576
ac884b6a
MS
577/*
578 * Which random number generator function to use...
579 */
580
581#undef HAVE_RANDOM
582#undef HAVE_MRAND48
583#undef HAVE_LRAND48
584
585
75bd9771
MS
586/*
587 * Do we have libusb?
588 */
589
590#undef HAVE_USB_H
591
592
749b1e90
MS
593/*
594 * Do we have libwrap and tcpd.h?
595 */
596
597#undef HAVE_TCPD_H
598
599
ef416fc2 600#endif /* !_CUPS_CONFIG_H_ */
601
602/*
75bd9771 603 * End of "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $".
ef416fc2 604 */