?RCS: $Id: keyword.U 1 2006-08-24 12:32:52Z rmanfredi $ ?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: keyword.U,v $ ?RCS: Revision 3.0 1993/08/18 12:10:08 ram ?RCS: Baseline for dist 3.0 netwide release. ?RCS: ?MAKE:d_const: cat cc ccflags Setvar ?MAKE: -pick add $@ %< ?S:d_: ?S: This variable conditionally defines the HASCONST symbol, which ?S: indicates to the C program that this C compiler knows about the ?S: type. ?S:. ?C:HAS<%KEY> ~ %<: ?C: This symbol, if defined, indicates that this C compiler knows about ?C: the type. There is no need to actually test for that symbol ?C: within your programs. The mere use of the "" keyword will ?C: trigger the necessary tests. ?C:. ?H:?%<:#$d_ HAS<%KEY> /**/ ?H:?%<:#ifndef HAS<%KEY> ?H:?%<:#define ?H:?%<:#endif ?H:. ?W:%<: ?LINT:set d_ ?LINT:known : check for keyword echo " " echo 'Checking to see if your C compiler knows about ""...' $cat >.c <<'EOCP' main() { char *foo; } EOCP if $cc -c $ccflags .c >/dev/null 2>&1 ; then val="$define" echo "Yup, it does." else val="$undef" echo "Nope, it doesn't." fi set d_ eval $setvar