In metaconfig.git, the branch master has been updated <http://perl5.git.perl.org/metaconfig.git/commitdiff/7a27bf006cb24055261e07588aea6f8eb377640a?hp=6452fb66ea0797359d91b6be01195e3f785ddf94>
- Log ----------------------------------------------------------------- commit 7a27bf006cb24055261e07588aea6f8eb377640a Author: H.Merijn Brand - Tux <[email protected]> Date: Wed Sep 10 08:29:44 2014 +0200 Configure: scan for truncl. (C99 version of aintl) backport of 4842dad7c256d1564348893cff3bfed08dadcbe4 Author: Jarkko Hietaniemi <[email protected]> 2014-09-07 03:55:03 Plus a missed copy/paste error ----------------------------------------------------------------------- Summary of changes: U/perl/d_modfl.U | 13 +++++++++---- U/perl/d_truncl.U | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 U/perl/d_truncl.U diff --git a/U/perl/d_modfl.U b/U/perl/d_modfl.U index 91f25ef..b153bd5 100644 --- a/U/perl/d_modfl.U +++ b/U/perl/d_modfl.U @@ -8,7 +8,8 @@ ?MAKE:d_modfl d_modflproto d_modfl_pow32_bug: Inlibc Compile Hasproto cat \ rm_try test sPRIfldbl d_longdbl osname gccversion ccflags run \ uselongdouble i_math \ - d_sqrtl d_aintl d_copysignl d_ilogbl d_scalbnl d_frexpl d_ldexpl + d_sqrtl d_aintl d_copysignl d_ilogbl d_scalbnl d_frexpl d_ldexpl \ + d_truncl ?MAKE: -pick add $@ %< ?S:d_modfl: ?S: This variable conditionally defines the HAS_MODFL symbol, which @@ -130,10 +131,14 @@ if $test "$uselongdouble" = "$define"; then message="$message sqrtl" fi if $test "$d_modfl" != "$define"; then - if $test "$d_aintl:$d_copysignl" = "$define:$define"; then - echo "You have both aintl and copysignl, so I can emulate modfl." + if $test "$d_truncl:$d_copysignl" = "$define:$define"; then + echo "You have both truncl and copysignl, so I can emulate modfl." else - message="$message modfl" + if $test "$d_aintl:$d_copysignl" = "$define:$define"; then + echo "You have both aintl and copysignl, so I can emulate modfl." + else + message="$message modfl" + fi fi fi if $test "$d_frexpl" != "$define"; then diff --git a/U/perl/d_truncl.U b/U/perl/d_truncl.U new file mode 100644 index 0000000..7c536a6 --- /dev/null +++ b/U/perl/d_truncl.U @@ -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 + -- perl5 metaconfig repository
