?RCS: $Id$ ?RCS: ?RCS: Copyright (c) 1991-1997, 2004-2006, 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 4.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 : see if we have sigaction echo " " 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. ?X: $cat > set.c <<'EOP' #include #include #include int 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