summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-13 17:10:11 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-13 17:10:11 (GMT)
commit57c33af90e815c311bc6e70a49f3d540f12fda3a (patch)
tree6d4558d0c713c52b46291a4c2d8e7f37295197a3 /Modules/config.c.in
parent67ca701939af6ae862ef7b330fbdd12ac809a8db (diff)
downloadcpython-57c33af90e815c311bc6e70a49f3d540f12fda3a.zip
cpython-57c33af90e815c311bc6e70a49f3d540f12fda3a.tar.gz
cpython-57c33af90e815c311bc6e70a49f3d540f12fda3a.tar.bz2
tack compiler name/version to version string if known
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in34
1 files changed, 31 insertions, 3 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 0c2f114..9e0f34a 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -107,19 +107,47 @@ getargcargv(argc,argv)
version number (from patchlevel.h), and the current date (if known
to the compiler, else a manually inserted date). */
-#define VERSION "%s (%s)"
+#define VERSION "%s (%s)%s"
#ifdef __DATE__
#define DATE __DATE__
#else
-#define DATE "Aug 17 1994"
+#define DATE "Feb 13 1995"
+#endif
+
+#ifdef THINK_C
+#define COMPILER " [THINK C]"
+#endif
+
+#ifdef __MWERKS__
+#ifdef __powerc
+#define COMPILER " [CW PPC]"
+#else
+#define COMPILER " [CW 68K]"
+#endif
+#endif
+
+#ifdef MPW
+#ifdef __SC__
+#define COMPILER " [Symantec MPW]"
+#else
+#define COMPILER " [Apple MPW]"
+#endif
+#endif
+
+#ifdef __GNUC__
+#define COMPILER " [GCC " ##__VERSION__ "]"
+#endif
+
+#ifndef COMPILER
+#define COMPILER ""
#endif
char *
getversion()
{
static char version[80];
- sprintf(version, VERSION, PATCHLEVEL, DATE);
+ sprintf(version, VERSION, PATCHLEVEL, DATE, COMPILER);
return version;
}