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