File: Unix.U

package info (click to toggle)
perl 5.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 128,392 kB
  • sloc: perl: 534,963; ansic: 240,563; sh: 72,042; pascal: 6,934; xml: 2,428; yacc: 1,360; makefile: 1,197; cpp: 208; lisp: 1
file content (126 lines) | stat: -rw-r--r-- 3,895 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
?RCS: $Id: Unix.U,v 3.0.1.1 1997/02/28 15:20:06 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic License,
?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 License; a copy of which may be found at the root
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: Unix.U,v $
?RCS: Revision 3.0.1.1  1997/02/28  15:20:06  ram
?RCS: patch61: created
?RCS:
?X:
?X: The purpose of this unit is to define things that are common across all
?X: known UNIX platforms. If Configure is ported/used on a non-UNIX
?X: environment, then some of the following variables can be redefined in hint
?X: files.
?X:
?MAKE:Unix _exe _a _o exe_ext lib_ext obj_ext path_sep \
	firstmakefile archobjs rm_try: Oldconfig rm
?MAKE:	-pick add $@ %<
?S:_exe:
?S:	This variable defines the extension used for executable files.
?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:.
?S:_a:
?S:	This variable defines the extension used for ordinary library files.
?S:	For unix, it is '.a'.  The '.' is included.  Other possible
?S:	values include '.lib'.
?S:.
?S:_o:
?S:	This variable defines the extension used for object files.
?S:	For unix, it is '.o'.  The '.' is included.  Other possible
?S:	values include '.obj'.
?S:.
?S:firstmakefile:
?S:	This variable defines the first file searched by make.  On unix,
?S:	it is makefile (then Makefile).  On case-insensitive systems,
?S:	it might be something else.  This is only used to deal with
?S:	convoluted make depend tricks.
?S:.
?S:archobjs:
?S:	This variable defines any additional objects that must be linked
?S:	in with the program on this architecture.  On unix, it is usually
?S:	empty.  It is typically used to include emulations of unix calls
?S:	or other facilities.  For perl on OS/2, for example, this would
?S:	include os2/os2.obj.
?S:.
?X: Metaconfig's Obsolete symbol stuff is too over-eager.  In the
?X: perl sources, it picks up things like "P" and "FLOCK" that are
?X: not used in the way Metaconfig thinks they are.  Thus I can't
?X: just declare these obsolete and then run metaconfig -o.
?X: Instead, I'll just handle them here.
?X:	Sadly, history has conspired to give us a web of definitions;
?X:	this could have been much simpler.
?S:lib_ext:
?S:	This is an old synonym for _a.
?S:.
?S:exe_ext:
?S:	This is an old synonym for _exe.
?S:.
?S:obj_ext:
?S:	This is an old synonym for _o.
?S:.
?S:path_sep:
?S:	This is an old synonym for p_ in Head.U, the character
?S:	used to separate elements in the command shell search PATH.
?S:.
?S:rm_try:
?S:	This is a cleanup variable for try test programs.
?S:	Internal Configure use only.
?S:.
?LINT: change p_
?INIT:: Trailing extension.  Override this in a hint file, if needed.
?INIT:: Extra object files, if any, needed on this platform.
?INIT:archobjs=''
: Define several unixisms.
: Hints files or command line option can be used to override them.
: The convoluted testing is in case hints files set either the old
: or the new name.
case "$_exe" in
'')	case "$exe_ext" in
	'')	;;
	*)	_exe="$exe_ext" ;;
	esac
	;;
esac
case "$_a" in
'')	case "$lib_ext" in
    '')	_a='.a';;
	*)	_a="$lib_ext" ;;
	esac
	;;
esac
case "$_o" in
'') case "$obj_ext" in
	'')	_o='.o';;
	*)	_o="$obj_ext";;
	esac
	;;
esac
case "$p_" in
'') case "$path_sep" in
	'')	p_=':';;
	*)	p_="$path_sep";;
	esac
	;;
esac
exe_ext=$_exe
lib_ext=$_a
obj_ext=$_o
path_sep=$p_

rm_try="$rm -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*"

@if firstmakefile
: Which makefile gets called first.  This is used by make depend.
case "$firstmakefile" in
'') firstmakefile='makefile';;
esac

@end