]>
git.ipfire.org Git - thirdparty/bash.git/blob - support/getcppsyms.c
eb4c72d8d92531a1bb246d7706c7adcf7552f16e
1 /* getcppsyms.c - Find unique compiler symbols. */
3 /* Copyright (C) 1993 Free Software Foundation, Inc.
5 This file is part of GNU Bash, the Bourne Again SHell.
7 Bash is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License along
18 with Bash; see the file COPYING. If not, write to the Free Software
19 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 /* Some cpp's do not define any symbols, but instead let /bin/cc do it
22 for them. For such machines, running this file may prove useful. It
23 outputs the list of symbols which /bin/cc or /lib/cpp define and which
24 we had the foresight to guess at. */
29 #if defined (__BSD_4_4__)
30 printf ("-D__BSD_4_4__");
31 #endif /* __BSD_4_4__ */
41 #if defined (GOULD_PN)
42 printf (" -DGOULD_PN");
53 #if defined (MULTIMAX)
54 printf (" -DMULTIMAX");
60 printf (" -DM_XENIX");
62 #if defined (_M_XENIX)
63 printf (" -D_M_XENIX");
68 #if defined (__PARAGON__)
69 printf (" -D__PARAGON__");
70 #endif /* __PARAGON__ */
75 printf (" -D__PGC__");
80 #if defined (RISC6000)
81 printf (" -DRISC6000");
86 #if defined (SYSTYPE_BSD)
87 printf (" -DSYSTYPE_BSD");
88 #endif /* SYSTYPE_BSD */
89 #if defined (SYSTYPE_SYSV)
90 printf (" -DSYSTYPE_SYSV");
91 #endif /* SYSTYPE_SYSV */
93 printf (" -DSun386i");
96 printf (" -DTek4132");
99 printf (" -DTek4300");
107 #if defined (USGr4_2)
108 printf (" -DUSGr4_2");
110 #if defined (__SVR4_2__)
111 printf (" -D__SVR4_2__");
112 #endif /* __SVR4_2__ */
113 #if defined (Xenix286)
114 printf (" -DXenix286");
115 #endif /* Xenix286 */
119 #if defined (_AIX370)
120 printf (" -D_AIX370");
122 #if defined (_IBMESA)
123 printf (" -D_IBMESA");
125 #if defined (__ibmesa)
126 printf (" -D__ibmesa");
127 #endif /* __ibmesa */
135 printf (" -D_CX_UX");
138 printf (" -D_IBMR2");
143 #if defined (_M88KBCS_TARGET)
144 printf (" -D_M88KBCS_TARGET");
145 #endif /* _M88KBCS_TARGET */
146 #if defined (__DGUX__)
147 printf (" -D__DGUX__");
148 #endif /* __DGUX__ */
149 #if defined (__UMAXV__)
150 printf (" -D__UMAXV__");
151 #endif /* __UMAXV__ */
153 printf (" -D__m88k");
155 #if defined (__uxpm__)
156 printf (" -DUSGr4 -Du370 -D__uxpm__");
157 #endif /* __uxpm__ */
158 #if defined (__uxps__)
159 printf (" -D__svr4__ -D__uxps__");
160 #endif /* __uxps__ */
161 #if defined (alliant)
162 printf (" -Dalliant");
167 #if defined (__alpha)
168 printf (" -D__alpha");
177 printf (" -Dapollo");
180 printf (" -Dardent");
183 printf (" -Datt386");
189 printf (" -Dbsd4_2");
192 printf (" -Dbsd4_3");
194 #if defined (__bsdi__)
195 printf (" -D__bsdi__");
196 #endif /* __bsdi__ */
200 #if defined (__386BSD__)
201 printf (" -D__386BSD__");
202 #endif /* __386BSD__ */
204 printf (" -Dcadmus");
206 #if defined (clipper)
207 printf (" -Dclipper");
209 #if defined (concurrent)
210 printf (" -Dconcurrent");
211 #endif /* concurrent */
212 #if defined (convex) || defined (__convex__) || defined (__convexc__)
213 # if !defined (__GNUC__)
215 # endif /* !__GNUC__ */
216 printf (" -Dconvex");
230 #if defined (hbullx20)
231 printf (" -Dhbullx20");
232 #endif /* hbullx20 */
236 #if defined (host_mips)
237 printf (" -Dhost_mips");
238 #endif /* host_mips */
239 #if defined (hp9000) || defined (__hp9000)
240 printf (" -Dhp9000");
241 #endif /* hp9000 || __hp9000 */
242 #if defined (hp9000s200) || defined (__hp9000s200)
243 printf (" -Dhp9000s200");
244 #endif /* hp9000s200 || __hp9000s200 */
245 #if defined (hp9000s300) || defined (__hp9000s300)
246 printf (" -Dhp9000s300");
247 #endif /* hp9000s300 || __hp9000s300 */
248 #if defined (hp9000s500) || defined (__hp9000s500)
249 printf (" -Dhp9000s500");
250 #endif /* hp9000s500 || __hp9000s500 */
251 #if defined (hp9000s700) || defined (__hp9000s700)
252 printf (" -Dhp9000s700");
253 #endif /* hp9000s700 || __hp9000s700 */
254 #if defined (hp9000s800) || defined (__hp9000s800)
255 printf (" -Dhp9000s800");
256 #endif /* hp9000s800 || __hp9000s800 */
257 #if defined (hppa) || defined (__hppa)
259 #endif /* hppa || __hppa */
260 #if defined (hpux) || defined (__hpux)
263 #if defined (__hp_osf)
264 printf (" -D__hp_osf");
265 #endif /* __hp_osf */
269 #if defined (__i386__)
270 printf (" -D__i386__");
275 #if defined (__i860__)
276 printf(" -D__i860__");
277 #endif /* __i860__ */
282 printf (" -Dibm032");
287 #if defined (interdata)
288 printf (" -Dinterdata");
289 #endif /* interdata */
296 #if defined (__ksr1__)
297 printf (" -D__ksr1__");
298 #endif /* __ksr1__ */
302 #if defined (__linux__)
303 printf (" -D__linux__");
304 #endif /* __linux__ */
305 #if defined (luna88k)
306 printf (" -Dluna88k");
314 #if defined (mc68010)
315 printf (" -Dmc68010");
317 #if defined (mc68020)
318 printf (" -Dmc68020");
320 #if defined (mc68030)
321 printf (" -Dmc68030");
323 #if defined (mc68040)
324 printf (" -Dmc68040");
326 #if defined (mc68k32)
327 printf (" -Dmc68k32");
335 #if defined __nonstopux
336 printf (" -D__nonstopux");
338 #if defined (ns32000)
339 printf (" -Dns32000");
347 #if defined (__osf__)
348 printf (" -D__osf__");
350 #if defined (__OSF1__)
351 printf(" -D__OSF1__");
352 #endif /* __OSF1__ */
365 #if defined (sequent)
366 printf (" -Dsequent");
377 #if defined (stardent)
378 printf (" -Dstardent");
379 #endif /* stardent */
392 #if defined (__svr4__)
393 printf (" -D__svr4__");
394 #endif /* __svr4__ */
395 #if defined (tower32)
396 printf (" -Dtower32");
411 printf (" -Du3b20d");
417 printf (" -Dultrix");