]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge changes from CUPS 1.4svn-r7791.
[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
310
311
ef416fc2 312/*
313 * Do we have libpaper?
314 */
315
316#undef HAVE_LIBPAPER
317
318
f7deaa1a 319/*
320 * Do we have DNS Service Discovery (aka Bonjour)?
321 */
322
323#undef HAVE_DNSSD
324
325
326/*
327 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
328 */
329
330#undef HAVE_COREFOUNDATION
331#undef HAVE_SYSTEMCONFIGURATION
332
333
ef416fc2 334/*
335 * Do we have <sys/ioctl.h>?
336 */
337
338#undef HAVE_SYS_IOCTL_H
339
340
341/*
342 * Do we have mkstemp() and/or mkstemps()?
343 */
344
345#undef HAVE_MKSTEMP
346#undef HAVE_MKSTEMPS
347
348
349/*
350 * Does the "tm" structure contain the "tm_gmtoff" member?
351 */
352
353#undef HAVE_TM_GMTOFF
354
355
356/*
357 * Do we have rresvport_af()?
358 */
359
360#undef HAVE_RRESVPORT_AF
361
362
363/*
364 * Do we have getaddrinfo()?
365 */
366
367#undef HAVE_GETADDRINFO
368
369
370/*
371 * Do we have getnameinfo()?
372 */
373
374#undef HAVE_GETNAMEINFO
375
376
377/*
378 * Do we have getifaddrs()?
379 */
380
381#undef HAVE_GETIFADDRS
382
383
384/*
385 * Do we have hstrerror()?
386 */
387
388#undef HAVE_HSTRERROR
389
390
391/*
392 * Do we have the <sys/sockio.h> header file?
393 */
394
395#undef HAVE_SYS_SOCKIO_H
396
397
398/*
399 * Does the sockaddr structure contain an sa_len parameter?
400 */
401
402#undef HAVE_STRUCT_SOCKADDR_SA_LEN
403
404
405/*
406 * Do we have the AIX usersec.h header file?
407 */
408
409#undef HAVE_USERSEC_H
410
411/*
412 * Do we have pthread support?
413 */
414
415#undef HAVE_PTHREAD_H
416
417
a4d04587 418/*
419 * Do we have launchd support?
420 */
421
422#undef HAVE_LAUNCH_H
423#undef HAVE_LAUNCHD
424#define CUPS_DEFAULT_LAUNCHD_CONF ""
425
426
ef416fc2 427/*
428 * Various scripting languages...
429 */
430
431#undef HAVE_JAVA
432#define CUPS_JAVA "/usr/bin/java"
433#undef HAVE_PERL
434#define CUPS_PERL "/usr/bin/perl"
435#undef HAVE_PHP
436#define CUPS_PHP "/usr/bin/php"
437#undef HAVE_PYTHON
438#define CUPS_PYTHON "/usr/bin/python"
439
440
91c84a35
MS
441/*
442 * Location of the poppler/Xpdf pdftops program...
443 */
444
ae71f5de 445#undef HAVE_PDFTOPS
91c84a35
MS
446#define CUPS_PDFTOPS "/usr/bin/pdftops"
447
448
ae71f5de
MS
449/*
450 * Location of the Ghostscript gs program...
451 */
452
453#undef HAVE_GHOSTSCRIPT
454#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
455
456
fa73b229 457/*
458 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
459 */
460
461#undef HAVE_COREFOUNDATION
462#undef HAVE_SYSTEMCONFIGURATION
463
464
465/*
466 * Do we have CoreFoundation public and private headers?
467 */
468
469#undef HAVE_COREFOUNDATION_H
470#undef HAVE_CFPRIV_H
471#undef HAVE_CFBUNDLEPRIV_H
472
473
474/*
475 * Do we have MacOSX 10.4's mbr_XXX functions()?
476 */
477
478#undef HAVE_MEMBERSHIP_H
7594b224 479#undef HAVE_MEMBERSHIPPRIV_H
fa73b229 480#undef HAVE_MBR_UID_TO_UUID
481
482
483/*
484 * Do we have Darwin's notify_post() header and function?
485 */
486
487#undef HAVE_NOTIFY_H
488#undef HAVE_NOTIFY_POST
489
490
e00b005a 491/*
492 * Do we have DBUS?
493 */
494
495#undef HAVE_DBUS
2abf387c 496#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
e00b005a 497
498
a74454a7 499/*
500 * Do we have the AppleTalk/at_proto.h header?
501 */
502
503#undef HAVE_APPLETALK_AT_PROTO_H
504
505
f7deaa1a 506/*
507 * Do we have the GSSAPI support library (for Kerberos support)?
508 */
509
510#undef HAVE_GSSAPI
511#undef HAVE_GSSAPI_H
512#undef HAVE_GSSAPI_GSSAPI_H
513#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
514#undef HAVE_GSSAPI_GSSAPI_KRB5_H
515#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
516#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
c24d2134 517#undef HAVE_KRB5_CC_NEW_UNIQUE
f7deaa1a 518#undef HAVE_KRB5_H
519#undef HAVE_HEIMDAL
520
521
522/*
523 * Default GSS service name...
524 */
525
526#define CUPS_DEFAULT_GSSSERVICENAME ""
527
528
529/*
530 * Select/poll interfaces...
531 */
532
533#undef HAVE_POLL
534#undef HAVE_EPOLL
535#undef HAVE_KQUEUE
536
537
7594b224 538/*
539 * Do we have the <dlfcn.h> header?
540 */
541
542#undef HAVE_DLFCN_H
543
544
db1f069b
MS
545/*
546 * Do we have <sys/param.h>?
547 */
548
549#undef HAVE_SYS_PARAM_H
550
551
bc44d920 552/*
553 * Do we have <sys/ucred.h>?
554 */
555
556#undef HAVE_SYS_UCRED_H
557
558
cc0d019f
MS
559/*
560 * Do we have removefile()?
561 */
562
563#undef HAVE_REMOVEFILE
564
565
a4924f6c
MS
566/*
567 * Do we have <sandbox.h>?
568 */
569
570#undef HAVE_SANDBOX_H
571
572
ac884b6a
MS
573/*
574 * Which random number generator function to use...
575 */
576
577#undef HAVE_RANDOM
578#undef HAVE_MRAND48
579#undef HAVE_LRAND48
580
581
75bd9771
MS
582/*
583 * Do we have libusb?
584 */
585
586#undef HAVE_USB_H
587
588
ef416fc2 589#endif /* !_CUPS_CONFIG_H_ */
590
591/*
75bd9771 592 * End of "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $".
ef416fc2 593 */