?RCS: $Id: i_stdbool.U,v $ ?RCS: ?RCS: Copyright (c) 2011 H.Merijn Brand ?RCS: ?RCS: You may distribute under the terms of either the GNU General Public ?RCS: License or the Artistic License, as specified in the README file. ?RCS: ?MAKE:i_stdbool: cat Compile rm_try Setvar ?MAKE: -pick add $@ %< ?S:i_stdbool: ?S: This variable conditionally defines the I_STDBOOL symbol, which ?S: indicates to the C program that exists and should ?S: be included. ?S:. ?C:I_STDBOOL: ?C: This symbol, if defined, indicates that exists and ?C: can be included. ?C:. ?H:#$i_stdbool I_STDBOOL /**/ ?H:. ?LINT:set i_stdbool : see if stdbool is available : we want a real compile instead of Inhdr because some Solaris systems : have stdbool.h, but it can only be used if the compiler indicates it : is sufficiently c99-compliant. echo " " $cat >try.c < #include int func(bool x) { return x ? 1 : 0; } int main(int argc, char **argv) { return func(0); } EOCP set try if eval $compile; then echo " found." >&4 val="$define" else echo " NOT found." >&4 val="$undef" fi $rm_try set i_stdbool eval $setvar