]> git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / config.h.in
1 /*
2 * "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $"
3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007-2008 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products.
8 *
9 * These coded instructions, statements, and computer programs are the
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/".
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 /*
28 * Default user and groups...
29 */
30
31 #define CUPS_DEFAULT_USER "lp"
32 #define CUPS_DEFAULT_GROUP "sys"
33 #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
34 #define CUPS_DEFAULT_PRINTADMIN_AUTH "@SYSTEM"
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
45 /*
46 * Default logging settings...
47 */
48
49 #define CUPS_DEFAULT_LOG_LEVEL "warn"
50 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
51
52
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
63 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
64
65
66 /*
67 * Default IPP port...
68 */
69
70 #define CUPS_DEFAULT_IPP_PORT 631
71
72
73 /*
74 * Default printcap file...
75 */
76
77 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
78
79
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
88 /*
89 * Default MaxCopies value...
90 */
91
92 #define CUPS_DEFAULT_MAX_COPIES 100
93
94
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
109 #define CUPS_BINDIR "/usr/bin"
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"
117 #define CUPS_SBINDIR "/usr/sbin"
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
142 #undef HAVE_PAM_SET_ITEM
143 #undef HAVE_PAM_SETCRED
144
145
146 /*
147 * Do we have <shadow.h>?
148 */
149
150 #undef HAVE_SHADOW_H
151
152
153 /*
154 * Do we have <crypt.h>?
155 */
156
157 #undef HAVE_CRYPT_H
158
159
160 /*
161 * Do we have <scsi/sg.h>?
162 */
163
164 #undef HAVE_SCSI_SG_H
165
166
167 /*
168 * Use <string.h>, <strings.h>, and/or <bstring.h>?
169 */
170
171 #undef HAVE_STRING_H
172 #undef HAVE_STRINGS_H
173 #undef HAVE_BSTRING_H
174
175 /*
176 * Do we have the long long type?
177 */
178
179 #undef HAVE_LONG_LONG
180
181 #ifdef HAVE_LONG_LONG
182 # define CUPS_LLFMT "%lld"
183 # define CUPS_LLCAST (long long)
184 #else
185 # define CUPS_LLFMT "%ld"
186 # define CUPS_LLCAST (long)
187 #endif /* HAVE_LONG_LONG */
188
189 /*
190 * Do we have the strtoll() function?
191 */
192
193 #undef HAVE_STRTOLL
194
195 #ifndef HAVE_STRTOLL
196 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
197 #endif /* !HAVE_STRTOLL */
198
199 /*
200 * Do we have the strXXX() functions?
201 */
202
203 #undef HAVE_STRDUP
204 #undef HAVE_STRCASECMP
205 #undef HAVE_STRNCASECMP
206 #undef HAVE_STRLCAT
207 #undef HAVE_STRLCPY
208
209
210 /*
211 * Do we have the geteuid() function?
212 */
213
214 #undef HAVE_GETEUID
215
216
217 /*
218 * Do we have the vsyslog() function?
219 */
220
221 #undef HAVE_VSYSLOG
222
223
224 /*
225 * Do we have the (v)snprintf() functions?
226 */
227
228 #undef HAVE_SNPRINTF
229 #undef HAVE_VSNPRINTF
230
231
232 /*
233 * What signal functions to use?
234 */
235
236 #undef HAVE_SIGSET
237 #undef HAVE_SIGACTION
238
239
240 /*
241 * What wait functions to use?
242 */
243
244 #undef HAVE_WAITPID
245 #undef HAVE_WAIT3
246
247
248 /*
249 * Do we have the mallinfo function and malloc.h?
250 */
251
252 #undef HAVE_MALLINFO
253 #undef HAVE_MALLOC_H
254
255
256 /*
257 * Do we have the POSIX ACL functions?
258 */
259
260 #undef HAVE_ACL_INIT
261
262
263 /*
264 * Do we have the langinfo.h header file?
265 */
266
267 #undef HAVE_LANGINFO_H
268
269
270 /*
271 * Which encryption libraries do we have?
272 */
273
274 #undef HAVE_CDSASSL
275 #undef HAVE_GNUTLS
276 #undef HAVE_LIBSSL
277 #undef HAVE_SSL
278
279
280 /*
281 * What Security framework headers do we have?
282 */
283
284 #undef HAVE_AUTHORIZATION_H
285 #undef HAVE_SECPOLICY_H
286 #undef HAVE_SECPOLICYPRIV_H
287 #undef HAVE_SECBASEPRIV_H
288 #undef HAVE_SECIDENTITYSEARCHPRIV_H
289
290
291 /*
292 * Do we have the SecIdentitySearchCreateWithPolicy function?
293 */
294
295 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
296
297
298 /*
299 * Do we have the SLP library?
300 */
301
302 #undef HAVE_LIBSLP
303
304
305 /*
306 * Do we have an LDAP library?
307 */
308
309 #undef HAVE_LDAP
310 #undef HAVE_OPENLDAP
311 #undef HAVE_MOZILLA_LDAP
312 #undef HAVE_LDAP_SSL_H
313 #undef HAVE_LDAP_SSL
314 #undef HAVE_LDAP_REBIND_PROC
315
316
317 /*
318 * Do we have libpaper?
319 */
320
321 #undef HAVE_LIBPAPER
322
323
324 /*
325 * Do we have DNS Service Discovery (aka Bonjour)?
326 */
327
328 #undef HAVE_DNSSD
329
330
331 /*
332 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
333 */
334
335 #undef HAVE_COREFOUNDATION
336 #undef HAVE_SYSTEMCONFIGURATION
337
338
339 /*
340 * Do we have <sys/ioctl.h>?
341 */
342
343 #undef HAVE_SYS_IOCTL_H
344
345
346 /*
347 * Do we have mkstemp() and/or mkstemps()?
348 */
349
350 #undef HAVE_MKSTEMP
351 #undef HAVE_MKSTEMPS
352
353
354 /*
355 * Does the "tm" structure contain the "tm_gmtoff" member?
356 */
357
358 #undef HAVE_TM_GMTOFF
359
360
361 /*
362 * Do we have rresvport_af()?
363 */
364
365 #undef HAVE_RRESVPORT_AF
366
367
368 /*
369 * Do we have getaddrinfo()?
370 */
371
372 #undef HAVE_GETADDRINFO
373
374
375 /*
376 * Do we have getnameinfo()?
377 */
378
379 #undef HAVE_GETNAMEINFO
380
381
382 /*
383 * Do we have getifaddrs()?
384 */
385
386 #undef HAVE_GETIFADDRS
387
388
389 /*
390 * Do we have hstrerror()?
391 */
392
393 #undef HAVE_HSTRERROR
394
395
396 /*
397 * Do we have the <sys/sockio.h> header file?
398 */
399
400 #undef HAVE_SYS_SOCKIO_H
401
402
403 /*
404 * Does the sockaddr structure contain an sa_len parameter?
405 */
406
407 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
408
409
410 /*
411 * Do we have the AIX usersec.h header file?
412 */
413
414 #undef HAVE_USERSEC_H
415
416 /*
417 * Do we have pthread support?
418 */
419
420 #undef HAVE_PTHREAD_H
421
422
423 /*
424 * Do we have launchd support?
425 */
426
427 #undef HAVE_LAUNCH_H
428 #undef HAVE_LAUNCHD
429 #define CUPS_DEFAULT_LAUNCHD_CONF ""
430
431
432 /*
433 * Various scripting languages...
434 */
435
436 #undef HAVE_JAVA
437 #define CUPS_JAVA "/usr/bin/java"
438 #undef HAVE_PERL
439 #define CUPS_PERL "/usr/bin/perl"
440 #undef HAVE_PHP
441 #define CUPS_PHP "/usr/bin/php"
442 #undef HAVE_PYTHON
443 #define CUPS_PYTHON "/usr/bin/python"
444
445
446 /*
447 * Location of the poppler/Xpdf pdftops program...
448 */
449
450 #undef HAVE_PDFTOPS
451 #define CUPS_PDFTOPS "/usr/bin/pdftops"
452
453
454 /*
455 * Location of the Ghostscript gs program...
456 */
457
458 #undef HAVE_GHOSTSCRIPT
459 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
460
461
462 /*
463 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
464 */
465
466 #undef HAVE_COREFOUNDATION
467 #undef HAVE_SYSTEMCONFIGURATION
468
469
470 /*
471 * Do we have CoreFoundation public and private headers?
472 */
473
474 #undef HAVE_COREFOUNDATION_H
475 #undef HAVE_CFPRIV_H
476 #undef HAVE_CFBUNDLEPRIV_H
477
478
479 /*
480 * Do we have MacOSX 10.4's mbr_XXX functions()?
481 */
482
483 #undef HAVE_MEMBERSHIP_H
484 #undef HAVE_MEMBERSHIPPRIV_H
485 #undef HAVE_MBR_UID_TO_UUID
486
487
488 /*
489 * Do we have Darwin's notify_post() header and function?
490 */
491
492 #undef HAVE_NOTIFY_H
493 #undef HAVE_NOTIFY_POST
494
495
496 /*
497 * Do we have DBUS?
498 */
499
500 #undef HAVE_DBUS
501 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
502
503
504 /*
505 * Do we have the AppleTalk/at_proto.h header?
506 */
507
508 #undef HAVE_APPLETALK_AT_PROTO_H
509
510
511 /*
512 * Do we have the GSSAPI support library (for Kerberos support)?
513 */
514
515 #undef HAVE_GSSAPI
516 #undef HAVE_GSSAPI_H
517 #undef HAVE_GSSAPI_GSSAPI_H
518 #undef HAVE_GSSAPI_GSSAPI_GENERIC_H
519 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
520 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
521 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
522 #undef HAVE_KRB5_CC_NEW_UNIQUE
523 #undef HAVE_KRB5_H
524 #undef HAVE_HEIMDAL
525
526
527 /*
528 * Default GSS service name...
529 */
530
531 #define CUPS_DEFAULT_GSSSERVICENAME ""
532
533
534 /*
535 * Select/poll interfaces...
536 */
537
538 #undef HAVE_POLL
539 #undef HAVE_EPOLL
540 #undef HAVE_KQUEUE
541
542
543 /*
544 * Do we have the <dlfcn.h> header?
545 */
546
547 #undef HAVE_DLFCN_H
548
549
550 /*
551 * Do we have <sys/param.h>?
552 */
553
554 #undef HAVE_SYS_PARAM_H
555
556
557 /*
558 * Do we have <sys/ucred.h>?
559 */
560
561 #undef HAVE_SYS_UCRED_H
562
563
564 /*
565 * Do we have removefile()?
566 */
567
568 #undef HAVE_REMOVEFILE
569
570
571 /*
572 * Do we have <sandbox.h>?
573 */
574
575 #undef HAVE_SANDBOX_H
576
577
578 /*
579 * Which random number generator function to use...
580 */
581
582 #undef HAVE_RANDOM
583 #undef HAVE_MRAND48
584 #undef HAVE_LRAND48
585
586
587 /*
588 * Do we have libusb?
589 */
590
591 #undef HAVE_USB_H
592
593
594 /*
595 * Do we have libwrap and tcpd.h?
596 */
597
598 #undef HAVE_TCPD_H
599
600
601 #endif /* !_CUPS_CONFIG_H_ */
602
603 /*
604 * End of "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $".
605 */