diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-06 21:55:03 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-07 22:08:33 -0400 |
commit | 4842dad7c256d1564348893cff3bfed08dadcbe4 (patch) | |
tree | b1e84920c9271aacd8d47b24aac9611bcdb5ed8f | |
parent | ed6f4477d0922cc828d8bc6fd16e08c01f7c1210 (diff) | |
download | perl-4842dad7c256d1564348893cff3bfed08dadcbe4.tar.gz |
Configure: scan for truncl.
(C99 version of aintl)
-rwxr-xr-x | Configure | 16 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 1 | ||||
-rw-r--r-- | Porting/Glossary | 5 | ||||
-rw-r--r-- | Porting/config.sh | 1 | ||||
-rwxr-xr-x | config_h.SH | 6 | ||||
-rw-r--r-- | configure.com | 3 | ||||
-rw-r--r-- | plan9/config_sh.sample | 1 | ||||
-rw-r--r-- | symbian/config.sh | 1 | ||||
-rw-r--r-- | uconfig.h | 10 | ||||
-rw-r--r-- | uconfig.sh | 1 | ||||
-rw-r--r-- | uconfig64.sh | 1 | ||||
-rw-r--r-- | win32/config.ce | 1 | ||||
-rw-r--r-- | win32/config.gc | 1 | ||||
-rw-r--r-- | win32/config.vc | 1 |
15 files changed, 45 insertions, 5 deletions
@@ -835,6 +835,7 @@ d_times='' d_tmpnam_r='' tmpnam_r_proto='' d_truncate='' +d_truncl='' d_ttyname_r='' ttyname_r_proto='' d_tzname='' @@ -10349,6 +10350,10 @@ eval $inlibc set aintl d_aintl eval $inlibc +: see if truncl exists +set truncl d_truncl +eval $inlibc + : see if alarm exists set alarm d_alarm eval $inlibc @@ -15984,10 +15989,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 @@ -23672,6 +23681,7 @@ d_tm_tm_gmtoff='$d_tm_tm_gmtoff' d_tm_tm_zone='$d_tm_tm_zone' d_tmpnam_r='$d_tmpnam_r' d_truncate='$d_truncate' +d_truncl='$d_truncl' d_ttyname_r='$d_ttyname_r' d_tzname='$d_tzname' d_u32align='$d_u32align' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index cd0721f712..b3c8aa968e 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -528,6 +528,7 @@ d_tm_tm_gmtoff='define' d_tm_tm_zone='define' d_tmpnam_r='undef' d_truncate='define' +d_truncl='define' d_ttyname_r='undef' d_tzname='define' d_u32align='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index 4b5b48ba62..b9c7943346 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -518,6 +518,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='undef' diff --git a/Porting/Glossary b/Porting/Glossary index 143ec5712e..2aa0d444d8 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -2449,6 +2449,11 @@ d_truncate (d_truncate.U): This variable conditionally defines HAS_TRUNCATE if truncate() is available to truncate files. +d_truncl (d_truncl.U): + This variable conditionally defines the HAS_TRUNCL symbol, which + indicates to the C program that the aintl() routine is available. + If copysignl is also present we can emulate modfl. + d_ttyname_r (d_ttyname_r.U): This variable conditionally defines the HAS_TTYNAME_R symbol, which indicates to the C program that the ttyname_r() diff --git a/Porting/config.sh b/Porting/config.sh index 14c88af57e..e00e50a445 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -539,6 +539,7 @@ d_tm_tm_gmtoff='define' d_tm_tm_zone='define' d_tmpnam_r='undef' d_truncate='define' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='define' diff --git a/config_h.SH b/config_h.SH index a05b779578..eabb617fdf 100755 --- a/config_h.SH +++ b/config_h.SH @@ -612,6 +612,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_truncate HAS_TRUNCATE /**/ +/* HAS_TRUNCL: + * This symbol, if defined, indicates that the truncl routine is + * available. If copysignl is also present we can emulate modfl. + */ +#$d_truncl HAS_TRUNCL /**/ + /* HAS_TZNAME: * This symbol, if defined, indicates that the tzname[] array is * available to access timezone names. diff --git a/configure.com b/configure.com index 56c49f7257..4707c27d95 100644 --- a/configure.com +++ b/configure.com @@ -3377,12 +3377,14 @@ $ d_isnanl = "define" $ d_fp_classify = "define" $ d_j0 = "define" $ d_acosh = "define" +$ d_truncl = "define" $ ELSE $ d_isnan = "undef" $ d_isnanl = "undef" $ d_fp_classify = "undef" $ d_j0 = "undef" $ d_acosh = "undef" +$ d_truncl = "undef" $ ENDIF $! $! Now some that we build up @@ -6316,6 +6318,7 @@ $ WC "d_tm_tm_gmtoff='undef'" $ WC "d_tm_tm_zone='undef'" $ ENDIF $ WC "d_truncate='" + d_truncate + "'" +$ WC "d_truncl='" + d_truncl + "'" $ WC "d_tzname='" + d_tzname + "'" $ WC "d_u32align='define'" $ WC "d_ualarm='" + d_ualarm + "'" diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 41fa079f1b..180584b765 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -528,6 +528,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='define' diff --git a/symbian/config.sh b/symbian/config.sh index c88a3d0035..8229f171cc 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -476,6 +476,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='undef' d_u32align='define' @@ -577,6 +577,12 @@ */ /*#define HAS_TRUNCATE / **/ +/* HAS_TRUNCL: + * This symbol, if defined, indicates that the truncl routine is + * available. If copysignl is also present we can emulate modfl. + */ +/*#define HAS_TRUNCL / **/ + /* HAS_TZNAME: * This symbol, if defined, indicates that the tzname[] array is * available to access timezone names. @@ -4845,6 +4851,6 @@ #endif /* Generated from: - * 7e76a333a9371f1ff08dfca439fb5f6232dfaf68acc41ac20176cbce581fe5c7 config_h.SH - * c152ea695301aeff5abcae519813f0bc4f3a875ba6f38e4a841302baa7bb5c7b uconfig.sh + * 1c1d16f8945b3f9bfe5468b7388d22d9eeb1d6474c8f01a6339b503de6167800 config_h.SH + * 6039ef141e931b6582a919f2049d2e4d68a5f977e2cf27b898966e83d5f3ed62 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index 331ecfbf49..7589c0b245 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -467,6 +467,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='undef' d_u32align='define' diff --git a/uconfig64.sh b/uconfig64.sh index 5dfddb5686..6c5445d23f 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -468,6 +468,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='undef' d_u32align='define' diff --git a/win32/config.ce b/win32/config.ce index 929d1ba459..d6ff63d80a 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -516,6 +516,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='undef' diff --git a/win32/config.gc b/win32/config.gc index 5d666c793e..6d7b9d31d8 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -516,6 +516,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='define' diff --git a/win32/config.vc b/win32/config.vc index 1fedf18714..0c0d82997d 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -516,6 +516,7 @@ d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' d_truncate='undef' +d_truncl='undef' d_ttyname_r='undef' d_tzname='define' d_u32align='define' |