]> git.ipfire.org Git - thirdparty/cups.git/blob - vcnet/config.h
d482aecafbb2d774528c4064b94901e691bef33b
[thirdparty/cups.git] / vcnet / config.h
1 /*
2 * "$Id: config.h 6649 2007-07-11 21:46:42Z mike $"
3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007-2009 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 * Include necessary headers...
21 */
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <stdarg.h>
27 #include <ctype.h>
28 #include <io.h>
29
30
31 /*
32 * Microsoft renames the POSIX functions to _name, and introduces
33 * a broken compatibility layer using the original names. As a result,
34 * random crashes can occur when, for example, strdup() allocates memory
35 * from a different heap than used by malloc() and free().
36 *
37 * To avoid moronic problems like this, we #define the POSIX function
38 * names to the corresponding non-standard Microsoft names.
39 */
40
41 #define access _access
42 #define close _close
43 #define fileno _fileno
44 #define lseek _lseek
45 #define open _open
46 #define read _read
47 #define snprintf _snprintf
48 #define strdup _strdup
49 #define unlink _unlink
50 #define vsnprintf _vsnprintf
51 #define write _write
52
53
54 /*
55 * Compiler stuff...
56 */
57
58 #undef const
59 #undef __CHAR_UNSIGNED__
60
61
62 /*
63 * Version of software...
64 */
65
66 #define CUPS_SVERSION "CUPS v1.4.0"
67 #define CUPS_MINIMAL "CUPS/1.4.0"
68
69
70 /*
71 * Default user and groups...
72 */
73
74 #define CUPS_DEFAULT_USER "lp"
75 #define CUPS_DEFAULT_GROUP "sys"
76 #define CUPS_DEFAULT_SYSTEM_GROUPS "admin"
77 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@admin @lpadmin"
78
79
80 /*
81 * Default file permissions...
82 */
83
84 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
85 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
86
87
88 /*
89 * Default logging settings...
90 */
91
92 #define CUPS_DEFAULT_LOG_LEVEL "warn"
93 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
94
95
96 /*
97 * Default fatal error settings...
98 */
99
100 #define CUPS_DEFAULT_FATAL_ERRORS "config"
101
102
103 /*
104 * Default browsing settings...
105 */
106
107 #define CUPS_DEFAULT_BROWSING 1
108 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS dnssd"
109 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS ""
110 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
111 #define CUPS_DEFAULT_DEFAULT_SHARED 1
112 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
113 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
114
115
116 /*
117 * Default IPP port...
118 */
119
120 #define CUPS_DEFAULT_IPP_PORT 631
121
122
123 /*
124 * Default printcap file...
125 */
126
127 #define CUPS_DEFAULT_PRINTCAP ""
128
129
130 /*
131 * Default Samba and LPD config files...
132 */
133
134 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
135 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
136
137
138 /*
139 * Default MaxCopies value...
140 */
141
142 #define CUPS_DEFAULT_MAX_COPIES 9999
143
144
145 /*
146 * Do we have domain socket support?
147 */
148
149 #undef CUPS_DEFAULT_DOMAINSOCKET
150
151
152 /*
153 * Where are files stored?
154 *
155 * Note: These are defaults, which can be overridden by environment
156 * variables at run-time...
157 */
158
159 #define CUPS_BINDIR "C:/CUPS/bin"
160 #define CUPS_CACHEDIR "C:/CUPS/cache"
161 #define CUPS_DATADIR "C:/CUPS/share"
162 #define CUPS_DOCROOT "C:/CUPS/share/doc"
163 #define CUPS_FONTPATH "C:/CUPS/share/fonts"
164 #define CUPS_LOCALEDIR "C:/CUPS/locale"
165 #define CUPS_LOGDIR "C:/CUPS/logs"
166 #define CUPS_REQUESTS "C:/CUPS/spool"
167 #define CUPS_SBINDIR "C:/CUPS/sbin"
168 #define CUPS_SERVERBIN "C:/CUPS/lib"
169 #define CUPS_SERVERROOT "C:/CUPS/etc"
170 #define CUPS_STATEDIR "C:/CUPS/run"
171
172
173 /*
174 * Do we have various image libraries?
175 */
176
177 /* #undef HAVE_LIBPNG */
178 /* #undef HAVE_LIBZ */
179 /* #undef HAVE_LIBJPEG */
180 /* #undef HAVE_LIBTIFF */
181
182
183 /*
184 * Do we have PAM stuff?
185 */
186
187 #ifndef HAVE_LIBPAM
188 #define HAVE_LIBPAM 0
189 #endif /* !HAVE_LIBPAM */
190
191 /* #undef HAVE_PAM_PAM_APPL_H */
192 /* #undef HAVE_PAM_SET_ITEM */
193 /* #undef HAVE_PAM_SETCRED */
194
195
196 /*
197 * Do we have <shadow.h>?
198 */
199
200 /* #undef HAVE_SHADOW_H */
201
202
203 /*
204 * Do we have <crypt.h>?
205 */
206
207 /* #undef HAVE_CRYPT_H */
208
209
210 /*
211 * Use <string.h>, <strings.h>, and/or <bstring.h>?
212 */
213
214 #define HAVE_STRING_H 1
215 /* #undef HAVE_STRINGS_H */
216 /* #undef HAVE_BSTRING_H */
217
218
219 /*
220 * Do we have the long long type?
221 */
222
223 /* #undef HAVE_LONG_LONG */
224
225 #ifdef HAVE_LONG_LONG
226 # define CUPS_LLFMT "%lld"
227 # define CUPS_LLCAST (long long)
228 #else
229 # define CUPS_LLFMT "%ld"
230 # define CUPS_LLCAST (long)
231 #endif /* HAVE_LONG_LONG */
232
233
234 /*
235 * Do we have the strtoll() function?
236 */
237
238 /* #undef HAVE_STRTOLL */
239
240 #ifndef HAVE_STRTOLL
241 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
242 #endif /* !HAVE_STRTOLL */
243
244
245 /*
246 * Do we have the strXXX() functions?
247 */
248
249 #define HAVE_STRDUP
250 #define HAVE_STRCASECMP
251 #define HAVE_STRNCASECMP
252 /* #undef HAVE_STRLCAT */
253 /* #undef HAVE_STRLCPY */
254
255
256 /*
257 * Do we have the geteuid() function?
258 */
259
260 /* #undef HAVE_GETEUID */
261
262
263 /*
264 * Do we have the vsyslog() function?
265 */
266
267 /* #undef HAVE_VSYSLOG */
268
269
270 /*
271 * Do we have the (v)snprintf() functions?
272 */
273
274 #define HAVE_SNPRINTF 1
275 #define HAVE_VSNPRINTF 1
276
277
278 /*
279 * What signal functions to use?
280 */
281
282 /* #undef HAVE_SIGSET */
283 /* #undef HAVE_SIGACTION */
284
285
286 /*
287 * What wait functions to use?
288 */
289
290 /* #undef HAVE_WAITPID */
291 /* #undef HAVE_WAIT3 */
292
293
294 /*
295 * Do we have the mallinfo function and malloc.h?
296 */
297
298 /* #undef HAVE_MALLINFO */
299 /* #undef HAVE_MALLOC_H */
300
301
302 /*
303 * Do we have the POSIX ACL functions?
304 */
305
306 /* #undef HAVE_ACL_INIT */
307
308
309 /*
310 * Do we have the langinfo.h header file?
311 */
312
313 /* #undef HAVE_LANGINFO_H */
314
315
316 /*
317 * Which encryption libraries do we have?
318 */
319
320 /* #undef HAVE_CDSASSL */
321 /* #undef HAVE_GNUTLS */
322 /* #undef HAVE_LIBSSL */
323 /* #undef HAVE_SSL */
324
325
326 /*
327 * What Security framework headers do we have?
328 */
329
330 /* #undef HAVE_AUTHORIZATION_H */
331 /* #undef HAVE_SECPOLICY_H */
332 /* #undef HAVE_SECPOLICYPRIV_H */
333 /* #undef HAVE_SECBASEPRIV_H */
334 /* #undef HAVE_SECIDENTITYSEARCHPRIV_H */
335
336
337 /*
338 * Do we have the SecIdentitySearchCreateWithPolicy function?
339 */
340
341 /* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */
342
343
344 /*
345 * Do we have the SLP library?
346 */
347
348 /* #undef HAVE_LIBSLP */
349
350
351 /*
352 * Do we have an LDAP library?
353 */
354
355 /* #undef HAVE_LDAP */
356 /* #undef HAVE_OPENLDAP */
357 /* #undef HAVE_MOZILLA_LDAP */
358 /* #undef HAVE_LDAP_SSL_H */
359 /* #undef HAVE_LDAP_SSL */
360 /* #undef HAVE_LDAP_REBIND_PROC */
361
362
363 /*
364 * Do we have libpaper?
365 */
366
367 /* #undef HAVE_LIBPAPER */
368
369
370 /*
371 * Do we have DNS Service Discovery (aka Bonjour)?
372 */
373
374 /* #undef HAVE_DNSSD */
375
376
377 /*
378 * Do we have <sys/ioctl.h>?
379 */
380
381 /* #undef HAVE_SYS_IOCTL_H */
382
383
384 /*
385 * Does the "tm" structure contain the "tm_gmtoff" member?
386 */
387
388 /* #undef HAVE_TM_GMTOFF */
389
390
391 /*
392 * Do we have rresvport_af()?
393 */
394
395 /* #undef HAVE_RRESVPORT_AF */
396
397
398 /*
399 * Do we have getaddrinfo()?
400 */
401
402 #define HAVE_GETADDRINFO 1
403
404
405 /*
406 * Do we have getnameinfo()?
407 */
408
409 #define HAVE_GETNAMEINFO 1
410
411
412 /*
413 * Do we have getifaddrs()?
414 */
415
416 /* #undef HAVE_GETIFADDRS */
417
418
419 /*
420 * Do we have hstrerror()?
421 */
422
423 /* #undef HAVE_HSTRERROR */
424
425
426 /*
427 * Do we have res_init()?
428 */
429
430 /* #undef HAVE_RES_INIT */
431
432
433 /*
434 * Do we have <resolv.h>
435 */
436
437 /* #undef HAVE_RESOLV_H */
438
439
440 /*
441 * Do we have the <sys/sockio.h> header file?
442 */
443
444 /* #undef HAVE_SYS_SOCKIO_H */
445
446
447 /*
448 * Does the sockaddr structure contain an sa_len parameter?
449 */
450
451 /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
452
453
454 /*
455 * Do we have the AIX usersec.h header file?
456 */
457
458 /* #undef HAVE_USERSEC_H */
459
460
461 /*
462 * Do we have pthread support?
463 */
464
465 /* #undef HAVE_PTHREAD_H */
466
467
468 /*
469 * Do we have launchd support?
470 */
471
472 /* #undef HAVE_LAUNCH_H */
473 /* #undef HAVE_LAUNCHD */
474 #define CUPS_DEFAULT_LAUNCHD_CONF ""
475
476
477 /*
478 * Various scripting languages...
479 */
480
481 /* #undef HAVE_JAVA */
482 #define CUPS_JAVA ""
483 /* #undef HAVE_PERL */
484 #define CUPS_PERL ""
485 /* #undef HAVE_PHP */
486 #define CUPS_PHP ""
487 /* #undef HAVE_PYTHON */
488 #define CUPS_PYTHON ""
489
490
491 /*
492 * Location of the poppler/Xpdf pdftops program...
493 */
494
495 /* #undef HAVE_PDFTOPS */
496 #define CUPS_PDFTOPS ""
497
498
499 /*
500 * Location of the Ghostscript gs program...
501 */
502
503 /* #undef HAVE_GHOSTSCRIPT */
504 #define CUPS_GHOSTSCRIPT ""
505
506
507 /*
508 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
509 */
510
511 /* #undef HAVE_COREFOUNDATION */
512 /* #undef HAVE_SYSTEMCONFIGURATION */
513
514
515 /*
516 * Do we have CoreFoundation public and private headers?
517 */
518
519 /* #undef HAVE_COREFOUNDATION_H */
520 /* #undef HAVE_CFPRIV_H */
521 /* #undef HAVE_CFBUNDLEPRIV_H */
522
523
524 /*
525 * Do we have MacOSX 10.4's mbr_XXX functions()?
526 */
527
528 /* #undef HAVE_MEMBERSHIP_H */
529 /* #undef HAVE_MEMBERSHIPPRIV_H */
530 /* #undef HAVE_MBR_UID_TO_UUID */
531
532
533 /*
534 * Do we have Darwin's notify_post() header and function?
535 */
536
537 /* #undef HAVE_NOTIFY_H */
538 /* #undef HAVE_NOTIFY_POST */
539
540
541 /*
542 * Do we have DBUS?
543 */
544
545 /* #undef HAVE_DBUS */
546 /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
547
548
549 /*
550 * Do we have the AppleTalk/at_proto.h header?
551 */
552
553 /* #undef HAVE_APPLETALK_AT_PROTO_H */
554
555
556 /*
557 * Do we have the GSSAPI support library (for Kerberos support)?
558 */
559
560 /* #undef HAVE_GSSAPI */
561 /* #undef HAVE_GSSAPI_H */
562 /* #undef HAVE_GSSAPI_GSSAPI_H */
563 /* #undef HAVE_GSSAPI_GSSAPI_GENERIC_H */
564 /* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */
565 /* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */
566 /* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */
567 /* #undef HAVE_KRB5_CC_NEW_UNIQUE */
568 /* #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID */
569 /* #undef HAVE_KRB5_H */
570 /* #undef HAVE_HEIMDAL */
571
572
573 /*
574 * Default GSS service name...
575 */
576
577 #define CUPS_DEFAULT_GSSSERVICENAME "ipp"
578
579
580 /*
581 * Select/poll interfaces...
582 */
583
584 /* #undef HAVE_POLL */
585 /* #undef HAVE_EPOLL */
586 /* #undef HAVE_KQUEUE */
587
588
589 /*
590 * Do we have the <dlfcn.h> header?
591 */
592
593 /* #undef HAVE_DLFCN_H */
594
595
596 /*
597 * Do we have <sys/param.h>?
598 */
599
600 /* #undef HAVE_SYS_PARAM_H */
601
602
603 /*
604 * Do we have <sys/ucred.h>?
605 */
606
607 /* #undef HAVE_SYS_UCRED_H */
608
609
610 /*
611 * Do we have removefile()?
612 */
613
614 /* #undef HAVE_REMOVEFILE */
615
616
617 /*
618 * Do we have <sandbox.h>?
619 */
620
621 /* #undef HAVE_SANDBOX_H */
622
623
624 /*
625 * Which random number generator function to use...
626 */
627
628 /* #undef HAVE_RANDOM */
629 /* #undef HAVE_MRAND48 */
630 /* #undef HAVE_LRAND48 */
631
632
633 /*
634 * Do we have vproc_transaction_begin/end?
635 */
636
637 /* #undef HAVE_VPROC_TRANSACTION_BEGIN */
638
639
640 /*
641 * Do we have libusb?
642 */
643
644 /* #undef HAVE_USB_H */
645
646
647 /*
648 * Do we have libwrap and tcpd.h?
649 */
650
651 /* #undef HAVE_TCPD_H */
652
653
654 #endif /* !_CUPS_CONFIG_H_ */
655
656 /*
657 * End of "$Id: config.h 6649 2007-07-11 21:46:42Z mike $".
658 */