]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
5a1d7a17 | 2 | * Configuration file for CUPS. |
ef416fc2 | 3 | * |
3f7aa006 | 4 | * Copyright 2007-2017 by Apple Inc. |
5a1d7a17 | 5 | * Copyright 1997-2007 by Easy Software Products. |
ef416fc2 | 6 | * |
e3101897 | 7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ef416fc2 | 8 | */ |
9 | ||
10 | #ifndef _CUPS_CONFIG_H_ | |
11 | #define _CUPS_CONFIG_H_ | |
12 | ||
13 | /* | |
14 | * Version of software... | |
15 | */ | |
16 | ||
17 | #define CUPS_SVERSION "" | |
18 | #define CUPS_MINIMAL "" | |
19 | ||
20 | ||
21 | /* | |
09ec0018 | 22 | * Default user and groups... |
ef416fc2 | 23 | */ |
24 | ||
25 | #define CUPS_DEFAULT_USER "lp" | |
26 | #define CUPS_DEFAULT_GROUP "sys" | |
09ec0018 | 27 | #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system" |
b9faaae1 | 28 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM" |
6961465f | 29 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin" |
09ec0018 | 30 | |
31 | ||
32 | /* | |
33 | * Default file permissions... | |
34 | */ | |
35 | ||
36 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640 | |
37 | #define CUPS_DEFAULT_LOG_FILE_PERM 0644 | |
38 | ||
39 | ||
1f0275e3 MS |
40 | /* |
41 | * Default logging settings... | |
42 | */ | |
43 | ||
44 | #define CUPS_DEFAULT_LOG_LEVEL "warn" | |
45 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions" | |
46 | ||
47 | ||
49d87452 MS |
48 | /* |
49 | * Default fatal error settings... | |
50 | */ | |
51 | ||
52 | #define CUPS_DEFAULT_FATAL_ERRORS "config" | |
53 | ||
54 | ||
09ec0018 | 55 | /* |
56 | * Default browsing settings... | |
57 | */ | |
58 | ||
59 | #define CUPS_DEFAULT_BROWSING 1 | |
a2326b5b | 60 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "" |
09ec0018 | 61 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 |
ef416fc2 | 62 | |
63 | ||
64 | /* | |
65 | * Default IPP port... | |
66 | */ | |
67 | ||
68 | #define CUPS_DEFAULT_IPP_PORT 631 | |
69 | ||
70 | ||
e53920b9 | 71 | /* |
72 | * Default printcap file... | |
73 | */ | |
74 | ||
75 | #define CUPS_DEFAULT_PRINTCAP "/etc/printcap" | |
76 | ||
77 | ||
2e4ff8af MS |
78 | /* |
79 | * Default Samba and LPD config files... | |
80 | */ | |
81 | ||
82 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "" | |
83 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "" | |
84 | ||
85 | ||
f7deaa1a | 86 | /* |
87 | * Default MaxCopies value... | |
88 | */ | |
89 | ||
1e564ac8 | 90 | #define CUPS_DEFAULT_MAX_COPIES 9999 |
f7deaa1a | 91 | |
92 | ||
ef416fc2 | 93 | /* |
229681c1 | 94 | * Do we have domain socket support, and if so what is the default one? |
ef416fc2 | 95 | */ |
96 | ||
97 | #undef CUPS_DEFAULT_DOMAINSOCKET | |
98 | ||
99 | ||
229681c1 MS |
100 | /* |
101 | * Default WebInterface value... | |
102 | */ | |
103 | ||
104 | #undef CUPS_DEFAULT_WEBIF | |
105 | ||
106 | ||
ef416fc2 | 107 | /* |
108 | * Where are files stored? | |
109 | * | |
110 | * Note: These are defaults, which can be overridden by environment | |
111 | * variables at run-time... | |
112 | */ | |
113 | ||
fa73b229 | 114 | #define CUPS_BINDIR "/usr/bin" |
ef416fc2 | 115 | #define CUPS_CACHEDIR "/var/cache/cups" |
116 | #define CUPS_DATADIR "/usr/share/cups" | |
117 | #define CUPS_DOCROOT "/usr/share/doc/cups" | |
118 | #define CUPS_FONTPATH "/usr/share/cups/fonts" | |
119 | #define CUPS_LOCALEDIR "/usr/share/locale" | |
120 | #define CUPS_LOGDIR "/var/logs/cups" | |
121 | #define CUPS_REQUESTS "/var/spool/cups" | |
fa73b229 | 122 | #define CUPS_SBINDIR "/usr/sbin" |
ef416fc2 | 123 | #define CUPS_SERVERBIN "/usr/lib/cups" |
124 | #define CUPS_SERVERROOT "/etc/cups" | |
125 | #define CUPS_STATEDIR "/var/run/cups" | |
126 | ||
127 | ||
c82f05ea MS |
128 | /* |
129 | * Do we have posix_spawn? | |
130 | */ | |
131 | ||
132 | #undef HAVE_POSIX_SPAWN | |
133 | ||
134 | ||
ef416fc2 | 135 | /* |
0cb67df3 | 136 | * Do we have ZLIB? |
ef416fc2 | 137 | */ |
138 | ||
ef416fc2 | 139 | #undef HAVE_LIBZ |
db8b865d | 140 | #undef HAVE_INFLATECOPY |
ef416fc2 | 141 | |
142 | ||
143 | /* | |
144 | * Do we have PAM stuff? | |
145 | */ | |
146 | ||
ef416fc2 | 147 | #define HAVE_LIBPAM 0 |
ef416fc2 | 148 | #undef HAVE_PAM_PAM_APPL_H |
a4924f6c | 149 | #undef HAVE_PAM_SET_ITEM |
ee571f26 | 150 | #undef HAVE_PAM_SETCRED |
ef416fc2 | 151 | |
152 | ||
153 | /* | |
154 | * Do we have <shadow.h>? | |
155 | */ | |
156 | ||
157 | #undef HAVE_SHADOW_H | |
158 | ||
159 | ||
160 | /* | |
161 | * Do we have <crypt.h>? | |
162 | */ | |
163 | ||
164 | #undef HAVE_CRYPT_H | |
165 | ||
166 | ||
5a9febac MS |
167 | /* |
168 | * Use <stdint.h>? | |
169 | */ | |
170 | ||
171 | #undef HAVE_STDINT_H | |
172 | ||
173 | ||
ef416fc2 | 174 | /* |
175 | * Use <string.h>, <strings.h>, and/or <bstring.h>? | |
176 | */ | |
177 | ||
178 | #undef HAVE_STRING_H | |
179 | #undef HAVE_STRINGS_H | |
180 | #undef HAVE_BSTRING_H | |
181 | ||
eac3a0a0 | 182 | |
ef416fc2 | 183 | /* |
184 | * Do we have the long long type? | |
185 | */ | |
186 | ||
187 | #undef HAVE_LONG_LONG | |
188 | ||
189 | #ifdef HAVE_LONG_LONG | |
190 | # define CUPS_LLFMT "%lld" | |
191 | # define CUPS_LLCAST (long long) | |
192 | #else | |
193 | # define CUPS_LLFMT "%ld" | |
194 | # define CUPS_LLCAST (long) | |
195 | #endif /* HAVE_LONG_LONG */ | |
196 | ||
eac3a0a0 | 197 | |
ef416fc2 | 198 | /* |
199 | * Do we have the strtoll() function? | |
200 | */ | |
201 | ||
202 | #undef HAVE_STRTOLL | |
203 | ||
204 | #ifndef HAVE_STRTOLL | |
205 | # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) | |
206 | #endif /* !HAVE_STRTOLL */ | |
207 | ||
eac3a0a0 | 208 | |
ef416fc2 | 209 | /* |
210 | * Do we have the strXXX() functions? | |
211 | */ | |
212 | ||
213 | #undef HAVE_STRDUP | |
ef416fc2 | 214 | #undef HAVE_STRLCAT |
215 | #undef HAVE_STRLCPY | |
216 | ||
217 | ||
218 | /* | |
219 | * Do we have the geteuid() function? | |
220 | */ | |
221 | ||
222 | #undef HAVE_GETEUID | |
223 | ||
224 | ||
88f9aafc MS |
225 | /* |
226 | * Do we have the setpgid() function? | |
227 | */ | |
228 | ||
229 | #undef HAVE_SETPGID | |
230 | ||
231 | ||
ef416fc2 | 232 | /* |
233 | * Do we have the vsyslog() function? | |
234 | */ | |
235 | ||
236 | #undef HAVE_VSYSLOG | |
237 | ||
238 | ||
0dc4a6bf MS |
239 | /* |
240 | * Do we have the systemd journal functions? | |
241 | */ | |
242 | ||
243 | #undef HAVE_SYSTEMD_SD_JOURNAL_H | |
244 | ||
245 | ||
ef416fc2 | 246 | /* |
247 | * Do we have the (v)snprintf() functions? | |
248 | */ | |
249 | ||
250 | #undef HAVE_SNPRINTF | |
251 | #undef HAVE_VSNPRINTF | |
252 | ||
253 | ||
254 | /* | |
255 | * What signal functions to use? | |
256 | */ | |
257 | ||
258 | #undef HAVE_SIGSET | |
259 | #undef HAVE_SIGACTION | |
260 | ||
261 | ||
262 | /* | |
263 | * What wait functions to use? | |
264 | */ | |
265 | ||
266 | #undef HAVE_WAITPID | |
267 | #undef HAVE_WAIT3 | |
268 | ||
269 | ||
270 | /* | |
271 | * Do we have the mallinfo function and malloc.h? | |
272 | */ | |
273 | ||
274 | #undef HAVE_MALLINFO | |
275 | #undef HAVE_MALLOC_H | |
276 | ||
277 | ||
fa73b229 | 278 | /* |
279 | * Do we have the POSIX ACL functions? | |
280 | */ | |
281 | ||
282 | #undef HAVE_ACL_INIT | |
283 | ||
284 | ||
ef416fc2 | 285 | /* |
286 | * Do we have the langinfo.h header file? | |
287 | */ | |
288 | ||
289 | #undef HAVE_LANGINFO_H | |
290 | ||
291 | ||
292 | /* | |
293 | * Which encryption libraries do we have? | |
294 | */ | |
295 | ||
296 | #undef HAVE_CDSASSL | |
297 | #undef HAVE_GNUTLS | |
1e564ac8 | 298 | #undef HAVE_SSPISSL |
ef416fc2 | 299 | #undef HAVE_SSL |
300 | ||
301 | ||
9483577f MS |
302 | /* |
303 | * Do we have the gnutls_transport_set_pull_timeout_function function? | |
304 | */ | |
305 | ||
306 | #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION | |
307 | ||
308 | ||
19ba6878 MS |
309 | /* |
310 | * Do we have the gnutls_priority_set_direct function? | |
311 | */ | |
312 | ||
313 | #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT | |
314 | ||
315 | ||
ed486911 | 316 | /* |
b86bc4cf | 317 | * What Security framework headers do we have? |
ed486911 | 318 | */ |
319 | ||
f7deaa1a | 320 | #undef HAVE_AUTHORIZATION_H |
eac3a0a0 | 321 | #undef HAVE_SECBASEPRIV_H |
7cf5915e | 322 | #undef HAVE_SECCERTIFICATE_H |
eac3a0a0 | 323 | #undef HAVE_SECIDENTITYSEARCHPRIV_H |
0268488e | 324 | #undef HAVE_SECITEM_H |
c7017ecc | 325 | #undef HAVE_SECITEMPRIV_H |
b86bc4cf | 326 | #undef HAVE_SECPOLICY_H |
327 | #undef HAVE_SECPOLICYPRIV_H | |
eac3a0a0 | 328 | #undef HAVE_SECURETRANSPORTPRIV_H |
b86bc4cf | 329 | |
330 | ||
7cf5915e MS |
331 | /* |
332 | * Do we have the cssmErrorString function? | |
333 | */ | |
334 | ||
335 | #undef HAVE_CSSMERRORSTRING | |
336 | ||
337 | ||
eb66bc71 MS |
338 | /* |
339 | * Do we have the SecGenerateSelfSignedCertificate function? | |
340 | */ | |
341 | ||
342 | #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE | |
343 | ||
344 | ||
345 | /* | |
346 | * Do we have the SecKeychainOpen function? | |
347 | */ | |
348 | ||
349 | #undef HAVE_SECKEYCHAINOPEN | |
350 | ||
351 | ||
ee6226a5 MS |
352 | /* |
353 | * Do we have (a working) SSLSetEnabledCiphers function? | |
354 | */ | |
355 | ||
356 | #undef HAVE_SSLSETENABLEDCIPHERS | |
357 | ||
358 | ||
ef416fc2 | 359 | /* |
360 | * Do we have libpaper? | |
361 | */ | |
362 | ||
363 | #undef HAVE_LIBPAPER | |
364 | ||
365 | ||
f7deaa1a | 366 | /* |
3e7fe0ca | 367 | * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)? |
f7deaa1a | 368 | */ |
369 | ||
370 | #undef HAVE_DNSSD | |
371 | ||
372 | ||
3e7fe0ca MS |
373 | /* |
374 | * Do we have Avahi for DNS Service Discovery (aka Bonjour)? | |
375 | */ | |
376 | ||
377 | #undef HAVE_AVAHI | |
378 | ||
379 | ||
ef416fc2 | 380 | /* |
381 | * Do we have <sys/ioctl.h>? | |
382 | */ | |
383 | ||
384 | #undef HAVE_SYS_IOCTL_H | |
385 | ||
386 | ||
c7017ecc MS |
387 | /* |
388 | * Does the "stat" structure contain the "st_gen" member? | |
389 | */ | |
390 | ||
391 | #undef HAVE_ST_GEN | |
392 | ||
393 | ||
ef416fc2 | 394 | /* |
395 | * Does the "tm" structure contain the "tm_gmtoff" member? | |
396 | */ | |
397 | ||
398 | #undef HAVE_TM_GMTOFF | |
399 | ||
400 | ||
401 | /* | |
402 | * Do we have rresvport_af()? | |
403 | */ | |
404 | ||
405 | #undef HAVE_RRESVPORT_AF | |
406 | ||
407 | ||
408 | /* | |
409 | * Do we have getaddrinfo()? | |
410 | */ | |
411 | ||
412 | #undef HAVE_GETADDRINFO | |
413 | ||
414 | ||
415 | /* | |
416 | * Do we have getnameinfo()? | |
417 | */ | |
418 | ||
419 | #undef HAVE_GETNAMEINFO | |
420 | ||
421 | ||
422 | /* | |
423 | * Do we have getifaddrs()? | |
424 | */ | |
425 | ||
426 | #undef HAVE_GETIFADDRS | |
427 | ||
428 | ||
429 | /* | |
430 | * Do we have hstrerror()? | |
431 | */ | |
432 | ||
433 | #undef HAVE_HSTRERROR | |
434 | ||
435 | ||
49d87452 MS |
436 | /* |
437 | * Do we have res_init()? | |
438 | */ | |
439 | ||
440 | #undef HAVE_RES_INIT | |
441 | ||
442 | ||
443 | /* | |
444 | * Do we have <resolv.h> | |
445 | */ | |
446 | ||
447 | #undef HAVE_RESOLV_H | |
448 | ||
449 | ||
ef416fc2 | 450 | /* |
451 | * Do we have the <sys/sockio.h> header file? | |
452 | */ | |
453 | ||
454 | #undef HAVE_SYS_SOCKIO_H | |
455 | ||
456 | ||
457 | /* | |
458 | * Does the sockaddr structure contain an sa_len parameter? | |
459 | */ | |
460 | ||
461 | #undef HAVE_STRUCT_SOCKADDR_SA_LEN | |
462 | ||
463 | ||
ef416fc2 | 464 | /* |
465 | * Do we have pthread support? | |
466 | */ | |
467 | ||
468 | #undef HAVE_PTHREAD_H | |
469 | ||
470 | ||
1166bf58 MS |
471 | /* |
472 | * Do we have on-demand support (launchd/systemd/upstart)? | |
473 | */ | |
474 | ||
475 | #undef HAVE_ONDEMAND | |
476 | ||
477 | ||
a4d04587 | 478 | /* |
479 | * Do we have launchd support? | |
480 | */ | |
481 | ||
482 | #undef HAVE_LAUNCH_H | |
483 | #undef HAVE_LAUNCHD | |
a4d04587 | 484 | |
485 | ||
1720786e MS |
486 | /* |
487 | * Do we have systemd support? | |
488 | */ | |
489 | ||
490 | #undef HAVE_SYSTEMD | |
491 | ||
1166bf58 | 492 | |
441de8b2 BN |
493 | /* |
494 | * Do we have upstart support? | |
495 | */ | |
496 | ||
497 | #undef HAVE_UPSTART | |
498 | ||
1720786e | 499 | |
fa73b229 | 500 | /* |
501 | * Do we have CoreFoundation public and private headers? | |
502 | */ | |
503 | ||
504 | #undef HAVE_COREFOUNDATION_H | |
505 | #undef HAVE_CFPRIV_H | |
506 | #undef HAVE_CFBUNDLEPRIV_H | |
507 | ||
508 | ||
6d2f911b MS |
509 | /* |
510 | * Do we have ApplicationServices public headers? | |
511 | */ | |
512 | ||
513 | #undef HAVE_APPLICATIONSERVICES_H | |
514 | ||
515 | ||
516 | /* | |
517 | * Do we have the SCDynamicStoreCopyComputerName function? | |
518 | */ | |
519 | ||
520 | #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME | |
521 | ||
522 | ||
6eb98aee MS |
523 | /* |
524 | * Do we have the getgrouplist() function? | |
525 | */ | |
526 | ||
527 | #undef HAVE_GETGROUPLIST | |
8072030b | 528 | |
6eb98aee | 529 | |
fa73b229 | 530 | /* |
8072030b | 531 | * Do we have macOS 10.4's mbr_XXX functions? |
fa73b229 | 532 | */ |
533 | ||
534 | #undef HAVE_MEMBERSHIP_H | |
7594b224 | 535 | #undef HAVE_MEMBERSHIPPRIV_H |
fa73b229 | 536 | #undef HAVE_MBR_UID_TO_UUID |
537 | ||
538 | ||
539 | /* | |
cc754834 | 540 | * Do we have Darwin's notify_post header and function? |
fa73b229 | 541 | */ |
542 | ||
543 | #undef HAVE_NOTIFY_H | |
544 | #undef HAVE_NOTIFY_POST | |
545 | ||
546 | ||
e00b005a | 547 | /* |
548 | * Do we have DBUS? | |
549 | */ | |
550 | ||
551 | #undef HAVE_DBUS | |
2abf387c | 552 | #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND |
0cf0c416 | 553 | #undef HAVE_DBUS_THREADS_INIT |
e00b005a | 554 | |
555 | ||
f7deaa1a | 556 | /* |
557 | * Do we have the GSSAPI support library (for Kerberos support)? | |
558 | */ | |
559 | ||
eac3a0a0 MS |
560 | #undef HAVE_GSS_ACQUIRE_CRED_EX_F |
561 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE | |
562 | #undef HAVE_GSS_GSSAPI_H | |
563 | #undef HAVE_GSS_GSSAPI_SPI_H | |
f7deaa1a | 564 | #undef HAVE_GSSAPI |
f7deaa1a | 565 | #undef HAVE_GSSAPI_GSSAPI_H |
eac3a0a0 | 566 | #undef HAVE_GSSAPI_H |
f7deaa1a | 567 | |
568 | ||
569 | /* | |
570 | * Default GSS service name... | |
571 | */ | |
572 | ||
573 | #define CUPS_DEFAULT_GSSSERVICENAME "" | |
574 | ||
575 | ||
576 | /* | |
577 | * Select/poll interfaces... | |
578 | */ | |
579 | ||
580 | #undef HAVE_POLL | |
581 | #undef HAVE_EPOLL | |
582 | #undef HAVE_KQUEUE | |
583 | ||
584 | ||
7594b224 | 585 | /* |
586 | * Do we have the <dlfcn.h> header? | |
587 | */ | |
588 | ||
589 | #undef HAVE_DLFCN_H | |
590 | ||
591 | ||
db1f069b MS |
592 | /* |
593 | * Do we have <sys/param.h>? | |
594 | */ | |
595 | ||
596 | #undef HAVE_SYS_PARAM_H | |
597 | ||
598 | ||
bc44d920 | 599 | /* |
600 | * Do we have <sys/ucred.h>? | |
601 | */ | |
602 | ||
603 | #undef HAVE_SYS_UCRED_H | |
604 | ||
605 | ||
cc0d019f MS |
606 | /* |
607 | * Do we have removefile()? | |
608 | */ | |
609 | ||
610 | #undef HAVE_REMOVEFILE | |
611 | ||
612 | ||
a4924f6c MS |
613 | /* |
614 | * Do we have <sandbox.h>? | |
615 | */ | |
616 | ||
617 | #undef HAVE_SANDBOX_H | |
618 | ||
619 | ||
ac884b6a MS |
620 | /* |
621 | * Which random number generator function to use... | |
622 | */ | |
623 | ||
41681883 | 624 | #undef HAVE_ARC4RANDOM |
ac884b6a | 625 | #undef HAVE_RANDOM |
ac884b6a MS |
626 | #undef HAVE_LRAND48 |
627 | ||
41681883 MS |
628 | #ifdef HAVE_ARC4RANDOM |
629 | # define CUPS_RAND() arc4random() | |
ed26f50f | 630 | # define CUPS_SRAND(v) |
41681883 MS |
631 | #elif defined(HAVE_RANDOM) |
632 | # define CUPS_RAND() random() | |
633 | # define CUPS_SRAND(v) srandom(v) | |
634 | #elif defined(HAVE_LRAND48) | |
635 | # define CUPS_RAND() lrand48() | |
636 | # define CUPS_SRAND(v) srand48(v) | |
637 | #else | |
638 | # define CUPS_RAND() rand() | |
639 | # define CUPS_SRAND(v) srand(v) | |
640 | #endif /* HAVE_ARC4RANDOM */ | |
641 | ||
ac884b6a | 642 | |
75bd9771 MS |
643 | /* |
644 | * Do we have libusb? | |
645 | */ | |
646 | ||
12f89d24 | 647 | #undef HAVE_LIBUSB |
75bd9771 MS |
648 | |
649 | ||
749b1e90 MS |
650 | /* |
651 | * Do we have libwrap and tcpd.h? | |
652 | */ | |
653 | ||
654 | #undef HAVE_TCPD_H | |
655 | ||
656 | ||
cc754834 MS |
657 | /* |
658 | * Do we have <iconv.h>? | |
659 | */ | |
660 | ||
661 | #undef HAVE_ICONV_H | |
662 | ||
663 | ||
7cf5915e MS |
664 | /* |
665 | * Do we have statfs or statvfs and one of the corresponding headers? | |
666 | */ | |
667 | ||
668 | #undef HAVE_STATFS | |
669 | #undef HAVE_STATVFS | |
670 | #undef HAVE_SYS_MOUNT_H | |
671 | #undef HAVE_SYS_STATFS_H | |
672 | #undef HAVE_SYS_STATVFS_H | |
673 | #undef HAVE_SYS_VFS_H | |
674 | ||
675 | ||
0837b7e8 | 676 | /* |
8072030b | 677 | * Location of macOS localization bundle, if any. |
0837b7e8 MS |
678 | */ |
679 | ||
680 | #undef CUPS_BUNDLEDIR | |
681 | ||
682 | ||
eac3a0a0 MS |
683 | /* |
684 | * Do we have XPC? | |
685 | */ | |
686 | ||
687 | #undef HAVE_XPC | |
82cc1f9a | 688 | #undef HAVE_XPC_PRIVATE_H |
eac3a0a0 MS |
689 | |
690 | ||
12f89d24 MS |
691 | /* |
692 | * Do we have Mini-XML? | |
693 | */ | |
694 | ||
695 | #undef HAVE_MXML_H | |
696 | ||
697 | ||
f3c17241 MS |
698 | /* |
699 | * Do we have the C99 abs() function? | |
700 | */ | |
701 | ||
702 | #undef HAVE_ABS | |
703 | #if !defined(HAVE_ABS) && !defined(abs) | |
704 | # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L | |
705 | # define abs(x) _cups_abs(x) | |
706 | static inline int _cups_abs(int i) { return (i < 0 ? -i : i); } | |
707 | # elif defined(_MSC_VER) | |
708 | # define abs(x) _cups_abs(x) | |
709 | static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } | |
710 | # else | |
711 | # define abs(x) ((x) < 0 ? -(x) : (x)) | |
712 | # endif /* __GNUC__ || __STDC_VERSION__ */ | |
713 | #endif /* !HAVE_ABS && !abs */ | |
714 | ||
ef416fc2 | 715 | #endif /* !_CUPS_CONFIG_H_ */ |