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