This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / d_isless.U
CommitLineData
63a4f1f4
MBT
1?RCS: You may distribute under the terms of either the GNU General Public
2?RCS: License or the Artistic License, as specified in the README file.
3?RCS:
4?MAKE:d_isless: cat i_math Compile rm_try Setvar
5?MAKE: -pick add $@ %<
6?S:d_isless:
7?S: This variable conditionally defines the HAS_ISLESS symbol, which
8?S: indicates to the C program that the isless() routine is available.
9?S:.
10?C:HAS_ISLESS:
11?C: This symbol, if defined, indicates that the isless routine is
5608e228 12?C: available to do the isless function.
63a4f1f4
MBT
13?C:.
14?H:#$d_isless HAS_ISLESS /**/
15?H:.
16?LINT:set d_isless
17: check for isless
18echo "Checking to see if you have isless..." >&4
19$cat >try.c <<EOCP
20#$i_math I_MATH
21#ifdef I_MATH
22#include <math.h>
23#endif
24int main() { return isless(0.0); }
25EOCP
26set try
27if eval $compile; then
28 val="$define"
29 echo "You have isless."
30else
31 val="$undef"
32 echo "You do not have isless."
33fi
34$rm_try
35set d_isless
36eval $setvar
37