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