summaryrefslogtreecommitdiff
path: root/mcon/U/Init.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/Init.U')
-rw-r--r--mcon/U/Init.U35
1 files changed, 31 insertions, 4 deletions
diff --git a/mcon/U/Init.U b/mcon/U/Init.U
index 9ccb68d..892579d 100644
--- a/mcon/U/Init.U
+++ b/mcon/U/Init.U
@@ -1,12 +1,12 @@
-?RCS: $Id: Init.U,v 3.0.1.1 1994/10/31 09:45:59 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: Init.U,v $
?RCS: Revision 3.0.1.1 1994/10/31 09:45:59 ram
@@ -22,7 +22,7 @@
?X: This file initializes certain default variables used by Configure. They
?X: may be overridden or added to by definitions in Myinit.U.
?X:
-?MAKE:Init eunicefix: Null
+?MAKE:Init eunicefix _exe: Null
?MAKE: -pick add $@ %<
?MAKE: -pick weed $@ ./Init
?S:eunicefix:
@@ -30,6 +30,13 @@
?S: convert a shell script to the proper form of text file for it to be
?S: executable by the shell. On other systems it is a no-op.
?S:.
+?S:_exe (exe_ext):
+?S: This variable defines the extension used for executable files.
+?S: For unix it is empty. Other possible values include '.exe'.
+?S: DJGPP, Cygwin and OS/2 use '.exe'. Stratus VOS uses '.pm'.
+?S: On operating systems which do not require a specific extension
+?S: for executable files, this variable is empty.
+?S:.
?V:define undef smallmach:rmlist
?X:
?X: Throughout the units, one may make use of $define and $undef to reference
@@ -38,6 +45,8 @@
?X: everyone inherits from those symbols since by convention Init.U is the
?X: root dependency.
?X:
+?T: DJGPP
+: Initialize wide constants
define='define'
undef='undef'
smallmach='pdp11 i8086 z8000 i80286 iAPX286'
@@ -52,3 +61,21 @@ if test -f /etc/unixtovms.exe; then
eunicefix=/etc/unixtovms.exe
fi
+: Set executable suffix now -- needed before hints available
+if test -f "/libs/version.library"; then
+ : Amiga OS
+ _exe=""
+elif test -f "/system/gnu_library/bin/ar.pm"; then
+ : Stratus VOS
+ _exe=".pm"
+elif test -n "$DJGPP"; then
+ : DOS DJGPP
+ _exe=".exe"
+elif test -d c:/. ; then
+ : OS/2 or cygwin
+ _exe=".exe"
+else
+ : All other UNIX systems
+ _exe=""
+fi
+