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