LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / soltools / mkdepend / imakemdep.h
blob4a947ee44804958cf4b7d63b07aebd7460f3055d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /* $XConsortium: imakemdep.h,v 1.83 95/04/07 19:47:46 kaleb Exp $ */
4 /* $XFree86: xc/config/imake/imakemdep.h,v 3.12 1995/07/08 10:22:17 dawes Exp $ */
5 /*
7 Copyright (c) 1993, 1994 X Consortium
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 Except as contained in this notice, the name of the X Consortium shall not be
27 used in advertising or otherwise to promote the sale, use or other dealings
28 in this Software without prior written authorization from the X Consortium.
34 * This file contains machine-dependent constants for the imake utility.
35 * When porting imake, read each of the steps below and add in any necessary
36 * definitions. In general you should *not* edit ccimake.c or imake.c!
39 #ifdef CCIMAKE
41 * Step 1: imake_ccflags
42 * Define any special flags that will be needed to get imake.c to compile.
43 * These will be passed to the compile along with the contents of the
44 * make variable BOOTSTRAPCFLAGS.
46 #if defined(macII) || defined(_AUX_SOURCE)
47 #define imake_ccflags "-DmacII -DSYSV"
48 #endif
50 #ifdef stellar
51 #define imake_ccflags "-DSYSV"
52 #endif
54 #if defined(USL) || defined(Oki) || defined(NCR)
55 #define imake_ccflags "-Xc -DSVR4"
56 #endif
58 #ifdef sony
59 #if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
60 #define imake_ccflags "-DSVR4"
61 #else
62 #include <sys/param.h>
63 #if NEWSOS < 41
64 #define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
65 #else
66 #if NEWSOS < 42
67 #define imake_ccflags "-Dbsd43"
68 #endif
69 #endif
70 #endif
71 #endif
73 #ifdef _CRAY
74 #define imake_ccflags "-DSYSV -DUSG"
75 #endif
77 #if defined(_IBMR2) || defined(aix)
78 #define imake_ccflags "-Daix -DSYSV"
79 #endif
81 #ifdef Mips
82 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
83 # define imake_ccflags "-DBSD43"
84 # else
85 # define imake_ccflags "-DSYSV"
86 # endif
87 #endif
89 #ifdef is68k
90 #define imake_ccflags "-Dluna -Duniosb"
91 #endif
93 #ifdef SYSV386
94 # ifdef SVR4
95 # define imake_ccflags "-Xc -DSVR4"
96 # else
97 # define imake_ccflags "-DSYSV"
98 # endif
99 #endif
101 #ifdef SVR4
102 # ifdef i386
103 # define imake_ccflags "-Xc -DSVR4"
104 # endif
105 #endif
107 #ifdef SYSV
108 # ifdef i386
109 # define imake_ccflags "-DSYSV"
110 # endif
111 #endif
113 #ifdef __convex__
114 #define imake_ccflags "-fn -tm c1"
115 #endif
117 #ifdef apollo
118 #define imake_ccflags "-DX_NOT_POSIX"
119 #endif
121 #ifdef _WIN32
122 #define imake_ccflags "-nologo -batch -D__STDC__"
123 #endif
125 #ifdef __uxp__
126 #define imake_ccflags "-DSVR4 -DANSICPP"
127 #endif
129 #ifdef __sxg__
130 #define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
131 #endif
133 #if defined(SX) || defined(PC_UX)
134 #define imake_ccflags "-DSYSV"
135 #endif
137 #ifdef nec_ews_svr2
138 #define imake_ccflags "-DUSG"
139 #endif
141 #if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
142 #define imake_ccflags "-DSVR4"
143 #endif
145 #ifdef MACH
146 #define imake_ccflags "-DNOSTDHDRS"
147 #endif
149 /* this is for OS/2 under EMX. This won't work with DOS */
150 #if defined(__EMX__)
151 #define imake_ccflags "-DBSD43"
152 #endif
154 #else /* not CCIMAKE */
155 #ifndef MAKEDEPEND
157 * Step 2: dup2
158 * If your OS doesn't have a dup2() system call to duplicate one file
159 * descriptor onto another, define such a mechanism here (if you don't
160 * already fall under the existing category(ies).
162 #if defined(SYSV) && !defined(_CRAY) && !defined(Mips)
163 #define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \
164 fcntl(fd1, F_DUPFD, fd2)))
165 #endif
169 * Step 3: FIXUP_CPP_WHITESPACE
170 * If your cpp collapses tabs macro expansions into a single space and
171 * replaces escaped newlines with a space, define this symbol. This will
172 * cause imake to attempt to patch up the generated Makefile by looking
173 * for lines that have colons in them (this is why the rules file escapes
174 * all colons). One way to tell if you need this is to see whether or not
175 * your Makefiles have no tabs in them and lots of @@ strings.
177 #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(_WIN32) || (defined(AMOEBA) && defined(CROSS_COMPILE))
178 #define FIXUP_CPP_WHITESPACE
179 #endif
180 #ifdef __minix_vmd
181 #define FIXUP_CPP_WHITESPACE
182 #endif
185 * Step 4: USE_CC_E, DEFAULT_CC, DEFAULT_CPP
186 * If you want to use cc -E instead of cpp, define USE_CC_E.
187 * If use cc -E but want a different compiler, define DEFAULT_CC.
188 * If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
190 #ifdef _WIN32
191 #define USE_CC_E
192 #define DEFAULT_CC "cl"
193 #endif
194 #ifdef apollo
195 #define DEFAULT_CPP "/usr/lib/cpp"
196 #endif
197 #if defined(_IBMR2) && !defined(DEFAULT_CPP)
198 #define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
199 #endif
200 #if defined(sun) && defined(SVR4)
201 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
202 #endif
203 #ifdef __bsdi__
204 #define DEFAULT_CPP "/usr/bin/cpp"
205 #endif
206 #ifdef __uxp__
207 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
208 #endif
209 #ifdef __sxg__
210 #define DEFAULT_CPP "/usr/lib/cpp"
211 #endif
212 #ifdef _CRAY
213 #define DEFAULT_CPP "/lib/pcpp"
214 #endif
215 #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
216 #define DEFAULT_CPP "/usr/libexec/cpp"
217 #endif
218 #ifdef MACH
219 #define USE_CC_E
220 #endif
221 #ifdef __minix_vmd
222 #define DEFAULT_CPP "/usr/lib/cpp"
223 #endif
224 #if defined(__EMX__)
225 /* expects cpp in PATH */
226 #define DEFAULT_CPP "cpp"
227 #endif
230 * Step 5: cpp_argv
231 * The following table contains the flags that should be passed
232 * whenever a Makefile is being generated. If your preprocessor
233 * doesn't predefine any unique symbols, choose one and add it to the
234 * end of this table. Then, do the following:
236 * a. Use this symbol in Imake.tmpl when setting MacroFile.
237 * b. Put this symbol in the definition of BootstrapCFlags in your
238 * <platform>.cf file.
239 * c. When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
240 * to the end of the command line.
242 * Note that you may define more than one symbol (useful for platforms
243 * that support multiple operating systems).
246 #define ARGUMENTS 50 /* number of arguments in various arrays */
247 char *cpp_argv[ARGUMENTS] = {
248 "cc", /* replaced by the actual program to exec */
249 "-I.", /* add current directory to include path */
250 #ifdef unix
251 "-Uunix", /* remove unix symbol so that filename unix.c okay */
252 #endif
253 #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
254 defined(MACH) || defined(DRAGONFLY)
255 /* FIXME: strange list of obsolete systems */
256 # ifdef __i386__
257 "-D__i386__",
258 # endif
259 # ifdef __GNUC__
260 "-traditional",
261 # endif
262 #endif
263 #ifdef M4330
264 "-DM4330", /* Tektronix */
265 #endif
266 #ifdef M4310
267 "-DM4310", /* Tektronix */
268 #endif
269 #if defined(macII) || defined(_AUX_SOURCE)
270 "-DmacII", /* Apple A/UX */
271 #endif
272 #ifdef USL
273 "-DUSL", /* USL */
274 #endif
275 #ifdef sony
276 "-Dsony", /* Sony */
277 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
278 "-Dbsd43",
279 #endif
280 #endif
281 #ifdef _IBMR2
282 "-D_IBMR2", /* IBM RS-6000 (we ensured that aix is defined above */
283 #ifndef aix
284 #define aix /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
285 #endif
286 #endif /* _IBMR2 */
287 #ifdef aix
288 "-Daix", /* AIX instead of AOS */
289 #ifndef ibm
290 #define ibm /* allow BOOTSTRAPCFLAGS="-Daix" */
291 #endif
292 #endif /* aix */
293 #ifdef ibm
294 "-Dibm", /* IBM PS/2 and RT under both AOS and AIX */
295 #endif
296 #ifdef luna
297 "-Dluna", /* OMRON luna 68K and 88K */
298 #ifdef luna1
299 "-Dluna1",
300 #endif
301 #ifdef luna88k /* need not on UniOS-Mach Vers. 1.13 */
302 "-traditional", /* for some older version */
303 #endif /* instead of "-DXCOMM=\\#" */
304 #ifdef uniosb
305 "-Duniosb",
306 #endif
307 #ifdef uniosu
308 "-Duniosu",
309 #endif
310 #endif /* luna */
311 #ifdef _CRAY /* Cray */
312 "-Ucray",
313 #endif
314 #ifdef Mips
315 "-DMips", /* Define and use Mips for Mips Co. OS/mach. */
316 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
317 "-DBSD43", /* Mips RISCOS supports two environments */
318 # else
319 "-DSYSV", /* System V environment is the default */
320 # endif
321 #endif /* Mips */
322 #ifdef MOTOROLA
323 "-DMOTOROLA", /* Motorola Delta Systems */
324 # ifdef SYSV
325 "-DSYSV",
326 # endif
327 # ifdef SVR4
328 "-DSVR4",
329 # endif
330 #endif /* MOTOROLA */
331 #ifdef i386
332 "-Di386",
333 # ifdef SVR4
334 "-DSVR4",
335 # endif
336 # ifdef SYSV
337 "-DSYSV",
338 # ifdef ISC
339 "-DISC",
340 # ifdef ISC40
341 "-DISC40", /* ISC 4.0 */
342 # else
343 # ifdef ISC202
344 "-DISC202", /* ISC 2.0.2 */
345 # else
346 # ifdef ISC30
347 "-DISC30", /* ISC 3.0 */
348 # else
349 "-DISC22", /* ISC 2.2.1 */
350 # endif
351 # endif
352 # endif
353 # endif
354 # ifdef SCO
355 "-DSCO",
356 # ifdef SCO324
357 "-DSCO324",
358 # endif
359 # endif
360 # endif
361 # ifdef ESIX
362 "-DESIX",
363 # endif
364 # ifdef ATT
365 "-DATT",
366 # endif
367 # ifdef DELL
368 "-DDELL",
369 # endif
370 #endif
371 #ifdef SYSV386 /* System V/386 folks, obsolete */
372 "-Di386",
373 # ifdef SVR4
374 "-DSVR4",
375 # endif
376 # ifdef ISC
377 "-DISC",
378 # ifdef ISC40
379 "-DISC40", /* ISC 4.0 */
380 # else
381 # ifdef ISC202
382 "-DISC202", /* ISC 2.0.2 */
383 # else
384 # ifdef ISC30
385 "-DISC30", /* ISC 3.0 */
386 # else
387 "-DISC22", /* ISC 2.2.1 */
388 # endif
389 # endif
390 # endif
391 # endif
392 # ifdef SCO
393 "-DSCO",
394 # ifdef SCO324
395 "-DSCO324",
396 # endif
397 # endif
398 # ifdef ESIX
399 "-DESIX",
400 # endif
401 # ifdef ATT
402 "-DATT",
403 # endif
404 # ifdef DELL
405 "-DDELL",
406 # endif
407 #endif
408 #ifdef __osf__
409 "-D__osf__",
410 # ifdef __mips__
411 "-D__mips__",
412 # endif
413 # ifdef __alpha
414 "-D__alpha",
415 # endif
416 # ifdef __i386__
417 "-D__i386__",
418 # endif
419 # ifdef __GNUC__
420 "-traditional",
421 # endif
422 #endif
423 #ifdef Oki
424 "-DOki",
425 #endif
426 #ifdef sun
427 #ifdef SVR4
428 "-DSVR4",
429 #endif
430 #endif
431 #ifdef _WIN32
432 "-DWIN32",
433 "-nologo",
434 "-batch",
435 "-D__STDC__",
436 #endif
437 #ifdef NCR
438 "-DNCR", /* NCR */
439 #endif
440 #ifdef linux
441 "-traditional",
442 "-Dlinux",
443 #endif
444 #ifdef __uxp__
445 "-D__uxp__",
446 #endif
447 #ifdef __sxg__
448 "-D__sxg__",
449 #endif
450 #ifdef nec_ews_svr2
451 "-Dnec_ews_svr2",
452 #endif
453 #ifdef AMOEBA
454 "-DAMOEBA",
455 # ifdef CROSS_COMPILE
456 "-DCROSS_COMPILE",
457 # ifdef CROSS_i80386
458 "-Di80386",
459 # endif
460 # ifdef CROSS_sparc
461 "-Dsparc",
462 # endif
463 # ifdef CROSS_mc68000
464 "-Dmc68000",
465 # endif
466 # else
467 # ifdef i80386
468 "-Di80386",
469 # endif
470 # ifdef sparc
471 "-Dsparc",
472 # endif
473 # ifdef mc68000
474 "-Dmc68000",
475 # endif
476 # endif
477 #endif
478 #ifdef __minix_vmd
479 "-Dminix",
480 #endif
482 #if defined(__EMX__)
483 "-traditional",
484 "-Demxos2",
485 #endif
488 #else /* else MAKEDEPEND */
490 * Step 6: predefs
491 * If your compiler and/or preprocessor define any specific symbols, add
492 * them to the following table. The definition of struct symtab is
493 * in util/makedepend/def.h.
496 /* FIXME: strange list of obsolete systems */
497 struct pair predefs[] = {
498 #ifdef apollo
499 {"apollo", "1", NULL},
500 #endif
501 #ifdef ibm032
502 {"ibm032", "1", NULL},
503 #endif
504 #ifdef ibm
505 {"ibm", "1", NULL},
506 #endif
507 #ifdef aix
508 {"aix", "1", NULL},
509 #endif
510 #ifdef sun
511 {"sun", "1", NULL},
512 #endif
513 #ifdef sun2
514 {"sun2", "1", NULL},
515 #endif
516 #ifdef sun3
517 {"sun3", "1", NULL},
518 #endif
519 #ifdef sun4
520 {"sun4", "1", NULL},
521 #endif
522 #ifdef sparc
523 {"sparc", "1", NULL},
524 #endif
525 #ifdef __sparc__
526 {"__sparc__", "1", NULL},
527 #endif
528 #ifdef vax
529 {"vax", "1", NULL},
530 #endif
531 #ifdef VMS
532 {"VMS", "1", NULL},
533 #endif
534 #ifdef cray
535 {"cray", "1", NULL},
536 #endif
537 #ifdef CRAY
538 {"CRAY", "1", NULL},
539 #endif
540 #ifdef _CRAY
541 {"_CRAY", "1", NULL},
542 #endif
543 #ifdef att
544 {"att", "1", NULL},
545 #endif
546 #ifdef mips
547 {"mips", "1", NULL},
548 #endif
549 #ifdef __mips__
550 {"__mips__", "1", NULL},
551 #endif
552 #ifdef stellar
553 {"stellar", "1", NULL},
554 #endif
555 #ifdef mc68000
556 {"mc68000", "1", NULL},
557 #endif
558 #ifdef mc68020
559 {"mc68020", "1", NULL},
560 #endif
561 #ifdef __GNUC__
562 {"__GNUC__", "1", NULL},
563 #endif
564 #ifdef __STDC__
565 {"__STDC__", "1", NULL},
566 #endif
567 #ifdef __HIGHC__
568 {"__HIGHC__", "1", NULL},
569 #endif
570 #ifdef CMU
571 {"CMU", "1", NULL},
572 #endif
573 #ifdef luna
574 {"luna", "1", NULL},
575 #ifdef luna1
576 {"luna1", "1", NULL},
577 #endif
578 #ifdef luna2
579 {"luna2", "1", NULL},
580 #endif
581 #ifdef luna88k
582 {"luna88k", "1", NULL},
583 #endif
584 #ifdef uniosb
585 {"uniosb", "1", NULL},
586 #endif
587 #ifdef uniosu
588 {"uniosu", "1", NULL},
589 #endif
590 #endif
591 #ifdef ieeep754
592 {"ieeep754", "1", NULL},
593 #endif
594 #ifdef is68k
595 {"is68k", "1", NULL},
596 #endif
597 #ifdef m68k
598 {"m68k", "1", NULL},
599 #endif
600 #ifdef m88k
601 {"m88k", "1", NULL},
602 #endif
603 #ifdef __m88k__
604 {"__m88k__", "1", NULL},
605 #endif
606 #ifdef bsd43
607 {"bsd43", "1", NULL},
608 #endif
609 #ifdef hcx
610 {"hcx", "1", NULL},
611 #endif
612 #ifdef sony
613 {"sony", "1", NULL},
614 #ifdef SYSTYPE_SYSV
615 {"SYSTYPE_SYSV", "1", NULL},
616 #endif
617 #ifdef _SYSTYPE_SYSV
618 {"_SYSTYPE_SYSV", "1", NULL},
619 #endif
620 #endif
621 #ifdef __OSF__
622 {"__OSF__", "1", NULL},
623 #endif
624 #ifdef __osf__
625 {"__osf__", "1", NULL},
626 #endif
627 #ifdef __alpha
628 {"__alpha", "1", NULL},
629 #endif
630 #ifdef __DECC
631 {"__DECC", "1", NULL},
632 #endif
633 #ifdef __decc
634 {"__decc", "1", NULL},
635 #endif
636 #ifdef __uxp__
637 {"__uxp__", "1", NULL},
638 #endif
639 #ifdef __sxg__
640 {"__sxg__", "1", NULL},
641 #endif
642 #ifdef __bsdi__
643 {"__bsdi__", "1", NULL},
644 #endif
645 #ifdef nec_ews_svr2
646 {"nec_ews_svr2", "1", NULL},
647 #endif
648 #ifdef nec_ews_svr4
649 {"nec_ews_svr4", "1", NULL},
650 #endif
651 #ifdef _nec_ews_svr4
652 {"_nec_ews_svr4", "1", NULL},
653 #endif
654 #ifdef _nec_up
655 {"_nec_up", "1", NULL},
656 #endif
657 #ifdef SX
658 {"SX", "1", NULL},
659 #endif
660 #ifdef nec
661 {"nec", "1", NULL},
662 #endif
663 #ifdef _nec_ft
664 {"_nec_ft", "1", NULL},
665 #endif
666 #ifdef PC_UX
667 {"PC_UX", "1", NULL},
668 #endif
669 #ifdef sgi
670 {"sgi", "1", NULL},
671 #endif
672 #ifdef __sgi
673 {"__sgi", "1", NULL},
674 #endif
675 #ifdef __FreeBSD__
676 {"__FreeBSD__", "1", NULL},
677 #endif
678 #ifdef __NetBSD__
679 {"__NetBSD__", "1", NULL},
680 #endif
681 #ifdef __OpenBSD__
682 {"__OpenBSD__", "1", NULL},
683 #endif
684 #ifdef __DragonFly__
685 {"__DragonFly__", "1", NULL},
686 #endif
687 #ifdef __EMX__
688 {"__EMX__", "1", NULL},
689 #endif
690 /* add any additional symbols before this line */
691 {NULL, NULL, NULL}
694 #endif /* MAKEDEPEND */
695 #endif /* CCIMAKE */
697 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */