Commit | Line | Data |
---|---|---|
33a01fd2 | 1 | ?RCS: $Id$ |
d8875586 MBT |
2 | ?RCS: |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
4 | ?RCS: | |
33a01fd2 | 5 | ?RCS: You may redistribute only under the terms of the Artistic License, |
d8875586 MBT |
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 | |
33a01fd2 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
d8875586 MBT |
9 | ?RCS: of the source tree for dist 4.0. |
10 | ?RCS: | |
11 | ?RCS: $Log: d_sigaction.U,v $ | |
12 | ?RCS: Revision 3.0.1.1 1997/02/28 15:44:29 ram | |
13 | ?RCS: patch61: created | |
14 | ?RCS: | |
15 | ?RCS: | |
16 | ?MAKE:d_sigaction: Csym Setvar cat cc ccflags ldflags libs rm _o | |
17 | ?MAKE: -pick add $@ %< | |
18 | ?S:d_sigaction: | |
19 | ?S: This variable conditionally defines the HAS_SIGACTION symbol, which | |
20 | ?S: indicates that the Vr4 sigaction() routine is available. | |
21 | ?S:. | |
22 | ?C:HAS_SIGACTION: | |
23 | ?C: This symbol, if defined, indicates that Vr4's sigaction() routine | |
24 | ?C: is available. | |
25 | ?C:. | |
26 | ?H:#$d_sigaction HAS_SIGACTION /**/ | |
27 | ?H:. | |
28 | ?T:val | |
29 | ?LINT:set d_sigaction | |
30 | : see if we have sigaction | |
31 | echo " " | |
32 | if set sigaction val -f d_sigaction; eval $csym; $val; then | |
33 | echo 'sigaction() found.' >&4 | |
34 | val="$define" | |
35 | else | |
36 | echo 'sigaction NOT found.' >&4 | |
37 | val="$undef" | |
38 | fi | |
39 | ?X: | |
40 | ?X: Solaris 2.5_x86 with SunWorks Pro C 3.0.1 doesn't have a complete | |
41 | ?X: sigaction structure if compiled with cc -Xc. This compile test | |
42 | ?X: will fail then. <doughera@lafcol.lafayette.edu> | |
43 | ?X: | |
44 | $cat > set.c <<'EOP' | |
45 | #include <stdio.h> | |
46 | #include <sys/types.h> | |
47 | #include <signal.h> | |
48 | int main() | |
49 | { | |
50 | struct sigaction act, oact; | |
51 | } | |
52 | EOP | |
53 | if $cc $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1; then | |
54 | : | |
55 | else | |
56 | echo "But you don't seem to have a useable struct sigaction." >&4 | |
57 | val="$undef" | |
58 | fi | |
59 | set d_sigaction; eval $setvar | |
60 | $rm -f set set$_o set.c | |
61 |