Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: d_getwd.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
6 | ?RCS: as specified in the README file that comes with the distribution. | |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
8 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
9 | ?RCS: of the source tree for dist 4.0. | |
10 | ?RCS: | |
11 | ?RCS: $Log: d_getwd.U,v $ | |
12 | ?RCS: Revision 3.0 1993/08/18 12:06:18 ram | |
13 | ?RCS: Baseline for dist 3.0 netwide release. | |
14 | ?RCS: | |
15 | ?MAKE:d_getwd: Csym Setvar | |
16 | ?MAKE: -pick add $@ %< | |
17 | ?S:d_getwd: | |
18 | ?S: This variable conditionally defines HAS_GETWD if getwd() is | |
19 | ?S: available to get working directory. If not, you should | |
20 | ?S: probably use getcwd(). | |
21 | ?S:. | |
22 | ?C:HAS_GETWD (GETWD): | |
23 | ?C: This symbol, if defined, indicates that the getwd routine is | |
24 | ?C: available to get working directory. If not, you should | |
25 | ?C: probably use getcwd(). | |
26 | ?C:. | |
27 | ?H:#$d_getwd HAS_GETWD /**/ | |
28 | ?H:. | |
29 | ?LINT:set d_getwd | |
30 | : see if getwd exists | |
31 | echo " " | |
32 | if set getwd val -f d_getwd; eval $csym; $val; then | |
33 | echo 'getwd() found.' >&4 | |
34 | val="$define" | |
35 | else | |
36 | echo 'getwd() not found. Assuming getcwd() exists.' >&4 | |
37 | val="$undef" | |
38 | fi | |
39 | set d_getwd | |
40 | eval $setvar | |
41 |