]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
bc44d920 | 2 | * "$Id: config.h 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | * |
eac3a0a0 | 4 | * Configuration file for CUPS on Windows. |
ef416fc2 | 5 | * |
82cc1f9a | 6 | * Copyright 2007-2012 by Apple Inc. |
536bc2c6 | 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 | ||
536bc2c6 MS |
19 | /* |
20 | * Include necessary headers... | |
21 | */ | |
22 | ||
23 | #include <stdio.h> | |
24 | #include <stdlib.h> | |
25 | #include <string.h> | |
26 | #include <stdarg.h> | |
536bc2c6 | 27 | #include <io.h> |
7cf5915e | 28 | #include <direct.h> |
536bc2c6 MS |
29 | |
30 | ||
31 | /* | |
7a0cbd5e | 32 | * Microsoft renames the POSIX functions to _name, and introduces |
536bc2c6 MS |
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 | |
7cf5915e | 45 | #define mkdir(d,p) _mkdir(d) |
536bc2c6 MS |
46 | #define open _open |
47 | #define read _read | |
7cf5915e | 48 | #define rmdir _rmdir |
536bc2c6 MS |
49 | #define snprintf _snprintf |
50 | #define strdup _strdup | |
51 | #define unlink _unlink | |
52 | #define vsnprintf _vsnprintf | |
53 | #define write _write | |
54 | ||
55 | ||
5180a04c MS |
56 | /* |
57 | * Map the POSIX sleep() and usleep() functions to the Win32 Sleep() function... | |
58 | */ | |
59 | ||
60 | #define sleep(X) Sleep(1000 * (X)) | |
61 | #define usleep(X) Sleep((X)/1000) | |
62 | ||
63 | ||
6d2f911b MS |
64 | /* |
65 | * Map various parameters to Posix style system calls | |
66 | */ | |
67 | ||
68 | # define F_OK 00 | |
69 | # define W_OK 02 | |
70 | # define R_OK 04 | |
71 | # define O_RDONLY _O_RDONLY | |
72 | # define O_WRONLY _O_WRONLY | |
73 | # define O_CREATE _O_CREAT | |
74 | # define O_TRUNC _O_TRUNC | |
75 | ||
76 | ||
ef416fc2 | 77 | /* |
78 | * Compiler stuff... | |
79 | */ | |
80 | ||
81 | #undef const | |
82 | #undef __CHAR_UNSIGNED__ | |
83 | ||
84 | ||
85 | /* | |
86 | * Version of software... | |
87 | */ | |
88 | ||
82cc1f9a MS |
89 | #define CUPS_SVERSION "CUPS v1.6.0" |
90 | #define CUPS_MINIMAL "CUPS/1.6.0" | |
ef416fc2 | 91 | |
92 | ||
93 | /* | |
536bc2c6 | 94 | * Default user and groups... |
ef416fc2 | 95 | */ |
96 | ||
6d2f911b MS |
97 | #define CUPS_DEFAULT_USER "" |
98 | #define CUPS_DEFAULT_GROUP "" | |
99 | #define CUPS_DEFAULT_SYSTEM_GROUPS "" | |
100 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "" | |
536bc2c6 MS |
101 | |
102 | ||
103 | /* | |
104 | * Default file permissions... | |
105 | */ | |
106 | ||
107 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644 | |
108 | #define CUPS_DEFAULT_LOG_FILE_PERM 0644 | |
109 | ||
110 | ||
111 | /* | |
112 | * Default logging settings... | |
113 | */ | |
114 | ||
115 | #define CUPS_DEFAULT_LOG_LEVEL "warn" | |
116 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions" | |
117 | ||
118 | ||
119 | /* | |
120 | * Default fatal error settings... | |
121 | */ | |
122 | ||
123 | #define CUPS_DEFAULT_FATAL_ERRORS "config" | |
124 | ||
125 | ||
126 | /* | |
127 | * Default browsing settings... | |
128 | */ | |
129 | ||
130 | #define CUPS_DEFAULT_BROWSING 1 | |
131 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS dnssd" | |
132 | #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "" | |
133 | #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1 | |
134 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
135 | #define CUPS_DEFAULT_IMPLICIT_CLASSES 1 | |
136 | #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0 | |
ef416fc2 | 137 | |
138 | ||
139 | /* | |
140 | * Default IPP port... | |
141 | */ | |
142 | ||
536bc2c6 MS |
143 | #define CUPS_DEFAULT_IPP_PORT 631 |
144 | ||
145 | ||
146 | /* | |
147 | * Default printcap file... | |
148 | */ | |
149 | ||
150 | #define CUPS_DEFAULT_PRINTCAP "" | |
ef416fc2 | 151 | |
152 | ||
153 | /* | |
536bc2c6 | 154 | * Default Samba and LPD config files... |
ef416fc2 | 155 | */ |
156 | ||
536bc2c6 MS |
157 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "" |
158 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "" | |
159 | ||
160 | ||
161 | /* | |
162 | * Default MaxCopies value... | |
163 | */ | |
164 | ||
165 | #define CUPS_DEFAULT_MAX_COPIES 9999 | |
ef416fc2 | 166 | |
167 | ||
168 | /* | |
169 | * Do we have domain socket support? | |
170 | */ | |
171 | ||
172 | #undef CUPS_DEFAULT_DOMAINSOCKET | |
173 | ||
174 | ||
175 | /* | |
176 | * Where are files stored? | |
177 | * | |
178 | * Note: These are defaults, which can be overridden by environment | |
179 | * variables at run-time... | |
180 | */ | |
181 | ||
536bc2c6 MS |
182 | #define CUPS_BINDIR "C:/CUPS/bin" |
183 | #define CUPS_CACHEDIR "C:/CUPS/cache" | |
184 | #define CUPS_DATADIR "C:/CUPS/share" | |
185 | #define CUPS_DOCROOT "C:/CUPS/share/doc" | |
186 | #define CUPS_FONTPATH "C:/CUPS/share/fonts" | |
187 | #define CUPS_LOCALEDIR "C:/CUPS/locale" | |
188 | #define CUPS_LOGDIR "C:/CUPS/logs" | |
189 | #define CUPS_REQUESTS "C:/CUPS/spool" | |
190 | #define CUPS_SBINDIR "C:/CUPS/sbin" | |
191 | #define CUPS_SERVERBIN "C:/CUPS/lib" | |
192 | #define CUPS_SERVERROOT "C:/CUPS/etc" | |
193 | #define CUPS_STATEDIR "C:/CUPS/run" | |
ef416fc2 | 194 | |
195 | ||
196 | /* | |
197 | * Do we have various image libraries? | |
198 | */ | |
199 | ||
536bc2c6 MS |
200 | /* #undef HAVE_LIBPNG */ |
201 | /* #undef HAVE_LIBZ */ | |
202 | /* #undef HAVE_LIBJPEG */ | |
203 | /* #undef HAVE_LIBTIFF */ | |
ef416fc2 | 204 | |
205 | ||
206 | /* | |
207 | * Do we have PAM stuff? | |
208 | */ | |
209 | ||
210 | #ifndef HAVE_LIBPAM | |
211 | #define HAVE_LIBPAM 0 | |
212 | #endif /* !HAVE_LIBPAM */ | |
213 | ||
536bc2c6 MS |
214 | /* #undef HAVE_PAM_PAM_APPL_H */ |
215 | /* #undef HAVE_PAM_SET_ITEM */ | |
216 | /* #undef HAVE_PAM_SETCRED */ | |
ef416fc2 | 217 | |
218 | ||
219 | /* | |
220 | * Do we have <shadow.h>? | |
221 | */ | |
222 | ||
536bc2c6 | 223 | /* #undef HAVE_SHADOW_H */ |
ef416fc2 | 224 | |
225 | ||
226 | /* | |
227 | * Do we have <crypt.h>? | |
228 | */ | |
229 | ||
536bc2c6 | 230 | /* #undef HAVE_CRYPT_H */ |
ef416fc2 | 231 | |
232 | ||
f8b3a85b MS |
233 | /* |
234 | * Do we have <scsi/sg.h>? | |
235 | */ | |
236 | ||
237 | /* #undef HAVE_SCSI_SG_H */ | |
238 | ||
239 | ||
ef416fc2 | 240 | /* |
241 | * Use <string.h>, <strings.h>, and/or <bstring.h>? | |
242 | */ | |
243 | ||
536bc2c6 MS |
244 | #define HAVE_STRING_H 1 |
245 | /* #undef HAVE_STRINGS_H */ | |
246 | /* #undef HAVE_BSTRING_H */ | |
ef416fc2 | 247 | |
248 | ||
249 | /* | |
250 | * Do we have the long long type? | |
251 | */ | |
252 | ||
536bc2c6 | 253 | /* #undef HAVE_LONG_LONG */ |
ef416fc2 | 254 | |
255 | #ifdef HAVE_LONG_LONG | |
256 | # define CUPS_LLFMT "%lld" | |
257 | # define CUPS_LLCAST (long long) | |
258 | #else | |
259 | # define CUPS_LLFMT "%ld" | |
260 | # define CUPS_LLCAST (long) | |
261 | #endif /* HAVE_LONG_LONG */ | |
262 | ||
263 | ||
264 | /* | |
265 | * Do we have the strtoll() function? | |
266 | */ | |
267 | ||
536bc2c6 | 268 | /* #undef HAVE_STRTOLL */ |
ef416fc2 | 269 | |
270 | #ifndef HAVE_STRTOLL | |
271 | # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) | |
272 | #endif /* !HAVE_STRTOLL */ | |
273 | ||
274 | ||
275 | /* | |
276 | * Do we have the strXXX() functions? | |
277 | */ | |
278 | ||
6d2f911b | 279 | #define HAVE_STRDUP 1 |
536bc2c6 MS |
280 | /* #undef HAVE_STRLCAT */ |
281 | /* #undef HAVE_STRLCPY */ | |
ef416fc2 | 282 | |
283 | ||
284 | /* | |
285 | * Do we have the geteuid() function? | |
286 | */ | |
287 | ||
536bc2c6 | 288 | /* #undef HAVE_GETEUID */ |
ef416fc2 | 289 | |
290 | ||
88f9aafc MS |
291 | /* |
292 | * Do we have the setpgid() function? | |
293 | */ | |
294 | ||
295 | /* #undef HAVE_SETPGID */ | |
296 | ||
297 | ||
ef416fc2 | 298 | /* |
299 | * Do we have the vsyslog() function? | |
300 | */ | |
301 | ||
536bc2c6 | 302 | /* #undef HAVE_VSYSLOG */ |
ef416fc2 | 303 | |
304 | ||
305 | /* | |
306 | * Do we have the (v)snprintf() functions? | |
307 | */ | |
308 | ||
536bc2c6 MS |
309 | #define HAVE_SNPRINTF 1 |
310 | #define HAVE_VSNPRINTF 1 | |
ef416fc2 | 311 | |
312 | ||
313 | /* | |
314 | * What signal functions to use? | |
315 | */ | |
316 | ||
536bc2c6 MS |
317 | /* #undef HAVE_SIGSET */ |
318 | /* #undef HAVE_SIGACTION */ | |
ef416fc2 | 319 | |
320 | ||
321 | /* | |
322 | * What wait functions to use? | |
323 | */ | |
324 | ||
536bc2c6 MS |
325 | /* #undef HAVE_WAITPID */ |
326 | /* #undef HAVE_WAIT3 */ | |
ef416fc2 | 327 | |
328 | ||
329 | /* | |
330 | * Do we have the mallinfo function and malloc.h? | |
331 | */ | |
332 | ||
536bc2c6 MS |
333 | /* #undef HAVE_MALLINFO */ |
334 | /* #undef HAVE_MALLOC_H */ | |
335 | ||
336 | ||
337 | /* | |
338 | * Do we have the POSIX ACL functions? | |
339 | */ | |
340 | ||
341 | /* #undef HAVE_ACL_INIT */ | |
ef416fc2 | 342 | |
343 | ||
344 | /* | |
345 | * Do we have the langinfo.h header file? | |
346 | */ | |
347 | ||
536bc2c6 | 348 | /* #undef HAVE_LANGINFO_H */ |
ef416fc2 | 349 | |
350 | ||
351 | /* | |
352 | * Which encryption libraries do we have? | |
353 | */ | |
354 | ||
536bc2c6 MS |
355 | /* #undef HAVE_CDSASSL */ |
356 | /* #undef HAVE_GNUTLS */ | |
357 | /* #undef HAVE_LIBSSL */ | |
cc754834 MS |
358 | #define HAVE_SSPISSL |
359 | #define HAVE_SSL | |
536bc2c6 MS |
360 | |
361 | ||
362 | /* | |
363 | * What Security framework headers do we have? | |
364 | */ | |
365 | ||
366 | /* #undef HAVE_AUTHORIZATION_H */ | |
367 | /* #undef HAVE_SECPOLICY_H */ | |
368 | /* #undef HAVE_SECPOLICYPRIV_H */ | |
369 | /* #undef HAVE_SECBASEPRIV_H */ | |
370 | /* #undef HAVE_SECIDENTITYSEARCHPRIV_H */ | |
371 | ||
372 | ||
373 | /* | |
374 | * Do we have the SecIdentitySearchCreateWithPolicy function? | |
375 | */ | |
376 | ||
377 | /* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */ | |
378 | ||
379 | ||
eac3a0a0 MS |
380 | /* |
381 | * Do we have the SecPolicyCreateSSL function? | |
382 | */ | |
383 | ||
384 | /* #undef HAVE_SECPOLICYCREATESSL */ | |
385 | ||
386 | ||
387 | /* | |
388 | * Do we have the SecPolicyCreateSSL function? | |
389 | */ | |
390 | ||
391 | /* #undef HAVE_SECPOLICYCREATESSL */ | |
392 | ||
393 | ||
394 | /* | |
395 | * Do we have the cssmErrorString function? | |
396 | */ | |
397 | ||
398 | /* #undef HAVE_CSSMERRORSTRING */ | |
399 | ||
400 | ||
536bc2c6 MS |
401 | /* |
402 | * Do we have the SLP library? | |
403 | */ | |
404 | ||
405 | /* #undef HAVE_LIBSLP */ | |
ef416fc2 | 406 | |
407 | ||
408 | /* | |
536bc2c6 | 409 | * Do we have an LDAP library? |
ef416fc2 | 410 | */ |
411 | ||
536bc2c6 MS |
412 | /* #undef HAVE_LDAP */ |
413 | /* #undef HAVE_OPENLDAP */ | |
414 | /* #undef HAVE_MOZILLA_LDAP */ | |
415 | /* #undef HAVE_LDAP_SSL_H */ | |
416 | /* #undef HAVE_LDAP_SSL */ | |
417 | /* #undef HAVE_LDAP_REBIND_PROC */ | |
ef416fc2 | 418 | |
419 | ||
420 | /* | |
421 | * Do we have libpaper? | |
422 | */ | |
423 | ||
536bc2c6 MS |
424 | /* #undef HAVE_LIBPAPER */ |
425 | ||
426 | ||
427 | /* | |
428 | * Do we have DNS Service Discovery (aka Bonjour)? | |
429 | */ | |
430 | ||
6d2f911b | 431 | #define HAVE_DNSSD 1 |
536bc2c6 MS |
432 | |
433 | ||
eac3a0a0 MS |
434 | /* |
435 | * Does the "stat" structure contain the "st_gen" member? | |
436 | */ | |
437 | ||
438 | /* #undef HAVE_ST_GEN */ | |
439 | ||
440 | ||
ef416fc2 | 441 | /* |
442 | * Do we have <sys/ioctl.h>? | |
443 | */ | |
444 | ||
536bc2c6 | 445 | /* #undef HAVE_SYS_IOCTL_H */ |
ef416fc2 | 446 | |
447 | ||
ef416fc2 | 448 | /* |
449 | * Does the "tm" structure contain the "tm_gmtoff" member? | |
450 | */ | |
451 | ||
536bc2c6 | 452 | /* #undef HAVE_TM_GMTOFF */ |
ef416fc2 | 453 | |
454 | ||
455 | /* | |
456 | * Do we have rresvport_af()? | |
457 | */ | |
458 | ||
536bc2c6 | 459 | /* #undef HAVE_RRESVPORT_AF */ |
ef416fc2 | 460 | |
461 | ||
462 | /* | |
463 | * Do we have getaddrinfo()? | |
464 | */ | |
465 | ||
536bc2c6 | 466 | #define HAVE_GETADDRINFO 1 |
ef416fc2 | 467 | |
468 | ||
469 | /* | |
470 | * Do we have getnameinfo()? | |
471 | */ | |
472 | ||
536bc2c6 | 473 | #define HAVE_GETNAMEINFO 1 |
ef416fc2 | 474 | |
475 | ||
476 | /* | |
477 | * Do we have getifaddrs()? | |
478 | */ | |
479 | ||
536bc2c6 | 480 | /* #undef HAVE_GETIFADDRS */ |
ef416fc2 | 481 | |
482 | ||
483 | /* | |
484 | * Do we have hstrerror()? | |
485 | */ | |
486 | ||
536bc2c6 MS |
487 | /* #undef HAVE_HSTRERROR */ |
488 | ||
489 | ||
490 | /* | |
491 | * Do we have res_init()? | |
492 | */ | |
493 | ||
494 | /* #undef HAVE_RES_INIT */ | |
495 | ||
496 | ||
497 | /* | |
498 | * Do we have <resolv.h> | |
499 | */ | |
500 | ||
501 | /* #undef HAVE_RESOLV_H */ | |
ef416fc2 | 502 | |
503 | ||
504 | /* | |
505 | * Do we have the <sys/sockio.h> header file? | |
506 | */ | |
507 | ||
536bc2c6 | 508 | /* #undef HAVE_SYS_SOCKIO_H */ |
ef416fc2 | 509 | |
510 | ||
511 | /* | |
512 | * Does the sockaddr structure contain an sa_len parameter? | |
513 | */ | |
514 | ||
536bc2c6 | 515 | /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */ |
ef416fc2 | 516 | |
517 | ||
518 | /* | |
519 | * Do we have the AIX usersec.h header file? | |
520 | */ | |
521 | ||
536bc2c6 MS |
522 | /* #undef HAVE_USERSEC_H */ |
523 | ||
ef416fc2 | 524 | |
525 | /* | |
526 | * Do we have pthread support? | |
527 | */ | |
528 | ||
536bc2c6 MS |
529 | /* #undef HAVE_PTHREAD_H */ |
530 | ||
531 | ||
532 | /* | |
533 | * Do we have launchd support? | |
534 | */ | |
535 | ||
536 | /* #undef HAVE_LAUNCH_H */ | |
537 | /* #undef HAVE_LAUNCHD */ | |
ef416fc2 | 538 | |
539 | ||
540 | /* | |
541 | * Various scripting languages... | |
542 | */ | |
543 | ||
536bc2c6 MS |
544 | /* #undef HAVE_JAVA */ |
545 | #define CUPS_JAVA "" | |
546 | /* #undef HAVE_PERL */ | |
547 | #define CUPS_PERL "" | |
548 | /* #undef HAVE_PHP */ | |
549 | #define CUPS_PHP "" | |
550 | /* #undef HAVE_PYTHON */ | |
551 | #define CUPS_PYTHON "" | |
552 | ||
553 | ||
554 | /* | |
555 | * Location of the poppler/Xpdf pdftops program... | |
556 | */ | |
557 | ||
558 | /* #undef HAVE_PDFTOPS */ | |
559 | #define CUPS_PDFTOPS "" | |
560 | ||
561 | ||
562 | /* | |
563 | * Location of the Ghostscript gs program... | |
564 | */ | |
565 | ||
566 | /* #undef HAVE_GHOSTSCRIPT */ | |
567 | #define CUPS_GHOSTSCRIPT "" | |
568 | ||
569 | ||
570 | /* | |
571 | * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks? | |
572 | */ | |
573 | ||
574 | /* #undef HAVE_COREFOUNDATION */ | |
575 | /* #undef HAVE_SYSTEMCONFIGURATION */ | |
576 | ||
577 | ||
578 | /* | |
579 | * Do we have CoreFoundation public and private headers? | |
580 | */ | |
581 | ||
582 | /* #undef HAVE_COREFOUNDATION_H */ | |
583 | /* #undef HAVE_CFPRIV_H */ | |
584 | /* #undef HAVE_CFBUNDLEPRIV_H */ | |
585 | ||
586 | ||
6d2f911b MS |
587 | /* |
588 | * Do we have ApplicationServices public headers? | |
589 | */ | |
590 | ||
591 | /* #undef HAVE_APPLICATIONSERVICES_H */ | |
592 | ||
593 | ||
594 | /* | |
595 | * Do we have the SCDynamicStoreCopyComputerName function? | |
596 | */ | |
597 | ||
598 | /* #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME */ | |
599 | ||
600 | ||
536bc2c6 | 601 | /* |
f3c17241 | 602 | * Do we have OS X 10.4's mbr_XXX functions? |
536bc2c6 MS |
603 | */ |
604 | ||
605 | /* #undef HAVE_MEMBERSHIP_H */ | |
606 | /* #undef HAVE_MEMBERSHIPPRIV_H */ | |
607 | /* #undef HAVE_MBR_UID_TO_UUID */ | |
608 | ||
609 | ||
610 | /* | |
eac3a0a0 | 611 | * Do we have Darwin's notify_post header and function? |
536bc2c6 MS |
612 | */ |
613 | ||
614 | /* #undef HAVE_NOTIFY_H */ | |
615 | /* #undef HAVE_NOTIFY_POST */ | |
616 | ||
617 | ||
618 | /* | |
eac3a0a0 | 619 | * Do we have Darwin's IOKit private headers? |
536bc2c6 MS |
620 | */ |
621 | ||
eac3a0a0 | 622 | /* #undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H */ |
536bc2c6 MS |
623 | |
624 | ||
625 | /* | |
eac3a0a0 | 626 | * Do we have DBUS? |
536bc2c6 MS |
627 | */ |
628 | ||
eac3a0a0 MS |
629 | /* #undef HAVE_DBUS */ |
630 | /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */ | |
536bc2c6 MS |
631 | |
632 | ||
633 | /* | |
634 | * Do we have the GSSAPI support library (for Kerberos support)? | |
635 | */ | |
636 | ||
eac3a0a0 MS |
637 | /* #undef HAVE_GSS_ACQUIRE_CRED_EX_F */ |
638 | /* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */ | |
639 | /* #undef HAVE_GSS_GSSAPI_H */ | |
640 | /* #undef HAVE_GSS_GSSAPI_SPI_H */ | |
536bc2c6 | 641 | /* #undef HAVE_GSSAPI */ |
eac3a0a0 | 642 | /* #undef HAVE_GSSAPI_GENERIC_H */ |
536bc2c6 | 643 | /* #undef HAVE_GSSAPI_GSSAPI_H */ |
eac3a0a0 MS |
644 | /* #undef HAVE_GSSAPI_H */ |
645 | /* #undef HAVE_GSSAPI_KRB5_H */ | |
536bc2c6 | 646 | /* #undef HAVE_KRB5_H */ |
536bc2c6 MS |
647 | |
648 | ||
649 | /* | |
650 | * Default GSS service name... | |
651 | */ | |
652 | ||
f8b3a85b | 653 | #define CUPS_DEFAULT_GSSSERVICENAME "host" |
536bc2c6 MS |
654 | |
655 | ||
656 | /* | |
657 | * Select/poll interfaces... | |
658 | */ | |
659 | ||
660 | /* #undef HAVE_POLL */ | |
661 | /* #undef HAVE_EPOLL */ | |
662 | /* #undef HAVE_KQUEUE */ | |
663 | ||
664 | ||
665 | /* | |
666 | * Do we have the <dlfcn.h> header? | |
667 | */ | |
668 | ||
669 | /* #undef HAVE_DLFCN_H */ | |
670 | ||
671 | ||
672 | /* | |
673 | * Do we have <sys/param.h>? | |
674 | */ | |
675 | ||
676 | /* #undef HAVE_SYS_PARAM_H */ | |
677 | ||
678 | ||
679 | /* | |
680 | * Do we have <sys/ucred.h>? | |
681 | */ | |
682 | ||
683 | /* #undef HAVE_SYS_UCRED_H */ | |
684 | ||
685 | ||
686 | /* | |
687 | * Do we have removefile()? | |
688 | */ | |
689 | ||
690 | /* #undef HAVE_REMOVEFILE */ | |
691 | ||
692 | ||
693 | /* | |
694 | * Do we have <sandbox.h>? | |
695 | */ | |
696 | ||
697 | /* #undef HAVE_SANDBOX_H */ | |
698 | ||
699 | ||
700 | /* | |
701 | * Which random number generator function to use... | |
702 | */ | |
703 | ||
f8b3a85b | 704 | /* #undef HAVE_ARC4RANDOM */ |
536bc2c6 | 705 | /* #undef HAVE_RANDOM */ |
536bc2c6 MS |
706 | /* #undef HAVE_LRAND48 */ |
707 | ||
f8b3a85b MS |
708 | #ifdef HAVE_ARC4RANDOM |
709 | # define CUPS_RAND() arc4random() | |
710 | # define CUPS_SRAND(v) arc4random_stir() | |
711 | #elif defined(HAVE_RANDOM) | |
712 | # define CUPS_RAND() random() | |
713 | # define CUPS_SRAND(v) srandom(v) | |
714 | #elif defined(HAVE_LRAND48) | |
715 | # define CUPS_RAND() lrand48() | |
716 | # define CUPS_SRAND(v) srand48(v) | |
717 | #else | |
718 | # define CUPS_RAND() rand() | |
719 | # define CUPS_SRAND(v) srand(v) | |
720 | #endif /* HAVE_ARC4RANDOM */ | |
721 | ||
536bc2c6 MS |
722 | |
723 | /* | |
724 | * Do we have vproc_transaction_begin/end? | |
725 | */ | |
726 | ||
727 | /* #undef HAVE_VPROC_TRANSACTION_BEGIN */ | |
728 | ||
729 | ||
730 | /* | |
731 | * Do we have libusb? | |
732 | */ | |
733 | ||
734 | /* #undef HAVE_USB_H */ | |
735 | ||
736 | ||
737 | /* | |
738 | * Do we have libwrap and tcpd.h? | |
739 | */ | |
740 | ||
741 | /* #undef HAVE_TCPD_H */ | |
ef416fc2 | 742 | |
743 | ||
eac3a0a0 MS |
744 | /* |
745 | * Do we have <iconv.h>? | |
746 | */ | |
747 | ||
748 | /* #undef HAVE_ICONV_H */ | |
749 | ||
750 | ||
751 | /* | |
752 | * Do we have statfs or statvfs and one of the corresponding headers? | |
753 | */ | |
754 | ||
755 | /* #undef HAVE_STATFS */ | |
756 | /* #undef HAVE_STATVFS */ | |
757 | /* #undef HAVE_SYS_MOUNT_H */ | |
758 | /* #undef HAVE_SYS_STATFS_H */ | |
759 | /* #undef HAVE_SYS_STATVFS_H */ | |
760 | /* #undef HAVE_SYS_VFS_H */ | |
761 | ||
762 | ||
763 | /* | |
f3c17241 | 764 | * Location of OS X localization bundle, if any. |
eac3a0a0 MS |
765 | */ |
766 | ||
767 | /* #undef CUPS_BUNDLEDIR */ | |
768 | ||
769 | ||
770 | /* | |
771 | * Do we have the ColorSyncRegisterDevice function? | |
772 | */ | |
773 | ||
774 | /* #undef HAVE_COLORSYNCREGISTERDEVICE */ | |
775 | ||
776 | ||
777 | /* | |
778 | * Do we have XPC? | |
779 | */ | |
780 | ||
781 | /* #undef HAVE_XPC */ | |
782 | ||
783 | ||
ef416fc2 | 784 | #endif /* !_CUPS_CONFIG_H_ */ |
785 | ||
786 | /* | |
bc44d920 | 787 | * End of "$Id: config.h 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 788 | */ |