]>
git.ipfire.org Git - thirdparty/cups.git/blob - vcnet/config.h
2 * "$Id: config.h 6649 2007-07-11 21:46:42Z mike $"
4 * Configuration file for CUPS.
6 * Copyright 2007-2010 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
55 * Map the POSIX sleep() and usleep() functions to the Win32 Sleep() function...
58 #define sleep(X) Sleep(1000 * (X))
59 #define usleep(X) Sleep((X)/1000)
67 #undef __CHAR_UNSIGNED__
71 * Version of software...
74 #define CUPS_SVERSION "CUPS v1.5svn"
75 #define CUPS_MINIMAL "CUPS/1.5svn"
79 * Default user and groups...
82 #define CUPS_DEFAULT_USER "lp"
83 #define CUPS_DEFAULT_GROUP "sys"
84 #define CUPS_DEFAULT_SYSTEM_GROUPS "admin"
85 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@admin @lpadmin"
89 * Default file permissions...
92 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
93 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
97 * Default logging settings...
100 #define CUPS_DEFAULT_LOG_LEVEL "warn"
101 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
105 * Default fatal error settings...
108 #define CUPS_DEFAULT_FATAL_ERRORS "config"
112 * Default browsing settings...
115 #define CUPS_DEFAULT_BROWSING 1
116 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS dnssd"
117 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS ""
118 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
119 #define CUPS_DEFAULT_DEFAULT_SHARED 1
120 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
121 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
125 * Default IPP port...
128 #define CUPS_DEFAULT_IPP_PORT 631
132 * Default printcap file...
135 #define CUPS_DEFAULT_PRINTCAP ""
139 * Default Samba and LPD config files...
142 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
143 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
147 * Default MaxCopies value...
150 #define CUPS_DEFAULT_MAX_COPIES 9999
154 * Do we have domain socket support?
157 #undef CUPS_DEFAULT_DOMAINSOCKET
161 * Where are files stored?
163 * Note: These are defaults, which can be overridden by environment
164 * variables at run-time...
167 #define CUPS_BINDIR "C:/CUPS/bin"
168 #define CUPS_CACHEDIR "C:/CUPS/cache"
169 #define CUPS_DATADIR "C:/CUPS/share"
170 #define CUPS_DOCROOT "C:/CUPS/share/doc"
171 #define CUPS_FONTPATH "C:/CUPS/share/fonts"
172 #define CUPS_LOCALEDIR "C:/CUPS/locale"
173 #define CUPS_LOGDIR "C:/CUPS/logs"
174 #define CUPS_REQUESTS "C:/CUPS/spool"
175 #define CUPS_SBINDIR "C:/CUPS/sbin"
176 #define CUPS_SERVERBIN "C:/CUPS/lib"
177 #define CUPS_SERVERROOT "C:/CUPS/etc"
178 #define CUPS_STATEDIR "C:/CUPS/run"
182 * Do we have various image libraries?
185 /* #undef HAVE_LIBPNG */
186 /* #undef HAVE_LIBZ */
187 /* #undef HAVE_LIBJPEG */
188 /* #undef HAVE_LIBTIFF */
192 * Do we have PAM stuff?
196 #define HAVE_LIBPAM 0
197 #endif /* !HAVE_LIBPAM */
199 /* #undef HAVE_PAM_PAM_APPL_H */
200 /* #undef HAVE_PAM_SET_ITEM */
201 /* #undef HAVE_PAM_SETCRED */
205 * Do we have <shadow.h>?
208 /* #undef HAVE_SHADOW_H */
212 * Do we have <crypt.h>?
215 /* #undef HAVE_CRYPT_H */
219 * Do we have <scsi/sg.h>?
222 /* #undef HAVE_SCSI_SG_H */
226 * Use <string.h>, <strings.h>, and/or <bstring.h>?
229 #define HAVE_STRING_H 1
230 /* #undef HAVE_STRINGS_H */
231 /* #undef HAVE_BSTRING_H */
235 * Do we have the long long type?
238 /* #undef HAVE_LONG_LONG */
240 #ifdef HAVE_LONG_LONG
241 # define CUPS_LLFMT "%lld"
242 # define CUPS_LLCAST (long long)
244 # define CUPS_LLFMT "%ld"
245 # define CUPS_LLCAST (long)
246 #endif /* HAVE_LONG_LONG */
250 * Do we have the strtoll() function?
253 /* #undef HAVE_STRTOLL */
256 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
257 #endif /* !HAVE_STRTOLL */
261 * Do we have the strXXX() functions?
265 #define HAVE_STRCASECMP
266 #define HAVE_STRNCASECMP
267 /* #undef HAVE_STRLCAT */
268 /* #undef HAVE_STRLCPY */
272 * Do we have the geteuid() function?
275 /* #undef HAVE_GETEUID */
279 * Do we have the vsyslog() function?
282 /* #undef HAVE_VSYSLOG */
286 * Do we have the (v)snprintf() functions?
289 #define HAVE_SNPRINTF 1
290 #define HAVE_VSNPRINTF 1
294 * What signal functions to use?
297 /* #undef HAVE_SIGSET */
298 /* #undef HAVE_SIGACTION */
302 * What wait functions to use?
305 /* #undef HAVE_WAITPID */
306 /* #undef HAVE_WAIT3 */
310 * Do we have the mallinfo function and malloc.h?
313 /* #undef HAVE_MALLINFO */
314 /* #undef HAVE_MALLOC_H */
318 * Do we have the POSIX ACL functions?
321 /* #undef HAVE_ACL_INIT */
325 * Do we have the langinfo.h header file?
328 /* #undef HAVE_LANGINFO_H */
332 * Which encryption libraries do we have?
335 /* #undef HAVE_CDSASSL */
336 /* #undef HAVE_GNUTLS */
337 /* #undef HAVE_LIBSSL */
338 /* #undef HAVE_SSL */
342 * What Security framework headers do we have?
345 /* #undef HAVE_AUTHORIZATION_H */
346 /* #undef HAVE_SECPOLICY_H */
347 /* #undef HAVE_SECPOLICYPRIV_H */
348 /* #undef HAVE_SECBASEPRIV_H */
349 /* #undef HAVE_SECIDENTITYSEARCHPRIV_H */
353 * Do we have the SecIdentitySearchCreateWithPolicy function?
356 /* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */
360 * Do we have the SLP library?
363 /* #undef HAVE_LIBSLP */
367 * Do we have an LDAP library?
370 /* #undef HAVE_LDAP */
371 /* #undef HAVE_OPENLDAP */
372 /* #undef HAVE_MOZILLA_LDAP */
373 /* #undef HAVE_LDAP_SSL_H */
374 /* #undef HAVE_LDAP_SSL */
375 /* #undef HAVE_LDAP_REBIND_PROC */
379 * Do we have libpaper?
382 /* #undef HAVE_LIBPAPER */
386 * Do we have DNS Service Discovery (aka Bonjour)?
389 /* #undef HAVE_DNSSD */
393 * Do we have <sys/ioctl.h>?
396 /* #undef HAVE_SYS_IOCTL_H */
400 * Does the "tm" structure contain the "tm_gmtoff" member?
403 /* #undef HAVE_TM_GMTOFF */
407 * Do we have rresvport_af()?
410 /* #undef HAVE_RRESVPORT_AF */
414 * Do we have getaddrinfo()?
417 #define HAVE_GETADDRINFO 1
421 * Do we have getnameinfo()?
424 #define HAVE_GETNAMEINFO 1
428 * Do we have getifaddrs()?
431 /* #undef HAVE_GETIFADDRS */
435 * Do we have hstrerror()?
438 /* #undef HAVE_HSTRERROR */
442 * Do we have res_init()?
445 /* #undef HAVE_RES_INIT */
449 * Do we have <resolv.h>
452 /* #undef HAVE_RESOLV_H */
456 * Do we have the <sys/sockio.h> header file?
459 /* #undef HAVE_SYS_SOCKIO_H */
463 * Does the sockaddr structure contain an sa_len parameter?
466 /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
470 * Do we have the AIX usersec.h header file?
473 /* #undef HAVE_USERSEC_H */
477 * Do we have pthread support?
480 /* #undef HAVE_PTHREAD_H */
484 * Do we have launchd support?
487 /* #undef HAVE_LAUNCH_H */
488 /* #undef HAVE_LAUNCHD */
489 #define CUPS_DEFAULT_LAUNCHD_CONF ""
493 * Various scripting languages...
496 /* #undef HAVE_JAVA */
498 /* #undef HAVE_PERL */
500 /* #undef HAVE_PHP */
502 /* #undef HAVE_PYTHON */
503 #define CUPS_PYTHON ""
507 * Location of the poppler/Xpdf pdftops program...
510 /* #undef HAVE_PDFTOPS */
511 #define CUPS_PDFTOPS ""
515 * Location of the Ghostscript gs program...
518 /* #undef HAVE_GHOSTSCRIPT */
519 #define CUPS_GHOSTSCRIPT ""
523 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
526 /* #undef HAVE_COREFOUNDATION */
527 /* #undef HAVE_SYSTEMCONFIGURATION */
531 * Do we have CoreFoundation public and private headers?
534 /* #undef HAVE_COREFOUNDATION_H */
535 /* #undef HAVE_CFPRIV_H */
536 /* #undef HAVE_CFBUNDLEPRIV_H */
540 * Do we have MacOSX 10.4's mbr_XXX functions()?
543 /* #undef HAVE_MEMBERSHIP_H */
544 /* #undef HAVE_MEMBERSHIPPRIV_H */
545 /* #undef HAVE_MBR_UID_TO_UUID */
549 * Do we have Darwin's notify_post() header and function?
552 /* #undef HAVE_NOTIFY_H */
553 /* #undef HAVE_NOTIFY_POST */
560 /* #undef HAVE_DBUS */
561 /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
565 * Do we have the AppleTalk/at_proto.h header?
568 /* #undef HAVE_APPLETALK_AT_PROTO_H */
572 * Do we have the GSSAPI support library (for Kerberos support)?
575 /* #undef HAVE_GSSAPI */
576 /* #undef HAVE_GSSAPI_H */
577 /* #undef HAVE_GSSAPI_GSSAPI_H */
578 /* #undef HAVE_GSSAPI_GSSAPI_GENERIC_H */
579 /* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */
580 /* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */
581 /* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */
582 /* #undef HAVE_KRB5_CC_NEW_UNIQUE */
583 /* #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID */
584 /* #undef HAVE_KRB5_H */
585 /* #undef HAVE_HEIMDAL */
589 * Default GSS service name...
592 #define CUPS_DEFAULT_GSSSERVICENAME "host"
596 * Select/poll interfaces...
599 /* #undef HAVE_POLL */
600 /* #undef HAVE_EPOLL */
601 /* #undef HAVE_KQUEUE */
605 * Do we have the <dlfcn.h> header?
608 /* #undef HAVE_DLFCN_H */
612 * Do we have <sys/param.h>?
615 /* #undef HAVE_SYS_PARAM_H */
619 * Do we have <sys/ucred.h>?
622 /* #undef HAVE_SYS_UCRED_H */
626 * Do we have removefile()?
629 /* #undef HAVE_REMOVEFILE */
633 * Do we have <sandbox.h>?
636 /* #undef HAVE_SANDBOX_H */
640 * Which random number generator function to use...
643 /* #undef HAVE_ARC4RANDOM */
644 /* #undef HAVE_RANDOM */
645 /* #undef HAVE_LRAND48 */
647 #ifdef HAVE_ARC4RANDOM
648 # define CUPS_RAND() arc4random()
649 # define CUPS_SRAND(v) arc4random_stir()
650 #elif defined(HAVE_RANDOM)
651 # define CUPS_RAND() random()
652 # define CUPS_SRAND(v) srandom(v)
653 #elif defined(HAVE_LRAND48)
654 # define CUPS_RAND() lrand48()
655 # define CUPS_SRAND(v) srand48(v)
657 # define CUPS_RAND() rand()
658 # define CUPS_SRAND(v) srand(v)
659 #endif /* HAVE_ARC4RANDOM */
663 * Do we have vproc_transaction_begin/end?
666 /* #undef HAVE_VPROC_TRANSACTION_BEGIN */
673 /* #undef HAVE_USB_H */
677 * Do we have libwrap and tcpd.h?
680 /* #undef HAVE_TCPD_H */
683 #endif /* !_CUPS_CONFIG_H_ */
686 * End of "$Id: config.h 6649 2007-07-11 21:46:42Z mike $".