Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: d_tminsys.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_tminsys.U,v $ | |
12 | ?RCS: Revision 3.0 1993/08/18 12:07:47 ram | |
13 | ?RCS: Baseline for dist 3.0 netwide release. | |
14 | ?RCS: | |
15 | ?MAKE:d_tminsys: contains Setvar Findhdr | |
16 | ?MAKE: -pick add $@ %< | |
17 | ?S:d_tminsys: | |
18 | ?S: This variable conditionally defines TM_IN_SYS if this system | |
19 | ?S: declares "struct tm" in <sys/time.h> rather than <time.h>. | |
20 | ?S:. | |
21 | ?C:TM_IN_SYS (TMINSYS): | |
22 | ?C: This symbol is defined if this system declares "struct tm" in | |
23 | ?C: in <sys/time.h> rather than <time.h>. We can't just say | |
24 | ?C: -I/usr/include/sys because some systems have both time files, and | |
25 | ?C: the -I trick gets the wrong one. | |
26 | ?C:. | |
27 | ?H:#$d_tminsys TM_IN_SYS /**/ | |
28 | ?H:. | |
29 | ?LINT:set d_tminsys | |
30 | : see if struct tm is defined in sys/time.h | |
31 | echo " " | |
32 | if $contains 'struct tm' `./findhdr time.h` >/dev/null 2>&1 ; then | |
33 | echo "You have struct tm defined in <time.h> rather than <sys/time.h>." >&4 | |
34 | val="$undef" | |
35 | else | |
36 | echo "You have struct tm defined in <sys/time.h> rather than <time.h>." >&4 | |
37 | val="$define" | |
38 | fi | |
39 | set d_tminsys | |
40 | eval $setvar | |
41 |