This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Configure: scan for truncl.
[metaconfig.git] / U / perl / d_truncl.U
diff --git a/U/perl/d_truncl.U b/U/perl/d_truncl.U
new file mode 100644 (file)
index 0000000..7c536a6
--- /dev/null
@@ -0,0 +1,22 @@
+?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:d_truncl: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_truncl:
+?S:    This variable conditionally defines the HAS_TRUNCL symbol, which
+?S:    indicates to the C program that the truncl() routine is available
+?S:    to round long doubles towards zero. If copysignl is also present,
+?S:    we can emulate modfl.
+?S:.
+?C:HAS_TRUNCL :
+?C:    This symbol, if defined, indicates that the truncl routine is
+?C:    available. If copysignl is also present we can emulate modfl.
+?C:.
+?H:#$d_truncl HAS_TRUNCL               /**/
+?H:.
+?LINT:set d_truncl
+: see if truncl exists
+set truncl d_truncl
+eval $inlibc
+