]>
git.ipfire.org Git - thirdparty/cups.git/blob - vcnet/config.h
d482aecafbb2d774528c4064b94901e691bef33b
2 * "$Id: config.h 6649 2007-07-11 21:46:42Z mike $"
4 * Configuration file for the Common UNIX Printing System (CUPS).
6 * Copyright 2007-2009 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products.
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/".
16 #ifndef _CUPS_CONFIG_H_
17 #define _CUPS_CONFIG_H_
20 * Include necessary headers...
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().
37 * To avoid moronic problems like this, we #define the POSIX function
38 * names to the corresponding non-standard Microsoft names.
41 #define access _access
43 #define fileno _fileno
47 #define snprintf _snprintf
48 #define strdup _strdup
49 #define unlink _unlink
50 #define vsnprintf _vsnprintf
59 #undef __CHAR_UNSIGNED__
63 * Version of software...
66 #define CUPS_SVERSION "CUPS v1.4.0"
67 #define CUPS_MINIMAL "CUPS/1.4.0"
71 * Default user and groups...
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"
81 * Default file permissions...
84 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
85 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
89 * Default logging settings...
92 #define CUPS_DEFAULT_LOG_LEVEL "warn"
93 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
97 * Default fatal error settings...
100 #define CUPS_DEFAULT_FATAL_ERRORS "config"
104 * Default browsing settings...
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
117 * Default IPP port...
120 #define CUPS_DEFAULT_IPP_PORT 631
124 * Default printcap file...
127 #define CUPS_DEFAULT_PRINTCAP ""
131 * Default Samba and LPD config files...
134 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
135 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
139 * Default MaxCopies value...
142 #define CUPS_DEFAULT_MAX_COPIES 9999
146 * Do we have domain socket support?
149 #undef CUPS_DEFAULT_DOMAINSOCKET
153 * Where are files stored?
155 * Note: These are defaults, which can be overridden by environment
156 * variables at run-time...
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"
174 * Do we have various image libraries?
177 /* #undef HAVE_LIBPNG */
178 /* #undef HAVE_LIBZ */
179 /* #undef HAVE_LIBJPEG */
180 /* #undef HAVE_LIBTIFF */
184 * Do we have PAM stuff?
188 #define HAVE_LIBPAM 0
189 #endif /* !HAVE_LIBPAM */
191 /* #undef HAVE_PAM_PAM_APPL_H */
192 /* #undef HAVE_PAM_SET_ITEM */
193 /* #undef HAVE_PAM_SETCRED */
197 * Do we have <shadow.h>?
200 /* #undef HAVE_SHADOW_H */
204 * Do we have <crypt.h>?
207 /* #undef HAVE_CRYPT_H */
211 * Use <string.h>, <strings.h>, and/or <bstring.h>?
214 #define HAVE_STRING_H 1
215 /* #undef HAVE_STRINGS_H */
216 /* #undef HAVE_BSTRING_H */
220 * Do we have the long long type?
223 /* #undef HAVE_LONG_LONG */
225 #ifdef HAVE_LONG_LONG
226 # define CUPS_LLFMT "%lld"
227 # define CUPS_LLCAST (long long)
229 # define CUPS_LLFMT "%ld"
230 # define CUPS_LLCAST (long)
231 #endif /* HAVE_LONG_LONG */
235 * Do we have the strtoll() function?
238 /* #undef HAVE_STRTOLL */
241 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
242 #endif /* !HAVE_STRTOLL */
246 * Do we have the strXXX() functions?
250 #define HAVE_STRCASECMP
251 #define HAVE_STRNCASECMP
252 /* #undef HAVE_STRLCAT */
253 /* #undef HAVE_STRLCPY */
257 * Do we have the geteuid() function?
260 /* #undef HAVE_GETEUID */
264 * Do we have the vsyslog() function?
267 /* #undef HAVE_VSYSLOG */
271 * Do we have the (v)snprintf() functions?
274 #define HAVE_SNPRINTF 1
275 #define HAVE_VSNPRINTF 1
279 * What signal functions to use?
282 /* #undef HAVE_SIGSET */
283 /* #undef HAVE_SIGACTION */
287 * What wait functions to use?
290 /* #undef HAVE_WAITPID */
291 /* #undef HAVE_WAIT3 */
295 * Do we have the mallinfo function and malloc.h?
298 /* #undef HAVE_MALLINFO */
299 /* #undef HAVE_MALLOC_H */
303 * Do we have the POSIX ACL functions?
306 /* #undef HAVE_ACL_INIT */
310 * Do we have the langinfo.h header file?
313 /* #undef HAVE_LANGINFO_H */
317 * Which encryption libraries do we have?
320 /* #undef HAVE_CDSASSL */
321 /* #undef HAVE_GNUTLS */
322 /* #undef HAVE_LIBSSL */
323 /* #undef HAVE_SSL */
327 * What Security framework headers do we have?
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 */
338 * Do we have the SecIdentitySearchCreateWithPolicy function?
341 /* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */
345 * Do we have the SLP library?
348 /* #undef HAVE_LIBSLP */
352 * Do we have an LDAP library?
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 */
364 * Do we have libpaper?
367 /* #undef HAVE_LIBPAPER */
371 * Do we have DNS Service Discovery (aka Bonjour)?
374 /* #undef HAVE_DNSSD */
378 * Do we have <sys/ioctl.h>?
381 /* #undef HAVE_SYS_IOCTL_H */
385 * Does the "tm" structure contain the "tm_gmtoff" member?
388 /* #undef HAVE_TM_GMTOFF */
392 * Do we have rresvport_af()?
395 /* #undef HAVE_RRESVPORT_AF */
399 * Do we have getaddrinfo()?
402 #define HAVE_GETADDRINFO 1
406 * Do we have getnameinfo()?
409 #define HAVE_GETNAMEINFO 1
413 * Do we have getifaddrs()?
416 /* #undef HAVE_GETIFADDRS */
420 * Do we have hstrerror()?
423 /* #undef HAVE_HSTRERROR */
427 * Do we have res_init()?
430 /* #undef HAVE_RES_INIT */
434 * Do we have <resolv.h>
437 /* #undef HAVE_RESOLV_H */
441 * Do we have the <sys/sockio.h> header file?
444 /* #undef HAVE_SYS_SOCKIO_H */
448 * Does the sockaddr structure contain an sa_len parameter?
451 /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
455 * Do we have the AIX usersec.h header file?
458 /* #undef HAVE_USERSEC_H */
462 * Do we have pthread support?
465 /* #undef HAVE_PTHREAD_H */
469 * Do we have launchd support?
472 /* #undef HAVE_LAUNCH_H */
473 /* #undef HAVE_LAUNCHD */
474 #define CUPS_DEFAULT_LAUNCHD_CONF ""
478 * Various scripting languages...
481 /* #undef HAVE_JAVA */
483 /* #undef HAVE_PERL */
485 /* #undef HAVE_PHP */
487 /* #undef HAVE_PYTHON */
488 #define CUPS_PYTHON ""
492 * Location of the poppler/Xpdf pdftops program...
495 /* #undef HAVE_PDFTOPS */
496 #define CUPS_PDFTOPS ""
500 * Location of the Ghostscript gs program...
503 /* #undef HAVE_GHOSTSCRIPT */
504 #define CUPS_GHOSTSCRIPT ""
508 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
511 /* #undef HAVE_COREFOUNDATION */
512 /* #undef HAVE_SYSTEMCONFIGURATION */
516 * Do we have CoreFoundation public and private headers?
519 /* #undef HAVE_COREFOUNDATION_H */
520 /* #undef HAVE_CFPRIV_H */
521 /* #undef HAVE_CFBUNDLEPRIV_H */
525 * Do we have MacOSX 10.4's mbr_XXX functions()?
528 /* #undef HAVE_MEMBERSHIP_H */
529 /* #undef HAVE_MEMBERSHIPPRIV_H */
530 /* #undef HAVE_MBR_UID_TO_UUID */
534 * Do we have Darwin's notify_post() header and function?
537 /* #undef HAVE_NOTIFY_H */
538 /* #undef HAVE_NOTIFY_POST */
545 /* #undef HAVE_DBUS */
546 /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
550 * Do we have the AppleTalk/at_proto.h header?
553 /* #undef HAVE_APPLETALK_AT_PROTO_H */
557 * Do we have the GSSAPI support library (for Kerberos support)?
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 */
574 * Default GSS service name...
577 #define CUPS_DEFAULT_GSSSERVICENAME "ipp"
581 * Select/poll interfaces...
584 /* #undef HAVE_POLL */
585 /* #undef HAVE_EPOLL */
586 /* #undef HAVE_KQUEUE */
590 * Do we have the <dlfcn.h> header?
593 /* #undef HAVE_DLFCN_H */
597 * Do we have <sys/param.h>?
600 /* #undef HAVE_SYS_PARAM_H */
604 * Do we have <sys/ucred.h>?
607 /* #undef HAVE_SYS_UCRED_H */
611 * Do we have removefile()?
614 /* #undef HAVE_REMOVEFILE */
618 * Do we have <sandbox.h>?
621 /* #undef HAVE_SANDBOX_H */
625 * Which random number generator function to use...
628 /* #undef HAVE_RANDOM */
629 /* #undef HAVE_MRAND48 */
630 /* #undef HAVE_LRAND48 */
634 * Do we have vproc_transaction_begin/end?
637 /* #undef HAVE_VPROC_TRANSACTION_BEGIN */
644 /* #undef HAVE_USB_H */
648 * Do we have libwrap and tcpd.h?
651 /* #undef HAVE_TCPD_H */
654 #endif /* !_CUPS_CONFIG_H_ */
657 * End of "$Id: config.h 6649 2007-07-11 21:46:42Z mike $".