| @@ -1,32 +1,35 @@ | | | @@ -1,32 +1,35 @@ |
1 | # $NetBSD: tools.SunOS.mk,v 1.34 2011/10/04 13:07:21 hans Exp $ | | 1 | # $NetBSD: tools.SunOS.mk,v 1.35 2011/10/04 13:08:42 hans Exp $ |
2 | # | | 2 | # |
3 | # System-supplied tools for the Solaris operating system. | | 3 | # System-supplied tools for the Solaris operating system. |
4 | # | | 4 | # |
5 | # We bootstrap a pdksh shell on this platform. | | 5 | # We bootstrap a pdksh shell on this platform. |
6 | | | 6 | |
7 | TOOLS_PLATFORM.[?= [ # shell builtin | | 7 | TOOLS_PLATFORM.[?= [ # shell builtin |
8 | .if exists(/usr/bin/gawk) | | 8 | .if exists(/usr/bin/gawk) |
9 | TOOLS_PLATFORM.awk?= /usr/bin/gawk | | 9 | TOOLS_PLATFORM.awk?= /usr/bin/gawk |
10 | .else | | 10 | .else |
11 | TOOLS_PLATFORM.awk?= /usr/bin/nawk | | 11 | TOOLS_PLATFORM.awk?= /usr/bin/nawk |
12 | .endif | | 12 | .endif |
13 | TOOLS_PLATFORM.basename?= /usr/bin/basename | | 13 | TOOLS_PLATFORM.basename?= /usr/bin/basename |
14 | .if exists(/bin/bash) | | 14 | .if exists(/bin/bash) |
15 | TOOLS_PLATFORM.bash?= /bin/bash | | 15 | TOOLS_PLATFORM.bash?= /bin/bash |
16 | .endif | | 16 | .endif |
17 | .if exists(/usr/bin/bison) | | 17 | .if exists(/usr/bin/bison) |
18 | TOOLS_PLATFORM.bison?= /usr/bin/bison | | 18 | TOOLS_PLATFORM.bison?= /usr/bin/bison |
19 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | | 19 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y |
| | | 20 | .elif exists(/usr/sfw/bison) |
| | | 21 | TOOLS_PLATFORM.bison?= /usr/sfw/bin/bison |
| | | 22 | TOOLS_PLATFORM.bison-yacc?= /usr/sfw/bin/bison -y |
20 | .endif | | 23 | .endif |
21 | .if exists(/usr/bin/bzcat) | | 24 | .if exists(/usr/bin/bzcat) |
22 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | | 25 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat |
23 | .endif | | 26 | .endif |
24 | .if exists(/usr/bin/bzip2) | | 27 | .if exists(/usr/bin/bzip2) |
25 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | | 28 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 |
26 | .endif | | 29 | .endif |
27 | TOOLS_PLATFORM.cat?= /usr/bin/cat | | 30 | TOOLS_PLATFORM.cat?= /usr/bin/cat |
28 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | | 31 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp |
29 | TOOLS_PLATFORM.chmod?= /usr/bin/chmod | | 32 | TOOLS_PLATFORM.chmod?= /usr/bin/chmod |
30 | TOOLS_PLATFORM.chown?= /usr/bin/chown | | 33 | TOOLS_PLATFORM.chown?= /usr/bin/chown |
31 | .if exists(/bin/cmp) | | 34 | .if exists(/bin/cmp) |
32 | TOOLS_PLATFORM.cmp?= /bin/cmp | | 35 | TOOLS_PLATFORM.cmp?= /bin/cmp |
| @@ -43,93 +46,110 @@ TOOLS_PLATFORM.diff?= /usr/bin/gdiff | | | @@ -43,93 +46,110 @@ TOOLS_PLATFORM.diff?= /usr/bin/gdiff |
43 | TOOLS_PLATFORM.diff?= /usr/bin/diff | | 46 | TOOLS_PLATFORM.diff?= /usr/bin/diff |
44 | .endif | | 47 | .endif |
45 | .if exists(/usr/bin/gdiff3) | | 48 | .if exists(/usr/bin/gdiff3) |
46 | TOOLS_PLATFORM.diff3?= /usr/bin/gdiff3 | | 49 | TOOLS_PLATFORM.diff3?= /usr/bin/gdiff3 |
47 | .else | | 50 | .else |
48 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | | 51 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 |
49 | .endif | | 52 | .endif |
50 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | | 53 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname |
51 | TOOLS_PLATFORM.echo?= echo # shell builtin | | 54 | TOOLS_PLATFORM.echo?= echo # shell builtin |
52 | .if exists(/usr/gnu/bin/grep) | | 55 | .if exists(/usr/gnu/bin/grep) |
53 | TOOLS_PLATFORM.grep?= /usr/gnu/bin/grep | | 56 | TOOLS_PLATFORM.grep?= /usr/gnu/bin/grep |
54 | TOOLS_PLATFORM.egrep?= /usr/gnu/bin/grep -E | | 57 | TOOLS_PLATFORM.egrep?= /usr/gnu/bin/grep -E |
55 | TOOLS_PLATFORM.fgrep?= /usr/gnu/bin/fgrep | | 58 | TOOLS_PLATFORM.fgrep?= /usr/gnu/bin/fgrep |
| | | 59 | .elif exists(/usr/sfw/bin/ggrep) |
| | | 60 | TOOLS_PLATFORM.grep?= /usr/sfw/bin/ggrep |
| | | 61 | TOOLS_PLATFORM.egrep?= /usr/sfw/bin/ggrep -E |
| | | 62 | TOOLS_PLATFORM.fgrep?= /usr/sfw/bin/gfgrep |
56 | .else | | 63 | .else |
57 | TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep | | 64 | TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep |
58 | TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E | | 65 | TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E |
59 | TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep | | 66 | TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep |
60 | .endif | | 67 | .endif |
61 | TOOLS_PLATFORM.env?= /usr/bin/env | | 68 | TOOLS_PLATFORM.env?= /usr/bin/env |
62 | TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr | | 69 | TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr |
63 | .if exists(/usr/gnu/bin/false) # if we are using OpenSolaris | | 70 | .if exists(/usr/gnu/bin/false) # if we are using OpenSolaris |
64 | TOOLS_PLATFORM.false?= /usr/gnu/bin/false | | 71 | TOOLS_PLATFORM.false?= /usr/gnu/bin/false |
65 | .else | | 72 | .else |
66 | TOOLS_PLATFORM.false?= false # shell builtin | | 73 | TOOLS_PLATFORM.false?= false # shell builtin |
67 | .endif | | 74 | .endif |
68 | TOOLS_PLATFORM.file?= /usr/bin/file | | 75 | TOOLS_PLATFORM.file?= /usr/bin/file |
69 | .if exists(/usr/gnu/bin/find) | | 76 | .if exists(/usr/gnu/bin/find) |
70 | TOOLS_PLATFORM.find?= /usr/gnu/bin/find | | 77 | TOOLS_PLATFORM.find?= /usr/gnu/bin/find |
71 | .else | | 78 | .else |
72 | TOOLS_PLATFORM.find?= /usr/bin/find | | 79 | TOOLS_PLATFORM.find?= /usr/bin/find |
73 | .endif | | 80 | .endif |
74 | .if exists(/usr/bin/flex) | | 81 | .if exists(/usr/bin/flex) |
75 | TOOLS_PLATFORM.flex?= /usr/bin/flex | | 82 | TOOLS_PLATFORM.flex?= /usr/bin/flex |
76 | TOOLS_PLATFORM.lex?= /usr/bin/flex | | 83 | TOOLS_PLATFORM.lex?= /usr/bin/flex |
| | | 84 | .elif exists(/usr/sfw/bin/flex) |
| | | 85 | TOOLS_PLATFORM.flex?= /usr/sfw/bin/flex |
| | | 86 | TOOLS_PLATFORM.lex?= /usr/sfw/bin/flex |
77 | .endif | | 87 | .endif |
78 | .if exists(/usr/bin/gawk) | | 88 | .if exists(/usr/bin/gawk) |
79 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk | | 89 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk |
80 | .endif | | 90 | .endif |
81 | .if exists(/usr/bin/gm4) | | 91 | .if exists(/usr/bin/gm4) |
82 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 | | 92 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 |
83 | .endif | | 93 | .endif |
84 | .if exists(/usr/bin/gmake) | | 94 | .if exists(/usr/bin/gmake) |
85 | TOOLS_PLATFORM.gmake?= /usr/bin/gmake | | 95 | TOOLS_PLATFORM.gmake?= /usr/bin/gmake |
| | | 96 | .elif exists(/usr/sfw/bin/gmake) |
| | | 97 | TOOLS_PLATFORM.gmake?= /usr/sfw/bin/gmake |
86 | .endif | | 98 | .endif |
87 | .if exists(/usr/bin/groff) | | 99 | .if exists(/usr/bin/groff) |
88 | TOOLS_PLATFORM.groff?= /usr/bin/groff | | 100 | TOOLS_PLATFORM.groff?= /usr/bin/groff |
89 | .endif | | 101 | .endif |
90 | .if exists(/usr/bin/gsed) | | 102 | .if exists(/usr/bin/gsed) |
91 | TOOLS_PLATFORM.gsed?= /usr/bin/gsed | | 103 | TOOLS_PLATFORM.gsed?= /usr/bin/gsed |
92 | .endif | | 104 | .endif |
93 | .if exists(/usr/bin/gsoelim) | | 105 | .if exists(/usr/bin/gsoelim) |
94 | TOOLS_PLATFORM.gsoelim?= /usr/bin/gsoelim | | 106 | TOOLS_PLATFORM.gsoelim?= /usr/bin/gsoelim |
95 | .endif | | 107 | .endif |
96 | .if exists(/usr/bin/gtar) | | 108 | .if exists(/usr/bin/gtar) |
97 | TOOLS_PLATFORM.bsdtar?= /usr/bin/gtar | | 109 | TOOLS_PLATFORM.bsdtar?= /usr/bin/gtar |
98 | TOOLS_PLATFORM.gtar?= /usr/bin/gtar | | 110 | TOOLS_PLATFORM.gtar?= /usr/bin/gtar |
99 | TOOLS_PLATFORM.tar?= /usr/bin/gtar | | 111 | TOOLS_PLATFORM.tar?= /usr/bin/gtar |
| | | 112 | .elif exists(/usr/sfw/bin/gtar) |
| | | 113 | TOOLS_PLATFORM.bsdtar?= /usr/sfw/bin/gtar |
| | | 114 | TOOLS_PLATFORM.gtar?= /usr/sfw/bin/gtar |
| | | 115 | TOOLS_PLATFORM.tar?= /usr/sfw/bin/gtar |
100 | .endif | | 116 | .endif |
101 | .if exists(/usr/bin/gzip) | | 117 | .if exists(/usr/bin/gzip) |
102 | TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df | | 118 | TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df |
103 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd | | 119 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd |
104 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | | 120 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} |
105 | .endif | | 121 | .endif |
106 | TOOLS_PLATFORM.head?= /usr/bin/head | | 122 | TOOLS_PLATFORM.head?= /usr/bin/head |
107 | TOOLS_PLATFORM.hostname?= /bin/hostname | | 123 | TOOLS_PLATFORM.hostname?= /bin/hostname |
108 | TOOLS_PLATFORM.id?= /usr/xpg4/bin/id | | 124 | TOOLS_PLATFORM.id?= /usr/xpg4/bin/id |
109 | .if exists(/usr/bin/install-info) | | 125 | .if exists(/usr/bin/install-info) |
110 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | | 126 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info |
| | | 127 | .elif exists(/usr/sfw/bin/install-info) |
| | | 128 | TOOLS_PLATFORM.install-info?= /usr/sfw/bin/install-info |
111 | .endif | | 129 | .endif |
112 | .if exists(/usr/bin/ginstall) # if we are using OpenSolaris | | 130 | .if exists(/usr/bin/ginstall) # if we are using OpenSolaris |
113 | TOOLS_PLATFORM.install?= /usr/bin/ginstall | | 131 | TOOLS_PLATFORM.install?= /usr/bin/ginstall |
114 | .else | | 132 | .else |
115 | TOOLS_PLATFORM.install?= /usr/ucb/install | | 133 | TOOLS_PLATFORM.install?= /usr/ucb/install |
116 | .endif | | 134 | .endif |
117 | TOOLS_PLATFORM.ln?= /usr/bin/ln | | 135 | TOOLS_PLATFORM.ln?= /usr/bin/ln |
118 | TOOLS_PLATFORM.ls?= /usr/bin/ls | | 136 | TOOLS_PLATFORM.ls?= /usr/bin/ls |
119 | TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4 | | 137 | TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4 |
120 | TOOLS_PLATFORM.mail?= /usr/bin/mailx | | 138 | TOOLS_PLATFORM.mail?= /usr/bin/mailx |
121 | .if exists(/usr/bin/makeinfo) | | 139 | .if exists(/usr/bin/makeinfo) |
122 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | | 140 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo |
| | | 141 | .elif exists(/usr/sfw/bin/makeinfo) |
| | | 142 | TOOLS_PLATFORM.makeinfo?= /usr/sfw/bin/makeinfo |
123 | .endif | | 143 | .endif |
124 | TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p | | 144 | TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p |
125 | .if exists(/usr/bin/mktemp) | | 145 | .if exists(/usr/bin/mktemp) |
126 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | | 146 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp |
127 | .endif | | 147 | .endif |
128 | TOOLS_PLATFORM.mv?= /usr/bin/mv | | 148 | TOOLS_PLATFORM.mv?= /usr/bin/mv |
129 | TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice | | 149 | TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice |
130 | .if exists(/usr/bin/gnroff) | | 150 | .if exists(/usr/bin/gnroff) |
131 | TOOLS_PLATFORM.nroff?= /usr/bin/gnroff | | 151 | TOOLS_PLATFORM.nroff?= /usr/bin/gnroff |
132 | .endif | | 152 | .endif |
133 | .if exists(/usr/bin/openssl) | | 153 | .if exists(/usr/bin/openssl) |
134 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | | 154 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl |
135 | .endif | | 155 | .endif |
| @@ -138,52 +158,56 @@ TOOLS_PLATFORM.gpatch?= /usr/bin/gpatch | | | @@ -138,52 +158,56 @@ TOOLS_PLATFORM.gpatch?= /usr/bin/gpatch |
138 | TOOLS_PLATFORM.patch?= /usr/bin/gpatch | | 158 | TOOLS_PLATFORM.patch?= /usr/bin/gpatch |
139 | .endif | | 159 | .endif |
140 | #.if exists(/usr/bin/perl) | | 160 | #.if exists(/usr/bin/perl) |
141 | #TOOLS_PLATFORM.perl?= /usr/bin/perl | | 161 | #TOOLS_PLATFORM.perl?= /usr/bin/perl |
142 | #TOOLS_PLATFORM.pod2man?= /usr/perl5/bin/pod2man | | 162 | #TOOLS_PLATFORM.pod2man?= /usr/perl5/bin/pod2man |
143 | #.endif | | 163 | #.endif |
144 | .if ${OS_VERSION} == "5.11" && exists(/usr/bin/pkg-config) | | 164 | .if ${OS_VERSION} == "5.11" && exists(/usr/bin/pkg-config) |
145 | TOOLS_PLATFORM.pkg-config?= /usr/bin/pkg-config | | 165 | TOOLS_PLATFORM.pkg-config?= /usr/bin/pkg-config |
146 | .endif | | 166 | .endif |
147 | TOOLS_PLATFORM.printf?= /bin/printf | | 167 | TOOLS_PLATFORM.printf?= /bin/printf |
148 | TOOLS_PLATFORM.pwd?= /bin/pwd | | 168 | TOOLS_PLATFORM.pwd?= /bin/pwd |
149 | .if exists(/usr/gnu/bin/readelf) | | 169 | .if exists(/usr/gnu/bin/readelf) |
150 | TOOLS_PLATFORM.readelf?= /usr/gnu/bin/readelf | | 170 | TOOLS_PLATFORM.readelf?= /usr/gnu/bin/readelf |
| | | 171 | .elif exists(/usr/sfw/bin/greadelf) |
| | | 172 | TOOLS_PLATFORM.readelf?= /usr/sfw/bin/greadelf |
151 | .endif | | 173 | .endif |
152 | TOOLS_PLATFORM.rm?= /usr/bin/rm | | 174 | TOOLS_PLATFORM.rm?= /usr/bin/rm |
153 | TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir | | 175 | TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir |
154 | .if exists(/usr/bin/gsdiff) | | 176 | .if exists(/usr/bin/gsdiff) |
155 | TOOLS_PLATFORM.sdiff?= /usr/bin/gsdiff | | 177 | TOOLS_PLATFORM.sdiff?= /usr/bin/gsdiff |
156 | .else | | 178 | .else |
157 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | | 179 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff |
158 | .endif | | 180 | .endif |
159 | .if exists(/usr/gnu/bin/sed) | | 181 | .if exists(/usr/gnu/bin/sed) |
160 | TOOLS_PLATFORM.sed?= /usr/gnu/bin/sed | | 182 | TOOLS_PLATFORM.sed?= /usr/gnu/bin/sed |
161 | .endif | | 183 | .endif |
162 | TOOLS_PLATFORM.sh?= /bin/ksh | | 184 | TOOLS_PLATFORM.sh?= /bin/ksh |
163 | TOOLS_PLATFORM.sleep?= /bin/sleep | | 185 | TOOLS_PLATFORM.sleep?= /bin/sleep |
164 | .if exists(/usr/bin/soelim) | | 186 | .if exists(/usr/bin/soelim) |
165 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | | 187 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim |
166 | .endif | | 188 | .endif |
167 | TOOLS_PLATFORM.sort?= /usr/bin/sort | | 189 | TOOLS_PLATFORM.sort?= /usr/bin/sort |
168 | TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip | | 190 | TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip |
169 | TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail | | 191 | TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail |
170 | .if exists(/usr/bin/tbl) | | 192 | .if exists(/usr/bin/tbl) |
171 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | | 193 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl |
172 | .endif | | 194 | .endif |
173 | TOOLS_PLATFORM.tee?= /usr/bin/tee | | 195 | TOOLS_PLATFORM.tee?= /usr/bin/tee |
174 | TOOLS_PLATFORM.test?= test # shell builtin | | 196 | TOOLS_PLATFORM.test?= test # shell builtin |
175 | .if exists(/usr/bin/texi2html) | | 197 | .if exists(/usr/bin/texi2html) |
176 | TOOLS_PLATFORM.texi2html?= /usr/bin/texi2html | | 198 | TOOLS_PLATFORM.texi2html?= /usr/bin/texi2html |
| | | 199 | .elif exists(/usr/sfw/bin/texi2html) |
| | | 200 | TOOLS_PLATFORM.texi2html?= /usr/sfw/bin/texi2html |
177 | .endif | | 201 | .endif |
178 | TOOLS_PLATFORM.touch?= /usr/bin/touch | | 202 | TOOLS_PLATFORM.touch?= /usr/bin/touch |
179 | TOOLS_PLATFORM.tr?= /usr/xpg4/bin/tr | | 203 | TOOLS_PLATFORM.tr?= /usr/xpg4/bin/tr |
180 | TOOLS_PLATFORM.true?= true # shell builtin | | 204 | TOOLS_PLATFORM.true?= true # shell builtin |
181 | TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort | | 205 | TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort |
182 | .if exists(/usr/bin/unzip) | | 206 | .if exists(/usr/bin/unzip) |
183 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | | 207 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip |
184 | .endif | | 208 | .endif |
185 | TOOLS_PLATFORM.wc?= /usr/bin/wc | | 209 | TOOLS_PLATFORM.wc?= /usr/bin/wc |
186 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | | 210 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs |
187 | .if exists(/usr/bin/yacc) | | 211 | .if exists(/usr/bin/yacc) |
188 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | | 212 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc |
189 | .endif | | 213 | .endif |