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