3 ?RCS: You may distribute under the terms of either the GNU General Public
4 ?RCS: License or the Artistic License, as specified in the README file.
6 ?MAKE:d_signbit: nvtype Compile Setvar cat run rm_try echo n c i_math i_sunmath
9 ?S: This variable conditionally defines the HAS_SIGNBIT symbol, which
10 ?S: indicates to the C program that the signbit() routine is available
11 ?S: and safe to use with perl's intern NV type.
14 ?C: This symbol, if defined, indicates that the signbit routine is
15 ?C: available to check if the given number has the sign bit set.
16 ?C: This should include correct testing of -0.0. This will only be set
17 ?C: if the signbit() routine is safe to use with the NV type used internally
18 ?C: in perl. Users should call Perl_signbit(), which will be #defined to
19 ?C: the system's signbit() function or macro if this symbol is defined.
21 ?H:#$d_signbit HAS_SIGNBIT /**/
25 : see if signbit exists
26 $echo $n "Checking to see if you have signbit() available to work on $nvtype... $c" >&4
33 #ifdef I_SUNMATH /* Solaris special math library */
37 int main(int argc, char **argv)
41 if ((signbit(x) == 0) && (signbit(y) != 0))
49 if eval $compile; then
54 $echo "Signbit seems to be available, but doesn't work as I expected."
55 $echo "I won't use it." >&4