Added 'list_only' option (and modified 'run()' to respect it).
[python/dscho.git] / Mac / Python / macgetcompiler.c
blob347b8d20b617cc4f1f979097bf196f31ed2d8be8
1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
3 The Netherlands.
5 All Rights Reserved
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
15 permission.
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
32 /* Return a string representing the compiler name */
34 #include "config.h"
36 #ifdef THINK_C
37 #define COMPILER " [THINK C]"
38 #endif
40 #ifdef __MWERKS__
41 #ifdef USE_GUSI
42 #define HASGUSI " w/GUSI"
43 #else
44 #define HASGUSI ""
45 #endif
46 #ifdef USE_MSL
47 #define HASMSL " w/MSL"
48 #else
49 #define HASMSL ""
50 #endif
51 #ifdef __powerc
52 #define COMPILER " [CW PPC" HASGUSI HASMSL "]"
53 #else
54 #ifdef __CFM68K__
55 #define COMPILER " [CW CFM68K" HASGUSI HASMSL "]"
56 #else
57 #define COMPILER " [CW 68K" HASGUSI HASMSL "]"
58 #endif
59 #endif
60 #endif
62 #ifdef MPW
63 #ifdef __SC__
64 #define COMPILER " [Symantec MPW]"
65 #else
66 #define COMPILER " [Apple MPW]"
67 #endif
68 #endif
70 char *
71 Py_GetCompiler()
73 return COMPILER;